I am attempted in assigned a radio button in java. This is my XML file with the
ID: 3537876 • Letter: I
Question
I am attempted in assigned a radio button in java. This is my XML file with the radio button on it.
<RadioGroup
android:id="@+id/radMovies"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/txtMonths"
android:layout_below="@+id/txtMonths"
android:layout_marginLeft="26dp"
android:layout_marginTop="17dp" >
<RadioButton
android:id="@+id/radMail"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="DVD Movies by Mail: $8.99" />
<RadioButton
android:id="@+id/radStream"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:text="Streaming Movies: $7.99" />
<RadioButton
android:id="@+id/radCombined"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Combined Services: $15.99" />
</RadioGroup>
Explanation / Answer
use a for loop to make radio button. it is possible in xml too.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.