1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2013 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/permissionDialog_icon" 39 style="@style/AccessibilityDialogServiceIcon" /> 40 41 <TextView 42 android:id="@+id/permissionDialog_title" 43 style="@style/AccessibilityDialogTitle" /> 44 45 <TextView 46 android:id="@+id/encryption_warning" 47 android:layout_width="fill_parent" 48 android:layout_height="wrap_content" 49 android:padding="10dip" 50 android:textAlignment="viewStart" 51 android:textAppearance="?android:attr/textAppearanceMedium"/> 52 53 <TextView 54 android:id="@+id/permissionDialog_description" 55 android:text="@string/accessibility_service_warning_description" 56 style="@style/AccessibilityDialogDescription" /> 57 58 <LinearLayout 59 android:layout_width="match_parent" 60 android:layout_height="wrap_content" 61 android:orientation="horizontal" 62 android:layout_marginBottom="24dp" > 63 64 <ImageView 65 android:id="@+id/controlScreen_icon" 66 android:src="@drawable/ic_visibility_18dp" 67 style="@style/AccessibilityDialogIcon" /> 68 69 <LinearLayout 70 android:layout_width="match_parent" 71 android:layout_height="wrap_content" 72 android:orientation="vertical" > 73 74 <TextView 75 android:id="@+id/controlScreen_title" 76 android:text="@string/accessibility_service_screen_control_title" 77 style="@style/AccessibilityDialogPermissionTitle" /> 78 79 <TextView 80 android:id="@+id/controlScreen_description" 81 android:text="@string/accessibility_service_screen_control_description" 82 style="@style/AccessibilityDialogPermissionDescription" /> 83 84 </LinearLayout> 85 86 </LinearLayout> 87 88 <LinearLayout 89 android:layout_width="match_parent" 90 android:layout_height="wrap_content" 91 android:orientation="horizontal" 92 android:layout_marginBottom="24dp" > 93 94 <ImageView 95 android:id="@+id/performAction_icon" 96 android:src="@drawable/ic_pan_tool_18dp" 97 style="@style/AccessibilityDialogIcon" /> 98 99 <LinearLayout 100 android:layout_width="match_parent" 101 android:layout_height="wrap_content" 102 android:orientation="vertical" > 103 104 <TextView 105 android:id="@+id/performAction_title" 106 android:text="@string/accessibility_service_action_perform_title" 107 style="@style/AccessibilityDialogPermissionTitle" /> 108 109 <TextView 110 android:id="@+id/performAction_description" 111 android:text="@string/accessibility_service_action_perform_description" 112 style="@style/AccessibilityDialogPermissionDescription" /> 113 114 </LinearLayout> 115 116 </LinearLayout> 117 118 </LinearLayout> 119 120 <!-- Buttons on bottom of dialog --> 121 <LinearLayout 122 style="@style/AccessibilityDialogButtonList"> 123 124 <Space 125 style="@style/AccessibilityDialogButtonBarSpace"/> 126 127 <Button 128 android:id="@+id/permission_enable_allow_button" 129 android:text="@string/accessibility_dialog_button_allow" 130 style="@style/AccessibilityDialogButton" /> 131 132 <Button 133 android:id="@+id/permission_enable_deny_button" 134 android:text="@string/accessibility_dialog_button_deny" 135 style="@style/AccessibilityDialogButton" /> 136 137 </LinearLayout> 138 </LinearLayout> 139 140</ScrollView> 141