Custom icon for local notifications in Android

can you please specify  the size of each one of those notifications icon?
please dont give me a link just the size of each version IconNotificationDefault,

thanks a lot.

Hi @madsheepgames,

Google doesn’t make it very obvious, honestly. As far as I can tell, they say 24x24, but that doesn’t seem correct. 48x48 would make more sense, and echo what @henrik5 says above.

Perhaps you’ll get more insight out of their documentation than I can…

http://developer.android.com/design/style/iconography.html

Best regards,

Brent

Google defines the notification icons sizes and themes.  So, I highly recommend that you take the time to read their documentation.  But that said…

The Android 3.0 and higher “-v11” icons should be set up as…

  • Must have a 2 pixel margin

  • Must be themed white

  • ldpi:  18x18 pixels

  • mdpi:  24x24 pixels

  • hdpi:  36x36 pixels

  • xhdpi:  48x48 pixels

  • xxhdpi:  72x72 pixels

The Android 2.3 “-v8” icons should be set up as…

  • Must be themed grey.

  • ldpi:  12x19 pixel PNG, but the icon should be 12x12, centered vertically.

  • mdpi:  16x25 pixel PNG, but the icon should be 16x16, centered vertically.

  • hdpi:  24x38 pixel PNG, but the icon should be 24x24, centered vertically.

  • xhpdi:  Not defined by Google.  I recommend that you use your hdpi v8 icon.

  • xxhpdi:  Not defined by Google.  I recommend that you use your hdpi v8 icon.

- Note that these icons do not have a horizontal margin.  Only a vertical margin.

The Android 2.2 icons (no “-v” postfixing) should be set up as…

  • Must have a 2 pixel margin

  • Must be themed black.  (These devices have a white status bar.)

  • ldpi:  19x19 pixels

  • mdpi:  25x25 pixels

  • hdpi:  38x38 pixels

- xhdpi:  Not defined by Google, but I recommend 50x50 pixels

  • xxhdpi:  Not defined by Google, but I recommend 75x75 pixels

Oh, and regarding the 24x24 pixel size not making sense.  That’s the size of the icon at the mdpi 1x scaling.  So, for an hdpi resolution device which uses a 1.5x scale, then icon size would be 36x36 pixels.  That is, 24 * 1.5 = 36.  Google documents this at the top of their Iconography documentation along with what the scales are for every DPI that they support.

Unfortunately, Google threw away their documentation for Android 2.2 and 2.3 notification/status-bar icons.  But I’ve posted what they should be just above.  Also, a quick Google search would find this information too.

Hi @JoshuaQuick,

Thank you so much for the fast response

this will help me a lot.

Greetings,

Dear Joshua,

In the corona docs (http://docs.coronalabs.com/guide/events/appNotification/index.html), it states “-v9”, but you  are referring to “-v8”. Could you please help clarify.

Thanks

The “-v8” icons are for Android API Level 8, which is Android 2.2.

In the newest Corona release (Build #2393), we dropped support for Android 2.2.  So, the “-v8” icons are no longer required.  We’ve changed the documentation to reflect this.

Dear Joshua,

In the corona docs (http://docs.coronalabs.com/guide/events/appNotification/index.html), it states “-v9”, but you  are referring to “-v8”. Could you please help clarify.

Thanks

The “-v8” icons are for Android API Level 8, which is Android 2.2.

In the newest Corona release (Build #2393), we dropped support for Android 2.2.  So, the “-v8” icons are no longer required.  We’ve changed the documentation to reflect this.