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