My first question is, how do I set the color of the listview background as white?
I tried list.setBackgroundColor(0xFFFFFF); but of course that doesn’t work.
Another issue I’ve been having with other listviews (I can easily change the bg in xml, but I dont know how in java) is that the rows turn black when you tap and scroll.
I think this is the problem: Android ListView Background not painted
Again, I have no clue as to how I implement it in my code.
You can set the background color of listview as follows,
If your listview shows black when you scrolling the listview then add the some code in xml as
I think it may helpful to you.
Edit:
Here the xml layout contains listview.