setIcon

abstract fun setIcon(icon: Drawable)(source)

Set the icon of this item view.

Parameters

icon

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