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 18<com.android.systemui.statusbar.notification.row.NotificationSnooze 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:orientation="vertical" 23 android:clickable="true" 24 android:background="@color/notification_guts_bg_color" 25 android:theme="@style/Theme.SystemUI"> 26 27 <RelativeLayout 28 android:id="@+id/notification_snooze" 29 android:layout_width="match_parent" 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" 38 android:paddingStart="@*android:dimen/notification_content_margin_start" 39 android:textColor="?android:attr/textColorPrimary" 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" 53 android:layout_width="wrap_content" 54 android:layout_height="48dp" 55 android:layout_marginEnd="@dimen/notification_guts_button_side_margin" 56 android:layout_alignParentEnd="true" 57 android:layout_centerVertical="true" 58 android:text="@string/snooze_undo" 59 style="@style/TextAppearance.NotificationInfo.Button" /> 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 68 <LinearLayout 69 android:id="@+id/snooze_options" 70 android:layout_width="match_parent" 71 android:layout_height="wrap_content" 72 android:paddingBottom="8dp" 73 android:orientation="vertical" /> 74 75</com.android.systemui.statusbar.notification.row.NotificationSnooze> 76