why i am not getting android:background option in XML

87 Views Asked by At

I am trying to setup a splash screen. When I am adding a background in LinearLayout, the xml is not showing me the android:background option. I have already added the (600 X 400).png image into @drawable/hdpi folder. Please help me out.

3

There are 3 best solutions below

0
On BEST ANSWER

It always happens for me. Make sure you already added the image in your drawable folder and then Clean your project. It's all Eclipse's problem.

4
On

It can happen sometime to me too, for no particular reason whatsoever. However, if you just write it down, without suggestion from eclipse, it will still be shown :)

0
On

Xml editors get messy sometimes, I use ctrl+shift+f and it works again, but it doesnt happen that often in most recent ADT.