For android programming, I have a RadioGroup which contains some RadioButtons. I want to just get the text from the button without need to get the id of the 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>
Is it possible to just get the text?