setBackground

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

设置视图的背景色 View.setBackground

Return

View

Parameters

id

视图ID

drawable