This project is an Android Quiz App developed in Kotlin using Android Studio. The app allows users to enter their name, attempt a multiple-choice quiz, track their progress in real time, and view their final score at the end.
The app was developed to meet the requirements of Credit Task 3.1, including answer feedback, progress tracking, result display, session persistence, and dark/light mode toggle for SIT708 students.
- Users can select one answer for each question.
- After pressing the Submit button:
- the correct answer turns green
- if the selected answer is wrong, the selected answer turns red
- Users cannot change their answer after submission for that question.
- A ProgressBar is displayed at the top of the quiz screen.
- The progress updates as the user moves through questions.
- The app also displays the current question number, such as Question 2 of 4.
- After the final question, the app opens a Results screen.
- The results screen shows:
- the user’s name
- the final score
- Take New Quiz returns the user to the main screen.
- The user’s name is retained using SharedPreferences so they do not need to re-enter it.
- Finish closes the application.
- The app includes a visible theme toggle.
- Users can switch between Dark Mode and Light Mode.
- The selected theme is applied across all screens.
- The selected theme is retained during the session.
- Kotlin
- Android Studio
- XML Layouts
- View Binding
- SharedPreferences
- Material Design Theme
app/
└── src/main/
├── java/com/example/quizapp/
│ ├── MainActivity.kt
│ ├── QuizActivity.kt
│ ├── ResultActivity.kt
│ ├── Question.kt
│ └── ThemeHelper.kt
├── res/layout/
│ ├── activity_main.xml
│ ├── activity_quiz.xml
│ └── activity_result.xml
├── res/values/
│ ├── strings.xml
│ ├── colors.xml
│ └── themes.xml
└── AndroidManifest.xml