Hi
I am facing a problem
I want my application to pick up resources from the framework. Here is
my code snippet of an xml.

 <item android:state_enabled="true"
        android:drawable="?android:attr/theme_btn_minus_ss" />

For this to be achieved following changes were made in attrs.xml

<attr name = "theme_btn_minus_ss"                format= "reference"/
>

and themes.xml at the framework level

<item name="theme_btn_minus_ss">@android:drawable/btn_minus_ss</
item>

The drawable btn_minus_ss.png is added to drawable-hdpi folder at the
location framework/base/core/res/res/drawable-hdpi
Whenever I open the application, it crashes.
I get the following error in logs


 ERROR/AndroidRuntime(3701): Caused by:
org.xmlpull.v1.XmlPullParserException: Binary XML file line #5: <item>
tag requires a 'drawable' attribute or child tag defining a drawable

However, when I use this

android:background="?android:attr/theme_btn_minus_ss"

I don't get any error. I want to use
android:drawable
What is the cause and how can this problem be solved.



Thanks & Regards
Aviral

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to