diff --git a/docs/html/guide/topics/resources/menu-resource.jd b/docs/html/guide/topics/resources/menu-resource.jd
index cde72bdf37dbe..7bcd78a5196d6 100644
--- a/docs/html/guide/topics/resources/menu-resource.jd
+++ b/docs/html/guide/topics/resources/menu-resource.jd
@@ -36,22 +36,23 @@ In XML: @[package:]menu.filename
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@[+][package:]id/resource_name"
- android:menuCategory=["container" | "system" | "secondary" | "alternative"]
- android:orderInCategory="integer"
android:title="string"
android:titleCondensed="string"
android:icon="@[package:]drawable/drawable_resource_name"
+ android:showAsAction=["ifRoom" | "never" | "withText" | "always"]
android:alphabeticShortcut="string"
android:numericShortcut="string"
android:checkable=["true" | "false"]
android:visible=["visible" | "invisible" | "gone"]
- android:enabled=["enabled" | "disabled"] />
+ android:enabled=["enabled" | "disabled"]
+ android:menuCategory=["container" | "system" | "secondary" | "alternative"]
+ android:orderInCategory="integer" />
<group android:id="@[+][package:]id/resource name"
- android:menuCategory=["container" | "system" | "secondary" | "alternative"]
- android:orderInCategory="integer"
android:checkableBehavior=["none" | "all" | "single"]
android:visible=["visible" | "invisible" | "gone"]
- android:enabled=["enabled" | "disabled"] >
+ android:enabled=["enabled" | "disabled"]
+ android:menuCategory=["container" | "system" | "secondary" | "alternative"]
+ android:orderInCategory="integer" >
<item />
</group>
<item >
@@ -77,47 +78,7 @@ In XML: @[package:]menu.filename
"http://schemas.android.com/apk/res/android".
-
<group><item> elements. Must be a
-child of a <menu> element.
- attributes:
-android:id"@+id/name". The plus symbol indicates that this should be created as a new ID.android:menuCategory| Value | Description |
|---|---|
container | For groups that are part of a -container. |
system | For groups that are provided by the -system. |
secondary | For groups that are user-supplied secondary -(infrequently used) options. |
alternative | For groups that are alternative actions -on the data that is currently displayed. |
android:orderInCategoryandroid:checkableBehavior| Value | Description |
|---|---|
none | Not checkable |
all | All items can be checked (use checkboxes) |
single | Only one item can be checked (use radio buttons) |
android:visibleandroid:enabled<item><menu> element (for a Sub
Menu). Must be a child of a <menu> or <group> element.
@@ -125,7 +86,50 @@ on the data that is currently displayed.
android:id"@+id/name". The plus symbol indicates that this should be created as a new ID."@+id/name". The plus symbol indicates that this should be created as a new
+ID.android:titleandroid:titleCondensedandroid:iconandroid:showAsAction| Value | Description |
|---|---|
ifRoom | Only place this item in the Action Bar if +there is room for it. |
withText | Also include the title text (defined +by {@code android:title}) with the action item. You can include this value along with one +of the others as a flag set, by separating them with a pipe {@code |}. |
never | Never place this item in the Action Bar. |
always | Always place this item in the Action Bar. +Avoid using this unless it's critical that the item always appear in the action +bar. Setting multiple items to always appear as action items can result in them overlapping +with other UI in the action bar. |
See Using the Action Bar for +more information.
+Introduced in API Level HONEYCOMB.
+android:alphabeticShortcutandroid:numericShortcutandroid:checkableandroid:checkedandroid:visibleandroid:enabledandroid:menuCategoryandroid:orderInCategoryandroid:titleandroid:titleCondensedandroid:iconandroid:alphabeticShortcutandroid:numericShortcutandroid:checkableandroid:checked<group><item> elements. Must be a
+child of a <menu> element.
+ attributes:
+android:id"@+id/name". The plus symbol indicates that this should be created as a new
+ID.android:checkableBehavior| Value | Description |
|---|---|
none | Not checkable |
all | All items can be checked (use checkboxes) |
single | Only one item can be checked (use radio +buttons) |
android:visibleandroid:enabledandroid:menuCategory| Value | Description |
|---|---|
container | For groups that are part of a +container. |
system | For groups that are provided by the +system. |
secondary | For groups that are user-supplied secondary +(infrequently used) options. |
alternative | For groups that are alternative actions +on the data that is currently displayed. |
android:orderInCategoryNote: The {@code android:showAsAction} attribute is +available only on Android X.X (API Level HONEYCOMB) and greater.