Thursday, March 29, 2012

[android-developers] tag requires a 'drawable' attribute

I have this simple XML in the drawable folder:

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/dark_pressed"
android:state_pressed="true" />
<item android:drawable="@drawable/dark_focused"
android:state_focused="true"
android:state_enabled="true"
android:state_window_focused="true" />
<item android:drawable="@drawable/dark" />
</selector>

And I'm getting the error in Eclipse:
Binary XML file line #2: <item> tag requires a 'drawable' attribute or
child tag defining a drawable

Anyone knows what the problem is? I've tried to clean the project and
restarting Eclipse but nothing worked.

Thanks in advance!

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate