Mady Mellor | 04d7a0f | 2017-01-25 13:16:03 -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.NotificationSnooze |
Mady Mellor | 04d7a0f | 2017-01-25 13:16:03 -0800 | [diff] [blame] | 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="wrap_content" |
Mady Mellor | e09fb70 | 2017-03-30 13:23:29 -0700 | [diff] [blame] | 22 | android:orientation="vertical" |
Mady Mellor | 920fd89 | 2017-06-06 09:35:03 -0700 | [diff] [blame] | 23 | android:clickable="true" |
Mady Mellor | e09fb70 | 2017-03-30 13:23:29 -0700 | [diff] [blame] | 24 | android:background="@color/notification_guts_bg_color" |
Lucas Dupin | cfc19df | 2018-08-20 16:34:50 -0700 | [diff] [blame] | 25 | android:theme="@style/Theme.SystemUI"> |
Mady Mellor | e09fb70 | 2017-03-30 13:23:29 -0700 | [diff] [blame] | 26 | |
| 27 | <RelativeLayout |
Mady Mellor | e09fb70 | 2017-03-30 13:23:29 -0700 | [diff] [blame] | 28 | android:id="@+id/notification_snooze" |
Mady Mellor | 920fd89 | 2017-06-06 09:35:03 -0700 | [diff] [blame] | 29 | android:layout_width="match_parent" |
Mady Mellor | e09fb70 | 2017-03-30 13:23:29 -0700 | [diff] [blame] | 30 | android:layout_height="@dimen/snooze_snackbar_min_height"> |
| 31 | |
| 32 | <TextView |
| 33 | android:id="@+id/snooze_option_default" |
| 34 | android:layout_width="wrap_content" |
| 35 | android:layout_height="wrap_content" |
| 36 | android:layout_alignParentStart="true" |
| 37 | android:layout_centerVertical="true" |
Selim Cinek | 515b203 | 2017-11-15 10:20:19 -0800 | [diff] [blame] | 38 | android:paddingStart="@*android:dimen/notification_content_margin_start" |
Lucas Dupin | cfc19df | 2018-08-20 16:34:50 -0700 | [diff] [blame] | 39 | android:textColor="?android:attr/textColorPrimary" |
Mady Mellor | e09fb70 | 2017-03-30 13:23:29 -0700 | [diff] [blame] | 40 | android:paddingEnd="4dp"/> |
| 41 | |
| 42 | <ImageView |
| 43 | android:id="@+id/expand_button" |
| 44 | android:layout_width="wrap_content" |
| 45 | android:layout_height="wrap_content" |
| 46 | android:layout_toEndOf="@+id/snooze_option_default" |
| 47 | android:layout_centerVertical="true" |
| 48 | android:paddingTop="1dp" |
| 49 | android:tint="#9E9E9E" /> |
| 50 | |
| 51 | <TextView |
| 52 | android:id="@+id/undo" |
Mady Mellor | e09fb70 | 2017-03-30 13:23:29 -0700 | [diff] [blame] | 53 | android:layout_width="wrap_content" |
Rohan Shah | c032ac9 | 2018-05-03 16:58:37 -0700 | [diff] [blame] | 54 | android:layout_height="48dp" |
| 55 | android:layout_marginEnd="@dimen/notification_guts_button_side_margin" |
Mady Mellor | e09fb70 | 2017-03-30 13:23:29 -0700 | [diff] [blame] | 56 | android:layout_alignParentEnd="true" |
| 57 | android:layout_centerVertical="true" |
Rohan Shah | c032ac9 | 2018-05-03 16:58:37 -0700 | [diff] [blame] | 58 | android:text="@string/snooze_undo" |
| 59 | style="@style/TextAppearance.NotificationInfo.Button" /> |
Mady Mellor | e09fb70 | 2017-03-30 13:23:29 -0700 | [diff] [blame] | 60 | </RelativeLayout> |
| 61 | |
| 62 | <View |
| 63 | android:id="@+id/divider" |
| 64 | android:layout_width="match_parent" |
| 65 | android:layout_height="0.5dp" |
| 66 | android:background="#9E9E9E" /> |
| 67 | |
Mady Mellor | 04d7a0f | 2017-01-25 13:16:03 -0800 | [diff] [blame] | 68 | <LinearLayout |
| 69 | android:id="@+id/snooze_options" |
| 70 | android:layout_width="match_parent" |
| 71 | android:layout_height="wrap_content" |
Mady Mellor | 04d7a0f | 2017-01-25 13:16:03 -0800 | [diff] [blame] | 72 | android:paddingBottom="8dp" |
Mady Mellor | e09fb70 | 2017-03-30 13:23:29 -0700 | [diff] [blame] | 73 | android:orientation="vertical" /> |
| 74 | |
Rohan Shah | 20790b8 | 2018-07-02 17:21:04 -0700 | [diff] [blame] | 75 | </com.android.systemui.statusbar.notification.row.NotificationSnooze> |