Skip to content

HirushaRukmal/QuizApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quiz App

Overview

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.


Features

1. Answer Selection and Visual Feedback

  • 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.

2. Real-Time Progress Tracking

  • 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.

3. Final Score and Session Persistence

  • 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.

4. Dark Mode / Light Mode Toggle

  • 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.

Technologies Used

  • Kotlin
  • Android Studio
  • XML Layouts
  • View Binding
  • SharedPreferences
  • Material Design Theme

Project Structure

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages