• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2019 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License
16  -->
17
18<ScrollView
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    android:layout_width="fill_parent"
21    android:layout_height="fill_parent"
22    android:textDirection="locale"
23    android:scrollbarStyle="outsideOverlay"
24    android:gravity="top">
25
26    <LinearLayout
27        android:theme="@style/Theme.AlertDialog"
28        style="@style/AccessibilityDialog">
29
30        <LinearLayout
31            android:layout_width="match_parent"
32            android:layout_height="wrap_content"
33            android:orientation="vertical"
34            android:gravity="center_horizontal"
35            android:paddingTop="32dp"
36            android:paddingLeft="24dp"
37            android:paddingRight="24dp">
38
39            <TextView
40                android:id="@+id/permissionDialog_disable_title"
41                style="@style/AccessibilityDialogTitle" />
42
43            <TextView
44                android:id="@+id/permissionDialog_disable_message"
45                android:gravity="center"
46                android:text="@string/accessibility_service_warning_description"
47                style="@style/AccessibilityDialogDescription" />
48
49        </LinearLayout>
50            <!-- Buttons on bottom of dialog -->
51            <LinearLayout
52                style="@style/AccessibilityDialogButtonList">
53
54                <Space
55                    style="@style/AccessibilityDialogButtonBarSpace"/>
56
57                <Button
58                    android:id="@+id/permission_disable_stop_button"
59                    android:text="@string/accessibility_dialog_button_stop"
60                    style="@style/AccessibilityDialogButtonAllow" />
61
62                <Button
63                    android:id="@+id/permission_disable_cancel_button"
64                    android:text="@string/accessibility_dialog_button_cancel"
65                    style="@style/AccessibilityDialogButtonDeny" />
66
67            </LinearLayout>
68
69    </LinearLayout>
70
71</ScrollView>
72