Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the sizes of the icons in Android notifications action-buttons?

In expandable Notifications: what dimensions (in dp) should the icons have? Like the Icons for Snooze and Email here:

Image from developer.android.com

like image 639
herrmarek Avatar asked Oct 18 '13 16:10

herrmarek


People also ask

What are the notification icons on Android?

Android Status Bar icons are notifications in the graphical user interface (GUI) from apps running on your device. These notifications can contain text, graphics, and even controls.

What are notifications icons?

Icons are a way to provide a more unique, branded experience for your Android and Amazon app. You may add a default icon that appears with every notification you send, or you may add icons to just certain types of notifications.

What is a push notification icon?

Push notifications are automated notifications that the app sends mobile users if the push notification feature is enabled. When a push notification is sent, Android devices show a small push icon in the status bar and notification drawer.


1 Answers

So to clarify this, I found the following in the Javadoc within the Android support library:

Add an action to this notification. Actions are typically displayed by the system as a button adjacent to the notification content.

Every action must have an icon (32dp square and matching the Holo Dark action bar visual style, a textual label, and a PendingIntent.

A notification in its expanded form can display up to 3 actions, from left to right in the order they were added. Actions will not be displayed when the notification is collapsed, however, so be sure that any essential functions may be accessed by the user in some other way.

So these should be identical to your action bar icons (for the Holo Dark theme), which is:

Asset Size: 32dp x 32dp
Optical Square: 24dp x 24dp
Color (Enabled): #FFFFFF 80% opacity
Color (Disabled): #FFFFFF 30% opacity

like image 133
Kevin Coppock Avatar answered Oct 02 '22 03:10

Kevin Coppock