Я довольно новичок в Android, и мне было интересно, как создать радиогруппу, как показано ниже:
Это текущий XML У меня есть:
<RadioGroup
android:id="@+id/myRadioGroup"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:checkedButton="@+id/sound"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView6">
<RadioButton
android:id="@+id/sound"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Basic" />
<RadioButton
android:id="@+id/vibration"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Pro" />
<RadioButton
android:id="@+id/silent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Elite" />
</RadioGroup>
Я не совсем уверен, как бы я справился с ..., или я подумал о возможности использования подчеркивания, но в любом случае я не знаю, как я могу достичь Справа указана цена, а слева - текст.