Mady Mellor | 87d7945 | 2017-01-10 11:52:52 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright 2017, 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.NotificationInfo |
Rohan Shah | c032ac9 | 2018-05-03 16:58:37 -0700 | [diff] [blame] | 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | android:id="@+id/notification_guts" |
| 21 | android:layout_width="match_parent" |
| 22 | android:layout_height="wrap_content" |
| 23 | android:clickable="true" |
| 24 | android:clipChildren="false" |
| 25 | android:clipToPadding="false" |
| 26 | android:orientation="vertical" |
| 27 | android:background="@color/notification_guts_bg_color" |
| 28 | android:theme="@*android:style/Theme.DeviceDefault.Light"> |
Mady Mellor | 87d7945 | 2017-01-10 11:52:52 -0800 | [diff] [blame] | 29 | |
Geoffrey Pitsch | df44b60 | 2017-02-03 13:31:50 -0500 | [diff] [blame] | 30 | <!-- Package Info --> |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 31 | <RelativeLayout |
Julia Reynolds | e034148 | 2018-03-08 14:42:50 -0500 | [diff] [blame] | 32 | android:id="@+id/header" |
Mady Mellor | 87d7945 | 2017-01-10 11:52:52 -0800 | [diff] [blame] | 33 | android:layout_width="match_parent" |
Julia Reynolds | 6c23883 | 2018-02-15 09:49:27 -0500 | [diff] [blame] | 34 | android:layout_height="wrap_content" |
Rohan Shah | c032ac9 | 2018-05-03 16:58:37 -0700 | [diff] [blame] | 35 | android:layout_marginStart="@*android:dimen/notification_content_margin_start" |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 36 | android:clipChildren="false" |
Rohan Shah | 75bb128 | 2018-04-30 13:50:13 -0700 | [diff] [blame] | 37 | android:clipToPadding="false"> |
Geoffrey Pitsch | df44b60 | 2017-02-03 13:31:50 -0500 | [diff] [blame] | 38 | <ImageView |
| 39 | android:id="@+id/pkgicon" |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 40 | android:layout_width="@dimen/notification_guts_header_height" |
| 41 | android:layout_height="@dimen/notification_guts_header_height" |
Julia Reynolds | 6c23883 | 2018-02-15 09:49:27 -0500 | [diff] [blame] | 42 | android:layout_centerVertical="true" |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 43 | android:layout_marginEnd="3dp" /> |
Mady Mellor | 87d7945 | 2017-01-10 11:52:52 -0800 | [diff] [blame] | 44 | <TextView |
| 45 | android:id="@+id/pkgname" |
| 46 | android:layout_width="wrap_content" |
| 47 | android:layout_height="wrap_content" |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 48 | android:textAppearance="@*android:style/TextAppearance.Material.Notification.Info" |
| 49 | android:layout_marginStart="3dp" |
| 50 | android:layout_marginEnd="2dp" |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 51 | android:singleLine="true" |
| 52 | android:layout_centerVertical="true" |
| 53 | android:layout_toEndOf="@id/pkgicon" /> |
Mady Mellor | 87d7945 | 2017-01-10 11:52:52 -0800 | [diff] [blame] | 54 | <TextView |
Geoffrey Pitsch | df44b60 | 2017-02-03 13:31:50 -0500 | [diff] [blame] | 55 | android:id="@+id/pkg_group_divider" |
| 56 | android:layout_width="wrap_content" |
| 57 | android:layout_height="wrap_content" |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 58 | android:textAppearance="@*android:style/TextAppearance.Material.Notification.Info" |
Geoffrey Pitsch | df44b60 | 2017-02-03 13:31:50 -0500 | [diff] [blame] | 59 | android:layout_marginStart="2dp" |
| 60 | android:layout_marginEnd="2dp" |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 61 | android:text="@*android:string/notification_header_divider_symbol" |
| 62 | android:layout_centerVertical="true" |
| 63 | android:layout_toEndOf="@id/pkgname" /> |
Geoffrey Pitsch | df44b60 | 2017-02-03 13:31:50 -0500 | [diff] [blame] | 64 | <TextView |
| 65 | android:id="@+id/group_name" |
| 66 | android:layout_width="wrap_content" |
| 67 | android:layout_height="wrap_content" |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 68 | android:textAppearance="@*android:style/TextAppearance.Material.Notification.Info" |
| 69 | android:layout_marginStart="2dp" |
Julia Reynolds | b430975 | 2017-09-01 16:09:25 -0400 | [diff] [blame] | 70 | android:layout_marginEnd="2dp" |
| 71 | android:ellipsize="end" |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 72 | android:maxLines="1" |
| 73 | android:layout_centerVertical="true" |
| 74 | android:layout_toEndOf="@id/pkg_group_divider" /> |
Rohan Shah | c032ac9 | 2018-05-03 16:58:37 -0700 | [diff] [blame] | 75 | <!-- 24 dp icon with 16 dp padding all around to mirror notification content margins --> |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 76 | <ImageButton |
| 77 | android:id="@+id/info" |
Rohan Shah | 75bb128 | 2018-04-30 13:50:13 -0700 | [diff] [blame] | 78 | android:layout_width="56dp" |
| 79 | android:layout_height="56dp" |
| 80 | android:layout_alignParentEnd="true" |
Julia Reynolds | 6c23883 | 2018-02-15 09:49:27 -0500 | [diff] [blame] | 81 | android:layout_centerVertical="true" |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 82 | android:background="@drawable/ripple_drawable" |
Rohan Shah | 75bb128 | 2018-04-30 13:50:13 -0700 | [diff] [blame] | 83 | android:contentDescription="@string/notification_more_settings" |
| 84 | android:padding="16dp" |
| 85 | android:src="@drawable/ic_info" |
| 86 | android:tint="?android:attr/colorAccent" /> |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 87 | </RelativeLayout> |
Geoffrey Pitsch | df44b60 | 2017-02-03 13:31:50 -0500 | [diff] [blame] | 88 | |
Geoffrey Pitsch | df44b60 | 2017-02-03 13:31:50 -0500 | [diff] [blame] | 89 | <LinearLayout |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 90 | android:id="@+id/prompt" |
Geoffrey Pitsch | df44b60 | 2017-02-03 13:31:50 -0500 | [diff] [blame] | 91 | android:layout_width="match_parent" |
| 92 | android:layout_height="wrap_content" |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 93 | android:layout_marginBottom="@dimen/notification_guts_button_spacing" |
Rohan Shah | 75bb128 | 2018-04-30 13:50:13 -0700 | [diff] [blame] | 94 | android:clipChildren="false" |
| 95 | android:clipToPadding="false" |
Geoffrey Pitsch | 747f25c | 2017-05-12 14:19:29 -0400 | [diff] [blame] | 96 | android:orientation="vertical"> |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 97 | |
| 98 | <!-- Channel Info Block --> |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 99 | <LinearLayout |
Geoffrey Pitsch | 747f25c | 2017-05-12 14:19:29 -0400 | [diff] [blame] | 100 | android:layout_width="match_parent" |
Mady Mellor | 87d7945 | 2017-01-10 11:52:52 -0800 | [diff] [blame] | 101 | android:layout_height="wrap_content" |
Rohan Shah | c032ac9 | 2018-05-03 16:58:37 -0700 | [diff] [blame] | 102 | android:layout_marginStart="@*android:dimen/notification_content_margin_start" |
| 103 | android:layout_marginEnd="@*android:dimen/notification_content_margin_start" |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 104 | android:orientation="vertical"> |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 105 | <!-- Channel Name --> |
| 106 | <TextView |
| 107 | android:id="@+id/channel_name" |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 108 | android:layout_width="wrap_content" |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 109 | android:layout_height="wrap_content" |
Geoffrey Pitsch | 747f25c | 2017-05-12 14:19:29 -0400 | [diff] [blame] | 110 | android:layout_weight="1" |
Rohan Shah | 75bb128 | 2018-04-30 13:50:13 -0700 | [diff] [blame] | 111 | style="@android:style/TextAppearance.Material.Notification.Title" /> |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 112 | <!-- Question prompt --> |
| 113 | <TextView |
| 114 | android:id="@+id/block_prompt" |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 115 | android:layout_width="wrap_content" |
| 116 | android:layout_height="wrap_content" |
Rohan Shah | 75bb128 | 2018-04-30 13:50:13 -0700 | [diff] [blame] | 117 | style="@android:style/TextAppearance.Material.Notification" /> |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 118 | </LinearLayout> |
Geoffrey Pitsch | df44b60 | 2017-02-03 13:31:50 -0500 | [diff] [blame] | 119 | |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 120 | <!-- Settings and Done buttons --> |
| 121 | <LinearLayout |
| 122 | android:layout_width="match_parent" |
| 123 | android:layout_height="wrap_content" |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 124 | android:layout_marginTop="@dimen/notification_guts_button_spacing" |
Rohan Shah | c032ac9 | 2018-05-03 16:58:37 -0700 | [diff] [blame] | 125 | android:layout_marginStart="@dimen/notification_guts_button_side_margin" |
| 126 | android:layout_marginEnd="@dimen/notification_guts_button_side_margin" |
| 127 | android:gravity="end" |
| 128 | android:orientation="horizontal"> |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 129 | |
| 130 | <!-- Optional link to app. Only appears if the channel is not disabled and the app |
| 131 | asked for it --> |
| 132 | <TextView |
| 133 | android:id="@+id/app_settings" |
| 134 | android:text="@string/notification_app_settings" |
| 135 | android:layout_width="wrap_content" |
| 136 | android:layout_height="wrap_content" |
| 137 | android:visibility="gone" |
| 138 | android:ellipsize="end" |
| 139 | android:maxLines="1" |
| 140 | style="@style/TextAppearance.NotificationInfo.Button"/> |
| 141 | <TextView |
| 142 | android:id="@+id/block" |
| 143 | android:text="@string/inline_stop_button" |
| 144 | android:layout_width="wrap_content" |
| 145 | android:layout_height="match_parent" |
Rohan Shah | 75bb128 | 2018-04-30 13:50:13 -0700 | [diff] [blame] | 146 | android:layout_marginStart="@dimen/notification_guts_button_horizontal_spacing" |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 147 | style="@style/TextAppearance.NotificationInfo.Button"/> |
| 148 | <TextView |
Julia Reynolds | e034148 | 2018-03-08 14:42:50 -0500 | [diff] [blame] | 149 | android:id="@+id/minimize" |
| 150 | android:text="@string/inline_minimize_button" |
| 151 | android:layout_width="wrap_content" |
| 152 | android:layout_height="match_parent" |
Rohan Shah | 75bb128 | 2018-04-30 13:50:13 -0700 | [diff] [blame] | 153 | android:layout_marginStart="@dimen/notification_guts_button_horizontal_spacing" |
Julia Reynolds | e034148 | 2018-03-08 14:42:50 -0500 | [diff] [blame] | 154 | style="@style/TextAppearance.NotificationInfo.Button" /> |
| 155 | <TextView |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 156 | android:id="@+id/keep" |
| 157 | android:text="@string/inline_keep_button" |
| 158 | android:layout_width="wrap_content" |
| 159 | android:layout_height="match_parent" |
Rohan Shah | 75bb128 | 2018-04-30 13:50:13 -0700 | [diff] [blame] | 160 | android:layout_marginStart="@dimen/notification_guts_button_horizontal_spacing" |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 161 | style="@style/TextAppearance.NotificationInfo.Button"/> |
| 162 | </LinearLayout> |
Mady Mellor | 87d7945 | 2017-01-10 11:52:52 -0800 | [diff] [blame] | 163 | </LinearLayout> |
Rohan Shah | 20790b8 | 2018-07-02 17:21:04 -0700 | [diff] [blame^] | 164 | <com.android.systemui.statusbar.notification.row.NotificationUndoLayout |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 165 | android:id="@+id/confirmation" |
| 166 | android:layout_width="match_parent" |
| 167 | android:layout_height="wrap_content" |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 168 | android:visibility="gone" |
| 169 | android:orientation="horizontal" > |
| 170 | <TextView |
Julia Reynolds | e034148 | 2018-03-08 14:42:50 -0500 | [diff] [blame] | 171 | android:id="@+id/confirmation_text" |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 172 | android:layout_width="wrap_content" |
| 173 | android:layout_height="wrap_content" |
Rohan Shah | 482193f | 2018-06-13 20:17:42 -0700 | [diff] [blame] | 174 | android:layout_gravity="start|center_vertical" |
| 175 | android:layout_marginStart="@*android:dimen/notification_content_margin_start" |
| 176 | android:layout_marginEnd="@*android:dimen/notification_content_margin_start" |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 177 | android:text="@string/notification_channel_disabled" |
Julia Reynolds | e034148 | 2018-03-08 14:42:50 -0500 | [diff] [blame] | 178 | style="@style/TextAppearance.NotificationInfo.Confirmation"/> |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 179 | <TextView |
| 180 | android:id="@+id/undo" |
| 181 | android:layout_width="wrap_content" |
| 182 | android:layout_height="wrap_content" |
Rohan Shah | 482193f | 2018-06-13 20:17:42 -0700 | [diff] [blame] | 183 | android:layout_marginTop="@dimen/notification_guts_button_spacing" |
| 184 | android:layout_marginBottom="@dimen/notification_guts_button_spacing" |
| 185 | android:layout_marginStart="@dimen/notification_guts_button_side_margin" |
| 186 | android:layout_marginEnd="@dimen/notification_guts_button_side_margin" |
| 187 | android:layout_gravity="end|center_vertical" |
Rohan Shah | 75bb128 | 2018-04-30 13:50:13 -0700 | [diff] [blame] | 188 | android:text="@string/inline_undo" |
Julia Reynolds | 437cdb1 | 2018-01-03 12:27:24 -0500 | [diff] [blame] | 189 | style="@style/TextAppearance.NotificationInfo.Button"/> |
Rohan Shah | 20790b8 | 2018-07-02 17:21:04 -0700 | [diff] [blame^] | 190 | </com.android.systemui.statusbar.notification.row.NotificationUndoLayout> |
| 191 | </com.android.systemui.statusbar.notification.row.NotificationInfo> |