user1804590 user1804590 - 1 year ago 64
Android Question

Drawable Image gives 'No resource found..' but it is in the folder

I have the below XML in slider_button.xml:

<selector xmlns:android="">
<item android:state_focused="true"
android:drawable="@android:drawable/button9patch" />

gets the error:

Error: No resource found that matches the given name (at 'drawable'
with value '@android:drawable/button9patch').

However I think I have the file in the right place (I've even put it in all the drawable folders to be sure):

enter image description here

What am I doing wrong? Thanks

Answer Source

change like this

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download