Mady Mellor | 87d7945 | 2017-01-10 11:52:52 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright 2017, 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 | <com.android.systemui.statusbar.NotificationInfo |
| 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="wrap_content" |
| 22 | android:id="@+id/notification_guts" |
| 23 | android:clickable="true" |
Mady Mellor | 87d7945 | 2017-01-10 11:52:52 -0800 | [diff] [blame] | 24 | android:orientation="vertical" |
| 25 | android:paddingStart="@*android:dimen/notification_content_margin_start" |
Mady Mellor | 87d7945 | 2017-01-10 11:52:52 -0800 | [diff] [blame] | 26 | android:background="@color/notification_guts_bg_color" |
| 27 | android:theme="@*android:style/Theme.DeviceDefault.Light"> |
| 28 | |
Geoffrey Pitsch | df44b60 | 2017-02-03 13:31:50 -0500 | [diff] [blame] | 29 | <!-- Package Info --> |
| 30 | <LinearLayout |
Mady Mellor | 87d7945 | 2017-01-10 11:52:52 -0800 | [diff] [blame] | 31 | android:layout_width="match_parent" |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 32 | android:layout_height="@*android:dimen/notification_header_height" |
| 33 | android:clipChildren="false" |
| 34 | android:paddingTop="@*android:dimen/notification_header_padding_top" |
| 35 | android:paddingBottom="@*android:dimen/notification_header_padding_bottom" |
| 36 | android:gravity="center_vertical" |
| 37 | android:orientation="horizontal" > |
Geoffrey Pitsch | df44b60 | 2017-02-03 13:31:50 -0500 | [diff] [blame] | 38 | <ImageView |
| 39 | android:id="@+id/pkgicon" |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 40 | android:layout_width="@*android:dimen/notification_header_icon_size" |
| 41 | android:layout_height="@*android:dimen/notification_header_icon_size" |
| 42 | android:layout_marginEnd="3dp"/> |
Mady Mellor | 87d7945 | 2017-01-10 11:52:52 -0800 | [diff] [blame] | 43 | <TextView |
| 44 | android:id="@+id/pkgname" |
| 45 | android:layout_width="wrap_content" |
| 46 | android:layout_height="wrap_content" |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 47 | android:textAppearance="@*android:style/TextAppearance.Material.Notification.Info" |
| 48 | android:layout_marginStart="3dp" |
| 49 | android:layout_marginEnd="2dp" |
| 50 | android:singleLine="true"/> |
Mady Mellor | 87d7945 | 2017-01-10 11:52:52 -0800 | [diff] [blame] | 51 | <TextView |
Geoffrey Pitsch | df44b60 | 2017-02-03 13:31:50 -0500 | [diff] [blame] | 52 | android:id="@+id/pkg_group_divider" |
| 53 | android:layout_width="wrap_content" |
| 54 | android:layout_height="wrap_content" |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 55 | android:textAppearance="@*android:style/TextAppearance.Material.Notification.Info" |
Geoffrey Pitsch | df44b60 | 2017-02-03 13:31:50 -0500 | [diff] [blame] | 56 | android:layout_marginStart="2dp" |
| 57 | android:layout_marginEnd="2dp" |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 58 | android:text="@*android:string/notification_header_divider_symbol"/> |
Geoffrey Pitsch | df44b60 | 2017-02-03 13:31:50 -0500 | [diff] [blame] | 59 | <TextView |
| 60 | android:id="@+id/group_name" |
| 61 | android:layout_width="wrap_content" |
| 62 | android:layout_height="wrap_content" |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 63 | android:textAppearance="@*android:style/TextAppearance.Material.Notification.Info" |
| 64 | android:layout_marginStart="2dp" |
| 65 | android:layout_marginEnd="2dp"/> |
Geoffrey Pitsch | df44b60 | 2017-02-03 13:31:50 -0500 | [diff] [blame] | 66 | </LinearLayout> |
| 67 | |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 68 | <!-- Channel Info Block --> |
Geoffrey Pitsch | df44b60 | 2017-02-03 13:31:50 -0500 | [diff] [blame] | 69 | <LinearLayout |
| 70 | android:layout_width="match_parent" |
| 71 | android:layout_height="wrap_content" |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 72 | android:layout_marginBottom="20dp" |
| 73 | android:layout_marginEnd="@*android:dimen/notification_content_margin_end" |
Geoffrey Pitsch | 747f25c | 2017-05-12 14:19:29 -0400 | [diff] [blame^] | 74 | android:orientation="vertical"> |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 75 | <!-- Channel Text --> |
| 76 | <LinearLayout |
Geoffrey Pitsch | 747f25c | 2017-05-12 14:19:29 -0400 | [diff] [blame^] | 77 | android:layout_width="match_parent" |
Mady Mellor | 87d7945 | 2017-01-10 11:52:52 -0800 | [diff] [blame] | 78 | android:layout_height="wrap_content" |
Geoffrey Pitsch | 747f25c | 2017-05-12 14:19:29 -0400 | [diff] [blame^] | 79 | android:orientation="horizontal"> |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 80 | <!-- Channel Name --> |
| 81 | <TextView |
| 82 | android:id="@+id/channel_name" |
Geoffrey Pitsch | 747f25c | 2017-05-12 14:19:29 -0400 | [diff] [blame^] | 83 | android:layout_width="0dp" |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 84 | android:layout_height="wrap_content" |
Geoffrey Pitsch | 747f25c | 2017-05-12 14:19:29 -0400 | [diff] [blame^] | 85 | android:layout_weight="1" |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 86 | android:layout_marginBottom="6dp" |
| 87 | style="@style/TextAppearance.NotificationInfo.Primary" /> |
Geoffrey Pitsch | 747f25c | 2017-05-12 14:19:29 -0400 | [diff] [blame^] | 88 | <!-- Ban Channel Switch --> |
| 89 | <Switch |
| 90 | android:id="@+id/channel_enabled_switch" |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 91 | android:layout_width="wrap_content" |
| 92 | android:layout_height="wrap_content" |
Geoffrey Pitsch | 747f25c | 2017-05-12 14:19:29 -0400 | [diff] [blame^] | 93 | android:layout_gravity="end|center_vertical" |
| 94 | android:contentDescription="@string/notification_channel_switch_accessibility" |
| 95 | android:background="@null" /> |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 96 | </LinearLayout> |
Geoffrey Pitsch | 747f25c | 2017-05-12 14:19:29 -0400 | [diff] [blame^] | 97 | <!-- Secondary Text - only one shows at a time --> |
| 98 | <TextView |
| 99 | android:id="@+id/channel_disabled" |
Mady Mellor | 87d7945 | 2017-01-10 11:52:52 -0800 | [diff] [blame] | 100 | android:layout_width="wrap_content" |
| 101 | android:layout_height="wrap_content" |
Geoffrey Pitsch | 747f25c | 2017-05-12 14:19:29 -0400 | [diff] [blame^] | 102 | android:text="@string/notification_channel_disabled" |
| 103 | style="@style/TextAppearance.NotificationInfo.Secondary.Warning" /> |
| 104 | <TextView |
| 105 | android:id="@+id/num_channels_desc" |
| 106 | android:layout_width="wrap_content" |
| 107 | android:layout_height="wrap_content" |
| 108 | android:text="@string/notification_channel_disabled" |
| 109 | style="@style/TextAppearance.NotificationInfo.Secondary" /> |
| 110 | <!-- Optional link to app. Only appears if the channel is not disabled --> |
| 111 | <TextView |
| 112 | android:id="@+id/app_settings" |
| 113 | android:layout_width="wrap_content" |
| 114 | android:layout_height="wrap_content" |
| 115 | android:visibility="gone" |
| 116 | android:ellipsize="end" |
| 117 | android:maxLines="1" |
| 118 | style="@style/TextAppearance.NotificationInfo.Secondary.Link"/> |
Mady Mellor | 87d7945 | 2017-01-10 11:52:52 -0800 | [diff] [blame] | 119 | </LinearLayout> |
Geoffrey Pitsch | df44b60 | 2017-02-03 13:31:50 -0500 | [diff] [blame] | 120 | |
Mady Mellor | 87d7945 | 2017-01-10 11:52:52 -0800 | [diff] [blame] | 121 | <!-- Settings and Done buttons --> |
| 122 | <LinearLayout |
| 123 | android:layout_width="match_parent" |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 124 | android:layout_height="48dp" |
| 125 | android:orientation="horizontal" |
Mady Mellor | 87d7945 | 2017-01-10 11:52:52 -0800 | [diff] [blame] | 126 | android:gravity="end" |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 127 | android:layout_marginBottom="8dp" > |
Mady Mellor | 87d7945 | 2017-01-10 11:52:52 -0800 | [diff] [blame] | 128 | <TextView |
| 129 | android:id="@+id/more_settings" |
| 130 | android:text="@string/notification_more_settings" |
| 131 | android:layout_width="wrap_content" |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 132 | android:layout_height="match_parent" |
| 133 | android:layout_marginEnd="8dp" |
| 134 | style="@style/TextAppearance.NotificationInfo.Button"/> |
Mady Mellor | 87d7945 | 2017-01-10 11:52:52 -0800 | [diff] [blame] | 135 | <TextView |
| 136 | android:id="@+id/done" |
| 137 | android:text="@string/notification_done" |
| 138 | android:layout_width="wrap_content" |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 139 | android:layout_height="match_parent" |
Mady Mellor | 87d7945 | 2017-01-10 11:52:52 -0800 | [diff] [blame] | 140 | android:layout_marginEnd="8dp" |
Geoffrey Pitsch | d0856f0 | 2017-02-16 10:51:18 -0500 | [diff] [blame] | 141 | style="@style/TextAppearance.NotificationInfo.Button"/> |
Mady Mellor | 87d7945 | 2017-01-10 11:52:52 -0800 | [diff] [blame] | 142 | </LinearLayout> |
| 143 | </com.android.systemui.statusbar.NotificationInfo> |