1<?xml version="1.0" encoding="utf-8"?><!-- 2~ Copyright (C) 2021 The Android Open Source Project 3~ 4~ Licensed under the Apache License, Version 2.0 (the "License"); 5~ you may not use this file except in compliance with the License. 6~ You may obtain a copy of the License at 7~ 8~ http://www.apache.org/licenses/LICENSE-2.0 9~ 10~ Unless required by applicable law or agreed to in writing, software 11~ distributed under the License is distributed on an "AS IS" BASIS, 12~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13~ See the License for the specific language governing permissions and 14~ limitations under the License. 15--> 16<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 17 xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="match_parent" 20 android:layout_gravity="center" 21 android:padding="16dp" 22 android:orientation="vertical"> 23 24 <RelativeLayout 25 android:layout_width="match_parent" 26 android:layout_height="wrap_content" 27 android:gravity="start|top"> 28 29 <LinearLayout 30 android:layout_width="wrap_content" 31 android:layout_height="wrap_content" 32 android:layout_alignParentStart="true" 33 android:gravity="start|top" 34 android:orientation="horizontal"> 35 36 <ImageView 37 android:id="@+id/person_icon" 38 android:layout_width="wrap_content" 39 android:layout_height="wrap_content" 40 android:layout_weight="1" /> 41 42 <ImageView 43 android:id="@+id/availability" 44 android:layout_marginStart="-2dp" 45 android:layout_width="10dp" 46 android:layout_height="10dp" 47 android:background="@drawable/availability_dot_10dp" /> 48 </LinearLayout> 49 50 <TextView 51 android:id="@+id/messages_count" 52 android:layout_alignParentEnd="true" 53 android:paddingStart="8dp" 54 android:paddingEnd="8dp" 55 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification.Title" 56 android:textColor="?androidprv:attr/textColorOnAccent" 57 android:background="@drawable/people_space_messages_count_background" 58 android:textSize="14sp" 59 android:maxLines="1" 60 android:ellipsize="end" 61 android:layout_width="wrap_content" 62 android:layout_height="wrap_content" 63 android:visibility="gone" /> 64 </RelativeLayout> 65 66 <RelativeLayout 67 android:layout_width="match_parent" 68 android:layout_height="match_parent"> 69 70 <include layout="@layout/people_tile_punctuation_background_large" /> 71 72 <include layout="@layout/people_tile_emoji_background_large" /> 73 74 <TextView 75 android:id="@+id/name" 76 android:layout_width="wrap_content" 77 android:layout_height="wrap_content" 78 android:paddingBottom="@dimen/below_name_text_padding" 79 android:layout_gravity="start|center_vertical" 80 android:gravity="start|center_vertical" 81 android:singleLine="true" 82 android:ellipsize="end" 83 android:text="@string/empty_user_name" 84 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification.Title" 85 android:textColor="?android:attr/textColorPrimary" 86 android:textSize="@dimen/name_text_size_for_large_content" /> 87 88 <LinearLayout 89 android:id="@+id/content" 90 android:layout_below="@id/name" 91 android:layout_width="match_parent" 92 android:layout_height="match_parent" 93 android:orientation="vertical"> 94 95 <LinearLayout 96 android:id="@+id/status_icon_and_label" 97 android:layout_width="wrap_content" 98 android:layout_height="wrap_content" 99 android:paddingBottom="4dp" 100 android:gravity="center_vertical" 101 android:orientation="horizontal"> 102 103 <ImageView 104 android:id="@+id/predefined_icon" 105 android:tint="?android:attr/textColorSecondary" 106 android:gravity="start|center_vertical" 107 android:layout_width="@dimen/regular_predefined_icon" 108 android:layout_height="@dimen/regular_predefined_icon" /> 109 110 <TextView 111 android:layout_gravity="center" 112 android:id="@+id/subtext" 113 android:paddingBottom="4dp" 114 android:gravity="center_vertical" 115 android:layout_width="match_parent" 116 android:layout_height="wrap_content" 117 android:ellipsize="end" 118 android:singleLine="true" 119 android:text="@string/empty_user_name" 120 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification.Title" 121 android:textColor="?android:attr/textColorSecondary" 122 android:textSize="12sp" /> 123 </LinearLayout> 124 <ImageView 125 android:id="@+id/image" 126 android:layout_width="match_parent" 127 android:layout_height="match_parent" 128 android:background="@drawable/people_space_content_background" 129 android:clipToOutline="true" 130 android:gravity="center" 131 android:scaleType="centerCrop" /> 132 133 <TextView 134 android:layout_gravity="center" 135 android:id="@+id/text_content" 136 android:layout_width="match_parent" 137 android:layout_height="wrap_content" 138 android:ellipsize="end" 139 android:maxLines="2" 140 android:singleLine="false" 141 android:text="@string/empty_status" 142 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification.Title" 143 android:textColor="?android:attr/textColorPrimary" 144 android:textSize="@dimen/content_text_size_for_large" /> 145 </LinearLayout> 146 </RelativeLayout> 147</LinearLayout> 148