setBackground

open fun setBackground(background: Drawable)

Set the background to a given Drawable, or remove the background.

Parameters

background

the Drawable to use as the background, or null to remove the background.