Julia Reynolds | b586745 | 2018-02-28 16:31:35 -0500 | [diff] [blame] | 1 | <?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 Shah | 20790b8 | 2018-07-02 17:21:04 -0700 | [diff] [blame] | 18 | <com.android.systemui.statusbar.notification.row.AppOpsInfo |
Julia Reynolds | b586745 | 2018-02-28 16:31:35 -0500 | [diff] [blame] | 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="wrap_content" |
Beverly | 63273d4 | 2020-04-10 09:15:41 -0400 | [diff] [blame] | 22 | android:focusable="true" |
Julia Reynolds | b586745 | 2018-02-28 16:31:35 -0500 | [diff] [blame] | 23 | android:id="@+id/app_ops_info" |
Rohan Shah | 75bb128 | 2018-04-30 13:50:13 -0700 | [diff] [blame] | 24 | android:clipChildren="false" |
| 25 | android:clipToPadding="false" |
Julia Reynolds | b586745 | 2018-02-28 16:31:35 -0500 | [diff] [blame] | 26 | android:orientation="vertical" |
| 27 | android:paddingStart="@*android:dimen/notification_content_margin_start" |
| 28 | android:paddingEnd="@*android:dimen/notification_content_margin_end" |
Julia Reynolds | 146e157 | 2020-02-25 16:29:52 -0500 | [diff] [blame] | 29 | android:background="@color/notification_material_background_color" |
Julia Reynolds | b586745 | 2018-02-28 16:31:35 -0500 | [diff] [blame] | 30 | 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 --> |
Beverly | 04aa411 | 2020-04-17 11:38:11 -0400 | [diff] [blame] | 65 | <RelativeLayout |
| 66 | android:id="@+id/bottom_buttons" |
Julia Reynolds | b586745 | 2018-02-28 16:31:35 -0500 | [diff] [blame] | 67 | android:layout_width="match_parent" |
| 68 | android:layout_height="wrap_content" |
Beverly | 04aa411 | 2020-04-17 11:38:11 -0400 | [diff] [blame] | 69 | android:gravity="center_vertical" |
| 70 | android:paddingStart="4dp" |
| 71 | android:paddingEnd="4dp"> |
Julia Reynolds | b586745 | 2018-02-28 16:31:35 -0500 | [diff] [blame] | 72 | <TextView |
| 73 | android:id="@+id/settings" |
| 74 | android:text="@string/notification_appops_settings" |
| 75 | android:layout_width="wrap_content" |
Beverly | 04aa411 | 2020-04-17 11:38:11 -0400 | [diff] [blame] | 76 | android:layout_height="wrap_content" |
| 77 | android:layout_toStartOf="@+id/ok" |
| 78 | android:gravity="center_vertical" |
Julia Reynolds | b586745 | 2018-02-28 16:31:35 -0500 | [diff] [blame] | 79 | android:background="@drawable/ripple_drawable" |
Beverly | 04aa411 | 2020-04-17 11:38:11 -0400 | [diff] [blame] | 80 | android:layout_marginEnd="8dp" |
| 81 | android:minWidth="@dimen/min_clickable_item_size" |
| 82 | android:minHeight="@dimen/min_clickable_item_size" |
Julia Reynolds | b586745 | 2018-02-28 16:31:35 -0500 | [diff] [blame] | 83 | 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" |
Beverly | 04aa411 | 2020-04-17 11:38:11 -0400 | [diff] [blame] | 88 | android:layout_height="wrap_content" |
| 89 | android:layout_alignParentEnd="true" |
| 90 | android:gravity="end|center_vertical" |
Julia Reynolds | b586745 | 2018-02-28 16:31:35 -0500 | [diff] [blame] | 91 | android:background="@drawable/ripple_drawable" |
Beverly | 04aa411 | 2020-04-17 11:38:11 -0400 | [diff] [blame] | 92 | android:minWidth="@dimen/min_clickable_item_size" |
| 93 | android:minHeight="@dimen/min_clickable_item_size" |
Julia Reynolds | b586745 | 2018-02-28 16:31:35 -0500 | [diff] [blame] | 94 | style="@style/TextAppearance.NotificationInfo.Button"/> |
Beverly | 04aa411 | 2020-04-17 11:38:11 -0400 | [diff] [blame] | 95 | </RelativeLayout> |
Rohan Shah | 20790b8 | 2018-07-02 17:21:04 -0700 | [diff] [blame] | 96 | </com.android.systemui.statusbar.notification.row.AppOpsInfo> |