fragment_contacts.xml 13.6 KB
Newer Older
1
2
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
4
5
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
6
    android:background="@color/background"
7
8
9
10
    android:orientation="vertical">

    <androidx.appcompat.widget.Toolbar
        android:layout_width="match_parent"
11
        android:layout_height="wrap_content"
Harri Kirik's avatar
Harri Kirik committed
12
        app:contentInsetStart="@dimen/toolbar_content_inset">
13

14
        <com.google.android.material.button.MaterialButton
15
            android:id="@+id/button_back"
lauris's avatar
lauris committed
16
            style="@style/AppTheme.TextButton.Back.Primary"
17
18
19
20
21
22
23
24
25
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="start"
            android:contentDescription="@string/nav_back_content_description"
            android:text="@string/nav_back" />

    </androidx.appcompat.widget.Toolbar>

    <ScrollView
26
        style="@style/AppTheme.ScrollView"
27
28
        android:layout_width="match_parent"
        android:layout_height="match_parent">
29

30
        <androidx.constraintlayout.widget.ConstraintLayout
31
            android:layout_width="match_parent"
32
            android:layout_height="wrap_content"
lita_kornilova's avatar
lita_kornilova committed
33
            style="@style/AppTheme.ConstraintLayout">
34

35
            <com.google.android.material.card.MaterialCardView
36
                style="@style/AppTheme.CardView"
37
                android:id="@+id/cardContactInfo"
38
                android:layout_width="0dp"
39
                android:layout_height="wrap_content"
40
41
                android:layout_marginStart="@dimen/size_16"
                android:layout_marginEnd="@dimen/size_16"
42
                android:layout_marginBottom="@dimen/size_16"
43
                app:layout_constraintBottom_toBottomOf="parent"
44
                app:layout_constraintEnd_toEndOf="parent"
45
46
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent">
47

48
                <androidx.constraintlayout.widget.ConstraintLayout
49
                    android:layout_width="match_parent"
50
                    android:layout_height="wrap_content">
51

52
                    <androidx.constraintlayout.widget.Guideline
lita_kornilova's avatar
lita_kornilova committed
53
                        android:id="@+id/endGuideline"
54
                        android:layout_width="wrap_content"
55
                        android:layout_height="wrap_content"
56
                        android:orientation="vertical"
57
                        app:layout_constraintGuide_end="@dimen/size_32" />
58
59

                    <androidx.constraintlayout.widget.Guideline
lita_kornilova's avatar
lita_kornilova committed
60
                        android:id="@+id/startGuideline"
61
62
63
64
65
66
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:orientation="vertical"
                        app:layout_constraintGuide_begin="@dimen/size_16" />

                    <androidx.constraintlayout.widget.Guideline
lita_kornilova's avatar
lita_kornilova committed
67
                        android:id="@+id/bottomGuideline"
68
69
70
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:orientation="horizontal"
71
                        app:layout_constraintGuide_end="@dimen/size_16" />
72
73
74
75
76
77
78
79
80

                    <ImageView
                        android:id="@+id/backgroundView"
                        android:layout_width="0dp"
                        android:layout_height="0dp"
                        android:src="@color/pink"
                        app:layout_constraintBottom_toBottomOf="@+id/titleView"
                        app:layout_constraintEnd_toEndOf="parent"
                        app:layout_constraintStart_toStartOf="parent"
81
82
                        app:layout_constraintTop_toTopOf="@+id/iconView"
                        android:importantForAccessibility="no" />
83
84
85
86
87
88

                    <ImageView
                        android:id="@+id/iconView"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:paddingTop="@dimen/size_48"
lita_kornilova's avatar
lita_kornilova committed
89
90
                        app:layout_constraintEnd_toStartOf="@+id/endGuideline"
                        app:layout_constraintStart_toStartOf="@+id/startGuideline"
91
                        app:layout_constraintTop_toTopOf="parent"
92
93
                        app:srcCompat="@drawable/ic_heart_large"
                        android:importantForAccessibility="no" />
94
95

                    <TextView
96
97
98
99
                        android:id="@+id/titleView"
                        style="@style/AppTheme.Headline.32"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
lita_kornilova's avatar
lita_kornilova committed
100
                        android:layout_marginTop="@dimen/size_16"
101
102
103
                        android:drawablePadding="@dimen/size_16"
                        android:paddingBottom="@dimen/size_32"
                        android:textColor="@color/white"
lita_kornilova's avatar
lita_kornilova committed
104
105
                        app:layout_constraintEnd_toStartOf="@+id/endGuideline"
                        app:layout_constraintStart_toStartOf="@+id/startGuideline"
106
107
108
109
110
111
112
113
114
                        app:layout_constraintTop_toBottomOf="@+id/iconView" />

                    <TextView
                        android:id="@+id/descriptionGeneralView"
                        style="@style/AppTheme.Paragraph.Black"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="@dimen/size_24"
                        android:text="@string/contacts_detected_description_general"
lita_kornilova's avatar
lita_kornilova committed
115
116
                        app:layout_constraintEnd_toStartOf="@+id/endGuideline"
                        app:layout_constraintStart_toStartOf="@+id/startGuideline"
117
118
119
120
121
                        app:layout_constraintTop_toBottomOf="@id/titleView" />

                    <androidx.constraintlayout.widget.Guideline
                        android:id="@+id/listStartGuidline"
                        android:layout_width="wrap_content"
122
                        android:layout_height="wrap_content"
123
124
                        android:orientation="vertical"
                        app:layout_constraintGuide_begin="@dimen/text_size_36" />
125

126
127
128
                    <ImageView
                        android:id="@+id/bulletView1"
                        android:layout_width="wrap_content"
129
                        android:layout_height="wrap_content"
130
                        android:layout_marginTop="@dimen/size_6"
lita_kornilova's avatar
lita_kornilova committed
131
                        app:layout_constraintStart_toStartOf="@+id/startGuideline"
132
                        app:layout_constraintTop_toTopOf="@+id/descriptionStayHomeView"
133
134
                        app:srcCompat="@drawable/ic_point"
                        android:importantForAccessibility="no" />
135
136

                    <TextView
137
138
139
                        android:id="@+id/descriptionStayHomeView"
                        style="@style/AppTheme.Paragraph.Black"
                        android:layout_width="0dp"
140
                        android:layout_height="wrap_content"
141
                        android:layout_marginTop="@dimen/size_16"
lita_kornilova's avatar
lita_kornilova committed
142
                        app:layout_constraintEnd_toStartOf="@+id/endGuideline"
143
144
145
146
147
148
149
150
                        app:layout_constraintStart_toStartOf="@+id/listStartGuidline"
                        app:layout_constraintTop_toBottomOf="@+id/descriptionGeneralView" />

                    <ImageView
                        android:id="@+id/bulletView2"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="@dimen/size_6"
lita_kornilova's avatar
lita_kornilova committed
151
                        app:layout_constraintStart_toStartOf="@+id/startGuideline"
152
                        app:layout_constraintTop_toTopOf="@+id/healthBoardRecommendationsView"
153
154
                        app:srcCompat="@drawable/ic_point"
                        android:importantForAccessibility="no" />
155

156
                    <TextView
157
                        android:id="@+id/healthBoardRecommendationsView"
158
159
160
161
                        style="@style/AppTheme.Paragraph.Black"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="@dimen/size_16"
162
                        android:layout_marginEnd="@dimen/size_4"
163
                        android:text="@string/contacts_health_board_recommendations"
lita_kornilova's avatar
lita_kornilova committed
164
                        app:layout_constraintEnd_toStartOf="@+id/endGuideline"
165
                        app:layout_constraintStart_toStartOf="@+id/listStartGuidline"
166
167
                        app:layout_constraintTop_toBottomOf="@+id/descriptionStayHomeView"
                        app:layout_constraintBottom_toTopOf="@+id/descriptionMonitorHealthView"/>
168

169

170
171
172
                    <ImageView
                        android:id="@+id/bulletView3"
                        android:layout_width="wrap_content"
173
                        android:layout_height="wrap_content"
174
                        android:layout_marginTop="@dimen/size_6"
lita_kornilova's avatar
lita_kornilova committed
175
                        app:layout_constraintStart_toStartOf="@+id/startGuideline"
176
                        app:layout_constraintTop_toTopOf="@+id/descriptionMonitorHealthView"
177
178
                        app:srcCompat="@drawable/ic_point"
                        android:importantForAccessibility="no" />
179
180

                    <TextView
181
                        android:id="@+id/descriptionMonitorHealthView"
182
183
                        style="@style/AppTheme.Paragraph.Black"
                        android:layout_width="0dp"
184
                        android:layout_height="wrap_content"
185
                        android:layout_marginTop="@dimen/size_16"
186
                        android:text="@string/contacts_detected_text_monitor_health"
lita_kornilova's avatar
lita_kornilova committed
187
                        app:layout_constraintEnd_toStartOf="@+id/endGuideline"
188
                        app:layout_constraintStart_toStartOf="@+id/listStartGuidline"
189
                        app:layout_constraintTop_toBottomOf="@+id/healthBoardRecommendationsView" />
190

191
192
193
                    <ImageView
                        android:id="@+id/bulletView4"
                        android:layout_width="wrap_content"
194
                        android:layout_height="wrap_content"
195
                        android:layout_marginTop="@dimen/size_6"
lita_kornilova's avatar
lita_kornilova committed
196
                        app:layout_constraintStart_toStartOf="@+id/startGuideline"
197
                        app:layout_constraintTop_toTopOf="@+id/descriptionCallView"
198
199
                        app:srcCompat="@drawable/ic_point"
                        android:importantForAccessibility="no" />
200

201
                    <TextView
202
203
204
205
206
207
208
209
210
211
212
213
214
                    android:id="@+id/descriptionCallView"
                    style="@style/AppTheme.Paragraph.Black"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/size_16"
                    android:text="@string/contacts_detected_text_call"
                    app:layout_constraintEnd_toStartOf="@+id/endGuideline"
                    app:layout_constraintStart_toStartOf="@+id/listStartGuidline"
                    app:layout_constraintTop_toBottomOf="@+id/descriptionMonitorHealthView" />

                    <TextView
                        android:id="@+id/descriptionHealthBoardThanksYou"
                        style="@style/AppTheme.Paragraph.Black.Bold"
215
                        android:layout_width="0dp"
216
                        android:layout_height="wrap_content"
217
218
219
                        android:layout_marginTop="@dimen/size_24"
                        android:gravity="center_horizontal"
                        android:text="@string/contacts_detected_text_health_board_thanks_you"
220
                        app:layout_constraintEnd_toStartOf="@+id/endGuideline"
221
                        app:layout_constraintStart_toStartOf="@+id/listStartGuidline"
222
                        app:layout_constraintTop_toBottomOf="@+id/descriptionCallView" />
223

224
225
                    <com.google.android.material.button.MaterialButton
                        android:id="@+id/buttonBackHome"
226
                        style="@style/AppTheme.Button.Outlined"
227
                        android:layout_width="0dp"
228
                        android:layout_height="wrap_content"
229
                        android:layout_marginTop="@dimen/size_16"
230
                        android:layout_marginBottom="@dimen/text_size_32"
231
                        android:text="@string/nav_back_home"
lita_kornilova's avatar
lita_kornilova committed
232
233
                        app:layout_constraintEnd_toStartOf="@+id/endGuideline"
                        app:layout_constraintStart_toStartOf="@+id/startGuideline"
234
235
                        app:layout_constraintTop_toBottomOf="@+id/descriptionHealthBoardThanksYou"
                        app:layout_constraintBottom_toBottomOf="parent"/>
236

237
238
                </androidx.constraintlayout.widget.ConstraintLayout>
            </com.google.android.material.card.MaterialCardView>
239
240
241
242
243
244
245
246
247
248
249
250
251
252

            <TextView
                android:id="@+id/learnMoreView"
                style="@style/AppTheme.LinkButtonText"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_marginTop="@dimen/size_8"
                android:layout_marginBottom="@dimen/size_8"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toBottomOf="@+id/cardContactInfo"
                app:layout_constraintBottom_toBottomOf="parent"
                android:gravity="center_horizontal"
                android:text="@string/contacts_info_page_link" />
253
        </androidx.constraintlayout.widget.ConstraintLayout>
254
    </ScrollView>
255
</LinearLayout>