material-popup-menu / com.github.zawadz88.materialpopupmenu / MaterialPopupMenuBuilder / CustomItemHolder

CustomItemHolder

class CustomItemHolder : MaterialPopupMenuBuilder.AbstractItemHolder

Holds section custom item info for the builder. This gets converted to MaterialPopupMenu.PopupMenuCustomItem.

Constructors

<init>

CustomItemHolder()

Holds section custom item info for the builder. This gets converted to MaterialPopupMenu.PopupMenuCustomItem.

Properties

layoutResId

var layoutResId: Int

Layout ID of the view to be used for this item.

Inherited Properties

callback

var callback: () -> Unit

Callback to be invoked once an item gets selected.

dismissOnSelect

var dismissOnSelect: Boolean

Whether to dismiss the popup once an item gets selected. Defaults to true.

viewBoundCallback

var viewBoundCallback: (View) -> Unit

Callback to be invoked once the item view gets created and bound. It is to be used when some views inside need to be updated once inflated.

Functions

toString

fun toString(): String

Inherited Functions

resolveViewBoundCallback

fun resolveViewBoundCallback(): ViewBoundCallback