I have an Android app containing about 150 icons for each screen resolution.
If I put all the icons in all 5 major resolutions (ldpi, mdpi, hdpi, xhdpi, xxhdpi), then it will make the total number of icons to 750. This has several drawbacks:
- Big APK size
- Slow build process when using dexguard with ant build script. It does some processing on the images that take some time.
Alternatively I can put icons only in some of the resolutions. For instance ldpi devices are only 10% of the market now, and somewhere in Android official doc they say that Android can efficiently scale down 50% from hdpi icons to ldpi.
Now, if I chose to go this way and not provide ldpi icons, what will be the impact of resizing the icons from hdpi to ldpi at runtime on the Android device? If it needs to resize 150 icons it can take some time, especialy since ldpi devices are likely to have slower CPU. At which stage does the resizing happen on Android devices: at install time? At first app launch time? At each launch?
Thank you for your suggestions!