I need to add to add ListView with complicated items background: different for even/odd and rounded corners at the top and bottom. It looks like this:
I guess you want to add margin only to last item:
So you can do in this manner, in your getview method the index of the list item and check if its the last item, then progrmatically add margin to the view.