Mastering Android Icons: How to Properly Resize and Optimize for All Screen Densities

To support all Android screen densities properly, you can download the icon at the highest resolution available (e.g. 512px) and manually resize it for different density buckets:

Recommended icon sizes for each density bucket:

DensityFolder nameScaleRecommended icon size
mdpidrawable-mdpi1x48 × 48 px
hdpidrawable-hdpi1.5x72 × 72 px
xhdpidrawable-xhdpi2x96 × 96 px
xxhdpidrawable-xxhdpi3x144 × 144 px
xxxhdpidrawable-xxxhdpi4x192 × 192 px

What you should do:

  1. Download the icon in 512px PNG.
  2. Use an image editor like Photoshop, GIMP, or an online tool like ResizeImage or Simple Image Resizer to create resized versions.
  3. Place the resized images into the appropriate res/drawable-*dpi folders as follows:
drawable-mdpi     -> 48px
drawable-hdpi     -> 72px
drawable-xhdpi    -> 96px
drawable-xxhdpi   -> 144px
drawable-xxxhdpi  -> 192px

Leave a Reply

Your email address will not be published. Required fields are marked *