1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2021 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<ScrollView 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="fill_parent" 20 android:layout_height="fill_parent" 21 android:textDirection="locale" 22 android:scrollbarStyle="outsideOverlay" 23 android:gravity="top"> 24 25 <LinearLayout 26 android:theme="@style/Theme.AlertDialog" 27 style="@style/AccessibilityDialog"> 28 29 <LinearLayout 30 android:layout_width="match_parent" 31 android:layout_height="wrap_content" 32 android:orientation="vertical" 33 android:gravity="center_horizontal" 34 android:paddingLeft="24dp" 35 android:paddingRight="24dp"> 36 37 <ImageView 38 android:id="@+id/app_icon" 39 style="@style/AccessibilityDialogServiceIcon" /> 40 41 <TextView 42 android:id="@+id/title" 43 style="@style/AccessibilityDialogTitle" /> 44 45 <TextView 46 android:id="@+id/prompt" 47 android:text="@string/nls_warning_prompt" 48 style="@style/AccessibilityDialogDescription" /> 49 50 <LinearLayout 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content" 53 android:orientation="horizontal" 54 android:layout_marginBottom="24dp" > 55 56 <ImageView 57 android:id="@+id/read_icon" 58 android:src="@drawable/ic_visibility_18dp" 59 android:layout_width="24dp" 60 android:layout_height="24dp" 61 style="@style/AccessibilityDialogIcon" /> 62 63 <LinearLayout 64 android:layout_width="match_parent" 65 android:layout_height="wrap_content" 66 android:orientation="vertical" > 67 68 <TextView 69 android:id="@+id/read_title" 70 android:text="@string/nls_feature_read_title" 71 style="@style/AccessibilityDialogPermissionTitle" /> 72 73 <TextView 74 android:id="@+id/read_description" 75 android:text="@string/nls_feature_read_summary" 76 style="@style/AccessibilityDialogPermissionDescription" /> 77 78 </LinearLayout> 79 80 </LinearLayout> 81 82 <LinearLayout 83 android:layout_width="match_parent" 84 android:layout_height="wrap_content" 85 android:orientation="horizontal" 86 android:layout_marginBottom="24dp" > 87 88 <ImageView 89 android:id="@+id/reply_icon" 90 android:src="@drawable/ic_promote_conversation" 91 android:layout_width="24dp" 92 android:layout_height="24dp" 93 style="@style/AccessibilityDialogIcon" /> 94 95 <LinearLayout 96 android:layout_width="match_parent" 97 android:layout_height="wrap_content" 98 android:orientation="vertical" > 99 100 <TextView 101 android:id="@+id/reply_title" 102 android:text="@string/nls_feature_reply_title" 103 style="@style/AccessibilityDialogPermissionTitle" /> 104 105 <TextView 106 android:id="@+id/reply_description" 107 android:text="@string/nls_feature_reply_summary" 108 style="@style/AccessibilityDialogPermissionDescription" /> 109 110 </LinearLayout> 111 112 </LinearLayout> 113 114 <LinearLayout 115 android:layout_width="match_parent" 116 android:layout_height="wrap_content" 117 android:orientation="horizontal" 118 android:layout_marginBottom="24dp" > 119 120 <ImageView 121 android:id="@+id/settings_icon" 122 android:src="@drawable/ic_do_not_disturb_on_24dp" 123 android:layout_width="24dp" 124 android:layout_height="24dp" 125 style="@style/AccessibilityDialogIcon" /> 126 127 <LinearLayout 128 android:layout_width="match_parent" 129 android:layout_height="wrap_content" 130 android:orientation="vertical" > 131 132 <TextView 133 android:id="@+id/settings_title" 134 android:text="@string/nls_feature_settings_title" 135 style="@style/AccessibilityDialogPermissionTitle" /> 136 137 <TextView 138 android:id="@+id/settings_description" 139 android:text="@string/nls_feature_settings_summary" 140 style="@style/AccessibilityDialogPermissionDescription" /> 141 142 </LinearLayout> 143 144 </LinearLayout> 145 146 </LinearLayout> 147 148 <!-- Buttons on bottom of dialog --> 149 <LinearLayout 150 style="@style/AccessibilityDialogButtonList"> 151 152 <Space 153 style="@style/AccessibilityDialogButtonBarSpace"/> 154 155 <Button 156 android:id="@+id/allow_button" 157 android:text="@string/accessibility_dialog_button_allow" 158 style="@style/AccessibilityDialogButton" /> 159 160 <Button 161 android:id="@+id/deny_button" 162 android:text="@string/accessibility_dialog_button_deny" 163 style="@style/AccessibilityDialogButton" /> 164 </LinearLayout> 165 </LinearLayout> 166 167</ScrollView> 168