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.
why i am not getting android:background option in XML
-
29-08-2022 - |
سؤال
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.
المحلول
نصائح أخرى
Xml editors get messy sometimes, I use ctrl+shift+f
and it works again, but it doesnt happen that often in most recent ADT.
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 :)
لا تنتمي إلى StackOverflow