• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?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"
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/alert"
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        <ImageView
38            android:id="@+id/alert_icon"
39            android:src="@drawable/ic_notifications_alert"
40            android:background="@android:color/transparent"
41            android:layout_gravity="center"
42            android:layout_width="wrap_content"
43            android:layout_height="wrap_content"
44            android:clickable="false"
45            android:focusable="false"/>
46        <TextView
47            android:id="@+id/alert_label"
48            android:layout_width="match_parent"
49            android:layout_height="wrap_content"
50            android:ellipsize="end"
51            android:maxLines="1"
52            android:clickable="false"
53            android:focusable="false"
54            android:layout_toEndOf="@id/alert_icon"
55            android:layout_marginStart="@dimen/notification_importance_drawable_padding"
56            android:textAppearance="@style/TextAppearance.NotificationImportanceButton.Unselected"
57            android:text="@string/notification_alert_title"/>
58        <TextView
59            android:id="@+id/alert_summary"
60            android:paddingTop="@dimen/notification_importance_button_padding"
61            android:text="@string/notification_channel_summary_default"
62            android:layout_width="match_parent"
63            android:layout_height="wrap_content"
64            android:clickable="false"
65            android:focusable="false"
66            android:ellipsize="end"
67            android:maxLines="2"
68            android:layout_below="@id/alert_icon"
69            android:textAppearance="@style/TextAppearance.NotificationImportanceDetail"
70            android:visibility="gone" />
71    </com.android.settings.notification.NotificationButtonRelativeLayout>
72
73    <com.android.settings.notification.NotificationButtonRelativeLayout
74        android:id="@+id/silence"
75        android:layout_width="match_parent"
76        android:layout_height="wrap_content"
77        android:padding="@dimen/notification_importance_button_padding"
78        android:layout_marginTop="@dimen/notification_importance_button_separation"
79        android:clickable="true"
80        android:focusable="true">
81        <ImageView
82            android:id="@+id/silence_icon"
83            android:src="@drawable/ic_notifications_off_24dp"
84            android:background="@android:color/transparent"
85            android:layout_gravity="center"
86            android:layout_width="wrap_content"
87            android:layout_height="wrap_content"
88            android:clickable="false"
89            android:focusable="false"/>
90        <TextView
91            android:id="@+id/silence_label"
92            android:layout_width="match_parent"
93            android:layout_height="wrap_content"
94            android:ellipsize="end"
95            android:maxLines="1"
96            android:clickable="false"
97            android:focusable="false"
98            android:layout_toEndOf="@id/silence_icon"
99            android:layout_marginStart="@dimen/notification_importance_drawable_padding"
100            android:textAppearance="@style/TextAppearance.NotificationImportanceButton.Unselected"
101            android:text="@string/notification_silence_title"/>
102        <TextView
103            android:id="@+id/silence_summary"
104            android:paddingTop="@dimen/notification_importance_button_padding"
105            android:text="@string/notification_channel_summary_low"
106            android:layout_width="match_parent"
107            android:layout_height="wrap_content"
108            android:clickable="false"
109            android:focusable="false"
110            android:ellipsize="end"
111            android:maxLines="2"
112            android:layout_below="@id/silence_icon"
113            android:textAppearance="@style/TextAppearance.NotificationImportanceDetail"
114            android:visibility="gone" />
115    </com.android.settings.notification.NotificationButtonRelativeLayout>
116
117</LinearLayout>