Android studio with radioGroup and radiobutotns code example
Example: android studio radio group horizontal
<RadioGroup
android:id="@+id/radioG"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation='horizontal'>