setBackgroundResource

open fun setBackgroundResource(@IdRes id: Int, @DrawableRes resId: Int): View

设置视图的背景色 setBackgroundResource

Return

View

Parameters

id

视图ID

resId

Drawable资源ID