Google is committed to advancing racial equity for Black communities. See how.

ActionMenuView

open class ActionMenuView : LinearLayoutCompat, ItemInvoker, MenuView
kotlin.Any
   ↳ android.view.View
   ↳ android.view.ViewGroup
   ↳ androidx.appcompat.widget.LinearLayoutCompat
   ↳ androidx.appcompat.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
open

abstract

Interface responsible for receiving menu item click events if the items themselves do not have individual item click listeners.

Inherited constants
Public constructors
<init>(@NonNull context: Context)

<init>(@NonNull context: Context, @Nullable attrs: AttributeSet?)

Public methods
open Unit

Dismiss any popups associated with this menu view.

open Boolean

open ActionMenuView.LayoutParams!

open Menu!

Returns the Menu object that this ActionMenuView is currently presenting.

open Drawable?

Return the current drawable used as the overflow icon.

open Int

open Boolean

Hide the overflow items from the associated menu.

open Boolean

Check whether the overflow menu is currently showing.

open Unit

open Unit

open Unit

open Unit
setOverflowIcon(@Nullable icon: Drawable?)

Set the icon to use for the overflow button.

open Unit
setPopupTheme(@StyleRes resId: Int)

Specifies the theme to use when inflating popup menus.

open Boolean

Show the overflow items from the associated menu.

Protected methods
open Boolean

open ActionMenuView.LayoutParams!

open ActionMenuView.LayoutParams!

open Unit
onLayout(changed: Boolean, left: Int, top: Int, right: Int, bottom: Int)

open Unit
onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int)

Inherited functions

Pu