I have LinearLayout and one of it attribute is android:background="@drawable/bgImg" I want to create the background to be transparent. Do someone have any clue about this issue? Thanks
Asked
Active
Viewed 4,217 times
2 Answers
2
If you just want to make the layout transparent just use android:background="#00000000"
But if you want to make the application transparent (the area which is not occupied by app will be transparent) add style in manifest.xml, like following
<application android:icon="@drawable/icon"
android:label="@string/app_name"
android:theme="@android:style/Theme.Translucent.NoTitleBar">
0
Just remove that android:background="@drawable/bgImg"
attr from the LinearLayout
declaration.

Vit Khudenko
- 28,288
- 10
- 63
- 91
-
1Or change it to @android:color/transparent if you need to override an existing style or theme. – Emile Dec 19 '10 at 13:04