I'm testing my app on two very different handsets:
Htc One X (running 4.1)
720x1280, density XHigh (320dpi)
Samnsung GT-S6500D running 2.3.6
320x480, density medium, (160dpi)
Now, How can I make sure that each device use different layouts folder? I have created layout-sw720dp, layout-sw600dp, layout-normal, ...
Because 2.3 doesn't take layout-sw320dp into account, I guessed it would take layout-normal
, wich it does, good.
Now why doesn't the bigger screen take layout-sw720dp folder? It also falls into layout-normal
>> why?
I use
android:minSdkVersion="10"
android:targetSdkVersion="17"
and build target = level 15 (4.0.3)
I think the problem is you are using two different layout classifications. Normal is used as generalized screen density why the layouts available since 3.2 are based on minimum screen dimensions. Try removing normal density layout and see what happens. Of course you can always inflate different layouts from code as above answer suggested.