Reputation: 1563
I have some confusion regarding drawable resource icon size. As per the Android developer support guidelines here. I found below information
36x36 (0.75x) for low-density
48x48 (1.0x baseline) for medium-density
72x72 (1.5x) for high-density
96x96 (2.0x) for extra-high-density
180x180 (3.0x) for extra-extra-high-density
192x192 (4.0x) for extra-extra-extra-high-density (launcher icon only; see note above)
As per the my understanding 180x180 (3.0x) for extra-extra-high-density should be 144x144 (3.0x) because, if extra-high-density (96x96) is (2.0x) and extra-extra-high-density is (3.0x) So that extra-extra-high-density resolution should be 144x144.
One more solution found here for xxhdpi app launcher icon size should be (144X144)
Different resolution support android is
mipmap-mdpi (48X48)
mipmap-hdpi (72X72)
mipmap-xhdpi (96X96)
mipmap-xxhdpi (144X144)
mipmap-xxxhdpi (192X192)
I have doubt why they mentioned 180x180 (3.0x) for extra-extra-high-density. Kindly Suggest me.
Thanks for help
Upvotes: 1
Views: 282
Reputation: 230
LDPI should be 36 x 36.
MDPI should be 48 x 48.
HDPI should be 72 x 72.
XHDPI should be 96 x 96.
XXHDPI should be 144 x 144.
XXXHDPI should be 192 x 192.
Upvotes: 2
Reputation: 303
To create alternative bitmap drawables for different densities, you should follow the 3:4:6:8:12:16 scaling ratiobetween the six generalized densities.
For example, if you have a bitmap drawable that's 48x48 pixels for medium-density screens, all the different sizes should be:
• 36x36 (0.75x) for low-density
• 48x48 (1.0x baseline) for medium-density
• 72x72 (1.5x) for high-density
• 96x96 (2.0x) for extra-high-density
• 180x180 (3.0x) for extra-extra-high-density
• 192x192 (4.0x) for extra-extra-extra-high-density
Upvotes: 2