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:accessibilityDataSensitive="yes" 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/permissionDialog_description" 47 android:text="@string/accessibility_service_warning_description" 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/controlScreen_icon" 58 android:src="@drawable/ic_visibility_18dp" 59 style="@style/AccessibilityDialogIcon" /> 60 61 <LinearLayout 62 android:layout_width="match_parent" 63 android:layout_height="wrap_content" 64 android:orientation="vertical" > 65 66 <TextView 67 android:id="@+id/controlScreen_title" 68 android:text="@string/accessibility_service_screen_control_title" 69 style="@style/AccessibilityDialogPermissionTitle" /> 70 71 <TextView 72 android:id="@+id/controlScreen_description" 73 android:text="@string/accessibility_service_screen_control_description" 74 style="@style/AccessibilityDialogPermissionDescription" /> 75 76 </LinearLayout> 77 78 </LinearLayout> 79 80 <LinearLayout 81 android:layout_width="match_parent" 82 android:layout_height="wrap_content" 83 android:orientation="horizontal" 84 android:layout_marginBottom="24dp" > 85 86 <ImageView 87 android:id="@+id/performAction_icon" 88 android:src="@drawable/ic_pan_tool_18dp" 89 style="@style/AccessibilityDialogIcon" /> 90 91 <LinearLayout 92 android:layout_width="match_parent" 93 android:layout_height="wrap_content" 94 android:orientation="vertical" > 95 96 <TextView 97 android:id="@+id/performAction_title" 98 android:text="@string/accessibility_service_action_perform_title" 99 style="@style/AccessibilityDialogPermissionTitle" /> 100 101 <TextView 102 android:id="@+id/performAction_description" 103 android:text="@string/accessibility_service_action_perform_description" 104 style="@style/AccessibilityDialogPermissionDescription" /> 105 106 </LinearLayout> 107 108 </LinearLayout> 109 110 </LinearLayout> 111 112 <!-- Buttons on bottom of dialog --> 113 <LinearLayout 114 style="@style/AccessibilityDialogButtonList"> 115 116 <Space 117 style="@style/AccessibilityDialogButtonBarSpace"/> 118 119 <Button 120 android:id="@+id/permission_enable_allow_button" 121 android:text="@string/accessibility_dialog_button_allow" 122 style="@style/AccessibilityDialogButton" /> 123 124 <Button 125 android:id="@+id/permission_enable_deny_button" 126 android:text="@string/accessibility_dialog_button_deny" 127 style="@style/AccessibilityDialogButton" /> 128 129 <Button 130 android:id="@+id/permission_enable_uninstall_button" 131 android:text="@string/uninstall_text" 132 android:visibility="gone" 133 style="@style/AccessibilityDialogButton" /> 134 </LinearLayout> 135 </LinearLayout> 136 137</ScrollView> 138