setIcon

open fun setIcon(resId: Int)(source)

Set resId to 0 if you don't want an icon.

Parameters

resId

the resourceId of the drawable to use as the icon or 0 if you don't want an icon.


open fun setIcon(icon: Drawable)(source)

Set the Drawable to be used in the title.

Parameters

icon

Drawable to use as the icon or null if you don't want an icon.