How to make the ListView transparent in android?
The background android screen image should be visible.
How to make the ListView transparent in android?
The background android screen image should be visible.
android:background="@drawable/bg"
android:cacheColorHint (#00000000)
How to make the ListView transparent in android?
As Jacky mentioned, setting attributes for list view will do the job.
android:background="#00000000"
android:cacheColorHint="#00000000"
The background android screen image should be visible.
In Android manifest file add following attribute to activity.
android:theme="@android:style/Theme.Dialog"
You should use the more verbose
android:background="@android:color/transparent"
wow.. thanks a lot.... worked for me..
I had a custom adapter for List, and when i scrolled, it used to show a black background... and adding
android:background="#00000000" android:cacheColorHint="#00000000"
fixed my problem.