Ted Betz
Ted Betz

Reputation: 1621

What size should xhdpi launch icons be?

I've created a \res\drawable-xhdpi resource folder to prepare for the hi-res devices, but the developer.android.com site doesn't provide guidelines for the icon sizes for this resoulution. What should I use as the the size of a xhdpi icon?

Upvotes: 32

Views: 35454

Answers (8)

change
change

Reputation: 672

To create alternative bitmap drawables for different densities, you should follow the 3:4:6:8:12:16 scaling ratio between 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 (launcher icon only; see note above)

For more information about designing icons, see the Icon Design Guidelines, which includes size information for various bitmap drawables, such as launcher icons, menu icons, status bar icons, tab icons, and more.

Upvotes: 5

kishu27
kishu27

Reputation: 3120

follow this ratio 2:3:4:6:8 ratio for mdpi:hdpi:xhdpi:xxhdpi:xxxhdpi

I usually create my assets at the highest level I'm supporting and start downsizing them, making any pixel level hand crafted adjustments as I see the need.

Upvotes: 32

tjPark
tjPark

Reputation: 308

now xxhdpi phones coming, 144x144px in drawable-nodpi folder will suit for every phones

Upvotes: 1

sandalone
sandalone

Reputation: 41759

The rule 3:4:6:8 interpret like this:

4 = MDPI

If MDPI equals X px, then

LDPI = MDPI x 0.75 HDPI = MDPI * 1.5 XHDPI = MDPI * 2

Upvotes: 1

Peter
Peter

Reputation: 10980

This calculator will help you in finding out which dimensions are needed:

http://labs.skinkers.com/content/android_dp_px_calculator/

It works 2 ways (from DPI to PX and vice versa).

Upvotes: 1

bigstones
bigstones

Reputation: 15267

mdpi means ~160dpi, xhdpi means ~320dpi.

So, as an mdpi icon is 48x48px --> xhdpi icon is 96x96px

(I give up, upvote as you like)

Upvotes: 81

0xC0DED00D
0xC0DED00D

Reputation: 20348

You should see the official documentation for providing alternate resources for multiple screen sizes.
According to it, mdpi to xhdpi ratio is 1:2.

Upvotes: 4

GrAnd
GrAnd

Reputation: 10211

From tables here and here you can easily calculate all standard sizes for xdpi resources.

Upvotes: 2

Related Questions