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:padding="@dimen/notification_importance_toggle_marginTop" 25 android:orientation="vertical"> 26 27 <com.android.settings.notification.NotificationButtonRelativeLayout 28 android:id="@+id/alert" 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/alert_icon" 36 android:src="@drawable/ic_notifications_alert" 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/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" 66 android:textAppearance="@style/TextAppearance.NotificationImportanceDetail" 67 android:visibility="gone" /> 68 </com.android.settings.notification.NotificationButtonRelativeLayout> 69 70 <RelativeLayout 71 android:id="@+id/silence" 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/silence_icon" 80 android:src="@drawable/ic_notifications_off_24dp" 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/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" 102 android:text="@string/notification_channel_summary_low" 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/silence_icon" 110 android:textAppearance="@style/TextAppearance.NotificationImportanceDetail" 111 android:visibility="gone" /> 112 </RelativeLayout> 113 114</LinearLayout>