Android emulator uses wrong layout resources

I am trying to support as many Android applications as possible for the application that I am writing, but trying to do this I found a strange problem. I have folders available for each combination of screen sizes and densities (e.g. drawable-small-mdpi, drawable-large-ldpi, etc.) and layout folders for each screen size determinant. I configured emulators for testing both small-ldpi (I just used WQVGA432) and small-hdpi scripts (I used the WQVGA skin and set the abstract density to 240). The problem I discovered is that the small-hdpi emulator is accessing the correct layout layout, while the small-ldpi emulator (WQVGA432) uses the normal and drawable-normal-ldpi layouts. It seems strange that the WQVGA emulator did not use the correct resources,although its specifications MUST comply with the requirements listed in the "Supporting Multiple Screens" article here:

http://developer.android.com/guide/practices/screens_support.html

Density:

ldpi Resources for low-density screens (ldpi) (~ 120 dpi).

mdpi Resources for medium-density screens (mdpi) (~ 160 dpi).

hdpi Resources for high density screens (hdpi) (~ 240 dpi).

xhdpi Resources for high density screens (xhdpi) (~ 320 dpi).

Screen size:

xlarge screens at least 960dp x 720dp

large screens of at least 640dp x 480dp

normal screens at least 470dp x 320dp

small screens at least 426dp x 320dp

WQVGA432:
screen: 240 x 432
Density: low (120)

largeHDPI:
screen: 240 x 432
density: high (240)

Does anyone know what the problem is or how to fix it?

+3
1

, . , ^^. ;

  • ". Android 3.0, , . , - , 1024x720 - , ."
+2

All Articles