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<com.android.systemui.statusbar.notification.row.HybridConversationNotificationView 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:gravity="center_vertical|start" 23 android:paddingEnd="12dp"> 24 25 <FrameLayout 26 android:layout_width="@*android:dimen/conversation_content_start" 27 android:layout_height="@dimen/conversation_single_line_face_pile_size" 28 android:paddingHorizontal="16dp" 29 > 30 <ImageView 31 android:id="@*android:id/conversation_icon" 32 android:layout_width="@dimen/conversation_single_line_avatar_size" 33 android:layout_height="@dimen/conversation_single_line_avatar_size" 34 android:layout_gravity="center_vertical|end" 35 /> 36 37 <ViewStub 38 android:id="@*android:id/conversation_face_pile" 39 android:layout="@*android:layout/conversation_face_pile_layout" 40 android:layout_width="@dimen/conversation_single_line_face_pile_size" 41 android:layout_height="@dimen/conversation_single_line_face_pile_size" 42 android:layout_gravity="center_vertical|end" 43 /> 44 </FrameLayout> 45 46 <TextView 47 android:id="@+id/notification_title" 48 android:layout_width="wrap_content" 49 android:layout_height="wrap_content" 50 android:singleLine="true" 51 android:paddingEnd="8dp" 52 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification.Title" 53 /> 54 55 <TextView 56 android:id="@+id/conversation_notification_sender" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:singleLine="true" 60 android:paddingEnd="4dp" 61 style="@*android:style/Widget.DeviceDefault.Notification.Text" 62 /> 63 64 <TextView 65 android:id="@+id/notification_text" 66 android:layout_width="match_parent" 67 android:layout_height="wrap_content" 68 android:singleLine="true" 69 android:paddingEnd="4dp" 70 style="@*android:style/Widget.DeviceDefault.Notification.Text" 71 /> 72</com.android.systemui.statusbar.notification.row.HybridConversationNotificationView> 73