4 ms·
This confuses me a bit (Android version) It generates your ldpi, mdpi, hdpi by rescaling your xhdpi image. However, if you remove the ldpi, mdpi and hdpi image
by RyanZAG 14y ago
This confuses me a bit (Android version)
It generates your ldpi, mdpi, hdpi by rescaling your xhdpi image. However, if you remove the ldpi, mdpi and hdpi images from the Android project, then Android will automatically rescale your xhdpi image for those lower dpi devices anyway.
So why bother at all in this case? Just put an xhdpi icon into the xhdpi folder in Android, and let Android handle the resizing anyway - and save some space on your download.
Am I missing anything?
- myhf 14y agoEarlier versions of Android don't rescale xhdpi icons automatically. Sometimes supporting old versions is a business requirement.
- speeder 14y agoAlso there are a issue that sometimes happen of android running out of memory when reescaling the xhdpi. I had that issue once, and it was very annoying to figure what it was, who would wonder that putting lower resolution icons in your app would make it stop crashing for out of memory? Later I saw another guy in the same company with the same issue (but on another device), it was good that I knew exactly what it was this time :)