Skip to content

Commit 5e09593

Browse files
committed
docs: update menu guide with CAB and popup menu, plus many other revisions
Change-Id: I5faedd5f5b812ca58eb2085b0c036570de861f15
1 parent ccc11c4 commit 5e09593

File tree

6 files changed

+699
-337
lines changed

6 files changed

+699
-337
lines changed

core/java/android/view/ActionMode.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,15 @@
1818

1919

2020
/**
21-
* Represents a contextual mode of the user interface. Action modes can be used for
22-
* modal interactions with content and replace parts of the normal UI until finished.
23-
* Examples of good action modes include selection modes, search, content editing, etc.
21+
* Represents a contextual mode of the user interface. Action modes can be used to provide
22+
* alternative interaction modes and replace parts of the normal UI until finished.
23+
* Examples of good action modes include text selection and contextual actions.
24+
* <div class="special reference">
25+
* <h3>Developer Guides</h3>
26+
* <p>For information about how to provide contextual actions with {@code ActionMode},
27+
* read the <a href="{@docRoot}guide/topics/ui/menu.html#context-menu">Menus</a>
28+
* developer guide.</p>
29+
* </div>
2430
*/
2531
public abstract class ActionMode {
2632
private Object mTag;

docs/html/guide/guide_toc.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ localized titles are added in the language order specified below.
131131
</a></li>
132132
<li><a href="<?cs var:toroot ?>guide/topics/ui/menus.html">
133133
<span class="en">Menus</span>
134-
</a></li>
134+
</a> <span class="new">updated</span></li>
135135
<li><a href="<?cs var:toroot ?>guide/topics/ui/actionbar.html">
136136
<span class="en">Action Bar</span>
137137
</a></li>

docs/html/guide/topics/ui/actionbar.jd

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,10 @@ accessible to the user in a predictable way.
113113
href="{@docRoot}guide/topics/ui/menus.html#OptionsMenu">options menu</a> directly in the action bar,
114114
as "action items." Action items can also provide an "action view," which provides an embedded
115115
widget for even more immediate action behaviors. Menu items that are not promoted
116-
to an action item are available in the overflow menu, revealed by either the device MENU button
116+
to an action item are available in the overflow menu, revealed by either the device <em>Menu</em>
117+
button
117118
(when available) or by an "overflow menu" button in the action bar (when the device does not
118-
include a MENU button).</p>
119+
include a <em>Menu</em> button).</p>
119120
</li>
120121
</ul>
121122

@@ -125,6 +126,10 @@ href="{@docRoot}resources/samples/HoneycombGallery/index.html">Honeycomb Gallery
125126
landscape handset), showing the logo on the left, navigation tabs, and an action item on the
126127
right (plus the overflow menu button).</p>
127128

129+
<p class="note"><strong>Note:</strong> If you're looking for information about the contextual
130+
action bar for displaying contextual action items, see the <a
131+
href="{@docRoot}guide/topics/ui/menus.html#context-menu">Menu</a> guide.</p>
132+
128133

129134
<div class="design-announce">
130135
<p><strong>Action Bar Design</strong></p>
@@ -225,9 +230,10 @@ later&mdash;calling {@link android.app.Activity#getActionBar()} will return null
225230
href="{@docRoot}guide/topics/ui/menus.html#OptionsMenu">options menu</a>. To do this, you can
226231
declare that the menu item should appear in the action bar as an "action item." An action item can
227232
include an icon and/or a text title. If a menu item does not appear as an action item, then the
228-
system places it in the overflow menu. The overflow menu is revealed either by the device MENU
233+
system places it in the overflow menu. The overflow menu is revealed either by the device
234+
<em>Menu</em>
229235
button (if provided by the device) or an additional button in the action bar (if the device does not
230-
provide the MENU button).</p>
236+
provide the <em>Menu</em> button).</p>
231237

232238
<div class="figure" style="width:359px">
233239
<img src="{@docRoot}images/ui/actionbar-item-withtext.png" height="57" alt="" />

0 commit comments

Comments
 (0)