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    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
21    android:layout_width="match_parent"
22    android:layout_height="wrap_content"
23    android:orientation="vertical"
24    android:paddingTop="2dp"
25    android:paddingBottom="2dp"
26    android:background="?androidprv:attr/materialColorSurfaceContainerHigh"
27    android:theme="@style/Theme.SystemUI">
28
29    <RelativeLayout
30        android:id="@+id/notification_snooze"
31        android:layout_width="match_parent"
32        android:layout_height="@dimen/snooze_snackbar_min_height">
33
34        <TextView
35            android:id="@+id/snooze_option_default"
36            android:layout_width="wrap_content"
37            android:layout_height="wrap_content"
38            android:layout_alignParentStart="true"
39            android:layout_centerVertical="true"
40            android:paddingStart="@*android:dimen/notification_content_margin_end"
41            android:textColor="?androidprv:attr/materialColorOnSurface"
42            android:paddingEnd="4dp"/>
43
44        <ImageView
45            android:id="@+id/expand_button"
46            android:layout_width="wrap_content"
47            android:layout_height="wrap_content"
48            android:layout_toEndOf="@+id/snooze_option_default"
49            android:layout_centerVertical="true"
50            android:paddingTop="1dp"
51            android:importantForAccessibility="yes"
52            android:tint="?android:attr/textColorPrimary"/>
53
54        <TextView
55            android:id="@+id/undo"
56            android:layout_width="wrap_content"
57            android:layout_height="48dp"
58            android:layout_marginEnd="@dimen/notification_guts_button_side_margin"
59            android:layout_alignParentEnd="true"
60            android:layout_centerVertical="true"
61            android:minWidth="@dimen/min_clickable_item_size"
62            android:minHeight="@dimen/min_clickable_item_size"
63            android:text="@string/snooze_undo"
64            style="@style/TextAppearance.NotificationInfo.Button" />
65    </RelativeLayout>
66
67    <View
68        android:id="@+id/divider"
69        android:layout_width="match_parent"
70        android:layout_height="0.5dp"
71        android:background="#9E9E9E" />
72
73    <LinearLayout
74        android:id="@+id/snooze_options"
75        android:layout_width="match_parent"
76        android:layout_height="wrap_content"
77        android:paddingBottom="8dp"
78        android:orientation="vertical" />
79
80</com.android.systemui.statusbar.notification.row.NotificationSnooze>
81