AndroidViewView background is not painted

I am working on a user interface for the application that I am writing, but I hit a little against the wall and wondering if there is anyone there can give me some advice.

I created a ViewFlipper to move between two ListViews. It works quite well, but the problem seems to be related to drawing.

There is a background in the ListView, the rows are transparent. When I select a row and the slide into the next list, the rows become transparent (I think), then the ListView background is colored after the animation stops. However, it is strange that the space below the lines does not become transparent.

This is a little difficult to explain, so I recorded a video, http://www.youtube.com/watch?v=8fEEf6_DyPo

If I put the background in the lines, they will not become transparent.

Thank you for your time.

+4
source share
2 answers

You will see that this happens when scrolling. Try setting "android: cacheColorHint =" # 00000000 "in your list.

+6
source

This is due to a rendering problem caused by the optimization of the Android platform.

To turn off optimization, just use the transparent color # 00000000

See this link for details ... http://developer.android.com/resources/articles/listview-backgrounds.html

+1
source

All Articles