سؤال

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.

هل كانت مفيدة؟

المحلول

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.

نصائح أخرى

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 :)

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top