OSDN Git Service

original
[gb-231r1-is01/Gingerbread_2.3.3_r1_IS01.git] / frameworks / base / docs / html / guide / practices / ui_guidelines / icon_design_launcher.jd
1 page.title=Launcher Icons
2 parent.title=Icon Design Guidelines
3 parent.link=icon_design.html
4 @jd:body
5
6 <div id="qv-wrapper">
7 <div id="qv">
8
9 <h2>In this document</h2>
10
11 <ol>
12 <li><a href="#market">Application Icons in Android Market</a></li>
13 <li><a href="#icon5">Android 2.0 and Later</a>
14   <ol>
15     <li><a href="#style5">Style</a></li>
16     <li><a href="#size5">Size</a></li>
17     <li><a href="#materialscolors5">Materials and colors</a></li>
18     <li><a href="#effects5">Effects</a></li>
19     <li><a href="#dodonts5">Do's and don'ts</a></li>
20     <li><a href="#examples5">Example icons</a></li>
21   </ol>
22 </li>
23 <li><a href="#icon1">Android 1.6 and Earlier</a></li>
24 </ol>
25
26 <h2>See also</h2>
27
28 <ol>
29 <li><a href="{@docRoot}guide/practices/screens_support.html">Supporting Multiple
30 Screens</a></li>
31 </ol>
32
33 </div>
34 </div>
35
36
37 <p>A Launcher icon is a graphic that represents your application on the device's
38 Home screen and in the Launcher window.</p>
39
40 <p>The user opens the Launcher by touching the icon at the bottom of the Home
41 screen. The Launcher opens and exposes the icons for all of the installed
42 applications. The user selects an application and opens it by touching the
43 Launcher icon or by means of any hardware navigation controls available, such as
44 a trackball or d-pad.</p>
45
46 <p>As described in <a href="icon_design.html#icon-sets">Providing
47 Density-Specific Icon Sets</a>, you should create separate icons for low-,
48 medium-, and high-density screens. This ensures that your icons will display
49 properly across the range of devices on which your application can be installed.
50 See <a href="icon_design.html#design-tips">Tips for Designers</a> for
51 suggestions on how to work with multiple sets of icons.</p>
52
53
54
55 <h2 id="market">Application Icons in Android Market</h2>
56
57 <p>If you are <a href="{@docRoot}guide/publishing/publishing.html">publishing
58 your application on Android Market</a>, you will also need to provide a 512x512
59 pixel, high-resolution application icon in the <a
60 href="http://market.android.com/publish">developer console</a> at upload-time.
61 This icon will be used in various locations in Android Market and does
62 not replace your launcher icon.</p>
63
64 <p>For tips and recommendations on creating high-resolution launcher icons that
65 can easily be scaled up to 512x512, see
66 <a href="{@docRoot}guide/practices/ui_guidelines/icon_design.html#design-tips">
67 Tips for Designers</a>.</p>
68
69 <p>For information and specifications about high-resolution application
70 icons in Android Market, see the following article:</p>
71
72 <p style="margin-left:2em"><a
73 href="http://market.android.com/support/bin/answer.py?answer=1078870">
74   Graphic Assets for your Application (Android Market Help) &raquo;</a>
75
76
77
78
79 <h2 id="icon5">Android 2.0 and Later</h2>
80
81 <p>Starting with Android 2.0, launcher icons should be front-facing, instead of
82 at a three-quarter perspective. The following guidelines describe how to design
83 launcher icons for Android 2.0 (API Level 5) and later.</p>
84
85 <h3 id="style5">Style</h3>
86
87 <p>The launcher icons that you create should follow the general style principles
88 below. The guidelines aren't meant to restrict what you can do with your icons,
89 but rather they are meant to emphasize the common approaches that your icons can
90 share with others on the device. Figure 1, at right, provides examples.  </p>
91
92 <div class="figure">
93   <img src="{@docRoot}images/icon_design/IconGraphic_Icons_i.png" 
94     width="340">
95   <p class="img-caption">
96     <strong>Figure 1.</strong> Example launcher icons for Android 2.0 and
97     greater.
98   </p>
99 </div>
100
101 <p>Clean and contemporary:</p>
102
103 <ul>
104   <li>Launcher icons should be modern and sometimes quirky; they should not
105 appear aged or ragged. You should avoid overused symbolic metaphors whenever
106 possible.</li>
107 </ul>
108
109 <p>Simple and iconic:</p>
110 <ul>
111   <li>Android Launcher icons are caricatural in nature; your icons should be
112 highly simplified and exaggerated, so that they are appropriate for use at small
113 sizes. Your icons should not be overly complicated. </li>
114   <li>Try featuring a single part of an application as a symbolic
115 representation of the whole (for example, the Music icon features a speaker).
116 </li>
117   <li>Consider using natural outlines and shapes, both geometric and organic,
118 with a realistic (but never photorealistic) rendering. </li>
119   <li>Your icons <em>should not</em> present a cropped view of a larger
120 image.</li>
121 </ul>
122
123 <p>Tactile and textured:</p>
124 <ul>
125   <li>Icons should feature non-glossy, textured material. See
126   <a href="#materialscolors5">Materials and colors</a>, below, for more
127   information.</li>
128 </ul>
129
130 <p>Forward-facing and top-lit:</p>
131 <ul>
132   <li><em>New for Android 2.0 and later platforms</em>: Android Launcher
133 icons should be forward-facing, with very little perspective, and they
134 should be top-lit.</li>
135 </ul>
136
137 <p class="note"><strong>Note:</strong> Android applies separate text labels
138 using the application name when displaying launcher icons, so you should avoid
139 embedding text in your icon and instead focus on designing a distinct and
140 memorable icon.</p>
141
142
143
144 <h3 id="size5">Size and positioning</h3>
145
146 <p>Launcher icons should use a variety of shapes and forms that are scaled and
147 positioned inside the asset to create consistent visual weight with other
148 icons.</p>
149
150 <p>Figure 2 illustrates various ways of positioning the icon inside the
151 asset. You should size the icons <em>smaller than the actual bounds of the
152 asset</em> to create a consistent visual weight and to allow for shadows. If
153 your icon is square or nearly square, it should be scaled even smaller.</p>
154
155 <p>In order to indicate the recommended size for the icon, each example in
156 Figure 2 includes three different guide rectangles:</p>
157
158 <ul>
159 <li>The red box is the bounding box for the full asset.</li>
160 <li>The blue box is the recommended bounding box for the actual icon.
161 The icon box is sized smaller than the full asset box so that there is space to
162 include shadows and allow for special icon treatments.</li>
163 <li>The orange box is the recommended bounding box for the actual icon when
164 the content is square. The box for square icons is smaller than that for other
165 icons to establish a consistent visual weight across the two types.</li>
166 </ul>
167
168 <table>
169 <tr>
170
171 <td style="border:0;">
172 <ol class="nolist">
173   <li>Launcher icon dimensions for high-density (<code>hdpi</code>) screens:</li>
174   <ol class="nolist">
175     <li>Full Asset: 72 x 72 px</li>
176     <li>Icon: 60 x 60 px</li>
177     <li>Square Icon: 56 x 56 px</li>
178   </ol>
179   </li>
180 </ol>
181 </td>
182 <td style="border:0;">
183   <img src="{@docRoot}images/icon_design/launcher_size_hdpi.png" width="450">
184 </td>
185 </tr>
186 <tr>
187 <td style="border:0;">
188   <ol class="nolist">
189   <li>Launcher icon dimensions for medium-density (<code>mdpi</code>) screens:</li>
190     <ol class="nolist">
191       <li>Full Asset: 48 x 48 px</li>
192       <li>Icon: 40 x 40 px</li>
193       <li>Square Icon: 38 x 38 px</li>
194     </ol>
195   </li>
196 </ol>
197 </td>
198
199 <td style="border:0;">
200  <img src="{@docRoot}images/icon_design/launcher_size_mdpi.png" width="450">
201 </td>
202 </tr>
203 <tr>
204 <td style="border:0;">
205   <ol class="nolist">
206   <li>Launcher icon dimensions for low-density (<code>ldpi</code>) screens:</li>
207     <ol class="nolist">
208       <li>Full Asset: 36 x 36 px</li>
209       <li>Icon: 30 x 30 px</li>
210       <li>Square Icon: 28 x 28 px</li>
211     </ol>
212   </li>
213 </ol>
214 </td>
215
216 <td style="border:0;">
217  <img src="{@docRoot}images/icon_design/launcher_size_ldpi.png" width="450">
218 </td>
219 </tr>
220
221 <tr>
222 <td style="border:0;"></td>
223 <td style="border:0;">
224  <p class="table-caption"><strong>Figure 2.</strong>
225  Launcher icon sizing and positioning inside the bounds of the
226  icon asset.</p>
227 </td>
228 </tr>
229
230 </table>
231
232
233
234
235 <h3 id="materialscolors5">Materials and colors</h3>
236
237 <p>Launcher icons should make use of tactile, top-lit, textured materials. Even
238 if your icon is just a simple shape, you should try to render in a way that
239 makes it appear to be sculpted from some real-world material.</p>
240
241 <p>Android launcher icons usually consist of a smaller shape within a
242 larger base shape and combine one neutral and one primary color. Icons may
243 use a combination of neutral colors but should maintain a fairly high level of
244 contrast. Icons should not use more than one primary color per icon, if
245 possible.</p>
246
247 <p>Launcher icons should use a limited color palette that includes a range
248 of neutral and primary colors. The icons should not be over-saturated.</p>
249
250 <p>The recommended color palette to use for Launcher icons is shown in Figure 3.
251 You can use elements of the palette for both the base color and the highlight
252 color. You can use the colors of the palette in conjunction with a
253 white-to-black vertical linear gradient overlay. This creates the impression
254 that the icon is lit from above and keeps the color less saturated.</p>
255
256 <img src="{@docRoot}images/icon_design/IconGraphic_Colors.png" width="530">
257 <p class="img-caption">
258 <strong>Figure 3.</strong> Recommended color palette for icons.</p>
259
260 <p>When you combine the materials in Figure 4 with a color highlight from the
261 recommended palette above, you can create materials combinations such as those
262 shown in Figure 5. To get you started, the
263 <a href="{@docRoot}guide/practices/ui_guidelines/icon_design.html#templatespack">Icon Templates Pack</a>
264 includes a Photoshop file (<code>ic_launcher_template/example_materials.psd</code>)
265 that provides all of the default materials, colors, and gradients. </p>
266
267 <table>
268   <tbody>
269     <tr>
270       <td style="border:0;">
271 <img src="{@docRoot}images/icon_design/IconGraphic_Materials.png" width="450">
272 <p class="img-caption">
273 <strong>Figure 4.</strong> Example materials that you can use to create
274 your icons.</p>
275       </td>
276       <td style="border:0;border-left:1px solid #ccc;margin-left:1em;padding-left:1em">
277 <img src="{@docRoot}images/icon_design/IconGraphic_AccentColor.png" width="450">
278 <p class="img-caption">
279 <strong>Figure 5.</strong> Examples of materials combined with base
280 and highlight colors from the recommended palette.</p>
281       </td>
282     </tr>
283   </tbody>
284 </table>
285
286
287
288 <h3 id="effects5">Effects</h3>
289
290 <p>Launcher icons are flat and the perspective is straight-on, rather than at an
291 angle. A drop shadow is used to create a sense of depth. Launcher icons can use
292 varying textures and lighting effects, but must be lit directly from above
293 (straight down).</p>
294
295 <p>In order to maintain consistency, all launcher icons should use the same
296 drop shadow effect, as shown in Figure 6.</p>
297
298 <table class="image-caption">
299 <tr>
300 <td class="image-caption-i">
301   <img src="{@docRoot}images/icon_design/launcher_style.png"/>
302 </td>
303 <td class="image-caption-c">
304   <div class="caption grad-rule-top">
305     <p><strong>Figure 6. </strong>Style, light and effects for launcher icons.</p>
306     <div class="image-caption-nested">
307     <p><em>Note: all pixel dimensions are for medium density and should be scaled appropriately for other densities.</em></p>
308     <table>
309     <tr><td><em>1.</em></td><td nowrap>Lighting:</td><td>Top-lit, using appropriate lighting details<br><br></td></tr>
310     <tr><td><em>2.</em></td><td nowrap>Drop shadow:</td><td><code>#000000</code>, 75% opacity<br>angle 90&deg;<br>distance 1px<br>size 3px<br><br></td></tr>
311     <tr><td><em>3.</em></td><td nowrap>Textures:</td><td>Tactile, appear to use real-world materials (monochromatic noise in example image)<br><br></td></tr>
312     </table>
313     </div>
314   </div>
315 </td>
316 </tr>
317 </table>
318
319
320
321 <h3 id="dodonts5">Do's and don'ts</h3>
322
323 <p>Below are some "do and don't" examples to consider when creating icons for
324 your application.  </p>
325
326
327 <table>
328 <tr>
329 <td style="border:0;width:50%">
330
331 <h4>Android Launcher icons are...</h4>
332
333 <ul>
334 <li>Modern, minimal, matte, tactile, and textured</li>
335 <li>Forward-facing and top-lit, whole, limited in color
336 palette</li>
337 </ul>
338 </td>
339 <td style="border:0;width:50%">
340
341 <h4>Android Launcher icons are not...</h4>
342
343 <ul>
344 <li>Antique, over-complicated, glossy, flat vector</li>
345 <li>Rotated, Cropped, Over-Saturated</li>
346 </ul>
347 </td>
348 </tr>
349 <tr>
350 </table>
351
352 <img src="{@docRoot}images/icon_design/IconGraphic_DosDonts.png"/>
353 <p class="img-caption">
354 <strong>Figure 7.</strong> Side-by-side examples of "do's and don'ts" for
355 Android launcher icons. </p>
356
357
358
359
360
361 <h3 id="examples5">Example icons</h3>
362
363 <p>Shown below are examples of high-density launcher icons used by
364 Android applications. The icons are provided for your reference only &mdash;
365 please do not reuse these icons in your applications.</code>.</p>
366
367 <img src="{@docRoot}images/icon_design/IconGraphic_Icons.png" />
368
369
370
371 <h2 id="icon1">Android 1.6 and earlier</h2>
372
373 <p>The following guidelines describe how to design launcher icons for Android
374 1.6 (API Level 4) and earlier. Launcher icons for Android 1.6 and below are
375 simplified 3D icons with a fixed perspective. The required perspective is shown
376 in Figure 8.</p>
377
378 <h3 id="structure1">Structure</h3>
379
380 <ul>
381 <li>The base of a launcher icon can face either the top view or the front
382 view.</li>
383
384 <li>The majority of a launcher icon’s surface should be created using the
385 launcher icon <a href="#palette1">color palette</a>. To add emphasis, use
386 one or more bright accent colors to highlight specific characteristics.</li>
387
388 <li>All launcher icons must be created with rounded corners to make them look
389 friendly and simple—as shown in Figure 8.</li>
390
391 <li>All dimensions specified are based on a 250x250 pixel artboard size
392 in a vector graphics editor like Adobe Illustrator, where the icon fits within
393 the artboard boundaries.</li>
394
395 <li><strong>Final art must be scaled down and exported as a transparent PNG file
396 using a raster image editor such as Adobe Photoshop. Do not include a background
397 color.</strong></li>
398
399 <li>Templates for creating icons in Adobe Photoshop are available in the <a
400 href="{@docRoot}guide/practices/ui_guidelines/icon_design.html#templatespack">Icon
401 Templates Pack</a>.</li>
402
403 </ul>
404
405 <table class="image-caption">
406 <tr>
407 <td class="image-caption-i">
408   <img src="{@docRoot}images/icon_design/launcher_structure.png" alt="A view of
409 launcher icon corners and perspective angles" />
410 </td>
411 <td class="image-caption-c">
412   <div class="caption grad-rule-top">
413     <p><strong>Figure 8.</strong> Rounded corners and perspective angles for
414       launcher icons (90° is vertical).</p>
415     <div class="image-caption-nested">
416       <table>
417       <tr><td><em>1.</em></td><td>92°</td></tr>
418       <tr><td><em>2.</em></td><td>92°</td></tr>
419       <tr><td><em>3.</em></td><td>173°</td></tr>
420       <tr><td><em>4.</em></td><td>171°</td></tr>
421       <tr><td><em>5.</em></td><td>49°</td></tr>
422       <tr><td><em>6.</em></td><td>171°</td></tr>
423       <tr><td><em>7.</em></td><td>64°</td></tr>
424       <tr><td><em>8.</em></td><td>97°</td></tr>
425       <tr><td><em>9.</em></td><td>75°</td></tr>
426       <tr><td><em>10.</em></td><td>93°</td></tr>
427       <tr><td><em>11.</em></td><td>169°</td></tr>
428       </table>
429     </div>
430   </div>
431 </td>
432 </tr>
433 </table>
434
435 <h3 id="style1">Light, effects, and shadows</h3>
436
437 <p>Launcher icons are simplified 3D icons using light and shadows for
438 definition. A light source is placed slightly to the left in front of the icon,
439 and therefore the shadow expands to the right and back.</p>
440
441 <table class="image-caption">
442 <tr>
443 <td class="image-caption-i">
444   <img src="{@docRoot}images/icon_design/launcher_light.png" alt="A view of
445 light, effects, and shadows for launcher icons."/>
446 </td>
447 <td class="image-caption-c">
448   <div class="caption grad-rule-top">
449     <p><strong>Figure 9. </strong>Light, effects, and shadows for launcher icons.</p>
450     <div class="image-caption-nested">
451     <table>
452     <tr><td><em>1.</em></td><td>Edge highlight:</td><td>white</td></tr>
453     <tr><td><em>2.</em></td><td>Icon shadow:</td><td>black | 20px blur<br>50% opacity | angle 67°</td></tr>
454     <tr><td><em>3.</em></td><td>Front part:</td><td>Use light gradient from color palette</td></tr>
455     <tr><td><em>4.</em></td><td>Detail shadow:</td><td>black | 10px blur<br>75% opacity</td></tr>
456     <tr><td><em>5.</em></td><td> Side part:</td><td>Use medium gradient from color palette</td></tr>
457     </table>
458     </div>
459   </div>
460 </td>
461 </tr>
462 </table>
463
464 <table>
465 <tr>
466 <td style="border:0">
467
468 <h4 id="palette1">Launcher icon color palette</h4>
469
470 <table>
471 <tr>
472 <td class="image-caption-i"><img src="{@docRoot}images/icon_design/launcher_palette_white.png"/></td>
473 <td class="image-caption-c">White<br>r 255 | g 255 | b 255<br>Used for highlights on edges.</td>
474 </tr>
475
476 <tr>
477 <td class="image-caption-i"><img src="{@docRoot}images/icon_design/launcher_palette_gradient_light.png"/></td>
478 <td class="image-caption-c">Light gradient<br><em>1:&nbsp;&nbsp;</em>r 0  | g 0  | b 0<br><em>2:&nbsp;&nbsp;</em>r 217 | g 217 | b 217<br>Used on the front (lit) part of the icon.</td>
479 </tr>
480
481 <tr>
482 <td class="image-caption-i"><img src="{@docRoot}images/icon_design/launcher_palette_gradient_medium.png"/></td>
483 <td class="image-caption-c">Medium gradient<br><em>1:&nbsp;&nbsp;</em>r 190 | g 190 | b 190<br><em>2:&nbsp;&nbsp;</em>r 115 | g 115 | b 115<br>Used on the side (shaded) part of the icon.</td>
484 </tr>
485
486 <tr>
487 <td class="image-caption-i"><img src="{@docRoot}images/icon_design/launcher_palette_gradient_dark.png"/></td>
488 <td class="image-caption-c">Dark gradient<br><em>1:&nbsp;&nbsp;</em>r 100 | g 100 | b 100<br><em>2:&nbsp;&nbsp;</em>r 25  | g 25  | b 25<br>Used on details and parts in the shade of the icon.</td>
489 </tr>
490
491 <tr>
492 <td class="image-caption-i"><img src="{@docRoot}images/icon_design/launcher_palette_black.png"/></td>
493 <td class="image-caption-c">Black<br>r 0 | g 0 | b 0<br>Used as base color in shadows.</td>
494 </tr>
495
496 </table>
497
498 </td>
499
500 <td style="border:0">
501
502 <h4 id="steps1">Step by step</h4>
503
504 <ol>
505   <li>Create the basic shapes with a tool like Adobe Illustrator, using the
506 angles described in <a href="#structure1">Launcher icon: structure</a>.
507 The shapes and effects must fit within a 250x250 pixel artboard.</li>
508   <li>Add depth to shapes by extruding them and create the rounded corners as
509 described for the launcher icon structure.</li>
510   <li>Add details and colors. Gradients should be treated as if there is a light
511 source placed slightly to the left in front of the icon.</li>
512   <li>Create the shadows with the correct angle and blur effect.</li>
513   <li>Import the icon into a tool like Adobe Photoshop and scale to fit an image
514 size of 48x48 px on a transparent background.</li>
515   <li>Export the icon at 48x48 as a PNG file with transparency enabled.</li>
516 </ol>
517
518 </td>
519 </tr>
520 </table>