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