Search code examples
androidandroid-screen-support

using sw720 instead of hdpi values on Nexus 7 800*1280


I read this link :

Different resolution support android

res/values-sw720dp/dimens.xml (800*1280)

but when I run my layout on Nexus 7 - API 19 800*1280 on the Genymotion,it use

values-hdpi

instead of

values-sw720dp

!

enter image description here

my min api is 14.

why?


Solution

  • Because the Nexus 7 does not have a smallest width value >= 720dp. The Nexus 7 is TVDPI (1.3x) density, so that means the 1280x800 resolution is effectively 961dp x 600dp. So it should match the sw600dp qualifier, but it will not match sw720dp, as its smallest width is 600dp.