The Numbers 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.
NumbersAct) helps children build early numeracy skills by asking them to identify number images from a set of three picture options. Ten questions are served in randomised order across a full-screen landscape layout. Every correct tap lights up the next green progress dot and advances to the next question, giving children immediate positive feedback as they work through the set.
Launching the Numbers Quiz
FinalmainScreen starts NumbersAct through its numberact() method. A value of 37 is passed, placing the activity in standalone mode (outside the sequence range of 1–7) so that ScoringPage is shown on completion.
The Sequence game identifies this category by the name “Number” in its spinner selection logic.
Quiz Data
NumbersAct stores all question and answer resources as int arrays of drawable resource IDs. The layout file is activity_numbers.
Question Images
| Question # | Drawable |
|---|---|
| 1 | n0 |
| 2 | n1 |
| 3 | n2 |
| 4 | n3 |
| 5 | n4 |
| 6 | n5 |
| 7 | n6 |
| 8 | n7 |
| 9 | n8 |
| 10 | n9 |
Correct Answers
Option positions:0 = left, 1 = middle, 2 = right.
| Question # | Drawable | Correct Option |
|---|---|---|
| 1 | n0 | Left (0) |
| 2 | n1 | Right (2) |
| 3 | n2 | Middle (1) |
| 4 | n3 | Left (0) |
| 5 | n4 | Left (0) |
| 6 | n5 | Left (0) |
| 7 | n6 | Right (2) |
| 8 | n7 | Middle (1) |
| 9 | n8 | Right (2) |
| 10 | n9 | Middle (1) |
Question Flow
Generate Random Queue
random_number_generator() fills queue[] with a shuffled permutation of 0–9, ensuring a fresh question order each session.Display Question
displayquestion() sets the question ImageView to questions[queue[counter]] and populates the three option ImageViews from answers[queue[counter]].Child Taps an Option
onClickCard(View) catches every tap on the three option cards and immediately calls condition().Evaluate Answer
condition() checks which option LinearLayout was pressed against correct_answer[queue[counter]]:- Correct — increments
correct_ans_count, activates the next green dot (grenc1–grenc10), callsdisplayquestion(). - Wrong — increments
wrong_ans_count, hides that option’sLinearLayoutso it cannot be selected again.
Scoring
- Standalone Mode
- Sequence Mode
ScoringPage receives the Wrong extra containing the total wrong-answer count. The score screen can then display performance feedback to the child and parent.Progress Indicators
Green Dot Row Explained
Green Dot Row Explained
The
activity_numbers layout contains ten green dot ImageViews (grenc1–grenc10) arranged in a horizontal row. Each time the child answers a question correctly, the next dot in the row becomes visible, giving a clear at-a-glance view of progress through the ten questions. Ten companion cross ImageViews (crossimg1–crossimg10) serve as checkmark overlay positions in sequence mode.