diff --git a/docs/html/guide/guide_toc.cs b/docs/html/guide/guide_toc.cs index 464430bb0bd9d..bcde412ea7072 100644 --- a/docs/html/guide/guide_toc.cs +++ b/docs/html/guide/guide_toc.cs @@ -693,17 +693,20 @@
Download the Icon Templates -Pack for Android 2.3 » +href="{@docRoot}shareables/icon_templates-v4.0.zip">Download the Icon Templates +Pack for Android 4.0 »
For previous versions of the Icon Templates Pack, see the Downloads section in the box at the top-right corner of this page.
@@ -134,7 +140,7 @@ provide icons in such a way that they will be displayed properly on any device, regardless of the device's screen size or resolution.In general, the recommended approach is to create a separate set of icons for -each of the three generalized screen densities listed in Table 1. Then, +each generalized screen density. Then, store them in density-specific resource directories in your application. When your application runs, the Android platform will check the characteristics of the device screen and load icons from the appropriate density-specific @@ -146,145 +152,6 @@ directory qualifiers for screen size and density
For tips on how to create and manage icon sets for multiple densities, see Tips for Designers.
-Table 1. Summary of -finished icon dimensions for each of the three generalized screen densities, by -icon type.
- -| Icon Type | Standard Asset Sizes (in Pixels), for -Generalized Screen Densities | ||
|---|---|---|---|
| - |
- |
-
- |
-
- |
-
| - Launcher - | -- 36 x 36 px - | - -- 48 x 48 px - | -- 72 x 72 px - | -
| - Menu - | -- 36 x 36 px - | - -- 48 x 48 px - | -- 72 x 72 px - | -
| - Status Bar (Android 2.3 and later) - | -
- 12w x 19h px - (preferred, width may vary) - |
-
-
- 16w x 25h px - (preferred, width may vary) - |
-
- 24w x 38h px - (preferred, width may vary) - |
-
| - Status Bar (Android 2.2 and below) - | -- 19 x 19 px - | - -- 25 x 25 px - | -- 38 x 38 px - | -
| - Tab - | -- 24 x 24 px - | - -- 32 x 32 px - | -- 48 x 48 px - | -
| - Dialog - | -- 24 x 24 px - | - -- 32 x 32 px - | -- 48 x 48 px - | -
| - List View - | -- 24 x 24 px - | - -- 32 x 32 px - | -- 48 x 48 px - | -
ic_launcher_calendar.pngic_menuic_menu_archive.pngassets/...
+art/...
ldpi/...
_pre_production/...
working_file.psd
@@ -359,6 +226,10 @@ organizes asset files per resolution. For example:
working_file.psd
finished_asset.png
hdpi/...
+ _pre_production/...
+ working_file.psd
+ finished_asset.png
+ xhdpi/...
_pre_production/...
working_file.psd
finished_asset.png
@@ -380,6 +251,8 @@ application:
drawable-mdpi/...
finished_asset.png
drawable-hdpi/...
+ finished_asset.png
+ drawable-xhdpi/...
finished_asset.png
@@ -398,25 +271,16 @@ boundaries at smaller resolutions.Because you will need to create assets for different screen densities, as -shown in Table 1, it is best to start your icon +
Because you will need to create assets for different screen densities, +it is best to start your icon designs on large artboards with dimensions that are multiples of the target icon sizes. For example, launcher -icons are 72, 48, or 36 pixels wide, depending on screen density. If you +icons are 96, 72, 48, or 36 pixels wide, depending on screen density. If you initially draw launcher icons on an 864x864 artboard, it will be easier and cleaner to tweak the icons when you scale the artboard down to the target sizes for final asset creation.
-It's also beneficial to add guide lines (also known as guides) to your large -artboard for the recommended safe margins at the highest target density. -Continuing with the example above, per the guidelines, -launcher icon content should be 60x60 pixels (56x56 for square icons) within the -full 72x72 asset, or a safe margin of 6 pixels on each side. On an 864x864 -artboard, this corresponds to horizontal and vertical guide lines 72 pixels from -each side of the artboard.
-To help keep each image asset as small as possible, make sure to remove any -unnecessary headers from the file, such as Adobe Fireworks metadata or Adobe -Photoshop headers. To remove the Photoshop header, follow these steps:
- -It is also useful to use PNG file size optimization tools such as Although the Android SDK tools will automatically compress PNGs when packaging +application resources into the application binary, a good practice is to remove +unnecessary headers and metadata from your PNG assets. Tools such as OptiPNG or Pngcrush. +href="http://pmt.sourceforge.net/pngcrush/">Pngcrush can ensure that this +metadata is removed and that your image asset file sizes are optimized.
diff --git a/docs/html/guide/practices/ui_guidelines/icon_design_action_bar.jd b/docs/html/guide/practices/ui_guidelines/icon_design_action_bar.jd new file mode 100644 index 0000000000000..449c27f4e50aa --- /dev/null +++ b/docs/html/guide/practices/ui_guidelines/icon_design_action_bar.jd @@ -0,0 +1,189 @@ +page.title=Action Bar Icons +parent.title=Icon Design Guidelines +parent.link=icon_design.html +@jd:body + +Action Bar icons are graphical elements placed in the Action Bar representing individual action +items.
+ +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.
+ +Final art must be exported as a transparent PNG file. Do not include +a background color.
+ +Templates for creating icons in Adobe Photoshop are available in the Icon +Templates Pack.
+ + + +The following guidelines describe how to design action bar icons for Android +3.0 (API Level 11) and later.
+ + +Action Bar icons should be 32-bit PNGs with an alpha channel for transparency. The finished +action bar icon dimensions, corresponding to a given generalized screen density, are shown in +the table below.
+ +Table 1. Summary of +finished Action Bar icon dimensions for each generalized screen density.
+ +| + |
+ 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) + |
+
|---|---|---|---|---|
| + Action Bar Icon Size + | ++ 18 x 18 px + | ++ 24 x 24 px + | ++ 36 x 36 px + | ++ 48 x 48 px + | +
Action Bar icons are flat, pictured face on, and generally greyscale, depending on the +application's theme. Action Bar icons should not look three-dimensional.
+ +In order to maintain consistency across the application's Action Bar, all Action Bar icons should +use the same color palette and effects.
+ +When using the default "Holo Light" or "Holo Dark" themes, icons should use the color palette +and effects shown in Figure 1 and Figure 2, below.
+ + + +|
+ |
+
+
+
+Figure 1. Style and effects for "Holo Light" theme Action Bar icons. +
+
+
|
+
|
+ |
+
+
+
+Figure 2. Style and effects for "Holo Dark" theme Action Bar icons. +
+
+
Note: icons should should have a transparent background; + the dark background here is for effect only. + |
+
Shown below are example extra-high-density Action 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. menu or Action
+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.
A Launcher icon is a graphic that represents your application on the device's -Home screen and in the Launcher window.
+A launcher icon is a graphic that represents your application. Launcher icons are used by +Launcher applications and appear on the user’s Home screen. Launcher icons can also be used to +represent shortcuts into your application (for example, a contact shortcut icon that opens detail +information for a contact).
-The user opens the Launcher by touching the icon at the bottom of the Home -screen. The Launcher opens and exposes the icons for all of the installed -applications. The user selects an application and opens it by touching the -Launcher icon or by means of any hardware navigation controls available, such as -a trackball or d-pad.
+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.
-As described in Providing -Density-Specific Icon Sets, you should create separate icons for low-, -medium-, and 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.
+A high-resolution version of your application launcher icon is also required by Android Market +for use in application listings. For more details on this, see Application Icons in Android Market below.
+Note: -
If you are publishing -your application on Android Market, you will also need to provide a 512x512 -pixel, high-resolution application icon in the developer console at upload-time. -This icon will be used in various locations in Android Market and does -not replace your launcher icon.
- -For tips and recommendations on creating high-resolution launcher icons that -can easily be scaled up to 512x512, see - -Tips for Designers.
- -For information and specifications about high-resolution application -icons in Android Market, see the following article:
- -- Graphic Assets for your Application (Android Market Help) » +
+Starting with Android 2.0, launcher icons should be front-facing, instead of -at a three-quarter perspective. The following guidelines describe how to design -launcher icons for Android 2.0 (API Level 5) and later.
- -The launcher icons that you create should follow the general style principles -below. The guidelines aren't meant to restrict what you can do with your icons, -but rather they are meant to emphasize the common approaches that your icons can -share with others on the device. Figure 1, at right, provides examples.
- -- Figure 1. Example launcher icons for Android 2.0 and - greater. + Figure 1. Example launcher icons for system applications (left) and + third-party applications (right).
Clean and contemporary:
-Application launcher icons have three primary goals:
-Simple and iconic:
-Tactile and textured:
-Forward-facing and top-lit:
-Note: Android applies separate text labels -using the application name when displaying launcher icons, so you should avoid -embedding text in your icon and instead focus on designing a distinct and -memorable icon.
- - - -Launcher icons should use a variety of shapes and forms that are scaled and -positioned inside the asset to create consistent visual weight with other -icons.
- -Figure 2 illustrates various ways of positioning the icon inside the -asset. You should size the icons smaller than the actual bounds of the -asset to create a consistent visual weight and to allow for shadows. If -your icon is square or nearly square, it should be scaled even smaller.
- -In order to indicate the recommended size for the icon, each example in -Figure 2 includes three different guide rectangles:
- -
-
|
-
- |
-
-
Promote the brand story+ +App launcher icons are an opportunity to showcase the brand and hint at the story of what your +app is about. Thus, you should: + +
Help users discover the app in Android Market+ +App launcher icons are the first look that prospective users will get of your app in Android +Market. A high quality app icon can influence users to find out more as they scroll through lists of +applications. + +Quality matters here. A well-designed icon can be a strong signal that your app +is of similarly high quality. Consider working with an icon designer to develop the app’s launcher +icon. + +Note: Android Market requires a high-resolution version of your +icon; for more details on this, see Application Icons in Android +Market below. + + +Function well in the Launcher+ +The launcher is where users will interact with the icon most frequently. A successful app +launcher icon will look great in all situations: on any background and next to any other icons and +app widgets. To do this, icons should: + +
|
-
-
- |
-
-
|
-
-
- |
-
| - |
- Figure 2. - Launcher icon sizing and positioning inside the bounds of the - icon asset. - |
-
Below are some "do and don't" examples to consider when creating icons for your application.
-Launcher icons should make use of tactile, top-lit, textured materials. Even -if your icon is just a simple shape, you should try to render in a way that -makes it appear to be sculpted from some real-world material.
- -Android launcher icons usually consist of a smaller shape within a -larger base shape and combine one neutral and one primary color. Icons may -use a combination of neutral colors but should maintain a fairly high level of -contrast. Icons should not use more than one primary color per icon, if -possible.
- -Launcher icons should use a limited color palette that includes a range -of neutral and primary colors. The icons should not be over-saturated.
- -The recommended color palette to use for Launcher icons is shown in Figure 3. -You can use elements of the palette for both the base color and the highlight -color. You can use the colors of the palette in conjunction with a -white-to-black vertical linear gradient overlay. This creates the impression -that the icon is lit from above and keeps the color less saturated.
- --Figure 3. Recommended color palette for icons.
- -When you combine the materials in Figure 4 with a color highlight from the
-recommended palette above, you can create materials combinations such as those
-shown in Figure 5. To get you started, the
-Icon Templates Pack
-includes a Photoshop file (ic_launcher_template/example_materials.psd)
-that provides all of the default materials, colors, and gradients.
|
- -Figure 4. Example materials that you can use to create -your icons. - |
-
- -Figure 5. Examples of materials combined with base -and highlight colors from the recommended palette. - |
+ Icons should not be overly complicated. Remember + that launcher icons will be used at often small sizes, so they should be distinguishable at + small sizes. | |
| Icons should not be cropped. Use unique shapes + where appropriate; remember that launcher icons should differentiate your application from + others. Additionally, do not use too glossy a finish unless the represented object has a + glossy material. | +|||
| Icons should not be thin. They should have a + similar weight to other icons. Overly thin icons will not stand out well on all + backgrounds. | +|||
| Icons should make use of the alpha channel, and + should not simply be full-frame images. Where appropriate, distinguish your icon with + subtle yet appealing visual treatment. | +
Launcher icons are flat and the perspective is straight-on, rather than at an -angle. A drop shadow is used to create a sense of depth. Launcher icons can use -varying textures and lighting effects, but must be lit directly from above -(straight down).
- -In order to maintain consistency, all launcher icons should use the same -drop shadow effect, as shown in Figure 6.
- -|
- |
-
-
-
-Figure 6. Style, light and effects for launcher icons. -
-
- Note: all pixel dimensions are for medium density and should be scaled appropriately for other densities. -
|
-
Below are some "do and don't" examples to consider when creating icons for -your application.
+Launcher icons should be 32-bit PNGs with an alpha channel for transparency. The finished +launcher icon dimensions corresponding to a given generalized screen density are shown in the +table below.
+Table 1. Summary of +finished launcher icon dimensions for each generalized screen density.
-
-Android Launcher icons are...- -
|
-
-
-Android Launcher icons are not...- -
|
-|||
| + |
+ 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) + |
+
|---|---|---|---|---|
| + Launcher Icon Size + | ++ 36 x 36 px + | ++ 48 x 48 px + | ++ 72 x 72 px + | ++ 96 x 96 px + | +
-Figure 7. Side-by-side examples of "do's and don'ts" for -Android launcher icons.
+You can also include a few pixels of padding in launcher icons to maintain a
+consistent visual weight with adjacent icons. For example, a 96 x 96 pixel xhdpi
+launcher icon can contain a 88 x 88 pixel shape with 4 pixels on each side for padding.
+This padding can also be used to make room for a subtle drop shadow, which can help ensure
+that launcher icons are legible across on any background color.
If you are publishing your application on +Android Market, you will also need to provide a 512 x 512 pixel, high-resolution application icon +in the developer console at upload time. This icon +will be used in various locations in Android Market and does not replace your launcher icon.
+For tips and recommendations on creating high-resolution launcher icons that can easily be scaled +up to 512x512, see +Tips for Designers.
-For information and specifications about high-resolution application icons in Android Market, see +the following article:
-Shown below are examples of high-density launcher icons used by -Android applications. The icons are provided for your reference only — -please do not reuse these icons in your applications..
+
+Graphic Assets for your Application (Android Market Help) »
-
-
-
-
-
The following guidelines describe how to design launcher icons for Android -1.6 (API Level 4) and earlier. Launcher icons for Android 1.6 and below are -simplified 3D icons with a fixed perspective. The required perspective is shown -in Figure 8.
- -|
- |
-
-
-
-Figure 8. Rounded corners and perspective angles for - launcher icons (90° is vertical). -
-
-
|
-
Launcher icons are simplified 3D icons using light and shadows for -definition. A light source is placed slightly to the left in front of the icon, -and therefore the shadow expands to the right and back.
- -|
- |
-
-
-
-Figure 9. Light, effects, and shadows for launcher icons. -
-
-
|
-
-
-Launcher icon color palette- -
|
-
-
-
-Step by step- -
|
-
+ Warning: This document describes obsolete guidelines for + creating launcher icons. Follow the latest + launcher icon guidelines instead. +
+ +A Launcher icon is a graphic that represents your application on the device's +Home screen and in the Launcher window.
+ +The user opens the Launcher by touching the icon at the bottom of the Home +screen. The Launcher opens and exposes the icons for all of the installed +applications. The user selects an application and opens it by touching the +Launcher icon or by means of any hardware navigation controls available, such as +a trackball or d-pad.
+ +As described in Providing +Density-Specific Icon Sets, you should create separate icons for low-, +medium-, and 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.
+ + + +If you are publishing +your application on Android Market, you will also need to provide a 512x512 +pixel, high-resolution application icon in the developer console at upload-time. +This icon will be used in various locations in Android Market and does +not replace your launcher icon.
+ +For tips and recommendations on creating high-resolution launcher icons that +can easily be scaled up to 512x512, see + +Tips for Designers.
+ +For information and specifications about high-resolution application +icons in Android Market, see the following article:
+ ++ Graphic Assets for your Application (Android Market Help) » + + + + +
Starting with Android 2.0, launcher icons should be front-facing, instead of +at a three-quarter perspective. The following guidelines describe how to design +launcher icons for Android 2.0 (API Level 5) and later.
+ +The launcher icons that you create should follow the general style principles +below. The guidelines aren't meant to restrict what you can do with your icons, +but rather they are meant to emphasize the common approaches that your icons can +share with others on the device. Figure 1, at right, provides examples.
+ ++ Figure 1. Example launcher icons for Android 2.0 and + greater. +
+Clean and contemporary:
+ +Simple and iconic:
+Tactile and textured:
+Forward-facing and top-lit:
+Note: Android applies separate text labels +using the application name when displaying launcher icons, so you should avoid +embedding text in your icon and instead focus on designing a distinct and +memorable icon.
+ + + +Launcher icons should use a variety of shapes and forms that are scaled and +positioned inside the asset to create consistent visual weight with other +icons.
+ +Figure 2 illustrates various ways of positioning the icon inside the +asset. You should size the icons smaller than the actual bounds of the +asset to create a consistent visual weight and to allow for shadows. If +your icon is square or nearly square, it should be scaled even smaller.
+ +In order to indicate the recommended size for the icon, each example in +Figure 2 includes three different guide rectangles:
+ +
+
|
+
+ |
+
+
|
+
+
+ |
+
+
|
+
+
+ |
+
| + |
+ Figure 2. + Launcher icon sizing and positioning inside the bounds of the + icon asset. + |
+
Launcher icons should make use of tactile, top-lit, textured materials. Even +if your icon is just a simple shape, you should try to render in a way that +makes it appear to be sculpted from some real-world material.
+ +Android launcher icons usually consist of a smaller shape within a +larger base shape and combine one neutral and one primary color. Icons may +use a combination of neutral colors but should maintain a fairly high level of +contrast. Icons should not use more than one primary color per icon, if +possible.
+ +Launcher icons should use a limited color palette that includes a range +of neutral and primary colors. The icons should not be over-saturated.
+ +The recommended color palette to use for Launcher icons is shown in Figure 3. +You can use elements of the palette for both the base color and the highlight +color. You can use the colors of the palette in conjunction with a +white-to-black vertical linear gradient overlay. This creates the impression +that the icon is lit from above and keeps the color less saturated.
+ ++Figure 3. Recommended color palette for icons.
+ +When you combine the materials in Figure 4 with a color highlight from the
+recommended palette above, you can create materials combinations such as those
+shown in Figure 5. To get you started, the
+Icon Templates Pack
+includes a Photoshop file (ic_launcher_template/example_materials.psd)
+that provides all of the default materials, colors, and gradients.
|
+ +Figure 4. Example materials that you can use to create +your icons. + |
+
+ +Figure 5. Examples of materials combined with base +and highlight colors from the recommended palette. + |
+
Launcher icons are flat and the perspective is straight-on, rather than at an +angle. A drop shadow is used to create a sense of depth. Launcher icons can use +varying textures and lighting effects, but must be lit directly from above +(straight down).
+ +In order to maintain consistency, all launcher icons should use the same +drop shadow effect, as shown in Figure 6.
+ +|
+ |
+
+
+
+Figure 6. Style, light and effects for launcher icons. +
+
+ Note: all pixel dimensions are for medium density and should be scaled appropriately for other densities. +
|
+
Below are some "do and don't" examples to consider when creating icons for +your application.
+ + +
+
+Android Launcher icons are...+ +
|
+
+
+Android Launcher icons are not...+ +
|
+
+Figure 7. Side-by-side examples of "do's and don'ts" for +Android launcher icons.
+ + + + + +Shown below are examples of high-density launcher icons used by +Android applications. The icons are provided for your reference only — +please do not reuse these icons in your applications..
+ +The following guidelines describe how to design launcher icons for Android +1.6 (API Level 4) and earlier. Launcher icons for Android 1.6 and below are +simplified 3D icons with a fixed perspective. The required perspective is shown +in Figure 8.
+ +|
+ |
+
+
+
+Figure 8. Rounded corners and perspective angles for + launcher icons (90° is vertical). +
+
+
|
+
Launcher icons are simplified 3D icons using light and shadows for +definition. A light source is placed slightly to the left in front of the icon, +and therefore the shadow expands to the right and back.
+ +|
+ |
+
+
+
+Figure 9. Light, effects, and shadows for launcher icons. +
+
+
|
+
+
+Launcher icon color palette+ +
|
+
+
+
+Step by step+ +
|
+
As described in Providing -Density-Specific Icon Sets, you should create separate icon sets for low-, -medium-, and 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 +
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.
Final art must be exported as a transparent PNG file. Do not include @@ -52,6 +55,16 @@ href="{@docRoot}guide/practices/ui_guidelines/icon_design.html#templatespack">Ic Templates Pack.
+As of Android 3.0, the options menu has been superseded by the Action Bar. Please refer to the Action Bar Icon Design Guidelines for recommendations on +creating icons for action items.
+ + +Caution: The style and content sizing of menu icons have changed in Android 2.3 compared to previous versions: @@ -67,12 +80,8 @@ asset. Final asset sizes have not changed.
- - -The following guidelines describe how to design menu icons for Android -2.3 (API Level 9) and later.
+2.3 (API Levels 9 and 10).Status bar icons are used to represent notifications from your application in the status bar.
-As described in Providing -Density-Specific Icon Sets, you should create separate icon sets for low-, -medium-, and 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.
- -Final art must be exported as a transparent PNG file. Do not include -a background color.
+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: +
drawable-hdpi-v9, drawable-mdpi-v9, and drawable-ldpi-v9 directories.
-drawable-hdpi, drawable-mdpi, and drawable-ldpi directories.
+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.
+ + +Table 1. Summary of +finished icon dimensions for each generalized screen density.
+ +| + |
+ 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.
+ + + +|
+ |
+
+
+
+Figure 1. Style for status bar icons. +
+
+
|
+
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.
+ + ++ Figure 2. Automatic shrinking and dimming behavior in Android 3.0 and later.
+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 Level 9) and later.
+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 1 illustrates various ways of positioning the icon inside the +
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 1 includes two different guide rectangles:
+Figure 3 includes two different guide rectangles:Figure 1. +
Figure 3. Status bar icon sizing and positioning inside the bounds of the icon asset.
Figure 2. Style and effects for status icons.
+Figure 4. Style and effects for status icons.
Note: all pixel dimensions are for medium density and should be scaled appropriately for other densities.
|
-
Figure 3. Safeframe and corner-rounding for status bar + Figure 5. Safeframe and corner-rounding for status bar icons. Icon size is 25x25. |
@@ -265,7 +437,7 @@ face-on to enhance clarity at small sizes.
- Figure 4. Light, effects, and shadows for status bar icons. +Figure 6. Light, effects, and shadows for status bar icons.
|