blob: 667c857b696764a26011bc9616a37f57874c3423 [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
Rohan Shah20790b82018-07-02 17:21:04 -070018<com.android.systemui.statusbar.notification.row.AppOpsInfo
Julia Reynoldsb5867452018-02-28 16:31:35 -050019 xmlns:android="http://schemas.android.com/apk/res/android"
20 android:layout_width="match_parent"
21 android:layout_height="wrap_content"
Beverly63273d42020-04-10 09:15:41 -040022 android:focusable="true"
Julia Reynoldsb5867452018-02-28 16:31:35 -050023 android:id="@+id/app_ops_info"
Rohan Shah75bb1282018-04-30 13:50:13 -070024 android:clipChildren="false"
25 android:clipToPadding="false"
Julia Reynoldsb5867452018-02-28 16:31:35 -050026 android:orientation="vertical"
27 android:paddingStart="@*android:dimen/notification_content_margin_start"
28 android:paddingEnd="@*android:dimen/notification_content_margin_end"
Julia Reynolds146e1572020-02-25 16:29:52 -050029 android:background="@color/notification_material_background_color"
Julia Reynoldsb5867452018-02-28 16:31:35 -050030 android:theme="@*android:style/Theme.DeviceDefault.Light">
31
32 <!-- Package Info -->
33 <RelativeLayout
34 android:layout_width="match_parent"
35 android:layout_height="wrap_content"
36 android:clipChildren="false"
37 android:clipToPadding="false"
38 android:layout_marginTop="@*android:dimen/notification_header_padding_top" >
39 <ImageView
40 android:id="@+id/pkgicon"
41 android:layout_width="@dimen/notification_guts_header_height"
42 android:layout_height="@dimen/notification_guts_header_height"
43 android:layout_centerVertical="true"
44 android:layout_marginEnd="3dp" />
45 <TextView
46 android:id="@+id/pkgname"
47 android:layout_width="wrap_content"
48 android:layout_height="wrap_content"
49 android:textAppearance="@*android:style/TextAppearance.Material.Notification.Info"
50 android:layout_marginStart="3dp"
51 android:layout_marginEnd="2dp"
52 android:singleLine="true"
53 android:layout_centerVertical="true"
54 android:layout_toEndOf="@id/pkgicon" />
55 </RelativeLayout>
56
57 <TextView
58 android:id="@+id/prompt"
59 android:layout_width="wrap_content"
60 android:layout_height="wrap_content"
61 android:layout_marginTop="@*android:dimen/notification_header_padding_top"
62 style="@style/TextAppearance.NotificationInfo.Secondary" />
63
64 <!-- Settings and Done buttons -->
Beverly04aa4112020-04-17 11:38:11 -040065 <RelativeLayout
66 android:id="@+id/bottom_buttons"
Julia Reynoldsb5867452018-02-28 16:31:35 -050067 android:layout_width="match_parent"
68 android:layout_height="wrap_content"
Beverly04aa4112020-04-17 11:38:11 -040069 android:gravity="center_vertical"
70 android:paddingStart="4dp"
71 android:paddingEnd="4dp">
Julia Reynoldsb5867452018-02-28 16:31:35 -050072 <TextView
73 android:id="@+id/settings"
74 android:text="@string/notification_appops_settings"
75 android:layout_width="wrap_content"
Beverly04aa4112020-04-17 11:38:11 -040076 android:layout_height="wrap_content"
77 android:layout_toStartOf="@+id/ok"
78 android:gravity="center_vertical"
Julia Reynoldsb5867452018-02-28 16:31:35 -050079 android:background="@drawable/ripple_drawable"
Beverly04aa4112020-04-17 11:38:11 -040080 android:layout_marginEnd="8dp"
81 android:minWidth="@dimen/min_clickable_item_size"
82 android:minHeight="@dimen/min_clickable_item_size"
Julia Reynoldsb5867452018-02-28 16:31:35 -050083 style="@style/TextAppearance.NotificationInfo.Button"/>
84 <TextView
85 android:id="@+id/ok"
86 android:text="@string/notification_appops_ok"
87 android:layout_width="wrap_content"
Beverly04aa4112020-04-17 11:38:11 -040088 android:layout_height="wrap_content"
89 android:layout_alignParentEnd="true"
90 android:gravity="end|center_vertical"
Julia Reynoldsb5867452018-02-28 16:31:35 -050091 android:background="@drawable/ripple_drawable"
Beverly04aa4112020-04-17 11:38:11 -040092 android:minWidth="@dimen/min_clickable_item_size"
93 android:minHeight="@dimen/min_clickable_item_size"
Julia Reynoldsb5867452018-02-28 16:31:35 -050094 style="@style/TextAppearance.NotificationInfo.Button"/>
Beverly04aa4112020-04-17 11:38:11 -040095 </RelativeLayout>
Rohan Shah20790b82018-07-02 17:21:04 -070096</com.android.systemui.statusbar.notification.row.AppOpsInfo>