Android设置checkbox为选中状态

在xml中可以用ischeck:true来设置默认为选中状态。

在activity中可以用setChecked(true);来设置为选中状态。

在activity中可以用setChecked(fasle);来设置为选中状态。

isChecked();语句为判断是否选中,返回一个boolean值。

原文地址:https://blog.csdn.net/QPC908694753/article/details/70170691

猜你喜欢

转载自blog.csdn.net/qq_41204464/article/details/93410071