belongs to Maven artifact com.android.support:appcompat-v7:28.0.0-alpha1
ActionMenuView
public
class
ActionMenuView
extends LinearLayoutCompat
java.lang.Object | ||||
↳ | android.view.View | |||
↳ | android.view.ViewGroup | |||
↳ | android.support.v7.widget.LinearLayoutCompat | |||
↳ | android.support.v7.widget.ActionMenuView |
ActionMenuView is a presentation of a series of menu options as a View. It provides several top level options as action buttons while spilling remaining options over as items in an overflow menu. This allows applications to present packs of actions inline with specific or repeating content.
Summary
Nested classes | |
---|---|
class |
ActionMenuView.LayoutParams
|
interface |
ActionMenuView.OnMenuItemClickListener
Interface responsible for receiving menu item click events if the items themselves do not have individual item click listeners. |
Inherited constants |
---|
![]()
android.support.v7.widget.LinearLayoutCompat
|
![]()
android.view.ViewGroup
|
![]()
android.view.View
|
Inherited fields |
---|
![]()
android.view.View
|
Public constructors | |
---|---|
ActionMenuView(Context context)
|
|
ActionMenuView(Context context, AttributeSet attrs)
|
Public methods | |
---|---|
void
|
dismissPopupMenus()
Dismiss any popups associated with this menu view. |
boolean
|
dispatchPopulateAccessibilityEvent(AccessibilityEvent event)
|
ActionMenuView.LayoutParams
|
generateLayoutParams(AttributeSet attrs)
|
Menu
|
getMenu()
Returns the Menu object that this ActionMenuView is currently presenting. |
Drawable
|
getOverflowIcon()
Return the current drawable used as the overflow icon. |
int
|
getPopupTheme()
|
boolean
|
hideOverflowMenu()
Hide the overflow items from the associated menu. |
boolean
|
isOverflowMenuShowing()
Check whether the overflow menu is currently showing. |
void
|
onConfigurationChanged(Configuration newConfig)
|
void
|
onDetachedFromWindow()
|
void
|
setOnMenuItemClickListener(ActionMenuView.OnMenuItemClickListener listener)
|
void
|
setOverflowIcon(Drawable icon)
Set the icon to use for the overflow button. |
void
|
setPopupTheme(int resId)
Specifies the theme to use when inflating popup menus. |
boolean
|
showOverflowMenu()
Show the overflow items from the associated menu. |
Protected methods | |
---|---|
boolean
|
checkLayoutParams(ViewGroup.LayoutParams p)
|
ActionMenuView.LayoutParams
|
generateDefaultLayoutParams()
Returns a set of layout parameters with a width of
|
ActionMenuView.LayoutParams
|
generateLayoutParams(ViewGroup.LayoutParams p)
|
void
|
onLayout(boolean changed, int left, int top, int right, int bottom)
|
void
|
onMeasure(int widthMeasureSpec, int heightMeasureSpec)
|
Inherited methods | |
---|---|
![]()
android.support.v7.widget.LinearLayoutCompat
|