简体   繁体   English

为什么我没有在XML中获取android:background选项

[英]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.

相关问题 为什么我只得到 <?xml version=“1.0” standalone=“no”?> 什么时候要求xml文件? 安卓系统 - Why am I only getting <?xml version=“1.0” standalone=“no”?> when request for a xml file? Android 为什么我的 styles.xml 文件 (Android Studio) 中出现“Android 资源链接失败” - Why am I getting “Android resource linking failed” in my styles.xml file (Android Studio) 为什么我在Android中获得actionbar null? - why I am getting actionbar null in android? 为什么我得到这个ClassCastException(Android)? - Why am I getting this ClassCastException (Android)? Android:为什么会出现此错误? - Android: Why am i getting this error? 为什么我会收到 nullpointerexception (Android)? - Why am I getting a nullpointerexception (Android)? 我在 Android IDE 上错误地指定了 VM 选项 - I am getting error improperly specified VM option on Android IDE 如果我收到通知,Android应用程序仍在后台运行吗? - Are android apps still running in background if I am getting notifications? AndroidManifest.xml文件丢失! 我为什么得到这个? - AndroidManifest.xml file missing! Why am I getting this? 为什么我的main.xml中出现错误? - Why am I getting an error in my main.xml?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM