Для программирования на Android у меня есть RadioGroup, которая содержит несколько RadioButtons.
Я хочу просто получить текст с кнопки без необходимости получения идентификатора RadioButton.
<RadioGroup
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/radioGroup"
>
<RadioButton
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="text1"
/>
<RadioButton
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="text2"
/>
<RadioButton
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="text3"
/>
</RadioGroup>
Можно ли просто получить текст?