Julia Reynolds | 94b04df | 2020-03-20 18:34:24 -0400 | [diff] [blame] | 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 |
Julia Reynolds | 2f8bc49 | 2020-07-15 16:45:54 -0400 | [diff] [blame] | 35 | android:id="@+id/icon" |
Julia Reynolds | 94b04df | 2020-03-20 18:34:24 -0400 | [diff] [blame] | 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 |
Julia Reynolds | 2f8bc49 | 2020-07-15 16:45:54 -0400 | [diff] [blame] | 44 | android:id="@+id/label" |
Julia Reynolds | 94b04df | 2020-03-20 18:34:24 -0400 | [diff] [blame] | 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" |
Julia Reynolds | 2f8bc49 | 2020-07-15 16:45:54 -0400 | [diff] [blame] | 51 | android:layout_toEndOf="@id/icon" |
Julia Reynolds | 94b04df | 2020-03-20 18:34:24 -0400 | [diff] [blame] | 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 |
Julia Reynolds | 2f8bc49 | 2020-07-15 16:45:54 -0400 | [diff] [blame] | 56 | android:id="@+id/summary" |
Julia Reynolds | 94b04df | 2020-03-20 18:34:24 -0400 | [diff] [blame] | 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" |
Julia Reynolds | 9e78ec7 | 2020-05-21 16:42:43 -0400 | [diff] [blame] | 64 | android:maxLines="3" |
Julia Reynolds | 2f8bc49 | 2020-07-15 16:45:54 -0400 | [diff] [blame] | 65 | android:layout_below="@id/icon" |
Julia Reynolds | 94b04df | 2020-03-20 18:34:24 -0400 | [diff] [blame] | 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 |
Julia Reynolds | 2f8bc49 | 2020-07-15 16:45:54 -0400 | [diff] [blame] | 79 | android:id="@+id/icon" |
Julia Reynolds | 94b04df | 2020-03-20 18:34:24 -0400 | [diff] [blame] | 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 |
Julia Reynolds | 2f8bc49 | 2020-07-15 16:45:54 -0400 | [diff] [blame] | 88 | android:id="@+id/label" |
Julia Reynolds | 94b04df | 2020-03-20 18:34:24 -0400 | [diff] [blame] | 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" |
Julia Reynolds | 2f8bc49 | 2020-07-15 16:45:54 -0400 | [diff] [blame] | 95 | android:layout_toEndOf="@id/icon" |
Julia Reynolds | 94b04df | 2020-03-20 18:34:24 -0400 | [diff] [blame] | 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 |
Julia Reynolds | 2f8bc49 | 2020-07-15 16:45:54 -0400 | [diff] [blame] | 100 | android:id="@+id/summary" |
Julia Reynolds | 94b04df | 2020-03-20 18:34:24 -0400 | [diff] [blame] | 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" |
Julia Reynolds | 2f8bc49 | 2020-07-15 16:45:54 -0400 | [diff] [blame] | 109 | android:layout_below="@id/icon" |
Julia Reynolds | 94b04df | 2020-03-20 18:34:24 -0400 | [diff] [blame] | 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 |
Julia Reynolds | 2f8bc49 | 2020-07-15 16:45:54 -0400 | [diff] [blame] | 123 | android:id="@+id/icon" |
Julia Reynolds | 94b04df | 2020-03-20 18:34:24 -0400 | [diff] [blame] | 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 |
Julia Reynolds | 2f8bc49 | 2020-07-15 16:45:54 -0400 | [diff] [blame] | 132 | android:id="@+id/label" |
Julia Reynolds | 94b04df | 2020-03-20 18:34:24 -0400 | [diff] [blame] | 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" |
Julia Reynolds | 2f8bc49 | 2020-07-15 16:45:54 -0400 | [diff] [blame] | 139 | android:layout_toEndOf="@id/icon" |
Julia Reynolds | 94b04df | 2020-03-20 18:34:24 -0400 | [diff] [blame] | 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 |
Julia Reynolds | 2f8bc49 | 2020-07-15 16:45:54 -0400 | [diff] [blame] | 144 | android:id="@+id/summary" |
Julia Reynolds | 94b04df | 2020-03-20 18:34:24 -0400 | [diff] [blame] | 145 | android:paddingTop="@dimen/notification_importance_button_padding" |
Julia Reynolds | 9e78ec7 | 2020-05-21 16:42:43 -0400 | [diff] [blame] | 146 | android:text="@string/notification_conversation_summary_low" |
Julia Reynolds | 94b04df | 2020-03-20 18:34:24 -0400 | [diff] [blame] | 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" |
Julia Reynolds | 2f8bc49 | 2020-07-15 16:45:54 -0400 | [diff] [blame] | 153 | android:layout_below="@id/icon" |
Julia Reynolds | 94b04df | 2020-03-20 18:34:24 -0400 | [diff] [blame] | 154 | android:textAppearance="@style/TextAppearance.NotificationImportanceDetail" |
| 155 | android:visibility="gone" /> |
| 156 | </com.android.settings.notification.NotificationButtonRelativeLayout> |
| 157 | |
| 158 | </LinearLayout> |