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