开发者

Custom ListView background problem

开发者 https://www.devze.com 2023-01-19 18:11 出处:网络
I have a LinearLayout layout with a ListView in it.I\'ve made the android:background of the LinearLayout (I\'ve also tried it on the ListView) be an image that I would like for my background.

I have a LinearLayout layout with a ListView in it. I've made the android:background of the LinearLayout (I've also tried it on the ListView) be an image that I would like for my background.

This works fine enough. However, when I start scrolling through the ListView, the background often disappears and becomes black. If I move it aro开发者_运维知识库und some more I may be able to get it to appear again. It would seem that Android is drawing over, or perhaps painting what's behind my background onto the items.

Any ideas/solutions?


android:cacheColorHint="#00000000" on your listview More info is here http://www.curious-creature.org/2008/12/22/why-is-my-list-black-an-android-optimization/

0

精彩评论

暂无评论...
验证码 换一张
取 消