How to support multiple devices with many images in the application?

I have seen many such questions and read many documents, but I'm still not sure what the right path is. I have an application with 500 photos, and first, as I did it, was to scale each photo 5 times, to the pixel sizes for each ldpi, mdpi, hdpi, xhdpi and xxhdpi. But after that, the application received much more than it should, and since you can only upload .apk from 50 MB to the market, I am trapped.

I found several options that can be made here, but not sure which one is correct:

  • Make several layouts for each of these densities on devices and scale them with different dp
  • Make a few .apk files, each for each device with a different density (after all, Google focuses on this option to do this only if you really cannot do it anyway - why?). This would be ideal for me, as I already have photographs prepared for each density)
  • Take a few snapshots and put them in only one .apk - this will not work for me, since .apk is too big
  • Take snapshots that are good for the MDPI device, put them in "drawable" and they will automatically resize for other devices and smaller for devices with lower density - this creates problems with pictures when they change from MDPI to other larger devices with DPI, pictures are blurry.

So, anyway, the right way to handle this is to follow the first option, right? Should I just take xxhdpi snapshots (so they always scale from the best image), put them in drawable-nodpi? However, I have some scaling problems on ImageButtons. Please tell me how to do it right.

+4
source share
3 answers

In my practice, only one apk is used to make the application simple and easy to develop and publish.

Use only one tuck, the better, the better. it depends on the final size of the APK you can take out (the market).

Perhaps this question will help:

Use only XHDPI graphics in an Android app?

+1

. , . , .

, !

0

, . , . , Google . , . Microsoft

0

All Articles