Quiz part completed 50%
This commit is contained in:
parent
7a2ef373b1
commit
5079b5e3ae
|
@ -50,6 +50,8 @@ public class QuizQuestionPage extends AppCompatActivity {
|
|||
rb3 = findViewById(R.id.radioButton32);
|
||||
buttonConfirmNext = findViewById(R.id.quiz_confirm_next);
|
||||
|
||||
textColorDefaultRb = rb1.getTextColors();
|
||||
|
||||
QuizDbHelper dbHelper = new QuizDbHelper(this);
|
||||
questionList = dbHelper.getAllQuestions();
|
||||
questionCountTotal = questionList.size();
|
||||
|
@ -80,7 +82,17 @@ public class QuizQuestionPage extends AppCompatActivity {
|
|||
}
|
||||
|
||||
else {
|
||||
finish();
|
||||
finishQuiz();
|
||||
}
|
||||
}
|
||||
|
||||
private void finishQuiz(){
|
||||
finish();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -17,7 +17,7 @@
|
|||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="High Score"
|
||||
android:text="Highscore : 0"
|
||||
android:textSize="20dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="160dp"
|
||||
|
|
|
@ -83,7 +83,7 @@
|
|||
android:id="@+id/quiz_confirm_next"
|
||||
android:layout_width="160dp"
|
||||
android:layout_height="50dp"
|
||||
android:text="next"
|
||||
android:text="confirm"
|
||||
android:background="@drawable/button_menu"
|
||||
android:layout_below="@id/quiz_radio_group"
|
||||
android:layout_marginTop="50dp"
|
||||
|
|
Loading…
Reference in New Issue