I am creating an app for Android using Xamarin.Android, but this question applies to pure native Android as well.
I want to place this XML in my drawable folder so I can use it:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true"
android:drawable="@drawable/button_pressed" /> <!-- pressed -->
<item android:state_focused="true"
android:drawable="@drawable/button_focused" /> <!-- focused -->
<item android:state_hovered="true"
android:drawable="@drawable/button_focused" /> <!-- hovered -->
<item android:drawable="@drawable/button_normal" /> <!-- default -->
</selector>
But I have 5 different drawable folders that Xamarin made for me in my Resources folder:
drawable-hdpi
drawable-mdpi
drawable-xhdpi
drawable-xxhdpi
drawable-xxxhdpi
Which folder should I put it in? Can I make a folder called "drawable" so that it is used on all screen resolutions? Or as a "fall-back" if the resource is not found in the respective folder?