1<!-- 2 ~ Copyright (C) 2023 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<androidx.core.widget.NestedScrollView 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content"> 21 22 <LinearLayout 23 android:layout_width="match_parent" 24 android:layout_height="wrap_content" 25 android:layout_marginTop="24dp" 26 android:layout_marginStart="16dp" 27 android:layout_marginEnd="16dp" 28 android:orientation="vertical"> 29 30 <!-- Header --> 31 <LinearLayout 32 android:layout_width="match_parent" 33 android:layout_height="match_parent" 34 android:orientation="vertical" 35 android:gravity="center"> 36 <TextView 37 android:layout_width="wrap_content" 38 android:layout_height="wrap_content" 39 android:textAppearance="?android:attr/textAppearanceLarge" 40 android:fontFamily="@*android:string/config_headlineFontFamily" 41 android:text="@string/privacy_dialog_title" 42 android:layout_marginBottom="12dp"/> 43 <TextView 44 android:layout_width="wrap_content" 45 android:layout_height="wrap_content" 46 android:text="@string/privacy_dialog_summary" 47 android:textAppearance="?android:attr/textAppearanceSmall" 48 android:textColor="?androidprv:attr/materialColorOnSurfaceVariant" 49 android:gravity="center" 50 android:layout_marginBottom="20dp"/> 51 </LinearLayout> 52 53 <!-- Items --> 54 <LinearLayout 55 android:id="@+id/privacy_dialog_items_container" 56 android:layout_width="match_parent" 57 android:layout_height="wrap_content" 58 android:layout_marginBottom="20dp" 59 android:orientation="vertical" 60 /> 61 62 <!-- Buttons --> 63 <LinearLayout 64 android:id="@+id/button_layout" 65 android:orientation="horizontal" 66 android:layout_width="match_parent" 67 android:layout_height="wrap_content" 68 android:layout_marginBottom="18dp" 69 android:clickable="false" 70 android:focusable="false"> 71 72 <LinearLayout 73 android:layout_width="wrap_content" 74 android:layout_height="wrap_content" 75 android:layout_weight="1" 76 android:layout_gravity="start|center_vertical" 77 android:orientation="vertical"> 78 <Button 79 android:id="@+id/privacy_dialog_more_button" 80 android:layout_width="wrap_content" 81 android:layout_height="wrap_content" 82 android:text="@string/privacy_dialog_more_button" 83 android:ellipsize="end" 84 android:maxLines="1" 85 style="@style/Widget.Dialog.Button.BorderButton" 86 android:clickable="true" 87 android:focusable="true" 88 android:gravity="center"/> 89 </LinearLayout> 90 91 <LinearLayout 92 android:layout_width="wrap_content" 93 android:layout_height="wrap_content" 94 android:layout_gravity="end|center_vertical"> 95 <Button 96 android:id="@+id/privacy_dialog_close_button" 97 android:layout_width="wrap_content" 98 android:layout_height="wrap_content" 99 android:text="@string/privacy_dialog_done_button" 100 android:ellipsize="end" 101 android:maxLines="1" 102 style="@style/Widget.Dialog.Button.BorderButton" 103 android:clickable="true" 104 android:focusable="true" 105 android:gravity="center"/> 106 </LinearLayout> 107 </LinearLayout> 108 </LinearLayout> 109</androidx.core.widget.NestedScrollView>