setIcon

open fun setIcon(@NonNull iconUrl: String)

Set icon URL (will be used to download the icon asset)

Parameters

iconUrl

- url


open fun setIcon(@DrawableRes resId: Int)

Set icon from resource ID

Parameters

resId

- resource ID


open fun setIcon(@DrawableRes resId: Int, @ColorInt tint: Int)

Set icon from resource ID

Parameters

resId

- resource ID

tint

- tint


open fun setIcon(@DrawableRes resId: Int, tint: String)

Set icon from resource ID

Parameters

resId

- resource ID

tint

- Hex value of tint color


open fun setIcon(@NonNull drawable: Drawable)

Set icon from drawable

Parameters

drawable

- drawable


open fun setIcon(@NonNull drawable: Drawable, @ColorInt tint: Int)

Set icon from drawable

Parameters

drawable

- drawable

tint

- tint


open fun setIcon(@NonNull drawable: Drawable, tint: String)

Set icon from drawable

Parameters

drawable

- drawable

tint

- Hex value of tint color


open fun setIcon(@NonNull bitmap: Bitmap)

Set icon from bitmap

Parameters

bitmap

- icon bitmap