Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

My ListView backgrounds go black during scrolling - how to fix?

Ive specified white backgrounds for pretty much all widgets and it works, except when scrolling. The background container goes black during scrolling resulting in annoying flickering.

like image 883
Eno Avatar asked Mar 30 '10 19:03

Eno


1 Answers

You will need to use the setCacheColorHint() method of ListView.

Example: list.setCacheColorHint(yourBackColor);

Explanation of the issue and solution here

like image 90
jqpubliq Avatar answered Sep 28 '22 17:09

jqpubliq