blob: 74a4c6e3dee4531d870cb3306724d98ffccff578 [file] [log] [blame]
Julia Reynoldsb5867452018-02-28 16:31:35 -05001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright 2018, 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<com.android.systemui.statusbar.AppOpsInfo
19 xmlns:android="http://schemas.android.com/apk/res/android"
20 android:layout_width="match_parent"
21 android:layout_height="wrap_content"
22 android:id="@+id/app_ops_info"
23 android:clickable="true"
24 android:orientation="vertical"
25 android:paddingStart="@*android:dimen/notification_content_margin_start"
26 android:paddingEnd="@*android:dimen/notification_content_margin_end"
27 android:background="@color/notification_guts_bg_color"
28 android:theme="@*android:style/Theme.DeviceDefault.Light">
29
30 <!-- Package Info -->
31 <RelativeLayout
32 android:layout_width="match_parent"
33 android:layout_height="wrap_content"
34 android:clipChildren="false"
35 android:clipToPadding="false"
36 android:layout_marginTop="@*android:dimen/notification_header_padding_top" >
37 <ImageView
38 android:id="@+id/pkgicon"
39 android:layout_width="@dimen/notification_guts_header_height"
40 android:layout_height="@dimen/notification_guts_header_height"
41 android:layout_centerVertical="true"
42 android:layout_marginEnd="3dp" />
43 <TextView
44 android:id="@+id/pkgname"
45 android:layout_width="wrap_content"
46 android:layout_height="wrap_content"
47 android:textAppearance="@*android:style/TextAppearance.Material.Notification.Info"
48 android:layout_marginStart="3dp"
49 android:layout_marginEnd="2dp"
50 android:singleLine="true"
51 android:layout_centerVertical="true"
52 android:layout_toEndOf="@id/pkgicon" />
53 </RelativeLayout>
54
55 <TextView
56 android:id="@+id/prompt"
57 android:layout_width="wrap_content"
58 android:layout_height="wrap_content"
59 android:layout_marginTop="@*android:dimen/notification_header_padding_top"
60 style="@style/TextAppearance.NotificationInfo.Secondary" />
61
62 <!-- Settings and Done buttons -->
63 <LinearLayout
64 android:layout_width="match_parent"
65 android:layout_height="wrap_content"
66 android:orientation="horizontal"
67 android:layout_marginTop="@dimen/notification_guts_button_spacing"
68 android:layout_marginBottom="@dimen/notification_guts_button_spacing"
69 android:gravity="end" >
70
71 <TextView
72 android:id="@+id/settings"
73 android:text="@string/notification_appops_settings"
74 android:layout_width="wrap_content"
75 android:layout_height="match_parent"
76 android:background="@drawable/ripple_drawable"
77 style="@style/TextAppearance.NotificationInfo.Button"/>
78 <TextView
79 android:id="@+id/ok"
80 android:text="@string/notification_appops_ok"
81 android:layout_width="wrap_content"
82 android:layout_height="match_parent"
83 android:background="@drawable/ripple_drawable"
84 android:minWidth="48dp"
85 android:layout_marginStart="8dp"
86 android:layout_marginEnd="-8dp"
87 style="@style/TextAppearance.NotificationInfo.Button"/>
88 </LinearLayout>
89</com.android.systemui.statusbar.AppOpsInfo>