I am having radiogroup with 4 radio button. the problem is all radio button are getting selected. Cant understand what is the problem, My layout is below:
<RadioGroup
android:id="@+id/status_yesno_radiogroup"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="100">
<RadioButton
android:id="@+id/status_public"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:text="Public"
android:textStyle="bold"
android:layout_weight="50"/>
<RadioButton
android:id="@+id/status_private"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Private"
android:textStyle="bold"
android:layout_weight="50"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="100">
<RadioButton
android:id="@+id/status_listed"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Listed"
android:textStyle="bold"
android:layout_weight="50"/>
<RadioButton
android:id="@+id/status_opc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="OPC "
android:textStyle="bold"
android:layout_weight="50"/>
</LinearLayout>
</RadioGroup>
when i am clicking radio buttons. all radio buttons are getting checked see screenshot