MenuItem.OnActionExpandListener, MenuItem.OnMenuItemClickListener| Modifier and Type | Field | Description |
|---|---|---|
Drawable |
icon |
SHOW_AS_ACTION_ALWAYS, SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW, SHOW_AS_ACTION_IF_ROOM, SHOW_AS_ACTION_NEVER, SHOW_AS_ACTION_WITH_TEXT| Constructor | Description |
|---|---|
RoboMenuItem() |
|
RoboMenuItem(int itemId) |
|
RoboMenuItem(Context context) |
getAlphabeticModifiers, getContentDescription, getIconTintBlendMode, getIconTintList, getIconTintMode, getNumericModifiers, getTooltipText, requiresActionButton, requiresOverflow, setAlphabeticShortcut, setContentDescription, setIconTintBlendMode, setIconTintList, setIconTintMode, setNumericShortcut, setShortcut, setTooltipTextpublic Drawable icon
public RoboMenuItem()
public RoboMenuItem(Context context)
public RoboMenuItem(int itemId)
public void setItemId(int itemId)
public void setGroupId(int groupId)
public int getGroupId()
getGroupId in interface MenuItempublic void setOrder(int order)
public MenuItem setTitle(CharSequence title)
public CharSequence getTitle()
public MenuItem setTitleCondensed(CharSequence title)
setTitleCondensed in interface MenuItempublic CharSequence getTitleCondensed()
getTitleCondensed in interface MenuItempublic MenuItem setShortcut(char numericChar, char alphaChar)
setShortcut in interface MenuItempublic MenuItem setNumericShortcut(char numericChar)
setNumericShortcut in interface MenuItempublic char getNumericShortcut()
getNumericShortcut in interface MenuItempublic MenuItem setAlphabeticShortcut(char alphaChar)
setAlphabeticShortcut in interface MenuItempublic char getAlphabeticShortcut()
getAlphabeticShortcut in interface MenuItempublic MenuItem setCheckable(boolean checkable)
setCheckable in interface MenuItempublic boolean isCheckable()
isCheckable in interface MenuItempublic MenuItem setChecked(boolean checked)
setChecked in interface MenuItempublic MenuItem setVisible(boolean visible)
setVisible in interface MenuItempublic MenuItem setEnabled(boolean enabled)
setEnabled in interface MenuItempublic boolean hasSubMenu()
hasSubMenu in interface MenuItempublic SubMenu getSubMenu()
getSubMenu in interface MenuItempublic void setSubMenu(SubMenu subMenu)
public MenuItem setOnMenuItemClickListener(MenuItem.OnMenuItemClickListener menuItemClickListener)
setOnMenuItemClickListener in interface MenuItempublic ContextMenu.ContextMenuInfo getMenuInfo()
getMenuInfo in interface MenuItempublic void click()
public void setShowAsAction(int actionEnum)
setShowAsAction in interface MenuItempublic MenuItem setShowAsActionFlags(int actionEnum)
setShowAsActionFlags in interface MenuItempublic MenuItem setActionView(View view)
setActionView in interface MenuItempublic MenuItem setActionView(int resId)
setActionView in interface MenuItempublic View getActionView()
getActionView in interface MenuItempublic MenuItem setActionProvider(ActionProvider actionProvider)
setActionProvider in interface MenuItempublic ActionProvider getActionProvider()
getActionProvider in interface MenuItempublic boolean expandActionView()
expandActionView in interface MenuItempublic boolean collapseActionView()
collapseActionView in interface MenuItempublic boolean isActionViewExpanded()
isActionViewExpanded in interface MenuItempublic MenuItem setOnActionExpandListener(MenuItem.OnActionExpandListener listener)
setOnActionExpandListener in interface MenuItem