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:layout_marginStart="@dimen/adservices_content_horizontal_two_thirds_padding"
46                android:layout_marginEnd="@dimen/adservices_content_horizontal_two_thirds_padding"
47                android:orientation="vertical">
48                <ImageView
49                    android:layout_width="wrap_content"
50                    android:layout_height="wrap_content"
51                    android:layout_marginTop="@dimen/adservices_content_3x_padding"
52                    android:layout_marginStart="0dp"
53                    android:src="@drawable/ic_android_icon"
54                    tools:ignore="ContentDescription" />
55
56                <TextView
57                    android:text="@string/notificationUI_header_title"
58                    style="@style/MainStyle.H1" />
59
60            </LinearLayout>
61
62            <LinearLayout
63                android:id="@+id/container1"
64                android:layout_width="match_parent"
65                android:layout_height="wrap_content"
66                android:layout_marginTop="@dimen/adservices_content_two_thirds_padding"
67                android:padding="@dimen/adservices_content_padding"
68                android:background="@drawable/ic_rounded_background"
69                android:orientation="vertical"
70                android:animateLayoutChanges="true">
71                <TextView
72                    android:layout_width="match_parent"
73                    android:layout_height="wrap_content"
74                    android:text="@string/notificationUI_container1_title"
75                    style="@style/MainStyle.H4"
76                    android:gravity="center_vertical"
77                    android:drawableStart="@drawable/ic_notification_icon_1"
78                    android:drawablePadding="@dimen/adservices_ic_notification_padding"/>
79                <TextView
80                    android:layout_width="match_parent"
81                    android:layout_height="wrap_content"
82                    android:layout_marginTop="@dimen/adservices_content_half_padding"
83                    android:text="@string/notificationUI_container1_body_text"
84                    style="@style/MainStyle.Body1" />
85
86                <View
87                    android:layout_width="match_parent"
88                    android:layout_height="@dimen/adservices_divider_height"
89                    android:layout_marginTop="@dimen/adservices_content_two_thirds_padding"
90                    android:layout_marginBottom="@dimen/adservices_content_two_thirds_padding"
91                    android:background="@color/divider_color" />
92
93                <TextView
94                    android:id="@+id/how_it_works_expander"
95                    android:drawableEnd="@drawable/ic_expand"
96                    android:layout_marginTop="0dp"
97                    android:text="@string/notificationUI_container1_control_text"
98                    style="@style/MainStyle.Body1" />
99                <LinearLayout
100                    android:id="@+id/how_it_works_expanded_text"
101                    android:layout_width="match_parent"
102                    android:layout_height="wrap_content"
103                    android:orientation="vertical"
104                    android:visibility="gone" >
105                    <TextView
106                        android:text="@string/notificationUI_how_it_works_expanded_text1"
107                        style="@style/MainStyle.Body1" />
108                    <TextView
109                        android:text="@string/notificationUI_how_it_works_expanded_text2"
110                        style="@style/MainStyle.H5" />
111                    <TextView
112                        android:text="@string/notificationUI_how_it_works_expanded_text3"
113                        style="@style/MainStyle.Body1BoldBullet" />
114                    <TextView
115                        android:text="@string/notificationUI_how_it_works_expanded_text4"
116                        style="@style/MainStyle.Body1BulletSubtext" />
117                    <TextView
118                        style="@style/MainStyle.Body1BoldBullet"
119                        android:text="@string/notificationUI_how_it_works_expanded_text5" />
120                    <TextView
121                        android:text="@string/notificationUI_how_it_works_expanded_text6"
122                        style="@style/MainStyle.Body1BulletSubtext" />
123                </LinearLayout>
124            </LinearLayout>
125
126            <LinearLayout
127                android:id="@+id/container2"
128                android:layout_width="match_parent"
129                android:layout_height="wrap_content"
130                android:layout_marginTop="@dimen/adservices_content_two_thirds_padding"
131                android:padding="@dimen/adservices_content_padding"
132                android:background="@drawable/ic_rounded_background"
133                android:orientation="vertical">
134                <TextView
135                    android:layout_width="match_parent"
136                    android:layout_height="wrap_content"
137                    android:text="@string/notificationUI_container2_title"
138                    style="@style/MainStyle.H4"
139                    android:gravity="center_vertical"
140                    android:drawableStart="@drawable/ic_notification_icon_2"
141                    android:drawablePadding="@dimen/adservices_ic_notification_padding"/>
142                <TextView
143                    android:layout_marginTop="@dimen/adservices_content_half_padding"
144                    android:text="@string/notificationUI_container2_body_text"
145                    style="@style/MainStyle.Body1" />
146            </LinearLayout>
147
148        </LinearLayout>
149    </ScrollView>
150
151    <androidx.constraintlayout.widget.ConstraintLayout
152        android:id="@+id/nav_buttons"
153        android:layout_width="match_parent"
154        android:layout_height="wrap_content"
155        app:layout_constraintBottom_toBottomOf="parent"
156        app:layout_constraintEnd_toEndOf="parent"
157        app:layout_constraintStart_toStartOf="parent" >
158        <View
159            android:layout_width="match_parent"
160            android:layout_height="@dimen/adservices_divider_height"
161            android:background="@color/divider_color"
162            app:layout_constraintEnd_toEndOf="parent"
163            app:layout_constraintStart_toStartOf="parent"
164            app:layout_constraintTop_toTopOf="parent" />
165        <androidx.constraintlayout.widget.ConstraintLayout
166            style="@style/NotificationButtonContainer"
167            app:layout_constraintBottom_toBottomOf="parent"
168            app:layout_constraintEnd_toEndOf="parent"
169            app:layout_constraintStart_toStartOf="parent">
170            <Button
171                android:id="@+id/leftControlButton"
172                style="@style/MainStyle.PrimaryButtonVariant"
173                android:text="@string/notificationUI_left_control_button_text"
174                app:layout_constraintStart_toStartOf="parent"
175                app:layout_constraintTop_toTopOf="parent" />
176            <Button
177                android:id="@+id/rightControlButton"
178                style="@style/MainStyle.PrimaryButton"
179                android:text="@string/notificationUI_right_control_button_text"
180                app:layout_constraintEnd_toEndOf="parent"
181                app:layout_constraintTop_toTopOf="parent" />
182        </androidx.constraintlayout.widget.ConstraintLayout>
183    </androidx.constraintlayout.widget.ConstraintLayout>
184</androidx.constraintlayout.widget.ConstraintLayout>
185