@@ -43,9 +43,10 @@ In XML: <code>@[<em>package</em>:]menu.<em>filename</em></code>
4343 android:titleCondensed="<em>string</em>"
4444 android:icon="@[package:]drawable/<em>drawable_resource_name</em>"
4545 android:onClick="<em>method name</em>"
46- android:showAsAction=["ifRoom" | "never" | "withText" | "always"]
46+ android:showAsAction=["ifRoom" | "never" | "withText" | "always" | "collapseActionView" ]
4747 android:actionLayout="@[package:]layout/<em>layout_resource_name</em>"
4848 android:actionViewClass="<em>class name</em>"
49+ android:actionProviderClass="<em>class name</em>"
4950 android:alphabeticShortcut="<em>string</em>"
5051 android:numericShortcut="<em>string</em>"
5152 android:checkable=["true" | "false"]
@@ -131,6 +132,9 @@ of the others as a flag set, by separating them with a pipe {@code |}.</td></tr>
131132Avoid using this unless it's critical that the item always appear in the action
132133bar. Setting multiple items to always appear as action items can result in them overlapping
133134with other UI in the action bar.</td></tr>
135+ <tr><td><code>collapseActionView</code></td><td>The action view associated
136+ with this action item (as declared by <code>android:actionViewLayout</code>) is
137+ collapsible.<br/>Introduced in API Level 14.</td></tr>
134138 </table>
135139 <p>See the <a href="{@docRoot}guide/topics/ui/actionbar.html">Action Bar</a> developer
136140guide for more information.</p>
@@ -143,9 +147,10 @@ guide for more information.</p>
143147guide for more information.</p>
144148 <p>Introduced in API Level 11.</p></dd>
145149
146- <dt><code>android:actionViewClassName </code></dt>
150+ <dt><code>android:actionViewClass </code></dt>
147151 <dd><em>Class name</em>. A fully-qualified class name for the {@link android.view.View}
148- to use as the action view.
152+ to use as the action view. For example,
153+ {@code "android.widget.SearchView"} to use {@link android.widget.SearchView} as an action view.
149154 <p>See the <a href="{@docRoot}guide/topics/ui/actionbar.html">Action Bar</a> developer
150155guide for more information.</p>
151156 <p class="warning"><strong>Warning:</strong> If you obfuscate your code using <a
@@ -154,6 +159,17 @@ be sure to exclude the class you specify in this attribute from renaming, becaus
154159functionality.</p>
155160 <p>Introduced in API Level 11.</p></dd>
156161
162+ <dt><code>android:actionProviderClass</code></dt>
163+ <dd><em>Class name</em>. A fully-qualified class name for the {@link
164+ android.view.ActionProvider} to use in place of the action item. For example,
165+ {@code "android.widget.ShareActionProvider"} to use {@link android.widget.ShareActionProvider}.
166+ <p>See the <a href="{@docRoot}guide/topics/ui/actionbar.html">Action Bar</a> developer
167+ guide for more information.</p>
168+ <p class="warning"><strong>Warning:</strong> If you obfuscate your code using <a
169+ href="{@docRoot}guide/developing/tools/proguard.html">ProGuard</a> (or a similar tool),
170+ be sure to exclude the class you specify in this attribute from renaming, because it can break the
171+ functionality.</p>
172+ <p>Introduced in API Level 14.</p></dd>
157173
158174 <dt><code>android:alphabeticShortcut</code></dt>
159175 <dd><em>Char</em>. A character for the alphabetic shortcut key.</dd>
0 commit comments