Full width home advertisement

Post Page Advertisement [Top]

Android Checkbox Example


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

<CheckBox
        android: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

Bottom Ad [Post Page]

| Designed by Renjith Plavada