• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2015 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<com.android.packageinstaller.permission.ui.ManualLayoutFrame
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="fill_parent"
20    android:layout_height="fill_parent"
21    android:clipChildren="false"
22    android:paddingLeft="16dp"
23    android:paddingRight="16dp"
24    android:paddingTop="8dp"
25    android:paddingBottom="32dp"
26    android:clipToPadding="false">
27
28    <ScrollView android:layout_width="wrap_content"
29            android:layout_height="wrap_content">
30
31    <LinearLayout
32        android:id="@+id/dialog_container"
33        android:layout_width="wrap_content"
34        android:layout_height="wrap_content"
35        android:orientation="vertical"
36        android:elevation="16dp"
37        android:background="@drawable/dialog_background">
38
39        <FrameLayout
40            android:id="@+id/desc_container"
41            android:layout_width="match_parent"
42            android:layout_height="wrap_content"
43            android:paddingTop="18dip"
44            android:paddingStart="20dip"
45            android:paddingEnd="16dip">
46            <include
47                layout="@layout/permission_description" />
48        </FrameLayout>
49
50        <LinearLayout
51            android:layout_width="match_parent"
52            android:layout_height="wrap_content"
53            android:orientation="vertical"
54            android:paddingStart="20dip"
55            android:paddingEnd="16dip">
56
57            <CheckBox
58                android:id="@+id/do_not_ask_checkbox"
59                android:layout_width="fill_parent"
60                android:layout_height="wrap_content"
61                android:layout_marginTop="8dp"
62                android:layout_marginBottom="-12dp"
63                android:minHeight="48dp"
64                android:text="@string/never_ask_again"
65                android:textColor="?android:attr/textColorPrimary"
66                style="?android:attr/textAppearanceSmall"
67                android:visibility="gone">
68            </CheckBox>
69
70            <LinearLayout
71                android:layout_width="fill_parent"
72                android:layout_height="wrap_content"
73                android:orientation="horizontal"
74                android:paddingStart="6dip"
75                android:paddingTop="4dp"
76                android:paddingBottom="4dp">
77
78                <LinearLayout
79                    android:layout_width="wrap_content"
80                    android:layout_height="wrap_content"
81                    android:layout_gravity="bottom"
82                    android:gravity="center"
83                    android:orientation="horizontal">
84                    <!-- dummy to enforce correct height -->
85                    <Button
86                        android:layout_width="0dp"
87                        android:layout_height="wrap_content"
88                        style="?android:attr/buttonBarButtonStyle"
89                        android:visibility="invisible">
90                    </Button>
91
92                    <TextView
93                        android:id="@+id/current_page_text"
94                        android:layout_width="wrap_content"
95                        android:layout_height="wrap_content"
96                        android:paddingEnd="12dp"
97                        android:singleLine="true"
98                        style="?android:attr/textAppearanceSmall"
99                        android:textColor="?android:attr/textColorSecondary"
100                        android:visibility="gone">
101                    </TextView>
102
103                    <Button
104                        android:id="@+id/permission_more_info_button"
105                        android:layout_width="wrap_content"
106                        android:layout_height="wrap_content"
107                        style="?android:attr/buttonBarButtonStyle"
108                        android:text="@string/grant_dialog_button_more_info"
109                        android:visibility="gone">
110                    </Button>
111                </LinearLayout>
112
113                <com.android.packageinstaller.permission.ui.ButtonBarLayout
114                    android:id="@+id/button_group"
115                    android:layout_width="wrap_content"
116                    android:layout_height="wrap_content"
117                    android:layout_gravity="bottom"
118                    android:layout_weight="1"
119                    android:orientation="horizontal"
120                    android:gravity="bottom">
121
122                    <Space
123                        android:id="@+id/spacer"
124                        android:layout_width="0dp"
125                        android:layout_height="0dp"
126                        android:layout_weight="1"
127                        android:visibility="invisible" >
128                    </Space>
129
130                    <Button
131                        android:id="@+id/permission_deny_button"
132                        android:layout_width="wrap_content"
133                        android:layout_height="wrap_content"
134                        style="?android:attr/buttonBarButtonStyle"
135                        android:text="@string/grant_dialog_button_deny" >
136                    </Button>
137
138                    <Button
139                        android:id="@+id/permission_allow_button"
140                        android:layout_width="wrap_content"
141                        android:layout_height="wrap_content"
142                        style="?android:attr/buttonBarButtonStyle"
143                        android:text="@string/grant_dialog_button_allow" >
144                    </Button>
145
146                </com.android.packageinstaller.permission.ui.ButtonBarLayout>
147
148            </LinearLayout>
149
150        </LinearLayout>
151
152    </LinearLayout>
153
154    </ScrollView>
155
156</com.android.packageinstaller.permission.ui.ManualLayoutFrame>
157