Java android.support.v4.view MenuItem fields, constructors, methods, implement or subclass

Example usage for Java android.support.v4.view MenuItem fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.support.v4.view MenuItem.

The text is from its open source code.

Implementation

android.support.v4.view.MenuItem has the following implementations.
Click this link to see all its implementation.

Field

intSHOW_AS_ACTION_ALWAYS
Always show this item as a button in an Action Bar.
intSHOW_AS_ACTION_IF_ROOM
Show this item as a button in an Action Bar if the system decides there is room for it.
intSHOW_AS_ACTION_NEVER
Never show this item as a button in an Action Bar.
intSHOW_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.

Method

ViewgetActionView()
Returns the currently set action view for this menu item.
intgetGroupId()
Return the group identifier that this menu item is part of.
IntentgetIntent()
Return the Intent associated with this item.
intgetItemId()
Return the identifier for this menu item.
ContextMenuInfogetMenuInfo()
Gets the extra information linked to this menu item.
SubMenugetSubMenu()
CharSequencegetTitle()
Retrieve the current title of the item.
booleanhasSubMenu()
Check whether this item has an associated sub-menu.
booleanisVisible()
Return the visibility of the menu item.
MenuItemsetActionView(int resId)
Set an action view for this menu item.
MenuItemsetActionView(View view)
Set an action view for this menu item.
MenuItemsetAlphabeticShortcut(char alphaChar)
MenuItemsetCheckable(boolean checkable)
MenuItemsetChecked(boolean checked)
MenuItemsetEnabled(boolean enabled)
MenuItemsetIcon(Drawable icon)
MenuItemsetIcon(int iconRes)
MenuItemsetIntent(Intent intent)
MenuItemsetNumericShortcut(char numericChar)
MenuItemsetOnMenuItemClickListener(OnMenuItemClickListener menuItemClickListener)
Set a custom listener for invocation of this menu item.
voidsetShowAsAction(int actionEnum)
Sets how this item should display in the presence of an Action Bar.
MenuItemsetTitle(CharSequence title)
MenuItemsetTitle(int title)
MenuItemsetTitleCondensed(CharSequence title)
MenuItemsetVisible(boolean visible)