public interface Checkable
android.widget.Checkable |
Known Indirect Subclasses |
定义使它们可检查的视图的扩展。
Public methods |
|
---|---|
abstract boolean |
isChecked() |
abstract void |
setChecked(boolean checked) 更改视图的选中状态 |
abstract void |
toggle() 将视图的选中状态更改为当前状态的反转状态 |
boolean isChecked ()
Returns | |
---|---|
boolean |
The current checked state of the view |
void setChecked (boolean checked)
更改视图的选中状态
Parameters | |
---|---|
checked |
boolean : The new checked state |