radio button group android studio 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'>