File
Doc
Category
Size
Date
Package
MenuItem.java
API Doc
Android 5.1 API
3261
Sat Mar 14 14:09:42 GMT 2015
android.view
MenuItem
public interface MenuItem
Fields Summary
public static final int
SHOW_AS_ACTION_ALWAYS
public static final int
SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW
public static final int
SHOW_AS_ACTION_IF_ROOM
public static final int
SHOW_AS_ACTION_NEVER
public static final int
SHOW_AS_ACTION_WITH_TEXT
Constructors Summary
Methods Summary
public abstract
boolean
collapseActionView
()
public abstract
boolean
expandActionView
()
public abstract
android.view.ActionProvider
getActionProvider
()
public abstract
android.view.View
getActionView
()
public abstract
char
getAlphabeticShortcut
()
public abstract
int
getGroupId
()
public abstract
android.graphics.drawable.Drawable
getIcon
()
public abstract
android.content.Intent
getIntent
()
public abstract
int
getItemId
()
public abstract
android.view.ContextMenu.ContextMenuInfo
getMenuInfo
()
public abstract
char
getNumericShortcut
()
public abstract
int
getOrder
()
public abstract
android.view.SubMenu
getSubMenu
()
public abstract
java.lang.CharSequence
getTitle
()
public abstract
java.lang.CharSequence
getTitleCondensed
()
public abstract
boolean
hasSubMenu
()
public abstract
boolean
isActionViewExpanded
()
public abstract
boolean
isCheckable
()
public abstract
boolean
isChecked
()
public abstract
boolean
isEnabled
()
public abstract
boolean
isVisible
()
public abstract
android.view.MenuItem
setActionProvider
(
android.view.ActionProvider
actionProvider)
public abstract
android.view.MenuItem
setActionView
(
android.view.View
view)
public abstract
android.view.MenuItem
setActionView
(
int
resId)
public abstract
android.view.MenuItem
setAlphabeticShortcut
(
char
alphaChar)
public abstract
android.view.MenuItem
setCheckable
(
boolean
checkable)
public abstract
android.view.MenuItem
setChecked
(
boolean
checked)
public abstract
android.view.MenuItem
setEnabled
(
boolean
enabled)
public abstract
android.view.MenuItem
setIcon
(
int
iconRes)
public abstract
android.view.MenuItem
setIcon
(
android.graphics.drawable.Drawable
icon)
public abstract
android.view.MenuItem
setIntent
(
android.content.Intent
intent)
public abstract
android.view.MenuItem
setNumericShortcut
(
char
numericChar)
public abstract
android.view.MenuItem
setOnActionExpandListener
(
android.view.MenuItem$OnActionExpandListener
listener)
public abstract
android.view.MenuItem
setOnMenuItemClickListener
(
android.view.MenuItem$OnMenuItemClickListener
menuItemClickListener)
public abstract
android.view.MenuItem
setShortcut
(
char
numericChar,
char
alphaChar)
public abstract void
setShowAsAction
(
int
actionEnum)
public abstract
android.view.MenuItem
setShowAsActionFlags
(
int
actionEnum)
public abstract
android.view.MenuItem
setTitle
(
java.lang.CharSequence
title)
public abstract
android.view.MenuItem
setTitle
(
int
title)
public abstract
android.view.MenuItem
setTitleCondensed
(
java.lang.CharSequence
title)
public abstract
android.view.MenuItem
setVisible
(
boolean
visible)
Java Code Source