I have set up my project with different drawable directories (ldpi, mdpi and hdpi). I have a background png with two different resolutions: 320×480 in drawable-mdpi folder, and 480×800 in drawable-hdpi. Both have the same filename. When I try to load the background as a style in the manifest (using android:windowBackground in the style) if I use the emulator for a 1.6 device, I get the correct one loaded(mdpi). However, if I try this on my Nexus, I see that at first the correct background from the hdpi folder is loaded, but it quickly switches to the mdpi one. I have tried also to set up the background in the layout xml file (android:src=…) but in this case only the mdpi one is loaded. If I delete the mdpi version, everything is loaded ok. Any idea on what is the problem? why is it loading the mdpi drawable?
I have set up my project with different drawable directories (ldpi, mdpi and hdpi).
Share
In manifest file:
Hope this hepls