23

I am trying to get information about the notification icon sizes to create them for my app but I am a little bit lost. I have read a few posts that basically says this:

For MDPI 24 px
For HDPI 36 px
For XHDPI 48 px
For XXHDPI 72 px
For XXXHDPI 96 px

I am trying to create my icons using Photoshop but I don't know the resolution. Can anyone tell what resolution I have to use?

Here you have a Photoshop, create New dialog:

enter image description here

Roc Boronat
  • 11,395
  • 5
  • 47
  • 59
Ton
  • 9,235
  • 15
  • 59
  • 103
  • 2
    "I don't know the resolution" -- um, you just typed them in. Create a 24x24 px edition of the icon and put it in `res/drawable-mdpi/`. Create a 36x36 px edition of the icon and put it in `res/drawable-hdpi/`. Etc. Or am I misunderstanding your question? – CommonsWare Apr 06 '15 at 20:07
  • Well yeah, but when I create a 24x24 image in photoshop it has also a resolution like 73 pixel per inch, or 150 or 300. What is the standard resolution? – Ton Apr 06 '15 at 20:15
  • I just edited the question and added an image from Photoshop – Ton Apr 06 '15 at 20:21
  • 1
    My guess is that Android does not use the resolution metadata, only the pixel data. – hultqvist Aug 22 '15 at 12:33

5 Answers5

39

you are right here.. Notification icons have the same size you had posted here... like

MDPI - 24 x 24  (drawable-mdpi)
HDPI - 36 x 36  (drawable-hdpi)
XHDPI - 48 x 48  (drawable-xhdpi)
XXHDPI - 72 x 72  (drawable-xxhdpi)
XXXHDPI - 96 x 96  (drawable-xxxhdpi)

For more detailed.. Here Graphics Designer Cheat Sheet Have a look

jignesh.world
  • 1,396
  • 1
  • 11
  • 26
  • 2
    Better information than official Material guidelines, very nice. Although, something you might be interested in [Icon Guidelines](https://www.google.com/design/spec/style/icons.html) – Jissay Oct 12 '15 at 15:07
  • 8
    @Jissay [Android Icon Reference Chart](http://iconhandbook.co.uk/reference/chart/android/) is an even better place. – Sufian Nov 05 '15 at 10:08
5

The correct resolutions have been posted already, but I want to point out that notification icons are unecessary for xxxhdpi devices. As per the official Android documentation:

You should not use the xxxhdpi qualifier for UI elements other than the launcher icon.

Pete
  • 3,842
  • 3
  • 31
  • 42
4

In case of the notification's large icon, the size is 64dp. So, the dimensions in pixels per density are:

MDPI: 64px
HDPI: 96px
XHDPI: 128px
XXHDPI: 192px
XXXHDPI: 256px

Roc Boronat
  • 11,395
  • 5
  • 47
  • 59
  • Your answer is correct! But, do you have any official doc references as well? Thanks! – vITs Dec 29 '21 at 09:44
  • 1
    Yap, here's the official Android documentation. Thanks for asking! https://developer.android.com/training/multiscreen/screendensities#TaskProvideAltBmp – Roc Boronat Jan 03 '22 at 15:59
1

You can also use this place to generate app or notification icons. Here's a link!

Bilal Saeed
  • 2,092
  • 8
  • 31
1

Notification icon size in Android

enter image description here

Tippu Fisal Sheriff
  • 2,177
  • 11
  • 19