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