setChecked

open fun setChecked(@IdRes id: Int, isChecked: Boolean): CompoundButton

设置是否选中 setChecked

Return

CompoundButton

Parameters

id

视图ID

isChecked

是否选中