1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright (C) 2020 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"
24    android:padding="@dimen/notification_importance_toggle_marginTop"
25    android:orientation="vertical">
26
27    <com.android.settings.notification.NotificationButtonRelativeLayout
28        android:id="@+id/priority_group"
29        android:layout_width="match_parent"
30        android:layout_height="wrap_content"
31        android:padding="@dimen/notification_importance_button_padding"
32        android:clickable="true"
33        android:focusable="true">
34        <ImageView
35            android:id="@+id/priority_icon"
36            android:src="@drawable/ic_important_outline"
37            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/priority_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/priority_icon"
52            android:layout_marginStart="@dimen/notification_importance_drawable_padding"
53            android:textAppearance="@style/TextAppearance.NotificationImportanceButton.Unselected"
54            android:text="@string/notification_priority_title"/>
55        <TextView
56            android:id="@+id/priority_summary"
57            android:paddingTop="@dimen/notification_importance_button_padding"
58            android:text="@string/notification_channel_summary_priority"
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="3"
65            android:layout_below="@id/priority_icon"
66            android:textAppearance="@style/TextAppearance.NotificationImportanceDetail"
67            android:visibility="gone" />
68    </com.android.settings.notification.NotificationButtonRelativeLayout>
69
70    <com.android.settings.notification.NotificationButtonRelativeLayout
71        android:id="@+id/alert"
72        android:layout_width="match_parent"
73        android:layout_height="wrap_content"
74        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/alert_icon"
80            android:src="@drawable/ic_notifications_alert"
81            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/alert_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/alert_icon"
96            android:layout_marginStart="@dimen/notification_importance_drawable_padding"
97            android:textAppearance="@style/TextAppearance.NotificationImportanceButton.Unselected"
98            android:text="@string/notification_alert_title"/>
99        <TextView
100            android:id="@+id/alert_summary"
101            android:paddingTop="@dimen/notification_importance_button_padding"
102            android:text="@string/notification_channel_summary_default"
103            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/alert_icon"
110            android:textAppearance="@style/TextAppearance.NotificationImportanceDetail"
111            android:visibility="gone" />
112    </com.android.settings.notification.NotificationButtonRelativeLayout>
113
114    <com.android.settings.notification.NotificationButtonRelativeLayout
115        android:id="@+id/silence"
116        android:layout_width="match_parent"
117        android:layout_height="wrap_content"
118        android:padding="@dimen/notification_importance_button_padding"
119        android:layout_marginTop="@dimen/notification_importance_button_separation"
120        android:clickable="true"
121        android:focusable="true">
122        <ImageView
123            android:id="@+id/silence_icon"
124            android:src="@drawable/ic_notifications_off_24dp"
125            android:background="@android:color/transparent"
126            android:layout_gravity="center"
127            android:layout_width="wrap_content"
128            android:layout_height="wrap_content"
129            android:clickable="false"
130            android:focusable="false"/>
131        <TextView
132            android:id="@+id/silence_label"
133            android:layout_width="match_parent"
134            android:layout_height="wrap_content"
135            android:ellipsize="end"
136            android:maxLines="1"
137            android:clickable="false"
138            android:focusable="false"
139            android:layout_toEndOf="@id/silence_icon"
140            android:layout_marginStart="@dimen/notification_importance_drawable_padding"
141            android:textAppearance="@style/TextAppearance.NotificationImportanceButton.Unselected"
142            android:text="@string/notification_silence_title"/>
143        <TextView
144            android:id="@+id/silence_summary"
145            android:paddingTop="@dimen/notification_importance_button_padding"
146            android:text="@string/notification_conversation_summary_low"
147            android:layout_width="match_parent"
148            android:layout_height="wrap_content"
149            android:clickable="false"
150            android:focusable="false"
151            android:ellipsize="end"
152            android:maxLines="2"
153            android:layout_below="@id/silence_icon"
154            android:textAppearance="@style/TextAppearance.NotificationImportanceDetail"
155            android:visibility="gone" />
156    </com.android.settings.notification.NotificationButtonRelativeLayout>
157
158</LinearLayout>