Julia Reynolds | 4253be9 | 2019-03-07 10:44:01 -0500 | [diff] [blame] | 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" |
Julia Reynolds | 090e67d | 2019-04-30 14:18:47 -0400 | [diff] [blame] | 24 | android:padding="@dimen/notification_importance_toggle_marginTop" |
Julia Reynolds | 5c097c6 | 2019-04-12 16:52:40 -0400 | [diff] [blame] | 25 | android:orientation="vertical"> |
Julia Reynolds | 4253be9 | 2019-03-07 10:44:01 -0500 | [diff] [blame] | 26 | |
Julia Reynolds | c0c4b3a | 2019-05-30 10:31:40 -0400 | [diff] [blame] | 27 | <com.android.settings.notification.NotificationButtonRelativeLayout |
Julia Reynolds | 090e67d | 2019-04-30 14:18:47 -0400 | [diff] [blame] | 28 | android:id="@+id/alert" |
Julia Reynolds | 5c097c6 | 2019-04-12 16:52:40 -0400 | [diff] [blame] | 29 | android:layout_width="match_parent" |
Julia Reynolds | 4253be9 | 2019-03-07 10:44:01 -0500 | [diff] [blame] | 30 | android:layout_height="wrap_content" |
Julia Reynolds | 090e67d | 2019-04-30 14:18:47 -0400 | [diff] [blame] | 31 | android:padding="@dimen/notification_importance_button_padding" |
| 32 | android:clickable="true" |
| 33 | android:focusable="true"> |
| 34 | <ImageView |
| 35 | android:id="@+id/alert_icon" |
Julia Reynolds | eeefeeb | 2019-05-30 14:47:07 -0400 | [diff] [blame] | 36 | android:src="@drawable/ic_notifications_alert" |
Julia Reynolds | 090e67d | 2019-04-30 14:18:47 -0400 | [diff] [blame] | 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" |
Evan Laird | 472e19e | 2019-05-17 17:05:27 -0400 | [diff] [blame] | 66 | android:textAppearance="@style/TextAppearance.NotificationImportanceDetail" |
| 67 | android:visibility="gone" /> |
Julia Reynolds | c0c4b3a | 2019-05-30 10:31:40 -0400 | [diff] [blame] | 68 | </com.android.settings.notification.NotificationButtonRelativeLayout> |
Julia Reynolds | 4253be9 | 2019-03-07 10:44:01 -0500 | [diff] [blame] | 69 | |
Jay Aliomer | aed74bf | 2019-10-03 14:28:43 -0400 | [diff] [blame] | 70 | <com.android.settings.notification.NotificationButtonRelativeLayout |
Julia Reynolds | 090e67d | 2019-04-30 14:18:47 -0400 | [diff] [blame] | 71 | android:id="@+id/silence" |
Julia Reynolds | 5c097c6 | 2019-04-12 16:52:40 -0400 | [diff] [blame] | 72 | android:layout_width="match_parent" |
Julia Reynolds | 4253be9 | 2019-03-07 10:44:01 -0500 | [diff] [blame] | 73 | android:layout_height="wrap_content" |
Julia Reynolds | 090e67d | 2019-04-30 14:18:47 -0400 | [diff] [blame] | 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" |
Evan Laird | 472e19e | 2019-05-17 17:05:27 -0400 | [diff] [blame] | 80 | android:src="@drawable/ic_notifications_off_24dp" |
Julia Reynolds | 090e67d | 2019-04-30 14:18:47 -0400 | [diff] [blame] | 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" |
Julia Reynolds | 5697324 | 2019-06-05 14:07:50 -0400 | [diff] [blame] | 102 | android:text="@string/notification_channel_summary_low" |
Julia Reynolds | 090e67d | 2019-04-30 14:18:47 -0400 | [diff] [blame] | 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" |
Evan Laird | 472e19e | 2019-05-17 17:05:27 -0400 | [diff] [blame] | 110 | android:textAppearance="@style/TextAppearance.NotificationImportanceDetail" |
| 111 | android:visibility="gone" /> |
Jay Aliomer | aed74bf | 2019-10-03 14:28:43 -0400 | [diff] [blame] | 112 | </com.android.settings.notification.NotificationButtonRelativeLayout> |
Julia Reynolds | 4253be9 | 2019-03-07 10:44:01 -0500 | [diff] [blame] | 113 | |
| 114 | </LinearLayout> |