Android Icon Size

I know that there are recommendations for creating icons for certain areas in Android (tab, list, etc.) and how you will evaluate them according to ldpi, mdpi, hdpi, etc.

Are there any scaling rules for other icons in the application?

I have a β€œtiny” 10x10 px icon that I use on my mdpi mobile phone, what will the scaling rules be for creating ldpi, hdpi and xhdpi versions of this icon?

thanks

Dave

+7
source share
5 answers

The ratios are .75 | 1 | 1.33 | 1.5 | 2. | 3. | 4. (or 3: 4: 6: 8: 12: 16) That is, for your 10x10px bitmap, the graph will be

ldpi - 10x10 * 0.75 = 7x7 mdpi - 10x10 * 1 = 10x10 tvdpi - 10x10 * 1.33 = 13x13 hdpi - 10x10 * 1.5 = 15x15 xhdpi - 10x10 * 2 = 20x20 xxhdpi - 10x10 * 3 = 30x30 xxxhdpi - 10x10 * 4 = 40x40 
+10
source

I would create separate images for each of them:

 Res Px ldpi 36 x 36 mdpi 48 x 48 hdpi 72 x 72 xhdpi 96 x 96 xxhdpi 144x144 xxxhdpi 192x192 

Then simply place each of them into separate stems of the drop-down folder.

+14
source

hi you can create startup icons on the Internet at this link

http://android-ui-utils.googlecode.com/hg/asset-studio/dist/icons-launcher.html

view the icon image file and edit it and upload as zip

+5
source

A general rule for pixel values ​​to support multiple screens is based on the basic screen density configuration of your device. The initial density indicator is 160 pixels, mdpi is in this range. Thus, by calculating dpi values, you can put these values ​​in different dens.xml to support different devices. General formula:

Result = Value (dpi) * device density (pi) / 160 (dpi)

So, first check the density of your device, and then, according to the above formula, calculate the values ​​for dens.xml. For a standard, we usually assume that:

For density mdpi = 160, hdpi - 240, xhdpi - 320, ldpi - 120

As in your case, if the value is 10 * 10, the result for another screen will be:

For ldpi:

Result = 10 * 120/160 = 7.5, i.e. 7 ppi

For mdpi:

Result = 10 * 160/160 = 10 pixels

For hdpi:

Result = 10 * 240/160 = 15 pixels

For xhdpi:

Result = 10 * 320/160 = 20 pixels

You can also refer to this http://developer.android.com/guide/practices/screens_support.html and http://developer.android.com/training/multiscreen/screendensities.html

+2
source

According to the Android-Iconography manual, the icons should correspond to 2: 3: 4: 6 scales for different screen densities, medium, high, high level and xx-high, respectively.

enter image description here

You can also check out the Android design guide for iconography. http://developer.android.com/design/style/iconography.html

+1
source

All Articles