Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a ListView transparent in Android?

How to make the ListView transparent in android?

The background android screen image should be visible.

like image 824
Tamaghna M Avatar asked Sep 04 '09 05:09

Tamaghna M


Video Answer


2 Answers

You should use the more verbose

android:background="@android:color/transparent" android:cacheColorHint="@android:color/transparent" 

Updated with Jacky's response. I originally merely meant to add to his answer, since he was using a plain hex color in the sample.

like image 69
Matthias Avatar answered Sep 29 '22 20:09

Matthias


android:background="@android:color/transparent" android:cacheColorHint="@android:color/transparent"

like image 30
Jacky Avatar answered Sep 29 '22 18:09

Jacky