1

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

Bakih
  • 286
  • 1
  • 6
  • 13

2 Answers2

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">
Ted Hopp
  • 232,168
  • 48
  • 399
  • 521
Walid
  • 91
  • 1
0

Just remove that android:background="@drawable/bgImg" attr from the LinearLayout declaration.

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