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 <com.android.internal.widget.CachingIconView 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 android:scaleType="centerCrop" 36 /> 37 38 <ViewStub 39 android:id="@*android:id/conversation_face_pile" 40 android:layout="@*android:layout/conversation_face_pile_layout" 41 android:layout_width="@dimen/conversation_single_line_face_pile_size" 42 android:layout_height="@dimen/conversation_single_line_face_pile_size" 43 android:layout_gravity="center_vertical|end" 44 /> 45 </FrameLayout> 46 47 <TextView 48 android:id="@+id/notification_title" 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:singleLine="true" 52 android:paddingEnd="8dp" 53 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification.Title" 54 /> 55 56 <TextView 57 android:id="@+id/conversation_notification_sender" 58 android:layout_width="wrap_content" 59 android:layout_height="wrap_content" 60 android:singleLine="true" 61 android:paddingEnd="4dp" 62 style="@*android:style/Widget.DeviceDefault.Notification.Text" 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 android:paddingEnd="4dp" 71 style="@*android:style/Widget.DeviceDefault.Notification.Text" 72 /> 73</com.android.systemui.statusbar.notification.row.HybridConversationNotificationView> 74