Want to know which Hogwarts House you would fall into? Come and let the Sorting Hat cast judgment upon you!
There are four houses:
Gryffindor
Hufflepuff
Ravenclaw
Slytherin
After answering all the questions, the Sorting Hat will determine your house based on your responses.
activity_main.xml -> which is the design for the first page when a user opens the app.
https://github.com/Paniz-Peiravani/SortingHatQuizApp/blob/master/app/src/main/res/layout/activity_main.xml
activity_quiz_questions.xml -> which is the design for questions sections.
https://github.com/Paniz-Peiravani/SortingHatQuizApp/blob/master/app/src/main/res/layout/activity_quiz_questions.xml
activity_result.xml -> which is the last design page that shows the user what house they are sorted into.
https://github.com/Paniz-Peiravani/SortingHatQuizApp/blob/master/app/src/main/res/layout/activity_result.xml
MainActivity.java -> which is class for first window of the app that ask the user name to show at the end.
https://github.com/Paniz-Peiravani/SortingHatQuizApp/blob/master/app/src/main/java/com/example/sortinghat/MainActivity.java
Questions.java ->Questions and Answers class that contains getter and setter.
https://github.com/Paniz-Peiravani/SortingHatQuizApp/blob/master/app/src/main/java/com/example/sortinghat/Questions.java
QuizQuestionsActivity.java -> Display the questions class.
https://github.com/Paniz-Peiravani/Sorting-Hat-Quiz-App/blob/master/app/src/main/java/com/example/sortinghat/QuizQuestionsActivity.java
ResultActivity.java -> Sorting the Hogwarts house and show the result.
https://github.com/Paniz-Peiravani/SortingHatQuizApp/blob/master/app/src/main/java/com/example/sortinghat/ResultActivity.java
First, it asks a user to enter their name.
__________________________________________________________________________After the user presses enter, it will start sorting them into their house by asking them some questions. __________________________________________________________________________
After the user answered the last question, it will sort them to their house and shows the result.