Problem with custom listview

I have a LinearLayout layout with a ListView in it. I made android: Background LinearLayout (I also tried it in ListView) is the image I need for my background.

This works quite well. However, when I start scrolling through the ListView, the background often fades and turns black. If I translate it a little more, I can make it appear again. It would seem that Android is dragging out or, perhaps, drawing what is behind my background onto elements.

Any ideas / solutions?

+6
android listview background
source share
1 answer

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

+18
source share

All Articles