The Colors and Shapes Quiz (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/SaadAhmed1122/Kids_learnig_App/llms.txt
Use this file to discover all available pages before exploring further.
Colours_question_act) builds early visual literacy by asking children to match color swatches and geometric shapes displayed as full-screen photographs. Ten questions are served in randomised order, each offering three picture choices. A tap on the correct image lights up the next progress dot and moves straight to the following question, keeping young learners engaged without interruption.
Launching the Colors & Shapes Quiz
FinalmainScreen starts the Colors and Shapes Quiz through its showcoloract() method. A value of 12 is supplied, which falls outside the sequence range of 1–7, so the activity runs in standalone mode and presents a ScoringPage when all ten questions are answered.
In the Sequence game spinner this category is listed as “Shapes”, not “Colors”. When building sequence flows make sure to reference the category by that label.
Quiz Data
Colours_question_act stores questions and options as int arrays of drawable resource IDs. The layout file is activity_colours_question_act.
Question Images
The drawable names follow a grouped naming convention reflecting the three color/shape families used in the quiz.| Question # | Drawable |
|---|---|
| 1 | h0 |
| 2 | h1 |
| 3 | h2 |
| 4 | h3 |
| 5 | h10 |
| 6 | h11 |
| 7 | h12 |
| 8 | h20 |
| 9 | h21 |
| 10 | h22 |
Correct Answers
correct_answer[] values map option positions: 0 = left, 1 = middle, 2 = right.
| Question # | Drawable | Correct Option |
|---|---|---|
| 1 | h0 | Left (0) |
| 2 | h1 | Right (2) |
| 3 | h2 | Right (2) |
| 4 | h3 | Left (0) |
| 5 | h10 | Left (0) |
| 6 | h11 | Left (0) |
| 7 | h12 | Right (2) |
| 8 | h20 | Middle (1) |
| 9 | h21 | Right (2) |
| 10 | h22 | Middle (1) |
Question Flow
Shuffle on Launch
random_number_generator() creates a shuffled queue[] of indices 0–9, ensuring a unique question order every session.Display Question
displayquestion() sets the question ImageView to questions[queue[counter]] and populates the three option ImageViews from answers[queue[counter]].Evaluate Answer
condition() compares the tapped option against correct_answer[queue[counter]]:- Correct — increments
correct_ans_count, lights the next green dot, callsdisplayquestion(). - Wrong — increments
wrong_ans_count, hides the tapped option’sLinearLayout.
Scoring
- Standalone Mode
- Sequence Mode
After ten correct answers
Colours_question_act starts ScoringPage and passes the wrong answer count:Progress Indicator Details
Progress Indicator Details
The layout contains ten green dot views (
grenc1–grenc10) that illuminate sequentially as questions are answered correctly, giving children a clear visual sense of how far through the quiz they are. Ten cross ImageViews (crossimg1–crossimg10) are used in sequence mode to show which earlier steps are already complete.