I am wondering when i use radio button and make a different value and text when it show. like html.
Example (Html):
<form action="">
<input type="radio" name="gender" value="male"> MAN<br>
<input type="radio" name="gender" value="female"> FEMALE<br>
</form>
Like that, the value is "male" and the text is "MAN", how it will be when i use radio botton on android studio, because i just know this code :
<RadioGroup
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/text"
android:id="@+id/myRadioGroup"
android:background="#abf234"
android:checkedButton="@+id/gender" >
<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/male"
android:text="MALE" />
<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/female"
android:text="FEMALE" />
so on the android we just know the text (text will be display on the screen) and the value is same, my question is how if i want get a value like "male" but text show on screen is "MAN" like html.