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:layout_marginStart="24dp"
25    android:layout_marginEnd="16dp"
26    android:paddingTop="@dimen/notification_importance_toggle_marginTop"
27    android:paddingBottom="@dimen/notification_importance_toggle_marginTop"
28    android:orientation="vertical">
29
30    <com.android.settings.notification.NotificationButtonRelativeLayout
31        android:id="@+id/priority_group"
32        android:layout_width="match_parent"
33        android:layout_height="wrap_content"
34        android:padding="@dimen/notification_importance_button_padding"
35        android:clickable="true"
36        android:focusable="true">
37        <LinearLayout
38            android:id="@+id/icon_label_container"
39            android:gravity="center_vertical"
40            android:layout_width="match_parent"
41            android:layout_height="wrap_content"
42            android:orientation="horizontal">
43            <ImageView
44                android:id="@+id/icon"
45                android:src="@drawable/ic_important_outline"
46                android:background="@android:color/transparent"
47                android:layout_width="wrap_content"
48                android:layout_height="wrap_content"
49                android:clickable="false"
50                android:focusable="false"/>
51            <TextView
52                android:id="@+id/label"
53                android:layout_width="match_parent"
54                android:layout_height="wrap_content"
55                android:ellipsize="end"
56                android:maxLines="1"
57                android:clickable="false"
58                android:focusable="false"
59                android:layout_marginStart="@dimen/notification_importance_drawable_padding"
60                android:textAppearance="@style/TextAppearance.NotificationImportanceButton.Unselected"
61                android:text="@string/notification_priority_title"/>
62        </LinearLayout>
63        <TextView
64            android:id="@+id/summary"
65            android:paddingTop="@dimen/notification_importance_button_padding"
66            android:text="@string/notification_channel_summary_priority"
67            android:layout_width="match_parent"
68            android:layout_height="wrap_content"
69            android:clickable="false"
70            android:focusable="false"
71            android:ellipsize="end"
72            android:maxLines="4"
73            android:layout_below="@id/icon_label_container"
74            android:textAppearance="@style/TextAppearance.NotificationImportanceDetail"
75            android:visibility="gone" />
76    </com.android.settings.notification.NotificationButtonRelativeLayout>
77
78    <com.android.settings.notification.NotificationButtonRelativeLayout
79        android:id="@+id/alert"
80        android:layout_width="match_parent"
81        android:layout_height="wrap_content"
82        android:padding="@dimen/notification_importance_button_padding"
83        android:layout_marginTop="@dimen/notification_importance_button_separation"
84        android:clickable="true"
85        android:focusable="true">
86        <LinearLayout
87            android:id="@+id/icon_label_container"
88            android:gravity="center_vertical"
89            android:layout_width="match_parent"
90            android:layout_height="wrap_content"
91            android:orientation="horizontal">
92            <ImageView
93                android:id="@+id/icon"
94                android:src="@drawable/ic_notifications_alert"
95                android:background="@android:color/transparent"
96                android:layout_width="wrap_content"
97                android:layout_height="wrap_content"
98                android:clickable="false"
99                android:focusable="false"/>
100            <TextView
101                android:id="@+id/label"
102                android:layout_width="match_parent"
103                android:layout_height="wrap_content"
104                android:ellipsize="end"
105                android:maxLines="1"
106                android:clickable="false"
107                android:focusable="false"
108                android:layout_marginStart="@dimen/notification_importance_drawable_padding"
109                android:textAppearance="@style/TextAppearance.NotificationImportanceButton.Unselected"
110                android:text="@string/notification_alert_title"/>
111        </LinearLayout>
112        <TextView
113            android:id="@+id/summary"
114            android:paddingTop="@dimen/notification_importance_button_padding"
115            android:text="@string/notification_channel_summary_default"
116            android:layout_width="match_parent"
117            android:layout_height="wrap_content"
118            android:clickable="false"
119            android:focusable="false"
120            android:ellipsize="end"
121            android:maxLines="2"
122            android:layout_below="@id/icon_label_container"
123            android:textAppearance="@style/TextAppearance.NotificationImportanceDetail"
124            android:visibility="gone" />
125    </com.android.settings.notification.NotificationButtonRelativeLayout>
126
127    <com.android.settings.notification.NotificationButtonRelativeLayout
128        android:id="@+id/silence"
129        android:layout_width="match_parent"
130        android:layout_height="wrap_content"
131        android:padding="@dimen/notification_importance_button_padding"
132        android:layout_marginTop="@dimen/notification_importance_button_separation"
133        android:clickable="true"
134        android:focusable="true">
135        <LinearLayout
136            android:id="@+id/icon_label_container"
137            android:gravity="center_vertical"
138            android:layout_width="match_parent"
139            android:layout_height="wrap_content"
140            android:orientation="horizontal">
141            <ImageView
142                android:id="@+id/icon"
143                android:src="@drawable/ic_notifications_off_24dp"
144                android:background="@android:color/transparent"
145                android:layout_width="wrap_content"
146                android:layout_height="wrap_content"
147                android:clickable="false"
148                android:focusable="false"/>
149            <TextView
150                android:id="@+id/label"
151                android:layout_width="match_parent"
152                android:layout_height="wrap_content"
153                android:ellipsize="end"
154                android:maxLines="1"
155                android:clickable="false"
156                android:focusable="false"
157                android:layout_marginStart="@dimen/notification_importance_drawable_padding"
158                android:textAppearance="@style/TextAppearance.NotificationImportanceButton.Unselected"
159                android:text="@string/notification_silence_title"/>
160        </LinearLayout>
161        <TextView
162            android:id="@+id/summary"
163            android:paddingTop="@dimen/notification_importance_button_padding"
164            android:text="@string/notification_conversation_summary_low"
165            android:layout_width="match_parent"
166            android:layout_height="wrap_content"
167            android:clickable="false"
168            android:focusable="false"
169            android:ellipsize="end"
170            android:maxLines="2"
171            android:layout_below="@id/icon_label_container"
172            android:textAppearance="@style/TextAppearance.NotificationImportanceDetail"
173            android:visibility="gone" />
174    </com.android.settings.notification.NotificationButtonRelativeLayout>
175
176</LinearLayout>