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<LinearLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" 20 android:theme="@android:style/Theme.DeviceDefault.DayNight" 21 android:id="@android:id/background" 22 android:background="@drawable/people_space_tile_view_card" 23 android:clipToOutline="true" 24 android:layout_gravity="center" 25 android:layout_width="match_parent" 26 android:layout_height="match_parent" 27 android:orientation="vertical"> 28 <RelativeLayout 29 android:layout_width="match_parent" 30 android:layout_height="match_parent"> 31 <include layout="@layout/people_tile_punctuation_background_medium" /> 32 <include layout="@layout/people_tile_emoji_background_medium" /> 33 <include layout="@layout/people_status_scrim_layout" /> 34 <LinearLayout 35 android:id="@+id/content" 36 android:orientation="vertical" 37 android:layout_gravity="center" 38 android:padding="8dp" 39 android:layout_width="match_parent" 40 android:layout_height="match_parent"> 41 42 <LinearLayout 43 android:orientation="horizontal" 44 android:gravity="top" 45 android:layout_weight="1" 46 android:layout_width="match_parent" 47 android:layout_height="0dp"> 48 49 <ImageView 50 android:gravity="start" 51 android:id="@+id/person_icon" 52 android:layout_width="52dp" 53 android:layout_height="52dp" /> 54 55 <ImageView 56 android:id="@+id/availability" 57 android:layout_marginStart="-2dp" 58 android:layout_width="10dp" 59 android:layout_height="10dp" 60 android:background="@drawable/availability_dot_10dp" /> 61 62 <LinearLayout 63 android:id="@+id/medium_content" 64 android:orientation="vertical" 65 android:gravity="top|start" 66 android:paddingStart="12dp" 67 android:paddingBottom="@dimen/medium_content_padding_above_name" 68 android:layout_width="match_parent" 69 android:layout_height="wrap_content"> 70 71 <TextView 72 android:id="@+id/subtext" 73 android:text="@string/empty_user_name" 74 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification.Title" 75 android:textColor="?android:attr/textColorSecondary" 76 android:textSize="12sp" 77 android:paddingBottom="8dp" 78 android:layout_width="match_parent" 79 android:layout_height="wrap_content" 80 android:singleLine="true" 81 android:ellipsize="end" /> 82 83 <ImageView 84 android:id="@+id/image" 85 android:gravity="center" 86 android:background="@drawable/people_space_content_background" 87 android:clipToOutline="true" 88 android:layout_width="match_parent" 89 android:layout_height="match_parent" 90 android:scaleType="centerCrop" /> 91 92 <TextView 93 android:id="@+id/text_content" 94 android:text="@string/empty_status" 95 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification.Title" 96 android:textColor="?android:attr/textColorPrimary" 97 android:textSize="@dimen/content_text_size_for_medium" 98 android:layout_width="match_parent" 99 android:layout_height="wrap_content" 100 android:maxLines="2" 101 android:singleLine="false" 102 android:ellipsize="end" /> 103 </LinearLayout> 104 </LinearLayout> 105 106 <LinearLayout 107 android:gravity="bottom" 108 android:layout_gravity="center_vertical" 109 android:orientation="horizontal" 110 android:layout_width="match_parent" 111 android:layout_height="wrap_content" 112 android:minHeight="18dp" 113 android:clipToOutline="true"> 114 <TextView 115 android:id="@+id/name" 116 android:layout_gravity="start|center_vertical" 117 android:gravity="start|center_vertical" 118 android:text="@string/empty_user_name" 119 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification.Title" 120 android:textColor="?android:attr/textColorPrimary" 121 android:textSize="@dimen/name_text_size_for_medium_content" 122 android:singleLine="true" 123 android:ellipsize="end" 124 android:paddingEnd="8dp" 125 android:layout_width="wrap_content" 126 android:layout_height="wrap_content" /> 127 <TextView 128 android:layout_weight="1" 129 android:layout_width="wrap_content" 130 android:layout_height="wrap_content" /> 131 <TextView 132 android:id="@+id/messages_count" 133 android:gravity="end" 134 android:layout_marginStart="-32dp" 135 android:paddingStart="8dp" 136 android:paddingEnd="8dp" 137 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification.Title" 138 android:textColor="?androidprv:attr/textColorOnAccent" 139 android:background="@drawable/people_space_messages_count_background" 140 android:textSize="14sp" 141 android:maxLines="1" 142 android:ellipsize="end" 143 android:layout_width="wrap_content" 144 android:layout_height="wrap_content" 145 android:visibility="gone" 146 /> 147 <ImageView 148 android:id="@+id/predefined_icon" 149 android:tint="?android:attr/textColorSecondary" 150 android:gravity="end|center_vertical" 151 android:layout_marginStart="-24dp" 152 android:layout_width="@dimen/regular_predefined_icon" 153 android:layout_height="@dimen/regular_predefined_icon" /> 154 </LinearLayout> 155 </LinearLayout> 156 </RelativeLayout> 157</LinearLayout> 158 159