CHECKBOX
Android checkbox is used to select more than one option at a time.
Example: In an admission form we may need to select both diploma & BE in Graduate option.
For this we can use checkbox which will enable us to select multiple options.
SOURCE CODE [main.xml] is
<xml version="1.0" encoding="utf-8"?>
<LinearLayout android:id="@+id/LinearLayout01"
android:layout_width="fill_parent"
android:orientation="vertical">
<CheckBox android:id="@+id/check1"
Android checkbox is used to select more than one option at a time.
Example: In an admission form we may need to select both diploma & BE in Graduate option.
For this we can use checkbox which will enable us to select multiple options.
SOURCE CODE [main.xml] is
<LinearLayout android:id="@+id/LinearLayout01"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"android:orientation="vertical">
<CheckBox android:id="@+id/check1"
android:layout_width="100px"
android:layout_height="wrap_content"
android:text="Android" />