Status bar icons are used to represent notifications from your application in the status bar.
As described in Providing Density-Specific Icon Sets and Supporting Multiple Screens, you should create separate icons for all generalized screen densities, including low-, medium-, high-, and extra-high-density screens. This ensures that your icons will display properly across the range of devices on which your application can be installed. See Tips for Designers for suggestions on how to work with multiple sets of icons.
Templates for creating icons in Adobe Photoshop are available in the Icon Templates Pack.
Warning:The style and dimensions of status bar icons have changed dramatically in Android 3.0 and 2.3 compared to previous versions. To provide support for all Android versions, developers should:
drawable-xhdpi-v11
, drawable-hdpi-v11
,drawable-mdpi-v11
,
and drawable-ldpi-v11
directories.drawable-xhdpi-v9
, drawable-hdpi-v9
, drawable-mdpi-v9
,
and drawable-ldpi-v9
directories.drawable-xhdpi
, drawable-hdpi
, drawable-mdpi
,
and drawable-ldpi
directories.The following guidelines describe how to design status bar icons for Android 3.0 (API Level 11) and later.
The design for status bar (notification) icons has been revised in Android 3.0. Status bar icons used in Android 3.0 and later are easier to create, and they allow for more flexible presentation in a variety of situations:
These larger and brighter icons, while highly legible, are too intense for use on dark phone status bars. These icons would be too distracting if used directly in the status bar. Therefore:
Status bar icons should be 32-bit PNGs with an alpha channel for transparency. The finished status bar icon dimensions corresponding to a given generalized screen density are shown in the table below.
Note: The system will shrink and dim status bar icons to minimize distractions, allowing users to focus on the foreground activity.
ldpi (120 dpi)(Low density screen) |
mdpi (160 dpi)(Medium density screen) |
hdpi (240 dpi)(High density screen) |
xhdpi (320 dpi)(Extra-high density screen) |
|
---|---|---|---|---|
Status Bar Icon Size (Android 3.0 and Later) |
18 x 18 px | 24 x 24 px | 36 x 36 px | 48 x 48 px |
You can also include a few pixels of padding in status bar icons to maintain a
consistent visual weight with adjacent icons. For example, a 48 x 48 pixel xhdpi
status bar icon can contain a 44 x 44 pixel shape with 2 pixels on each side for padding.
Status bar icons are flat, pictured face on, and must be white on a transparent background.
In order to maintain consistency across all status bar notifications, status bar icons should use the styling shown in Figure 1.
The system may dim and shrink status bar icons to allow users to focus on the foreground activity. For example, in Android 4.0, the platform-standard status bar for handset-size devices reduces icons to 18 x 18 dip and 40% opacity in the status bar, while drawing them full-size and at full intensity in the expanded notification panel. An example of what this looks like is shown below in Figure 2.
Shown below are example extra-high-density status bar icons that are used throughout Android system applications.
Warning: Because resources can change between platform versions,
you should not reference built-in icons using the Android platform resource IDs (i.e. status bar
icons under android.R.drawable
). If you want to use any icons or other internal
drawable resources, you should store a local copy of those icons or drawables in your application
resources, then reference the local copy from your application code. In that way, you can maintain
control over the appearance of your icons, even if the system's copy changes. Note that the grid
below is not intended to be complete.
The following guidelines describe how to design status bar icons for Android 2.3 (API Levels 9 and 10).
Status bar icons should use simple shapes and forms and those must be scaled and positioned inside the final asset.
Figure 3 illustrates various ways of positioning the icon inside the asset. You should size the icons smaller than the actual bounds of the asset. Status bar icons may vary in width, but only minimally.
In order to indicate the recommended size for the icon, each example in Figure 3 includes two different guide rectangles:
|
|
|
|
|
|
Status bar icons are flat, matte, and pictured face-on.
Below are some "do and don't" examples to consider when creating status bar icons for your application.
Shown below are standard high-density status bar icons that are used in the Android platform.
Warning: Because these resources can change
between platform versions, you should not reference these icons using the
Android platform resource IDs (i.e. status bar icons under
android.R.drawable
). If you want to use any icons or other internal
drawable resources, you should store a local copy of those icons or drawables in
your application resources, then reference the local copy from your application
code. In that way, you can maintain control over the appearance of your icons,
even if the system's copy changes. Note that the grid below is not intended to
be complete.
The following guidelines describe how to design status bar icons for Android 2.2 (API Level 8) and earlier.
Status bar icons are slightly debossed, high in contrast, and pictured face-on to enhance clarity at small sizes.
Color paletteOnly status bar icons related to the phone function use full color; all other status bar icons should remain monochromatic.
|
Step by step
|