Android - Check RadioButton ID in a RadioGroup with LinearLayout
问题 Is there any possible way to get the selected radio button in this layout? because rg.getCheckedRadioButtonId() not working on this layout. I can't get each of my radiobuttons ID . It's like all my radio button are out of my radio Group <RadioGroup android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/rg" android:gravity="center" android:layout_centerVertical="true" android:layout_alignParentStart="true"> <LinearLayout android:layout_width="wrap_content"