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<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 17 xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" 18 android:theme="@android:style/Theme.DeviceDefault.DayNight" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent"> 21 22 <LinearLayout 23 android:id="@android:id/background" 24 android:layout_width="match_parent" 25 android:layout_height="match_parent" 26 android:layout_gravity="center" 27 android:background="@drawable/people_space_tile_view_card" 28 android:clipToOutline="true" 29 android:orientation="vertical" 30 android:paddingHorizontal="4dp" 31 android:paddingTop="6dp" 32 android:paddingBottom="8dp"> 33 34 <ImageView 35 android:id="@+id/person_icon" 36 android:layout_gravity="center" 37 android:layout_width="wrap_content" 38 android:layout_height="wrap_content" 39 android:layout_weight="1" 40 android:paddingBottom="4dp"/> 41 42 <ImageView 43 android:id="@+id/predefined_icon" 44 android:tint="?android:attr/textColorSecondary" 45 android:layout_gravity="center" 46 android:layout_width="18dp" 47 android:layout_height="18dp" /> 48 49 <TextView 50 android:id="@+id/messages_count" 51 android:layout_gravity="center" 52 android:gravity="center" 53 android:paddingHorizontal="8dp" 54 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification.Title" 55 android:textColor="?androidprv:attr/textColorOnAccent" 56 android:background="@drawable/people_space_messages_count_background" 57 android:textSize="@dimen/name_text_size_for_small" 58 android:maxLines="1" 59 android:ellipsize="end" 60 android:layout_width="wrap_content" 61 android:layout_height="wrap_content" 62 android:visibility="gone" 63 /> 64 65 <TextView 66 android:id="@+id/name" 67 android:layout_gravity="center" 68 android:layout_width="wrap_content" 69 android:layout_height="wrap_content" 70 android:ellipsize="end" 71 android:maxLines="1" 72 android:paddingHorizontal="4dp" 73 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification.Title" 74 android:textColor="?android:attr/textColorPrimary" 75 android:textSize="@dimen/name_text_size_for_small" /> 76 </LinearLayout> 77</FrameLayout>