blob: edc2bb1df340c9c31b52c63ab7921334678a7f86 [file] [log] [blame]
Julia Reynolds4253be92019-03-07 10:44:01 -05001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2019 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<LinearLayout
19 xmlns:android="http://schemas.android.com/apk/res/android"
20 android:id="@+id/app_entities_header"
21 android:layout_width="match_parent"
22 android:layout_height="wrap_content"
23 android:gravity="center"
Julia Reynolds090e67d2019-04-30 14:18:47 -040024 android:padding="@dimen/notification_importance_toggle_marginTop"
Julia Reynolds5c097c62019-04-12 16:52:40 -040025 android:orientation="vertical">
Julia Reynolds4253be92019-03-07 10:44:01 -050026
Julia Reynoldsc0c4b3a2019-05-30 10:31:40 -040027 <com.android.settings.notification.NotificationButtonRelativeLayout
Julia Reynolds090e67d2019-04-30 14:18:47 -040028 android:id="@+id/alert"
Julia Reynolds5c097c62019-04-12 16:52:40 -040029 android:layout_width="match_parent"
Julia Reynolds4253be92019-03-07 10:44:01 -050030 android:layout_height="wrap_content"
Julia Reynolds090e67d2019-04-30 14:18:47 -040031 android:padding="@dimen/notification_importance_button_padding"
32 android:clickable="true"
33 android:focusable="true">
34 <ImageView
35 android:id="@+id/alert_icon"
Julia Reynoldseeefeeb2019-05-30 14:47:07 -040036 android:src="@drawable/ic_notifications_alert"
Julia Reynolds090e67d2019-04-30 14:18:47 -040037 android:background="@android:color/transparent"
38 android:layout_gravity="center"
39 android:layout_width="wrap_content"
40 android:layout_height="wrap_content"
41 android:clickable="false"
42 android:focusable="false"/>
43 <TextView
44 android:id="@+id/alert_label"
45 android:layout_width="match_parent"
46 android:layout_height="wrap_content"
47 android:ellipsize="end"
48 android:maxLines="1"
49 android:clickable="false"
50 android:focusable="false"
51 android:layout_toEndOf="@id/alert_icon"
52 android:layout_marginStart="@dimen/notification_importance_drawable_padding"
53 android:textAppearance="@style/TextAppearance.NotificationImportanceButton.Unselected"
54 android:text="@string/notification_alert_title"/>
55 <TextView
56 android:id="@+id/alert_summary"
57 android:paddingTop="@dimen/notification_importance_button_padding"
58 android:text="@string/notification_channel_summary_default"
59 android:layout_width="match_parent"
60 android:layout_height="wrap_content"
61 android:clickable="false"
62 android:focusable="false"
63 android:ellipsize="end"
64 android:maxLines="2"
65 android:layout_below="@id/alert_icon"
Evan Laird472e19e2019-05-17 17:05:27 -040066 android:textAppearance="@style/TextAppearance.NotificationImportanceDetail"
67 android:visibility="gone" />
Julia Reynoldsc0c4b3a2019-05-30 10:31:40 -040068 </com.android.settings.notification.NotificationButtonRelativeLayout>
Julia Reynolds4253be92019-03-07 10:44:01 -050069
Jay Aliomeraed74bf2019-10-03 14:28:43 -040070 <com.android.settings.notification.NotificationButtonRelativeLayout
Julia Reynolds090e67d2019-04-30 14:18:47 -040071 android:id="@+id/silence"
Julia Reynolds5c097c62019-04-12 16:52:40 -040072 android:layout_width="match_parent"
Julia Reynolds4253be92019-03-07 10:44:01 -050073 android:layout_height="wrap_content"
Julia Reynolds090e67d2019-04-30 14:18:47 -040074 android:padding="@dimen/notification_importance_button_padding"
75 android:layout_marginTop="@dimen/notification_importance_button_separation"
76 android:clickable="true"
77 android:focusable="true">
78 <ImageView
79 android:id="@+id/silence_icon"
Evan Laird472e19e2019-05-17 17:05:27 -040080 android:src="@drawable/ic_notifications_off_24dp"
Julia Reynolds090e67d2019-04-30 14:18:47 -040081 android:background="@android:color/transparent"
82 android:layout_gravity="center"
83 android:layout_width="wrap_content"
84 android:layout_height="wrap_content"
85 android:clickable="false"
86 android:focusable="false"/>
87 <TextView
88 android:id="@+id/silence_label"
89 android:layout_width="match_parent"
90 android:layout_height="wrap_content"
91 android:ellipsize="end"
92 android:maxLines="1"
93 android:clickable="false"
94 android:focusable="false"
95 android:layout_toEndOf="@id/silence_icon"
96 android:layout_marginStart="@dimen/notification_importance_drawable_padding"
97 android:textAppearance="@style/TextAppearance.NotificationImportanceButton.Unselected"
98 android:text="@string/notification_silence_title"/>
99 <TextView
100 android:id="@+id/silence_summary"
101 android:paddingTop="@dimen/notification_importance_button_padding"
Julia Reynolds56973242019-06-05 14:07:50 -0400102 android:text="@string/notification_channel_summary_low"
Julia Reynolds090e67d2019-04-30 14:18:47 -0400103 android:layout_width="match_parent"
104 android:layout_height="wrap_content"
105 android:clickable="false"
106 android:focusable="false"
107 android:ellipsize="end"
108 android:maxLines="2"
109 android:layout_below="@id/silence_icon"
Evan Laird472e19e2019-05-17 17:05:27 -0400110 android:textAppearance="@style/TextAppearance.NotificationImportanceDetail"
111 android:visibility="gone" />
Jay Aliomeraed74bf2019-10-03 14:28:43 -0400112 </com.android.settings.notification.NotificationButtonRelativeLayout>
Julia Reynolds4253be92019-03-07 10:44:01 -0500113
114</LinearLayout>