ANDROID Studio: Picking up seemingly wrong layout -


this question exact duplicate of:

apologies folks, posted earlier in wrong head; ignore duplication

i new android studio. please excuse if query trivial. problem understanding layouts.

my layout , corresponding values folder shown below. problem correct layout not being picked up. example, nexus 4 (4.7inch, 768x1280, xhdpi), in landscape mode, layout being picked 'layout' folder. per understanding (which might totally wrong ) should have been picked layout-sw720dp-xhdpi. suggestions please?

layout

sw stands smallest width. if device has width of 320dp in portrait mode , 720dp in landscape mode end device's smallest width 320dp.

try use layout-w720dp-xhdpi instead of layout-sw720dp-xhdpi , see if works.

edit: according wikipedia "the nexus 7 screen has 1920×1200 pixel resolution (960dp × 600dp)". smallest width 600dp why layout isn't being used.


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -