Listview Alternative Row Color-get Disappear After Scroll
I have a listview with an image and a textview and I am applying alternative row color for the list view in my class named MyArrayAdaptor which extends ArrayAdapter W
Solution 1:
i think you should set your background color outside if(rowView == null)
condition. For example: just above return rowView;
...
rowView.setBackgroundColor((position%2 == 0)? colors[0] : colors[1]);
return rowView;
Post a Comment for "Listview Alternative Row Color-get Disappear After Scroll"