Added in API level 21

ActionMenuView


open class ActionMenuView : LinearLayout
kotlin.Any
   ↳ android.view.View
   ↳ android.view.ViewGroup
   ↳ android.widget.LinearLayout
   ↳ android.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 XML attributes
Inherited constants
Public constructors

ActionMenuView(context: Context!, attrs: AttributeSet!)

Public methods
open Unit

Dismiss any popups associated with this menu view.

open ActionMenuView.LayoutParams!

Returns a new set of layout parameters based on the supplied attributes set.

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

Called when the current configuration of the resources being used by the application have changed.

open Unit

This is called when the view is detached from a window.

open Unit

open Unit

Set the icon to use for the overflow button.

open Unit

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!

Returns a set of layout parameters with a width of android.view.ViewGroup.LayoutParams#MATCH_PARENT and a height of android.view.ViewGroup.LayoutParams#WRAP_CONTENT when the layout's orientation is VERTICAL.

open ActionMenuView.LayoutParams!

Returns a safe set of layout parameters based on the supplied layout params.

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

Called from layout when this view should assign a size and position to each of its children.

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

Measure the view and its content to determine the measured width and the measured height.

Inherited functions