getItemView

open fun getItemView(item: MenuItemImpl, convertView: View, parent: ViewGroup): View(source)

Prepare an item view for use. See AdapterView for the basic idea at work here. This may require creating a new item view, but well-behaved implementations will re-use the view passed as convertView if present. The returned view will be populated with data from the item parameter.

Return

View that presents the requested menu item

Parameters

item

Item to present

convertView

Existing view to reuse

parent

Intended parent view - use for inflation.