Julia Reynolds | 8582df5 | 2020-04-24 18:30:59 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright 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 | <com.android.systemui.statusbar.notification.row.PartialConversationInfo |
| 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | android:id="@+id/notification_guts" |
| 21 | android:layout_width="match_parent" |
| 22 | android:layout_height="wrap_content" |
| 23 | android:focusable="true" |
| 24 | android:clipChildren="false" |
| 25 | android:clipToPadding="true" |
| 26 | android:orientation="vertical" |
| 27 | android:paddingStart="@*android:dimen/notification_content_margin_start"> |
| 28 | |
| 29 | <!-- Package Info --> |
| 30 | <LinearLayout |
| 31 | android:id="@+id/header" |
| 32 | android:layout_width="match_parent" |
| 33 | android:layout_height="@dimen/notification_guts_conversation_header_height" |
| 34 | android:gravity="center_vertical" |
| 35 | android:clipChildren="false" |
| 36 | android:clipToPadding="false"> |
| 37 | <ImageView |
Julia Reynolds | 0b02ee7a | 2020-06-09 16:58:47 -0400 | [diff] [blame] | 38 | android:id="@+id/icon" |
Julia Reynolds | 8582df5 | 2020-04-24 18:30:59 -0400 | [diff] [blame] | 39 | android:layout_width="@dimen/notification_guts_conversation_icon_size" |
| 40 | android:layout_height="@dimen/notification_guts_conversation_icon_size" |
| 41 | android:layout_centerVertical="true" |
| 42 | android:layout_alignParentStart="true" |
| 43 | android:layout_marginEnd="15dp" /> |
| 44 | <LinearLayout |
| 45 | android:id="@+id/names" |
| 46 | android:layout_weight="1" |
| 47 | android:layout_width="0dp" |
| 48 | android:orientation="vertical" |
Julia Reynolds | 8582df5 | 2020-04-24 18:30:59 -0400 | [diff] [blame] | 49 | android:layout_height="wrap_content" |
| 50 | android:minHeight="@dimen/notification_guts_conversation_icon_size" |
| 51 | android:layout_centerVertical="true" |
| 52 | android:gravity="center_vertical" |
| 53 | android:layout_alignEnd="@id/conversation_icon" |
| 54 | android:layout_toEndOf="@id/conversation_icon"> |
Julia Reynolds | b2b1a95 | 2020-06-01 12:23:18 -0400 | [diff] [blame] | 55 | <TextView |
Julia Reynolds | 439970a | 2020-06-02 15:36:22 -0400 | [diff] [blame] | 56 | android:id="@+id/name" |
Julia Reynolds | 8582df5 | 2020-04-24 18:30:59 -0400 | [diff] [blame] | 57 | android:layout_width="match_parent" |
| 58 | android:layout_height="wrap_content" |
Julia Reynolds | b2b1a95 | 2020-06-01 12:23:18 -0400 | [diff] [blame] | 59 | android:ellipsize="end" |
| 60 | android:textDirection="locale" |
Julia Reynolds | 439970a | 2020-06-02 15:36:22 -0400 | [diff] [blame] | 61 | style="@style/TextAppearance.NotificationImportanceChannel"/> |
| 62 | <TextView |
Julia Reynolds | 8582df5 | 2020-04-24 18:30:59 -0400 | [diff] [blame] | 63 | android:id="@+id/delegate_name" |
| 64 | android:layout_width="match_parent" |
| 65 | android:layout_height="wrap_content" |
| 66 | android:layout_centerVertical="true" |
| 67 | style="@style/TextAppearance.NotificationImportanceHeader" |
| 68 | android:layout_marginStart="2dp" |
| 69 | android:layout_marginEnd="2dp" |
| 70 | android:ellipsize="end" |
Julia Reynolds | b2b1a95 | 2020-06-01 12:23:18 -0400 | [diff] [blame] | 71 | android:textDirection="locale" |
Julia Reynolds | 8582df5 | 2020-04-24 18:30:59 -0400 | [diff] [blame] | 72 | android:text="@string/notification_delegate_header" |
| 73 | android:maxLines="1" /> |
| 74 | |
| 75 | </LinearLayout> |
| 76 | |
| 77 | <!-- end aligned fields --> |
| 78 | <ImageButton |
| 79 | android:id="@+id/info" |
| 80 | android:layout_width="@dimen/notification_importance_toggle_size" |
| 81 | android:layout_height="@dimen/notification_importance_toggle_size" |
| 82 | android:layout_centerVertical="true" |
| 83 | android:background="@drawable/ripple_drawable" |
| 84 | android:contentDescription="@string/notification_more_settings" |
| 85 | android:src="@drawable/ic_settings" |
| 86 | android:layout_alignParentEnd="true" |
| 87 | android:tint="@color/notification_guts_link_icon_tint"/> |
| 88 | |
| 89 | </LinearLayout> |
| 90 | |
| 91 | <LinearLayout |
| 92 | android:id="@+id/inline_controls" |
| 93 | android:layout_width="match_parent" |
| 94 | android:layout_height="wrap_content" |
| 95 | android:paddingEnd="@*android:dimen/notification_content_margin_end" |
| 96 | android:layout_marginTop="@dimen/notification_guts_option_vertical_padding" |
| 97 | android:clipChildren="false" |
| 98 | android:clipToPadding="false" |
| 99 | android:orientation="vertical"> |
| 100 | |
Julia Reynolds | 435a7a4 | 2020-05-13 11:20:29 -0400 | [diff] [blame] | 101 | <com.android.systemui.statusbar.notification.row.ButtonLinearLayout |
| 102 | android:id="@+id/settings_link" |
Julia Reynolds | 8582df5 | 2020-04-24 18:30:59 -0400 | [diff] [blame] | 103 | android:layout_width="match_parent" |
| 104 | android:layout_height="wrap_content" |
Julia Reynolds | 435a7a4 | 2020-05-13 11:20:29 -0400 | [diff] [blame] | 105 | android:padding="@dimen/notification_importance_button_padding" |
| 106 | android:clickable="true" |
| 107 | android:focusable="true" |
| 108 | android:background="@drawable/notification_guts_priority_button_bg" |
| 109 | android:orientation="vertical"> |
| 110 | |
| 111 | <LinearLayout |
Julia Reynolds | 8582df5 | 2020-04-24 18:30:59 -0400 | [diff] [blame] | 112 | android:layout_width="match_parent" |
| 113 | android:layout_height="wrap_content" |
Julia Reynolds | 435a7a4 | 2020-05-13 11:20:29 -0400 | [diff] [blame] | 114 | android:clipChildren="false" |
| 115 | android:clipToPadding="false" |
Julia Reynolds | f870a11 | 2020-06-10 16:20:11 -0400 | [diff] [blame] | 116 | android:layout_centerVertical="true" |
Julia Reynolds | 435a7a4 | 2020-05-13 11:20:29 -0400 | [diff] [blame] | 117 | android:orientation="horizontal"> |
| 118 | <ImageView |
Julia Reynolds | f870a11 | 2020-06-10 16:20:11 -0400 | [diff] [blame] | 119 | android:layout_height="match_parent" |
Julia Reynolds | 435a7a4 | 2020-05-13 11:20:29 -0400 | [diff] [blame] | 120 | android:layout_width="wrap_content" |
| 121 | android:contentDescription="@null" |
| 122 | android:src="@drawable/ic_info" |
Julia Reynolds | f870a11 | 2020-06-10 16:20:11 -0400 | [diff] [blame] | 123 | android:layout_centerVertical="true" |
Julia Reynolds | 435a7a4 | 2020-05-13 11:20:29 -0400 | [diff] [blame] | 124 | android:tint="?android:attr/textColorPrimary" |
| 125 | android:layout_marginEnd="8dp"/> |
| 126 | <TextView |
| 127 | android:id="@+id/non_configurable_text" |
| 128 | android:layout_width="match_parent" |
| 129 | android:layout_height="wrap_content" |
Julia Reynolds | f870a11 | 2020-06-10 16:20:11 -0400 | [diff] [blame] | 130 | android:layout_centerVertical="true" |
Julia Reynolds | 435a7a4 | 2020-05-13 11:20:29 -0400 | [diff] [blame] | 131 | style="@style/TextAppearance.NotificationImportanceChannelGroup" /> |
| 132 | </LinearLayout> |
| 133 | </com.android.systemui.statusbar.notification.row.ButtonLinearLayout> |
Julia Reynolds | 8582df5 | 2020-04-24 18:30:59 -0400 | [diff] [blame] | 134 | |
| 135 | <RelativeLayout |
| 136 | android:id="@+id/bottom_buttons" |
| 137 | android:layout_width="match_parent" |
| 138 | android:layout_height="60dp" |
| 139 | android:gravity="center_vertical" |
| 140 | android:paddingStart="4dp" |
| 141 | android:paddingEnd="4dp" |
| 142 | > |
| 143 | <TextView |
| 144 | android:id="@+id/turn_off_notifications" |
| 145 | android:text="@string/inline_turn_off_notifications" |
| 146 | android:layout_width="wrap_content" |
| 147 | android:layout_height="wrap_content" |
| 148 | android:layout_alignParentStart="true" |
| 149 | android:gravity="start|center_vertical" |
| 150 | android:minWidth="@dimen/notification_importance_toggle_size" |
| 151 | android:minHeight="@dimen/notification_importance_toggle_size" |
| 152 | android:maxWidth="200dp" |
| 153 | style="@style/TextAppearance.NotificationInfo.Button"/> |
| 154 | <TextView |
| 155 | android:id="@+id/done" |
| 156 | android:text="@string/inline_done_button" |
| 157 | android:layout_width="wrap_content" |
| 158 | android:layout_height="wrap_content" |
| 159 | android:layout_alignParentEnd="true" |
| 160 | android:gravity="end|center_vertical" |
| 161 | android:minWidth="@dimen/notification_importance_toggle_size" |
| 162 | android:minHeight="@dimen/notification_importance_toggle_size" |
| 163 | android:maxWidth="125dp" |
| 164 | style="@style/TextAppearance.NotificationInfo.Button"/> |
| 165 | </RelativeLayout> |
| 166 | |
| 167 | </LinearLayout> |
| 168 | </com.android.systemui.statusbar.notification.row.PartialConversationInfo> |