Hassan Mokdad
Hassan Mokdad

Reputation: 5902

what is the best size to use for an Android application icon

What is the best size to use for an Android application icon? Is it 72*72?

I want to install my application on a high resolution screen (hdpi).

enter image description here

Thanks

Upvotes: 19

Views: 57751

Answers (5)

nhaarman
nhaarman

Reputation: 100468

You can also take a look here Android Asset Studio. It automatically creates icons for Android apps based on your needs.

Upvotes: 26

Sebastien Lorber
Sebastien Lorber

Reputation: 92220

http://makeappicon.com/ is very good to generate app icons for both iOS and Android.

Upvotes: -1

Trevor
Trevor

Reputation: 10993

Have a look here and then here.

72 x 72px is correct for HDPI, with the actual content within being 60px by 60px. You'd want to support other densities though to avoid upsetting people with other devices.

Upvotes: 10

Shah
Shah

Reputation: 5020

Android offer three icon sizes. Please see the following link:

Android automatically detect which icon size to be used on which screen. for that use the following code snippet in your menifest file.

<supports-screens android:resizeable=["true" | "false"] 
                 android:smallScreens=["true" | "false"]    
                 android:normalScreens=["true" | "false"]                   
                 android:largeScreens=["true" | "false"]
                 android:xlargeScreens=["true" | "false"]                  
                 android:anyDensity=["true" | "false"] />

This link would be helpful:

Upvotes: 1

Kapil Jituri
Kapil Jituri

Reputation: 1261

To create an icon for different densities, you should follow the 2:3:4:6 scaling ratio between the four primary densities (medium, high, x-high, and xx-high, respectively).

For example, consider that the size for a launcher icon is specified to be 48x48 dp.

This means the baseline (MDPI) asset is 48x48 px,

and the high density (HDPI) asset should be 1.5x the baseline at 72x72 px,

and the x-high density (XHDPI) asset should be 2x the baseline at 96x96 px, and so on.

Note: Android also supports low-density (LDPI) screens with asset size 36x36 px, but you normally don't need to create custom assets at this size because Android effectively down-scales your HDPI assets by 1/2 to match the expected size.

Similarly for XXHDPI asset size should be 144x144 px.

Source: developer.android.com

Upvotes: 13

Related Questions