ItemView

interface ItemView(source)

Minimal interface for a menu item view. initialize must be called for the item to be functional.

Inheritors

Functions

Link copied to clipboard
abstract fun getItemData(): MenuItemImpl
Gets the item data that this view is displaying.
Link copied to clipboard
abstract fun initialize(itemData: MenuItemImpl, menuType: Int)
Initializes with the provided MenuItemData.
Link copied to clipboard
Whether this item view prefers displaying the condensed title rather than the normal title.
Link copied to clipboard
abstract fun setCheckable(checkable: Boolean)
Displays the checkbox for the item view.
Link copied to clipboard
abstract fun setChecked(checked: Boolean)
Checks the checkbox for the item view.
Link copied to clipboard
abstract fun setEnabled(enabled: Boolean)
Sets the enabled state of the item view.
Link copied to clipboard
abstract fun setIcon(icon: Drawable)
Set the icon of this item view.
Link copied to clipboard
abstract fun setShortcut(showShortcut: Boolean, shortcutKey: Char)
Sets the shortcut for the item.
Link copied to clipboard
abstract fun setTitle(title: CharSequence)
Sets the title of the item view.
Link copied to clipboard
abstract fun showsIcon(): Boolean
Whether this item view shows an icon.