setIcon

abstract fun setIcon(icon: Drawable)

Set the icon of this item view.

Parameters

icon

The icon of this item. null to hide the icon.