我正在尝试为 android 布局中的图像按钮设置样式,但它在 Eclipse 中给了我这个错误:
app_download_detail.xml: Failed to parse file N:\My Projects\app\res\drawable\title_home.xml
org.xmlpull.v1.XmlPullParserException: Binary XML file line #3: <item> tag requires a 'drawable' attribute or child tag defining a drawable
at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:167)
at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:787)
at android.graphics.drawable.Drawable.createFromXml(Drawable.java:728)
at .....
-----> 这个问题通过将我的 Adt 更新到新版本来解决......