<LinearLayout
android:id="@+id/checkBoxGroup"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<CheckBox
android:id="@+id/yes"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="@string/yes" />
<CheckBox
android:id="@+id/no"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="@string/no" />
</LinearLayout>
here I want to tick for only one checkbox. if I ticked one other should be unticked.