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            <ImageView
43                android:layout_width="wrap_content"
44                android:layout_height="wrap_content"
45                android:layout_marginTop="@dimen/adservices_content_3x_padding"
46                android:layout_marginStart="0dp"
47                android:src="@drawable/ic_android_icon"
48                tools:ignore="ContentDescription" />
49            <TextView
50                android:text="@string/notificationUI_u18_header_title"
51                style="@style/MainStyle.H1" />
52
53            <LinearLayout
54                android:id="@+id/container1"
55                android:layout_width="match_parent"
56                android:layout_height="wrap_content"
57                android:layout_marginTop="@dimen/adservices_content_two_thirds_padding"
58                android:orientation="vertical"
59                android:animateLayoutChanges="true">
60                <ImageView
61                    android:layout_width="match_parent"
62                    android:layout_height="wrap_content"
63                    android:src="@drawable/ic_main_view_ga_image"
64                    android:contentDescription="@string/ic_main_view_ga_image_description"/>
65                <TextView
66                    android:layout_width="match_parent"
67                    android:layout_height="wrap_content"
68                    android:layout_marginTop="@dimen/adservices_content_half_padding"
69                    android:text="@string/notificationUI_u18_body1"
70                    style="@style/MainStyle.Body1" />
71                <TextView
72                    android:id="@+id/learn_more_from_privacy_policy"
73                    android:layout_width="match_parent"
74                    android:layout_height="wrap_content"
75                    android:layout_marginTop="@dimen/adservices_content_half_padding"
76                    android:text="@string/notificationUI_u18_body2"
77                    style="@style/MainStyle.Body1" />
78                <TextView
79                    android:layout_width="match_parent"
80                    android:layout_height="wrap_content"
81                    android:layout_marginTop="@dimen/adservices_content_half_padding"
82                    android:text="@string/notificationUI_u18_body3"
83                    style="@style/MainStyle.Body1" />
84            </LinearLayout>
85
86        </LinearLayout>
87    </ScrollView>
88
89    <androidx.constraintlayout.widget.ConstraintLayout
90        android:id="@+id/nav_buttons"
91        android:layout_width="match_parent"
92        android:layout_height="wrap_content"
93        app:layout_constraintBottom_toBottomOf="parent"
94        app:layout_constraintEnd_toEndOf="parent"
95        app:layout_constraintStart_toStartOf="parent" >
96        <View
97            android:layout_width="match_parent"
98            android:layout_height="@dimen/adservices_divider_height"
99            android:background="@color/divider_color"
100            app:layout_constraintEnd_toEndOf="parent"
101            app:layout_constraintStart_toStartOf="parent"
102            app:layout_constraintTop_toTopOf="parent" />
103        <LinearLayout
104            style="@style/NotificationButtonContainer"
105            app:layout_constraintBottom_toBottomOf="parent"
106            app:layout_constraintEnd_toEndOf="parent"
107            app:layout_constraintStart_toStartOf="parent">
108            <Button
109                android:id="@+id/leftControlButton"
110                style="@style/MainStyle.PrimaryButtonNegative"
111                android:text="@string/notificationUI_u18_left_control_button_text"
112                app:layout_constraintStart_toStartOf="parent"
113                app:layout_constraintTop_toTopOf="parent"/>
114            <Button
115                android:id="@+id/rightControlButton"
116                style="@style/MainStyle.PrimaryButton"
117                android:text="@string/notificationUI_u18_right_control_button_text"
118                app:layout_constraintEnd_toEndOf="parent"
119                app:layout_constraintTop_toTopOf="parent" />
120        </LinearLayout>
121    </androidx.constraintlayout.widget.ConstraintLayout>
122</androidx.constraintlayout.widget.ConstraintLayout>
123