Reputation: 169
I have a Resources folder structure like this: Resources ->drawable->drawable-hdpi (and others for the various densities and sizes). Now I have a folder for layout-port and another layout-land I am creating a splashscreen with just a background png file. In each of the drawable folder the png file exists (with the same name) I go to the background property of the layout and specify @drawable.splash. But when I compile I get two errors ( one for each layout) stating- Error: No resource found that matches the given name (at 'src' with value '@drawable/splash').
Again that file is in all the folders, it seems as if the folders are not being recognized or searched.
Oh and here is part of my manifest
<supports-screens android:resizeable="true"
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:anyDensity="true"/>
So I feel I have search the web and SO plenty but cannot find a solution to this. Got to be missing something stupid.
Upvotes: 0
Views: 1268
Reputation: 14574
the /res
folder only allows one level of nesting and ignores all folders that are not directly within /res
.
Your /res structure should look like this, /drawable-hdpi is not nested within /drawable, but within /res.
Upvotes: 1