Ok this is very stupid but i can't find a way out. As a brief test I put bg.png into drawable/drawable-xhdpi but when i reference it
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:id="@+id/details_parent"
android:background="@drawable/bg">
...
</LinearLayout>
I get this error Couldn't resolve resource @drawable/bg
I tried copying it in every drawable-somethingDPI folder, because that's what I will do when I'll have the different size of it, but still nothing.
Finally, if I simply move it to the parent folder /drawable
everything works.
But this is nonsense! I want to put the different sized pictures in their respective -DPI folder to support the various dpi buckets.
What am I missing?