CheckBox Example in Android

Checkbox is simple widget of android for multiple selection. When we need to choose multiple options we can use Checkbox. E.g.When we have to choose our hobby.

CheckBox is two states button, checked and unchecked. You can also perform action at time of state changed.

Let’s see simple example of CheckBox.

activity_main.xml

MainActivity.java

Now run project. Our output looks like this.

android-checbox-example-skynils

Download Project.

downlod

Now see next tutorial RadioButton In Android.