Skip to content

Commit 8765ebf

Browse files
romannurikAndroid (Google) Code Review
authored andcommitted
Merge "Update Icon Guidelines and Icon Templates Pack for ICS"
2 parents 6d288bd + ced7edd commit 8765ebf

21 files changed

+1142
-661
lines changed

docs/html/guide/guide_toc.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -693,17 +693,20 @@ localized titles are added in the language order specified below.
693693
<ul>
694694
<li class="toggle-list">
695695
<div><a href="<?cs var:toroot ?>guide/practices/ui_guidelines/icon_design.html">
696-
<span class="en">Icon Design</span>
696+
<span class="en">Icon Design <span class="new">updated</span></span>
697697
</a></div>
698698
<ul>
699699
<li><a href="<?cs var:toroot ?>guide/practices/ui_guidelines/icon_design_launcher.html">
700-
<span class="en">Launcher Icons</span>
700+
<span class="en">Launcher Icons <span class="new">updated</span></span>
701701
</a></li>
702702
<li><a href="<?cs var:toroot ?>guide/practices/ui_guidelines/icon_design_menu.html">
703703
<span class="en">Menu Icons</span>
704704
</a></li>
705+
<li><a href="<?cs var:toroot ?>guide/practices/ui_guidelines/icon_design_action_bar.html">
706+
<span class="en">Action Bar Icons <span class="new">new!</span></span>
707+
</a></li>
705708
<li><a href="<?cs var:toroot ?>guide/practices/ui_guidelines/icon_design_status_bar.html">
706-
<span class="en">Status Bar Icons</span>
709+
<span class="en">Status Bar Icons <span class="new">updated</span></span>
707710
</a></li>
708711
<li><a href="<?cs var:toroot ?>guide/practices/ui_guidelines/icon_design_tab.html">
709712
<span class="en">Tab Icons</span>

docs/html/guide/practices/ui_guidelines/icon_design.jd

Lines changed: 25 additions & 171 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ parent.link=index.html
3636
<h2>Downloads</h2>
3737

3838
<ol>
39+
<li><a href="{@docRoot}shareables/icon_templates-v4.0.zip">Android Icon
40+
Templates Pack, v4.0 &raquo;</a></li>
3941
<li><a href="{@docRoot}shareables/icon_templates-v2.3.zip">Android Icon
4042
Templates Pack, v2.3 &raquo;</a></li>
4143
<li><a href="{@docRoot}shareables/icon_templates-v2.0.zip">Android Icon
@@ -74,6 +76,10 @@ icons used throughout Android applications:</p>
7476
<dt><strong><a href="icon_design_menu.html">Menu Icons</a></strong></dt>
7577
<dd>Menu icons are graphical elements placed in the options menu shown to
7678
users when they press the Menu button.</dd>
79+
<dt><strong><a href="icon_design_action_bar.html">Action Bar Icons</a>
80+
<span class="new">new!</span></strong></dt>
81+
<dd>Action Bar icons are graphical elements representing action items in the
82+
<a href="{@docRoot}guide/topics/ui/actionbar.html">Action Bar</a>.</dd>
7783
<dt><strong><a href="icon_design_status_bar.html">Status Bar Icons</a></strong></dt>
7884
<dd>Status bar icons are used to represent notifications from your
7985
application in the status bar.</dd>
@@ -112,8 +118,8 @@ with the layers and treatments may vary based on the program you are using.</p>
112118
</p>
113119

114120
<p style="margin-left:2em"><a
115-
href="{@docRoot}shareables/icon_templates-v2.3.zip">Download the Icon Templates
116-
Pack for Android 2.3 &raquo;</a>
121+
href="{@docRoot}shareables/icon_templates-v4.0.zip">Download the Icon Templates
122+
Pack for Android 4.0 &raquo;</a>
117123

118124
<p>For previous versions of the Icon Templates Pack, see the <em>Downloads</em>
119125
section in the box at the top-right corner of this page.</p>
@@ -134,7 +140,7 @@ provide icons in such a way that they will be displayed properly on any device,
134140
regardless of the device's screen size or resolution.</p>
135141

136142
<p>In general, the recommended approach is to create a separate set of icons for
137-
each of the three generalized screen densities listed in Table 1. Then,
143+
each generalized screen density. Then,
138144
store them in density-specific resource directories in your application. When
139145
your application runs, the Android platform will check the characteristics of
140146
the device screen and load icons from the appropriate density-specific
@@ -146,145 +152,6 @@ directory qualifiers for screen size and density</a>. </p>
146152
<p>For tips on how to create and manage icon sets for multiple densities, see
147153
<a href="#design-tips">Tips for Designers</a>.</p>
148154

149-
<p class="table-caption" id="screens-table"><strong>Table 1.</strong> Summary of
150-
finished icon dimensions for each of the three generalized screen densities, by
151-
icon type.</p>
152-
153-
<table>
154-
<tbody>
155-
<tr>
156-
<th>Icon Type</th><th colspan="3">Standard Asset Sizes (in Pixels), for
157-
Generalized Screen Densities</th></tr>
158-
<tr>
159-
<td style="background-color:#f3f3f3"></td>
160-
<th style="background-color:#f3f3f3;font-weight:normal">
161-
<nobr>Low density screen <em>(ldpi)</em></nobr>
162-
</th>
163-
<th style="background-color:#f3f3f3;font-weight:normal">
164-
<nobr>Medium density screen <em>(mdpi)</em></nobr>
165-
</th>
166-
<th style="background-color:#f3f3f3;font-weight:normal">
167-
<nobr>High density screen <em>(hdpi)</em><nobr>
168-
</th>
169-
</tr>
170-
171-
<tr>
172-
<th style="background-color:#f3f3f3;font-weight:normal">
173-
Launcher
174-
</th>
175-
<td>
176-
36 x 36 px
177-
</td>
178-
179-
<td>
180-
48 x 48 px
181-
</td>
182-
<td>
183-
72 x 72 px
184-
</td>
185-
</tr>
186-
187-
<tr>
188-
<th style="background-color:#f3f3f3;font-weight:normal">
189-
Menu
190-
</th>
191-
<td>
192-
36 x 36 px
193-
</td>
194-
195-
<td>
196-
48 x 48 px
197-
</td>
198-
<td>
199-
72 x 72 px
200-
</td>
201-
</tr>
202-
203-
<tr>
204-
<th style="background-color:#f3f3f3;font-weight:normal">
205-
Status Bar (Android 2.3 and later)
206-
</th>
207-
<td>
208-
12w x 19h px<br>
209-
(preferred, width may vary)
210-
</td>
211-
212-
<td>
213-
16w x 25h px<br>
214-
(preferred, width may vary)
215-
</td>
216-
<td>
217-
24w x 38h px<br>
218-
(preferred, width may vary)
219-
</td>
220-
</tr>
221-
222-
<tr>
223-
<th style="background-color:#f3f3f3;font-weight:normal">
224-
Status Bar (Android 2.2 and below)
225-
</th>
226-
<td>
227-
19 x 19 px
228-
</td>
229-
230-
<td>
231-
25 x 25 px
232-
</td>
233-
<td>
234-
38 x 38 px
235-
</td>
236-
</tr>
237-
238-
<tr>
239-
<th style="background-color:#f3f3f3;font-weight:normal">
240-
Tab
241-
</th>
242-
<td>
243-
24 x 24 px
244-
</td>
245-
246-
<td>
247-
32 x 32 px
248-
</td>
249-
<td>
250-
48 x 48 px
251-
</td>
252-
</tr>
253-
254-
<tr>
255-
<th style="background-color:#f3f3f3;font-weight:normal">
256-
Dialog
257-
</th>
258-
<td>
259-
24 x 24 px
260-
</td>
261-
262-
<td>
263-
32 x 32 px
264-
</td>
265-
<td>
266-
48 x 48 px
267-
</td>
268-
</tr>
269-
270-
<tr>
271-
<th style="background-color:#f3f3f3;font-weight:normal">
272-
List View
273-
</th>
274-
<td>
275-
24 x 24 px
276-
</td>
277-
278-
<td>
279-
32 x 32 px
280-
</td>
281-
<td>
282-
48 x 48 px
283-
</td>
284-
</tr>
285-
</tbody>
286-
</table>
287-
288155

289156

290157

@@ -317,7 +184,7 @@ common prefix for each icon type. For example:</p>
317184
<td><code>ic_launcher_calendar.png</code></td>
318185
</tr>
319186
<tr>
320-
<td>Menu icons</td>
187+
<td>Menu icons and Action Bar icons</td>
321188
<td><code>ic_menu</code></td>
322189
<td><code>ic_menu_archive.png</code></td>
323190
</tr>
@@ -349,7 +216,7 @@ of the same icon. To help keep the multiple copies of files safe and easier to
349216
find, we recommend creating a directory structure in your working space that
350217
organizes asset files per resolution. For example:</p>
351218

352-
<pre>assets/...
219+
<pre>art/...
353220
ldpi/...
354221
_pre_production/...
355222
<em>working_file</em>.psd
@@ -359,6 +226,10 @@ organizes asset files per resolution. For example:</p>
359226
<em>working_file</em>.psd
360227
<em>finished_asset</em>.png
361228
hdpi/...
229+
_pre_production/...
230+
<em>working_file</em>.psd
231+
<em>finished_asset</em>.png
232+
xhdpi/...
362233
_pre_production/...
363234
<em>working_file</em>.psd
364235
<em>finished_asset</em>.png</pre>
@@ -380,6 +251,8 @@ application: </p>
380251
drawable-mdpi/...
381252
<em>finished_asset</em>.png
382253
drawable-hdpi/...
254+
<em>finished_asset</em>.png
255+
drawable-xhdpi/...
383256
<em>finished_asset</em>.png</pre>
384257

385258

@@ -398,25 +271,16 @@ boundaries at smaller resolutions.</li>
398271

399272
<h3>Start with large artboards</h3>
400273

401-
<p>Because you will need to create assets for different screen densities, as
402-
shown in <a href="#screens-table">Table 1</a>, it is best to start your icon
274+
<p>Because you will need to create assets for different screen densities,
275+
it is best to start your icon
403276
designs on large artboards with dimensions that are multiples of the target icon
404277
sizes. For example, <a
405278
href="{@docRoot}guide/practices/ui_guidelines/icon_design_launcher.html">launcher
406-
icons</a> are 72, 48, or 36 pixels wide, depending on screen density. If you
279+
icons</a> are 96, 72, 48, or 36 pixels wide, depending on screen density. If you
407280
initially draw launcher icons on an 864x864 artboard, it will be easier and
408281
cleaner to tweak the icons when you scale the artboard down to the target
409282
sizes for final asset creation.</p>
410283

411-
<p>It's also beneficial to add guide lines (also known as guides) to your large
412-
artboard for the recommended safe margins at the highest target density.
413-
Continuing with the example above, per the <a
414-
href="{@docRoot}guide/practices/ui_guidelines/icon_design_launcher.html#size5">guidelines</a>,
415-
launcher icon content should be 60x60 pixels (56x56 for square icons) within the
416-
full 72x72 asset, or a safe margin of 6 pixels on each side. On an 864x864
417-
artboard, this corresponds to horizontal and vertical guide lines 72 pixels from
418-
each side of the artboard.</p>
419-
420284

421285

422286
<h3>When scaling, redraw bitmap layers as needed</h3>
@@ -431,22 +295,12 @@ densities. For example if a 60x60 circle was painted as a bitmap for
431295

432296
<h3>When saving image assets, remove unnecessary metadata</h3>
433297

434-
<p>To help keep each image asset as small as possible, make sure to remove any
435-
unnecessary headers from the file, such as Adobe Fireworks metadata or Adobe
436-
Photoshop headers. To remove the Photoshop header, follow these steps: </p>
437-
438-
<ol>
439-
<li>Under the <strong>File</strong> menu, choose the <strong>Save for Web &amp;
440-
Devices</strong> command </li>
441-
<li>On the "Save for Web &amp; Devices" panel, set the Preset pop-up to
442-
"PNG-24," set the pop-up under Presets to "PNG-24" as well, and select the
443-
Transparency box (if the image uses transparency)</li>
444-
<li>Select <strong>Save</strong>.</li>
445-
</ol>
446-
447-
<p>It is also useful to use PNG file size optimization tools such as <a
298+
<p>Although the Android SDK tools will automatically compress PNGs when packaging
299+
application resources into the application binary, a good practice is to remove
300+
unnecessary headers and metadata from your PNG assets. Tools such as <a
448301
href="http://optipng.sourceforge.net/">OptiPNG</a> or <a
449-
href="http://pmt.sourceforge.net/pngcrush/">Pngcrush</a>.
302+
href="http://pmt.sourceforge.net/pngcrush/">Pngcrush</a> can ensure that this
303+
metadata is removed and that your image asset file sizes are optimized.</p>
450304

451305

452306

0 commit comments

Comments
 (0)