- Forum-Beiträge: 26
17.03.2018, 17:20:44 via Website
17.03.2018 17:20:44 via Website
Hallo zusammen.
Aus gegebenen Gründen möchte ich 3 Radiobuttons nebeneinander. Sobald ich die aber einer RadioGroup zuordne sind die untereinander.
Gestern habe ich mir noch das neueste Android Studio installiert. Ich konnte bisher nichts erkennen was mich in der Sache weiterbringen.
Wer hat eine Idee ?
Gruss Volker
Hier mein Beispiel
<RadioGroup
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:layout_editor_absoluteX="16dp"
tools:layout_editor_absoluteY="0dp">
<RadioButton
android:id="@+id/radioButton3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="RadioButton"
tools:layout_editor_absoluteX="230dp"
tools:layout_editor_absoluteY="108dp" />
<RadioButton
android:id="@+id/radioButton2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="RadioButton"
tools:layout_editor_absoluteX="120dp"
tools:layout_editor_absoluteY="108dp" />
<RadioButton
android:id="@+id/radioButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="RadioButton"
tools:layout_editor_absoluteX="5dp"
tools:layout_editor_absoluteY="108dp" />
</RadioGroup>