Methods of CheckBox class
- public boolean isChecked(): If CheckBox is in checked state then return true otherwise false.
- public void setChecked(boolean status): It changes the state of the CheckBox.
Example of CheckBox
Methods of CheckBox class
<CheckBoxandroid:id="@+id/checkBoxSave"android:layout_width="match_parent"android:layout_height="wrap_content"android:text="Save for later"android:textSize="18sp" />
No comments:
Post a Comment