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 xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:app="http://schemas.android.com/apk/res-auto" 19 xmlns:tools="http://schemas.android.com/tools" 20 android:orientation="vertical" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent"> 23 <ScrollView 24 android:id="@+id/notification_fragment_scrollview" 25 android:layout_width="match_parent" 26 android:layout_height="0dp" 27 android:scrollbars="vertical" 28 app:layout_constraintTop_toTopOf="parent" 29 app:layout_constraintBottom_toTopOf="@id/nav_buttons" 30 app:layout_constraintEnd_toEndOf="parent" 31 app:layout_constraintStart_toStartOf="parent"> 32 33 <LinearLayout 34 android:layout_height="wrap_content" 35 android:layout_marginStart="@dimen/adservices_content_horizontal_padding" 36 android:layout_marginEnd="@dimen/adservices_content_horizontal_padding" 37 android:animateLayoutChanges="true" 38 android:orientation="vertical" 39 android:layout_gravity="center_horizontal" 40 style="@style/NotificationContainer"> 41 <ImageView 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content" 44 android:layout_marginTop="@dimen/adservices_content_3x_padding" 45 android:layout_marginStart="0dp" 46 android:src="@drawable/ic_android_icon" 47 tools:ignore="ContentDescription" /> 48 <TextView 49 android:text="@string/notificationUI_fledge_measurement_title_v2" 50 style="@style/MainStyle.H1" /> 51 <ImageView 52 android:layout_width="match_parent" 53 android:layout_height="wrap_content" 54 android:layout_marginTop="@dimen/adservices_content_two_thirds_padding" 55 android:src="@drawable/ic_main_view_ga_image" 56 android:contentDescription="@string/ic_main_view_ga_image_description"/> 57 <TextView 58 android:text="@string/notificationUI_fledge_measurement_introduction_text1_v2" 59 style="@style/MainStyle.Body1" /> 60 <TextView 61 android:text="@string/notificationUI_fledge_measurement_introduction_text2_v2" 62 style="@style/MainStyle.Body1BulletSubtext" 63 android:layout_marginTop="@dimen/adservices_content_two_thirds_padding" /> 64 <TextView 65 android:text="@string/notificationUI_fledge_measurement_introduction_text3_v2" 66 style="@style/MainStyle.Body1BulletSubtext" 67 android:layout_marginTop="@dimen/adservices_content_two_thirds_padding" /> 68 <TextView 69 android:id="@+id/how_it_works_expander" 70 android:drawableEnd="@drawable/ic_expand" 71 android:layout_marginTop="@dimen/adservices_content_two_thirds_padding" 72 android:text="@string/notificationUI_fledge_measurement_control_ga_text_eu_v2" 73 style="@style/MainStyle.Body1" /> 74 <LinearLayout 75 android:id="@+id/how_it_works_expanded_text" 76 android:layout_width="match_parent" 77 android:layout_height="wrap_content" 78 android:orientation="vertical" 79 android:visibility="gone" > 80 <TextView 81 style="@style/MainStyle.Body1Bold" 82 android:text="@string/notificationUI_how_it_works_fledge_measurement_expanded_text0_v2" /> 83 <TextView 84 style="@style/MainStyle.Body1BoldBullet" 85 android:text="@string/notificationUI_how_it_works_fledge_measurement_expanded_text1_v2" /> 86 <TextView 87 android:text="@string/notificationUI_how_it_works_fledge_measurement_expanded_text2_v2" 88 style="@style/MainStyle.Body1BulletSubtext" /> 89 <TextView 90 style="@style/MainStyle.Body1BoldBullet" 91 android:text="@string/notificationUI_how_it_works_fledge_measurement_expanded_text3_v2" /> 92 <TextView 93 android:text="@string/notificationUI_how_it_works_fledge_measurement_expanded_text4_v2" 94 style="@style/MainStyle.Body1BulletSubtext" /> 95 <TextView 96 style="@style/MainStyle.Body1BoldBullet" 97 android:text="@string/notificationUI_how_it_works_fledge_measurement_expanded_text5_v2" /> 98 <TextView 99 android:text="@string/notificationUI_how_it_works_fledge_measurement_expanded_text6_v2" 100 style="@style/MainStyle.Body1BulletSubtext" /> 101 <TextView 102 android:layout_marginTop="@dimen/adservices_content_two_thirds_padding" 103 android:text="@string/notificationUI_how_it_works_fledge_measurement_expanded_text7_v2" 104 style="@style/MainStyle.Body1BulletSubtext" /> 105 <TextView 106 android:text="@string/notificationUI_how_it_works_fledge_measurement_expanded_text8_v2" 107 style="@style/MainStyle.Body1Bold" /> 108 <TextView 109 android:layout_marginTop="0dp" 110 android:text="@string/notificationUI_how_it_works_fledge_measurement_expanded_text9_v2" 111 style="@style/MainStyle.Body1" /> 112 </LinearLayout> 113 114 <TextView 115 android:layout_width="match_parent" 116 android:layout_height="wrap_content" 117 android:layout_marginVertical="@dimen/adservices_content_two_thirds_padding" 118 android:text="@string/notificationUI_you_can_change_in_privacy_settings_v2" 119 style="@style/MainStyle.Body1" /> 120 </LinearLayout> 121 </ScrollView> 122 <androidx.constraintlayout.widget.ConstraintLayout 123 android:id="@+id/nav_buttons" 124 android:layout_width="match_parent" 125 android:layout_height="wrap_content" 126 app:layout_constraintBottom_toBottomOf="parent" 127 app:layout_constraintEnd_toEndOf="parent" 128 app:layout_constraintStart_toStartOf="parent" > 129 <View 130 android:layout_width="match_parent" 131 android:layout_height="@dimen/adservices_divider_height" 132 android:background="@color/divider_color" 133 app:layout_constraintEnd_toEndOf="parent" 134 app:layout_constraintStart_toStartOf="parent" 135 app:layout_constraintTop_toTopOf="parent" /> 136 <LinearLayout 137 style="@style/NotificationButtonContainer" 138 app:layout_constraintBottom_toBottomOf="parent" 139 app:layout_constraintEnd_toEndOf="parent" 140 app:layout_constraintStart_toStartOf="parent"> 141 <Button 142 android:id="@+id/leftControlButton" 143 style="@style/MainStyle.PrimaryButtonNegative" 144 android:text="@string/notificationUI_confirmation_left_control_button_text" 145 app:layout_constraintStart_toStartOf="parent" 146 app:layout_constraintTop_toTopOf="parent" /> 147 <Button 148 android:id="@+id/rightControlButton" 149 style="@style/MainStyle.PrimaryButton" 150 android:text="@string/notificationUI_confirmation_right_control_button_text" 151 app:layout_constraintEnd_toEndOf="parent" 152 app:layout_constraintTop_toTopOf="parent"/> 153 </LinearLayout> 154 </androidx.constraintlayout.widget.ConstraintLayout> 155</androidx.constraintlayout.widget.ConstraintLayout> 156