setBackground

open fun setBackground(@IdRes id: Int, drawable: Drawable): View

设置视图的背景色 setBackground

Return

View

Parameters

id

视图ID

drawable