Katherine99 Katherine99 - 4 months ago 16
Android Question

Android: Transparent Colored ListViews with Background

I have a doubt I have a listview and below it there is a background with a image. I would like to have the lists with a transparent color in order to see the image in the background with the ListViews color. I have tried using a selector but it just applies to the select item i the listview.
Maybe it is not very clear so for that purpose I attach the following picture where the listview and the background is shown: http://www.ingens-networks.com/blog/image.axd?picture=2012%2f4%2fdevice-2012-04-27-132332.png

As you can see the item background is with color but the image is still visible

Thank you very much

Answer

Add following property in ListView...

android:cacheColorHint="#00000000"

it is for transparent background of ListView. More detail see Here.