Constructors

Link copied to clipboard
constructor(context: Context)
constructor(context: Context, attrs: AttributeSet)
constructor(context: Context, attrs: AttributeSet, defStyle: Int)

Types

Link copied to clipboard
abstract class PopupCallback

Functions

Link copied to clipboard
Gets the item data that this view is displaying.
Link copied to clipboard
open fun hasText(): Boolean
Link copied to clipboard
open fun initialize(itemData: MenuItemImpl, menuType: Int)
Initializes with the provided MenuItemData.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onClick(v: View)
Link copied to clipboard
Link copied to clipboard
open fun onHoverChanged(hovered: Boolean)
Link copied to clipboard
open fun onLongClick(v: View): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Whether this item view prefers displaying the condensed title rather than the normal title.
Link copied to clipboard
open fun setBackground(background: Drawable)
Link copied to clipboard
open fun setCheckable(checkable: Boolean)
Displays the checkbox for the item view.
Link copied to clipboard
open fun setChecked(checked: Boolean)
Checks the checkbox for the item view.
Link copied to clipboard
open fun setExpandedFormat(expandedFormat: Boolean)
Link copied to clipboard
open fun setIcon(icon: Drawable)
Set the icon of this item view.
Link copied to clipboard
open fun setIsLastItem(isLastItem: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun setPadding(l: Int, t: Int, r: Int, b: Int)
Link copied to clipboard
open fun setPaddingRelative(start: Int, top: Int, end: Int, bottom: Int)
Link copied to clipboard
Link copied to clipboard
open fun setShortcut(showShortcut: Boolean, shortcutKey: Char)
Sets the shortcut for the item.
Link copied to clipboard
open fun setTitle(title: CharSequence)
Sets the title of the item view.
Link copied to clipboard
open fun showsIcon(): Boolean
Whether this item view shows an icon.