Example usage for Java android.support.v4.view MenuItem fields, constructors, methods, implement or subclass
The text is from its open source code.
int | SHOW_AS_ACTION_ALWAYS Always show this item as a button in an Action Bar. |
int | SHOW_AS_ACTION_IF_ROOM Show this item as a button in an Action Bar if the system decides there is room for it. |
int | SHOW_AS_ACTION_NEVER Never show this item as a button in an Action Bar. |
int | SHOW_AS_ACTION_WITH_TEXT When this item is in the action bar, always show it with a text label even if it also has an icon specified. |
View | getActionView() Returns the currently set action view for this menu item. |
int | getGroupId() Return the group identifier that this menu item is part of. |
Intent | getIntent() Return the Intent associated with this item. |
int | getItemId() Return the identifier for this menu item. |
ContextMenuInfo | getMenuInfo() Gets the extra information linked to this menu item. |
SubMenu | getSubMenu() |
CharSequence | getTitle() Retrieve the current title of the item. |
boolean | hasSubMenu() Check whether this item has an associated sub-menu. |
boolean | isVisible() Return the visibility of the menu item. |
MenuItem | setActionView(int resId) Set an action view for this menu item. |
MenuItem | setActionView(View view) Set an action view for this menu item. |
MenuItem | setAlphabeticShortcut(char alphaChar) |
MenuItem | setCheckable(boolean checkable) |
MenuItem | setChecked(boolean checked) |
MenuItem | setEnabled(boolean enabled) |
MenuItem | setIcon(Drawable icon) |
MenuItem | setIcon(int iconRes) |
MenuItem | setIntent(Intent intent) |
MenuItem | setNumericShortcut(char numericChar) |
MenuItem | setOnMenuItemClickListener(OnMenuItemClickListener menuItemClickListener) Set a custom listener for invocation of this menu item. |
void | setShowAsAction(int actionEnum) Sets how this item should display in the presence of an Action Bar. |
MenuItem | setTitle(CharSequence title) |
MenuItem | setTitle(int title) |
MenuItem | setTitleCondensed(CharSequence title) |
MenuItem | setVisible(boolean visible) |