[英]why i am not getting android:background option in XML
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. 当我在
LinearLayout
添加背景时,xml不会显示android:background
选项。 I have already added the (600 X 400).png image into @drawable/hdpi folder. 我已经将(600 X 400).png图像添加到@ drawable / hdpi文件夹中。 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.
这都是Eclipse的问题。
Xml编辑器有时会变得凌乱,我使用ctrl+shift+f
并可以再次使用,但是在最新的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 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.