setIconResource

open fun setIconResource(@DrawableRes iconResourceId: Int)

Sets the icon drawable resource to show for this button. By default, this icon will be shown on the left side of the button.

Parameters

iconResourceId

Drawable resource ID to use for the button's icon.

See also

setIcon(Drawable)
getIcon()