Android 4.0 (API 15) uses invalid resource qualifiers

I have two devices here:

  • 960x540 - normal hdpi → 640dp x 360dp
  • 1920x1080 device - normal xxhdpi → 640dp x 360dp

In Android 4.1+ resource specifiers:

  • values-sw360dp-hdpi
  • values-sw360dp-xxhdpi

And it all works flawlessly.

But according to API 15 in tests, the application gets resources from the folder with the highest dpi resolution, but does not fit the best, so the first device gets resources from the full hd device.

Anyway, an additional parameter to fix this error?

+3


source to share


1 answer


Work: mark resources with swXXX as swXXX-v16 and provide resources like in android 2.x. drawable-normal-hdpi is the only way to find this behavior.



+3


source







All Articles