From feef62bc32ef6dfacd1cd1993156fe070cbe33b6 Mon Sep 17 00:00:00 2001
From: Scott Main Introduced in API level 14. See the Action Bar developer
guide for more information.@[package:]drawable/filename
android:drawable="@[package:]drawable/drawable_resource"
android:state_pressed=["true" | "false"]
android:state_focused=["true" | "false"]
+ android:state_hovered=["true" | "false"]
android:state_selected=["true" | "false"]
android:state_checkable=["true" | "false"]
android:state_checked=["true" | "false"]
@@ -692,6 +693,11 @@ is touched/clicked); "false" if this item should be used in the default, non-pre
android:state_hoveredandroid:state_selected@[package:]menu.filename
android:titleCondensed="string"
android:icon="@[package:]drawable/drawable_resource_name"
android:onClick="method name"
- android:showAsAction=["ifRoom" | "never" | "withText" | "always"]
+ android:showAsAction=["ifRoom" | "never" | "withText" | "always" | "collapseActionView"]
android:actionLayout="@[package:]layout/layout_resource_name"
android:actionViewClass="class name"
+ android:actionProviderClass="class name"
android:alphabeticShortcut="string"
android:numericShortcut="string"
android:checkable=["true" | "false"]
@@ -131,6 +132,9 @@ of the others as a flag set, by separating them with a pipe {@code |}.
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.
+ collapseActionViewThe action view associated
+with this action item (as declared by android:actionViewLayout) is
+collapsible.
Introduced in API Level 14.
Introduced in API Level 11.
-android:actionViewClassNameandroid:actionViewClassSee the Action Bar developer guide for more information.
Warning: If you obfuscate your code using
Introduced in API Level 11.
android:actionProviderClassSee the Action Bar developer +guide for more information.
+Warning: If you obfuscate your code using ProGuard (or a similar tool), +be sure to exclude the class you specify in this attribute from renaming, because it can break the +functionality.
+Introduced in API Level 14.
android:alphabeticShortcut