birdy
birdy

Reputation: 9646

What size icons should go in drawable-[hdpi,mdpi] etc.

I'm new to android coming from the iOS world.

I've placed different image densities of my apps logo in mdpi, hdpi, xhdpi, xxhdpi. However, I'm uncertain about what size should other icons be? By other icons I mean, icons in my navigation bar, and table cells.

16x16 icons look extremely small on my emulator. Rather than testing and trying what looks good, I'm wondering if there is a standard around it?

Upvotes: 0

Views: 1506

Answers (3)

Anthony
Anthony

Reputation: 3074

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

What I do is make an icon of 144 x 144 and change the name to be correct, then use this tool to convert it to all other image sizes. VERY handy! :)

The Android development team has this to say

Upvotes: 1

Sushil
Sushil

Reputation: 8488

Android has documented the size requirement for different components. You can it in the link below :

ICONOGRAPHY

hope it helps

Upvotes: 2

myanimal
myanimal

Reputation: 3620

Design for a specific density (eg: mdpi or hdpi) and create the icons at whatever size work for your design, then convert their sizes to the other densities.

The documentation is pretty explicit about some icons, such as action bar, notifications, etc.

Personally, for in-app and navigation drawer icons, I use icons a little smaller than Action Bar icons.

Upvotes: 0

Related Questions