setIcon

open fun setIcon(@Nullable icon: Drawable)

Set the icon for the button.

Parameters

icon

The icon drawable.


open fun setIcon(@DrawableRes iconRes: Int)

Set the icon for the button.

Parameters

iconRes

The icon drawable resource.