ListMenuPresenter

Constructors

Link copied to clipboard
constructor(context: Context, itemLayoutRes: Int)
Construct a new ListMenuPresenter.
constructor(itemLayoutRes: Int, themeRes: Int)
Construct a new ListMenuPresenter.

Properties

Link copied to clipboard
val VIEWS_TAG: String = "android:menu:list"

Functions

Link copied to clipboard
Called when a menu item with a collapsible action view should collapse its action view.
Link copied to clipboard
Called when a menu item with a collapsible action view should expand its action view.
Link copied to clipboard
Called by Menu implementations to flag items that will be shown as actions.
Link copied to clipboard
Call this instead of getMenuView if you want to manage your own ListView.
Link copied to clipboard
open fun getId(): Int
Returns an ID for determining how to save/restore instance state.
Link copied to clipboard
open fun getMenuView(root: ViewGroup): MenuView
Retrieve a MenuView to display the menu specified in initForMenu.
Link copied to clipboard
open fun initForMenu(context: Context, menu: MenuBuilder)
Initializes this presenter for the given context and menu.
Link copied to clipboard
open fun onCloseMenu(menu: MenuBuilder, allMenusAreClosing: Boolean)
Called by Menu implementations to indicate that a menu or submenu is closing.
Link copied to clipboard
open fun onItemClick(parent: AdapterView<out Any>, view: View, position: Int, id: Long)
Link copied to clipboard
Supplies the previously saved instance state to be restored.
Link copied to clipboard
Returns a Parcelable describing the current state of the presenter.
Link copied to clipboard
Called by Menu implementations to indicate that a submenu item has been selected.
Link copied to clipboard
open fun restoreHierarchyState(inState: Bundle)
Link copied to clipboard
open fun saveHierarchyState(outState: Bundle)
Link copied to clipboard
Set a callback object that will be notified of menu events related to this specific presentation.
Link copied to clipboard
open fun setId(id: Int)
Link copied to clipboard
open fun setItemIndexOffset(offset: Int)
Link copied to clipboard
open fun updateMenuView(cleared: Boolean)
Update the menu UI in response to a change.