Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <LinearLayout
- android:id="@+id/sports_layout"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <TextView
- android:id="@+id/question_one"
- style="@style/Base.ThemeOverlay.AppCompat.ActionBar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/question_one_sports"
- android:textAppearance="@style/TextAppearance.AppCompat.Widget.ActionBar.Title"
- tools:theme="@android:style/Theme.Holo.Light.DarkActionBar" />
- <RadioGroup
- android:id="@+id/answers_one_group"
- android:layout_marginTop="15dp"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content">
- <RadioButton
- android:id="@+id/answer_one_a_correct"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/answer_one_a" />
- <RadioButton
- android:id="@+id/answer_one_b_incorrect"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/answer_one_b" />
- <RadioButton
- android:id="@+id/answer_one_c_incorrect"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/answer_one_c" />
- </RadioGroup>
- <TextView
- android:id="@+id/question_two"
- android:layout_marginTop="15dp"
- style="@style/Base.ThemeOverlay.AppCompat.ActionBar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/question_two_sports"
- android:textAppearance="@style/TextAppearance.AppCompat.Widget.ActionBar.Title"
- tools:theme="@android:style/Theme.Holo.Light.DarkActionBar" />
- <RadioGroup
- android:id="@+id/answers_two_group"
- android:layout_marginTop="15dp"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content">
- <RadioButton
- android:id="@+id/answer_two_a_incorrect"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/answer_two_a" />
- <RadioButton
- android:id="@+id/answer_two_b_correct"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/answer_two_b" />
- <RadioButton
- android:id="@+id/answer_two_c_incorrect"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/answer_two_c" />
- </RadioGroup>
- <TextView
- android:id="@+id/question_three"
- android:layout_marginTop="15dp"
- style="@style/Base.ThemeOverlay.AppCompat.ActionBar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/question_three_sports"
- android:textAppearance="@style/TextAppearance.AppCompat.Widget.ActionBar.Title"
- tools:theme="@android:style/Theme.Holo.Light.DarkActionBar" />
- <RadioGroup
- android:id="@+id/answers_three_group"
- android:layout_marginTop="15dp"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content">
- <RadioButton
- android:id="@+id/answer_three_a_incorrect"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/answer_three_a" />
- <RadioButton
- android:id="@+id/answer_three_b_correct"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/answer_three_b" />
- <RadioButton
- android:id="@+id/answer_three_c_incorrect"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/answer_three_c" />
- </RadioGroup>
- <TextView
- android:id="@+id/question_four"
- android:layout_marginTop="15dp"
- style="@style/Base.ThemeOverlay.AppCompat.ActionBar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/question_four_sports"
- android:textAppearance="@style/TextAppearance.AppCompat.Widget.ActionBar.Title"
- tools:theme="@android:style/Theme.Holo.Light.DarkActionBar" />
- <RadioGroup
- android:id="@+id/answers_four_group"
- android:layout_marginTop="15dp"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content">
- <RadioButton
- android:id="@+id/answer_four_a_correct"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/answer_four_a" />
- <RadioButton
- android:id="@+id/answer_four_b_incorrect"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/answer_four_b" />
- <RadioButton
- android:id="@+id/answer_four_c_incorrect"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/answer_four_c" />
- </RadioGroup>
- <Button
- android:id="@+id/btnSubmitSport"
- android:onClick="submitScore"
- android:layout_marginLeft="80dp"
- android:layout_width="208dp"
- android:layout_height="match_parent"
- android:text="@string/submit_answers" />
- <Button
- android:id="@+id/btnResetSport"
- android:layout_width="130dp"
- android:layout_height="match_parent"
- android:layout_marginLeft="120dp"
- android:onClick="resetRadios"
- android:text="@string/reset_btn" />
- </LinearLayout>
- </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement