android - xxhdpi density added in API 16, what in <16 if I provide only xxhdpi resources? -


i'm working on porting ios android, , since ios guy gave me @3x versions of graphic resources, have placed them in res/drawable-xxhdpi folder. know it's not practice not provide alternative low-res resources, according official documentation:

by default, android scales bitmap drawables [...] render @ appropriate physical size on each device. example, if application provides bitmap drawables [...] medium screen density (mdpi), system scales them when on high-density screen, , scales them down when on low-density screen.

now, documentation says:

xxhdpi: extra-extra-high-density screens; approximately 480dpi. added in api level 16

then, question. don't give bitmap alternatives aside xxhdpi, on devices running android api <16 drawables rendered @ all? tried app on api 10 emulator, , stuff there. should be? if yes, why?!?

the answer yes, resources rendered on devices api < 16.

why yes?

this finding: if inside contents of output apk res folder. drawble-xxhdpi resource folder converted drawble-xxhdpi-v4

enter image description here

v4 qualifier gets appended drawable-xxhdpi folder. v4 support library designed used android 1.6 (api level 4) , might have connection new qualifier resources detected on lower api devices.

qualifiers have been defined support different resolution devices in better way. once you're able compile apk api >= 16 , lower api device supported app, resources new qualifier folders picked on lower api devices if none of compatible qualifier resources detected.

your test on api 10 emulator confirms this.

you should check best practices, understand question not that.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -