1 |
efrain |
1 |
<?xml version="1.0" encoding="utf-8"?>
|
|
|
2 |
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
3 |
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
4 |
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
5 |
xmlns:tools="http://schemas.android.com/tools"
|
|
|
6 |
android:layout_width="match_parent"
|
|
|
7 |
android:layout_height="match_parent"
|
|
|
8 |
tools:context=".activity.QuizActivity"
|
|
|
9 |
android:background="@color/windowBackgroundQuiz">
|
|
|
10 |
|
|
|
11 |
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
12 |
android:id="@+id/activity_quiz_constraint_layout_header"
|
|
|
13 |
android:layout_width="match_parent"
|
|
|
14 |
android:layout_height="0dp"
|
|
|
15 |
|
|
|
16 |
tools:context=".activity.QuizActivity"
|
|
|
17 |
android:background="@color/backgroudQuizHeader"
|
|
|
18 |
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
19 |
app:layout_constraintTop_toTopOf="parent">
|
|
|
20 |
|
|
|
21 |
<TextView
|
|
|
22 |
style="@style/textview_quiz_title1"
|
|
|
23 |
android:id="@+id/activity_quiz_textview_label_your_progress"
|
|
|
24 |
android:layout_width="wrap_content"
|
|
|
25 |
android:layout_height="wrap_content"
|
|
|
26 |
android:text="@string/label_your_progress"
|
|
|
27 |
android:textColor="@android:color/black"
|
|
|
28 |
android:textAllCaps="true"
|
|
|
29 |
android:layout_marginTop="5dp"
|
|
|
30 |
android:layout_marginBottom="5dp"
|
|
|
31 |
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
32 |
app:layout_constraintRight_toRightOf="parent"
|
|
|
33 |
app:layout_constraintTop_toTopOf="parent"
|
|
|
34 |
/>
|
|
|
35 |
|
|
|
36 |
<TextView
|
|
|
37 |
style="@style/textview_quiz_title2"
|
|
|
38 |
android:id="@+id/activity_quiz_textview_score"
|
|
|
39 |
android:layout_width="0dp"
|
|
|
40 |
android:layout_height="wrap_content"
|
|
|
41 |
android:text="0"
|
|
|
42 |
android:textColor="@android:color/black"
|
|
|
43 |
android:textAlignment="center"
|
|
|
44 |
android:paddingTop="5dp"
|
|
|
45 |
android:paddingBottom="5dp"
|
|
|
46 |
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
47 |
app:layout_constraintTop_toBottomOf="@id/activity_quiz_textview_label_your_progress"
|
|
|
48 |
app:layout_constraintWidth_percent="0.33"
|
|
|
49 |
/>
|
|
|
50 |
|
|
|
51 |
|
|
|
52 |
<TextView
|
|
|
53 |
style="@style/textview_quiz_title2"
|
|
|
54 |
android:id="@+id/activity_quiz_textview_chronometer"
|
|
|
55 |
android:layout_width="0dp"
|
|
|
56 |
android:layout_height="wrap_content"
|
|
|
57 |
android:text="00:00"
|
|
|
58 |
android:textColor="@android:color/black"
|
|
|
59 |
android:textAlignment="center"
|
|
|
60 |
android:paddingTop="5dp"
|
|
|
61 |
android:paddingBottom="5dp"
|
|
|
62 |
app:layout_constraintLeft_toRightOf="@id/activity_quiz_textview_score"
|
|
|
63 |
app:layout_constraintTop_toTopOf="@id/activity_quiz_textview_score"
|
|
|
64 |
app:layout_constraintBottom_toBottomOf="@id/activity_quiz_textview_score"
|
|
|
65 |
app:layout_constraintWidth_percent="0.33"
|
|
|
66 |
/>
|
|
|
67 |
|
|
|
68 |
<TextView
|
|
|
69 |
style="@style/textview_quiz_title2"
|
|
|
70 |
android:id="@+id/activity_quiz_textview_question_count"
|
|
|
71 |
android:layout_width="0dp"
|
|
|
72 |
android:layout_height="wrap_content"
|
|
|
73 |
android:text="2 / 4"
|
|
|
74 |
android:textColor="@android:color/black"
|
|
|
75 |
android:textAlignment="center"
|
|
|
76 |
android:paddingTop="5dp"
|
|
|
77 |
android:paddingBottom="5dp"
|
|
|
78 |
app:layout_constraintLeft_toRightOf="@id/activity_quiz_textview_chronometer"
|
|
|
79 |
app:layout_constraintTop_toTopOf="@id/activity_quiz_textview_chronometer"
|
|
|
80 |
app:layout_constraintBottom_toBottomOf="@id/activity_quiz_textview_chronometer"
|
|
|
81 |
app:layout_constraintRight_toRightOf="parent"
|
|
|
82 |
app:layout_constraintWidth_percent="0.33"
|
|
|
83 |
/>
|
|
|
84 |
|
|
|
85 |
|
|
|
86 |
<TextView
|
|
|
87 |
style="@style/textview_quiz_title2"
|
|
|
88 |
android:id="@+id/activity_quiz_textview_label_score"
|
|
|
89 |
android:layout_width="0dp"
|
|
|
90 |
android:layout_height="wrap_content"
|
|
|
91 |
android:text="@string/label_score"
|
|
|
92 |
android:textColor="@android:color/black"
|
|
|
93 |
android:textAlignment="center"
|
|
|
94 |
android:paddingTop="5dp"
|
|
|
95 |
android:paddingBottom="5dp"
|
|
|
96 |
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
97 |
app:layout_constraintTop_toBottomOf="@id/activity_quiz_textview_score"
|
|
|
98 |
app:layout_constraintWidth_percent="0.33"
|
|
|
99 |
/>
|
|
|
100 |
|
|
|
101 |
|
|
|
102 |
<TextView
|
|
|
103 |
style="@style/textview_quiz_title2"
|
|
|
104 |
android:id="@+id/activity_quiz_textview_label_chronometer"
|
|
|
105 |
android:layout_width="0dp"
|
|
|
106 |
android:layout_height="wrap_content"
|
|
|
107 |
android:text="@string/label_time"
|
|
|
108 |
android:textColor="@android:color/black"
|
|
|
109 |
android:textAlignment="center"
|
|
|
110 |
android:paddingTop="5dp"
|
|
|
111 |
android:paddingBottom="5dp"
|
|
|
112 |
app:layout_constraintLeft_toRightOf="@id/activity_quiz_textview_label_score"
|
|
|
113 |
app:layout_constraintTop_toTopOf="@id/activity_quiz_textview_label_score"
|
|
|
114 |
app:layout_constraintBottom_toBottomOf="@id/activity_quiz_textview_label_score"
|
|
|
115 |
app:layout_constraintWidth_percent="0.33"
|
|
|
116 |
/>
|
|
|
117 |
|
|
|
118 |
<TextView
|
|
|
119 |
style="@style/textview_quiz_title2"
|
|
|
120 |
android:id="@+id/activity_quiz_textview_question_label_count"
|
|
|
121 |
android:layout_width="0dp"
|
|
|
122 |
android:layout_height="wrap_content"
|
|
|
123 |
android:text="@string/label_questions"
|
|
|
124 |
android:textColor="@android:color/black"
|
|
|
125 |
android:textAlignment="center"
|
|
|
126 |
android:paddingTop="5dp"
|
|
|
127 |
android:paddingBottom="5dp"
|
|
|
128 |
app:layout_constraintLeft_toRightOf="@id/activity_quiz_textview_label_chronometer"
|
|
|
129 |
app:layout_constraintTop_toTopOf="@id/activity_quiz_textview_label_chronometer"
|
|
|
130 |
app:layout_constraintBottom_toBottomOf="@id/activity_quiz_textview_label_chronometer"
|
|
|
131 |
app:layout_constraintRight_toRightOf="parent"
|
|
|
132 |
app:layout_constraintWidth_percent="0.33"
|
|
|
133 |
/>
|
|
|
134 |
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
135 |
|
|
|
136 |
<FrameLayout
|
|
|
137 |
android:id="@+id/activity_quiz_fragment_container"
|
|
|
138 |
android:layout_width="match_parent"
|
|
|
139 |
android:layout_height="0dp"
|
|
|
140 |
android:layout_marginTop="5dp"
|
|
|
141 |
android:layout_marginBottom="5dp"
|
|
|
142 |
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
143 |
app:layout_constraintRight_toRightOf="parent"
|
|
|
144 |
app:layout_constraintBottom_toTopOf="@+id/activity_quiz_button_previous"
|
|
|
145 |
app:layout_constraintTop_toBottomOf="@id/activity_quiz_constraint_layout_header" />
|
|
|
146 |
|
|
|
147 |
<Button
|
|
|
148 |
style="@style/button_quiz"
|
|
|
149 |
android:id="@+id/activity_quiz_button_previous"
|
|
|
150 |
android:layout_width="wrap_content"
|
|
|
151 |
android:layout_height="wrap_content"
|
|
|
152 |
android:text="@string/button_back"
|
|
|
153 |
android:layout_marginBottom="10dp"
|
|
|
154 |
android:layout_marginLeft="10dp"
|
|
|
155 |
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
156 |
app:layout_constraintBottom_toBottomOf="parent" />
|
|
|
157 |
|
|
|
158 |
<Button
|
|
|
159 |
style="@style/button_quiz"
|
|
|
160 |
android:id="@+id/activity_quiz_button_next"
|
|
|
161 |
android:layout_width="wrap_content"
|
|
|
162 |
android:layout_height="wrap_content"
|
|
|
163 |
android:text="@string/button_next"
|
|
|
164 |
android:layout_marginBottom="10dp"
|
|
|
165 |
android:layout_marginRight="10dp"
|
|
|
166 |
app:layout_constraintRight_toRightOf="parent"
|
|
|
167 |
app:layout_constraintBottom_toBottomOf="parent" />
|
|
|
168 |
|
|
|
169 |
|
|
|
170 |
<Button
|
|
|
171 |
style="@style/button_quiz"
|
|
|
172 |
android:id="@+id/activity_quiz_button_start"
|
|
|
173 |
android:layout_width="wrap_content"
|
|
|
174 |
android:layout_height="wrap_content"
|
|
|
175 |
android:text="@string/button_start"
|
|
|
176 |
android:layout_marginBottom="10dp"
|
|
|
177 |
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
178 |
app:layout_constraintRight_toRightOf="parent"
|
|
|
179 |
app:layout_constraintBottom_toBottomOf="parent" />
|
|
|
180 |
|
|
|
181 |
<Button
|
|
|
182 |
style="@style/button_quiz"
|
|
|
183 |
android:id="@+id/activity_quiz_button_finish"
|
|
|
184 |
android:layout_width="wrap_content"
|
|
|
185 |
android:layout_height="wrap_content"
|
|
|
186 |
android:text="@string/button_finish"
|
|
|
187 |
android:layout_marginBottom="10dp"
|
|
|
188 |
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
189 |
app:layout_constraintRight_toRightOf="parent"
|
|
|
190 |
app:layout_constraintBottom_toBottomOf="parent" />
|
|
|
191 |
|
|
|
192 |
<Button
|
|
|
193 |
style="@style/button_quiz"
|
|
|
194 |
android:id="@+id/activity_quiz_button_exit"
|
|
|
195 |
android:layout_width="wrap_content"
|
|
|
196 |
android:layout_height="wrap_content"
|
|
|
197 |
android:text="@string/button_exit"
|
|
|
198 |
android:layout_marginBottom="10dp"
|
|
|
199 |
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
200 |
app:layout_constraintRight_toRightOf="parent"
|
|
|
201 |
app:layout_constraintBottom_toBottomOf="parent" />
|
|
|
202 |
|
|
|
203 |
</androidx.constraintlayout.widget.ConstraintLayout>
|