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, setTooltipText
public 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 MenuItem
public void setOrder(int order)
public MenuItem setTitle(CharSequence title)
public CharSequence getTitle()
public MenuItem setTitleCondensed(CharSequence title)
setTitleCondensed
in interface MenuItem
public CharSequence getTitleCondensed()
getTitleCondensed
in interface MenuItem
public MenuItem setShortcut(char numericChar, char alphaChar)
setShortcut
in interface MenuItem
public MenuItem setNumericShortcut(char numericChar)
setNumericShortcut
in interface MenuItem
public char getNumericShortcut()
getNumericShortcut
in interface MenuItem
public MenuItem setAlphabeticShortcut(char alphaChar)
setAlphabeticShortcut
in interface MenuItem
public char getAlphabeticShortcut()
getAlphabeticShortcut
in interface MenuItem
public MenuItem setCheckable(boolean checkable)
setCheckable
in interface MenuItem
public boolean isCheckable()
isCheckable
in interface MenuItem
public MenuItem setChecked(boolean checked)
setChecked
in interface MenuItem
public MenuItem setVisible(boolean visible)
setVisible
in interface MenuItem
public MenuItem setEnabled(boolean enabled)
setEnabled
in interface MenuItem
public boolean hasSubMenu()
hasSubMenu
in interface MenuItem
public SubMenu getSubMenu()
getSubMenu
in interface MenuItem
public void setSubMenu(SubMenu subMenu)
public MenuItem setOnMenuItemClickListener(MenuItem.OnMenuItemClickListener menuItemClickListener)
setOnMenuItemClickListener
in interface MenuItem
public ContextMenu.ContextMenuInfo getMenuInfo()
getMenuInfo
in interface MenuItem
public void click()
public void setShowAsAction(int actionEnum)
setShowAsAction
in interface MenuItem
public MenuItem setShowAsActionFlags(int actionEnum)
setShowAsActionFlags
in interface MenuItem
public MenuItem setActionView(View view)
setActionView
in interface MenuItem
public MenuItem setActionView(int resId)
setActionView
in interface MenuItem
public View getActionView()
getActionView
in interface MenuItem
public MenuItem setActionProvider(ActionProvider actionProvider)
setActionProvider
in interface MenuItem
public ActionProvider getActionProvider()
getActionProvider
in interface MenuItem
public boolean expandActionView()
expandActionView
in interface MenuItem
public boolean collapseActionView()
collapseActionView
in interface MenuItem
public boolean isActionViewExpanded()
isActionViewExpanded
in interface MenuItem
public MenuItem setOnActionExpandListener(MenuItem.OnActionExpandListener listener)
setOnActionExpandListener
in interface MenuItem