1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2022 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<androidx.constraintlayout.widget.ConstraintLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    xmlns:tools="http://schemas.android.com/tools"
21    android:id="@+id/notification_activity"
22    android:orientation="vertical"
23    android:layout_width="match_parent"
24    android:layout_height="match_parent" >
25    <ScrollView
26        android:id="@+id/notification_fragment_scrollview"
27        android:layout_width="match_parent"
28        android:layout_height="0dp"
29        android:scrollbars="vertical"
30        app:layout_constraintTop_toTopOf="parent"
31        app:layout_constraintBottom_toTopOf="@id/nav_buttons"
32        app:layout_constraintEnd_toEndOf="parent"
33        app:layout_constraintStart_toStartOf="parent" >
34        <LinearLayout
35            android:layout_height="wrap_content"
36            android:paddingStart="@dimen/adservices_content_horizontal_padding"
37            android:paddingEnd="@dimen/adservices_content_horizontal_padding"
38            android:paddingBottom="@dimen/adservices_content_padding"
39            android:orientation="vertical"
40            android:layout_gravity="center_horizontal"
41            style="@style/NotificationContainer">
42            <LinearLayout
43                android:layout_width="match_parent"
44                android:layout_height="wrap_content"
45                android:orientation="vertical">
46                <ImageView
47                    android:layout_width="wrap_content"
48                    android:layout_height="wrap_content"
49                    android:layout_marginTop="@dimen/adservices_content_3x_padding"
50                    android:layout_marginStart="0dp"
51                    android:src="@drawable/ic_android_icon"
52                    tools:ignore="ContentDescription" />
53                <TextView
54                    android:text="@string/notificationUI_header_ga_title_v2"
55                    style="@style/MainStyle.H1" />
56
57            </LinearLayout>
58
59            <LinearLayout
60                android:id="@+id/container1"
61                android:layout_width="match_parent"
62                android:layout_height="wrap_content"
63                android:layout_marginTop="@dimen/adservices_content_two_thirds_padding"
64
65
66                android:orientation="vertical"
67                android:animateLayoutChanges="true">
68                <TextView
69                    android:layout_width="match_parent"
70                    android:layout_height="wrap_content"
71                    android:text="@string/notificationUI_container1_ga_introduction_v2"
72                    style="@style/MainStyle.Body1"
73                    android:gravity="center_vertical" />
74                <TextView
75                    android:layout_width="match_parent"
76                    android:layout_height="wrap_content"
77                    android:text="@string/notificationUI_container2_ga_introduction_v2"
78                    style="@style/MainStyle.Body1"
79                    android:gravity="center_vertical" />
80                <ImageView
81                    android:layout_width="match_parent"
82                    android:layout_height="wrap_content"
83                    android:layout_marginTop="@dimen/adservices_content_two_thirds_padding"
84                    android:src="@drawable/ic_consent_notification_ga_image"
85                    android:contentDescription="@string/ic_consent_notification_ga_image_description"/>
86                <TextView
87                    android:layout_width="match_parent"
88                    android:layout_height="wrap_content"
89                    android:layout_marginTop="@dimen/adservices_content_half_padding"
90                    android:text="@string/notificationUI_container3_ga_introduction_v2"
91                    style="@style/MainStyle.Body1" />
92                <TextView
93                    android:id="@+id/how_it_works_expander"
94                    android:drawableEnd="@drawable/ic_expand"
95                    android:layout_marginTop="@dimen/adservices_content_two_thirds_padding"
96                    android:text="@string/notificationUI_ga_container1_control_text_v2"
97                    style="@style/MainStyle.Body1" />
98                <LinearLayout
99                    android:id="@+id/how_it_works_expanded_text"
100                    android:layout_width="match_parent"
101                    android:layout_height="wrap_content"
102                    android:orientation="vertical"
103                    android:visibility="gone" >
104                    <TextView
105                        android:text="@string/notificationUI_how_it_works_row_subtitle1_v2"
106                        style="@style/MainStyle.Body1Bold" />
107                    <TextView
108                        android:text="@string/notificationUI_how_it_works_row_body1_v2"
109                        android:layout_marginTop="0dp"
110                        style="@style/MainStyle.Body1" />
111                    <TextView
112                        android:text="@string/notificationUI_how_it_works_row_body2_v2"
113                        android:layout_marginTop="@dimen/adservices_content_three_quarter_padding"
114                        style="@style/MainStyle.Body1BulletSubtext" />
115                    <TextView
116                        android:text="@string/notificationUI_how_it_works_row_body3_v2"
117                        android:layout_marginTop="@dimen/adservices_content_three_quarter_padding"
118                        style="@style/MainStyle.Body1BulletSubtext" />
119                    <TextView
120                        android:text="@string/notificationUI_how_it_works_row_body4_v2"
121                        style="@style/MainStyle.Body1" />
122                    <TextView
123                        android:text="@string/notificationUI_how_it_works_row_body5_v2"
124                        style="@style/MainStyle.Body1" />
125                    <TextView
126                        android:text="@string/notificationUI_how_it_works_subtitle2_v2"
127                        style="@style/MainStyle.Body1Bold" />
128                    <TextView
129                        android:text="@string/notificationUI_how_it_works_row_body6_v2"
130                        android:layout_marginTop="0dp"
131                        style="@style/MainStyle.Body1" />
132                    <TextView
133                        android:id="@+id/learn_more_from_privacy_policy"
134                        android:text="@string/notificationUI_how_it_works_row_body7_v2"
135                        style="@style/MainStyle.Body1" />
136                </LinearLayout>
137            </LinearLayout>
138            <TextView
139                android:layout_width="match_parent"
140                android:layout_height="wrap_content"
141                android:layout_marginTop="@dimen/adservices_content_padding"
142                android:text="@string/notificationUI_you_can_change_in_privacy_settings_v2"
143                style="@style/MainStyle.Body1" />
144        </LinearLayout>
145    </ScrollView>
146
147    <androidx.constraintlayout.widget.ConstraintLayout
148        android:id="@+id/nav_buttons"
149        android:layout_width="match_parent"
150        android:layout_height="wrap_content"
151        app:layout_constraintBottom_toBottomOf="parent"
152        app:layout_constraintEnd_toEndOf="parent"
153        app:layout_constraintStart_toStartOf="parent" >
154        <View
155            android:layout_width="match_parent"
156            android:layout_height="@dimen/adservices_divider_height"
157            android:background="@color/divider_color"
158            app:layout_constraintEnd_toEndOf="parent"
159            app:layout_constraintStart_toStartOf="parent"
160            app:layout_constraintTop_toTopOf="parent" />
161        <LinearLayout
162            style="@style/NotificationButtonContainer"
163            app:layout_constraintBottom_toBottomOf="parent"
164            app:layout_constraintEnd_toEndOf="parent"
165            app:layout_constraintStart_toStartOf="parent">
166            <Button
167                android:id="@+id/leftControlButton"
168                style="@style/MainStyle.PrimaryButtonNegative"
169                android:text="@string/notificationUI_left_control_button_text"
170                app:layout_constraintStart_toStartOf="parent"
171                app:layout_constraintTop_toTopOf="parent"/>
172            <Button
173                android:id="@+id/rightControlButton"
174                style="@style/MainStyle.PrimaryButton"
175                android:text="@string/notificationUI_right_control_button_text"
176                app:layout_constraintEnd_toEndOf="parent"
177                app:layout_constraintTop_toTopOf="parent" />
178        </LinearLayout>
179    </androidx.constraintlayout.widget.ConstraintLayout>
180</androidx.constraintlayout.widget.ConstraintLayout>
181