Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hdpi ldpi mdpi icon/menu resolution

I want to set an icon for my application, and don't know the exact resolution to put in the three folders hdpi/ldpi/mdpi . Also i want to set icons to my menu options and don't know what resolution to apply.

Thank you for your help.

like image 364
androniennn Avatar asked May 01 '11 15:05

androniennn


People also ask

What is Mdpi display?

Base density for Android is mdpi. All other densities are its appropriate ratios, which is as follows: 0.75x — low-density (ldpi) 1.0x — medium-density (mdpi) 1.5x — high-density (hdpi)

What is mdpi in Android?

For example, if you have a bitmap drawable that's 48x48 pixels for medium-density screen (the size for a launcher icon), all the different sizes should be: 36x36 for low-density (LDPI) 48x48 for medium-density (MDPI) 72x72 for high-density (HDPI)

Is there a way to create Xxhdpi Xhdpi Hdpi Mdpi and LDPI Drawables from a large scale image?

Option #1: Just ship the -xxhdpi drawables and let Android downsample them for you at runtime (downside: will only work on fairly recent devices, where -xxhdpi is known). Option #2: Use Android Asset Studio to downsample them for you. Option #3: Automate the process within a graphics editor, per ssantos' answer.


2 Answers

Launcher icons

48 × 48 (mdpi)
72 × 72 (hdpi)
96 × 96 (xhdpi)
144 × 144 (xxhdpi)
192 × 192 (xxxhdpi)
512 × 512 (Google Play store).png 

Action bar, Dialog & Tab icons

24 × 24 area in 32 × 32 (mdpi)
36 × 36 area in 48 × 48 (hdpi)
48 × 48 area in 64 × 64 (xhdpi)
72 × 72 area in 96 × 96 (xxhdpi)
96 × 96 area in 128 × 128 (xxxhdpi)

.png These icons are used in the action bar menu. The first number is the size of the icon area, and the second is file size.

Notification icons

 22 × 22 area in 24 × 24 (mdpi) 
 33 × 33 area in 36 × 36 (hdpi)
 44 × 44 area in 48 × 48 (xhdpi)
 66 × 66 area in 72 × 72 (xxhdpi)
 88 × 88 area in 96 × 96 (xxxhdpi)

.png These are used to represent application notifications in the status bar. They should be flat (no gradients), white and face-on perspective

Small Contextual Icons

16 × 16 (mdpi)
24 × 24 (hdpi)
32 × 32 (xhdpi)
48 × 48 (xxhdpi)
64 × 64 (xxxhdpi)

.png Small icons are used to surface actions and/or provide status for specific items. For example, in the Gmail app, each message has a star icon that marks the message as important.

For more information, use the android developers iconography material.

http://developer.android.com/design/style/iconography.html

like image 159
Arunendra Avatar answered Sep 28 '22 10:09

Arunendra


Everything you need to know is here in the official documentation.

like image 43
smith324 Avatar answered Sep 28 '22 08:09

smith324