class ItemHolder : MaterialPopupMenuBuilder.AbstractItemHolder
Holds section item info for the builder. This gets converted to MaterialPopupMenu.PopupMenuItem.
ItemHolder()
Holds section item info for the builder. This gets converted to MaterialPopupMenu.PopupMenuItem. |
var hasNestedItems: Boolean
Optional. If set to true this will show a "menu-end" icon, which indicates that there might be a submenu shown. false by default. |
|
var icon: Int
Optional icon to be displayed together with the label. |
|
var iconColor: Int
Optional icon tint color. |
|
var iconDrawable: Drawable?
Optional icon to be displayed together with the label. |
|
var label: CharSequence?
Item label. |
|
var labelColor: Int
Optional text color of the label. If not set or 0 the default color will be used. |
|
var labelRes: Int
Item label. |
var callback: () -> Unit
Callback to be invoked once an item gets selected. |
|
var dismissOnSelect: Boolean
Whether to dismiss the popup once an item gets selected.
Defaults to |
|
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. |
fun toString(): String |
fun resolveViewBoundCallback(): ViewBoundCallback |