-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathactivity_math_quiz.xml
More file actions
97 lines (86 loc) · 4.05 KB
/
activity_math_quiz.xml
File metadata and controls
97 lines (86 loc) · 4.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MathQuizActivity">
<ImageView
android:id="@+id/imageViewStartQuiz"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginStart="24dp"
android:layout_marginTop="24dp"
android:background="?selectableItemBackgroundBorderless"
android:padding="4dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/arrow"
app:tint="@color/black" />
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:text="@string/math_quiz"
style="@style/titleTextStyle"
app:layout_constraintBottom_toBottomOf="@+id/imageViewStartQuiz"
app:layout_constraintStart_toEndOf="@+id/imageViewStartQuiz"
app:layout_constraintTop_toTopOf="@+id/imageViewStartQuiz" />
<TextView
android:id="@+id/textView8"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="80dp"
android:layout_marginEnd="24dp"
android:textAlignment="center"
android:textSize="32sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView"
tools:text="2 + 2 = ?" />
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/textInputLayoutEnterAnswerMath"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="60dp"
android:layout_marginEnd="24dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView8">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/tietEnterAnswerMath"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:hint="@string/enter_answer"
android:imeOptions="actionDone"
android:inputType="textEmailAddress"
android:singleLine="true" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.button.MaterialButton
android:id="@+id/btnNextQuestionMath"
style="@style/btnStyle"
android:layout_width="0dp"
android:layout_marginBottom="40dp"
android:imeOptions="actionDone"
android:singleLine="true"
android:text="@string/next"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@+id/textInputLayoutEnterAnswerMath"
app:layout_constraintStart_toStartOf="@+id/textInputLayoutEnterAnswerMath" />
<TextView
android:id="@+id/tvQuestionNumberMath"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
android:textSize="26sp"
android:textStyle="bold"
app:layout_constraintBottom_toTopOf="@+id/btnNextQuestionMath"
app:layout_constraintEnd_toEndOf="@+id/textInputLayoutEnterAnswerMath"
app:layout_constraintStart_toStartOf="@+id/textInputLayoutEnterAnswerMath"
app:layout_constraintTop_toBottomOf="@+id/textInputLayoutEnterAnswerMath"
tools:text="Current Question: 2" />
</androidx.constraintlayout.widget.ConstraintLayout>