android app icon icon size

  • 2021-07-10 20:52:26
  • OfStack

In the android program, after setting the icon in drawable, the result is not displayed in Xiaomi 2, but it is normal in my own htc and simulator. Later, it was found that millet's dpi was different.

Later, it was found that android loaded a series of icons to adapt to different resolutions and dpi.

LDPI (Low Density Screen, 120 DPI), whose icon size is 36 x 36 px.

MDPI (Medium Density Screen, 160 DPI), whose icon size is 48 x 48 px.

HDPI (High Density Screen, 240 DPI), whose icon size is 72 x 72 px.

xhdpi (Extra-high density screen, 320 DPI), whose icon size is 96 x 96 px.

xxhdpi (xx-high density screen, 480 DPI), whose icon size is 144 x 144 px.

If the icon on the desktop of the mobile phone has not been updated after setting the icon, you can try to restart the mobile phone for 1 time.

1 Some suggestions:

During the design process, a few pixels are vacated in 4 weeks to make the designed icon visually identical to other icons, such as:

96 x 96 px icon can be drawn with the area size set to 88 x 88 px, leaving 4 pixels for filling in 4 weeks (no background color).

72 x 72 px icon can be drawn. The area size can be set to 68 x 68 px, leaving 2 pixels for filling in 4 weeks (no background color).

48 x 48 px icon can be drawn. The area size can be set to 46 x 46 px, and 1 pixel is set aside for filling in 4 weeks (no background color).

36 x 36 px icon can be drawn. The area size can be set to 34 x 34 px, leaving 1 pixel for filling in 4 weeks (no background color).


Related articles: