Crystal Jake
Crystal Jake

Reputation: 201

android 2.3 set preferenceActivity background but flushing when scrolling

I meet a Ui problem,I use a preferenceActivity to finish my software's settings function.But I set a image to the preferenceActivity's listview background or preferenceActivity's background,then I scroll the listview,the background image will be flushed or gone,can anyone meet this problem before?I test it on android 4.0,this issue doesn't exist.

Upvotes: 1

Views: 231

Answers (1)

devunwired
devunwired

Reputation: 63293

It's most likely an issue with the cacheColorHint property of the ListView, which is designed to aid scrolling performance when lists have a solid background. It can be removed by setting the cacheColorHint to be transparent.

You can read this Android Developers blog post for more information:

Why is my list black?

Upvotes: 2

Related Questions