1<!-- 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:theme="@android:style/Theme.DeviceDefault.DayNight" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:orientation="vertical"> 22 23 <LinearLayout 24 android:background="@drawable/people_space_tile_view_card" 25 android:clipToOutline="true" 26 android:id="@android:id/background" 27 android:orientation="horizontal" 28 android:gravity="center" 29 android:layout_gravity="center" 30 android:paddingVertical="8dp" 31 android:paddingHorizontal="2dp" 32 android:layout_width="match_parent" 33 android:layout_height="match_parent"> 34 <TextView 35 android:layout_weight="6" 36 android:layout_width="0dp" 37 android:layout_height="match_parent"/> 38 39 <LinearLayout 40 android:layout_weight="34" 41 android:orientation="vertical" 42 android:gravity="start|center_vertical" 43 android:layout_gravity="start|center_vertical" 44 android:layout_width="0dp" 45 android:layout_height="match_parent"> 46 <TextView 47 android:layout_weight="1" 48 android:layout_width="wrap_content" 49 android:layout_height="wrap_content"/> 50 <ImageView 51 android:layout_weight="1" 52 android:gravity="start" 53 android:layout_gravity="start" 54 android:layout_width="wrap_content" 55 android:layout_height="wrap_content" 56 android:src="@drawable/ic_avatar_with_badge" 57 android:adjustViewBounds="true" 58 android:scaleType="centerInside" /> 59 60 <TextView 61 android:id="@+id/name" 62 android:paddingTop="2dp" 63 android:text="@string/empty_user_name" 64 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification.Title" 65 android:textColor="?android:attr/textColorPrimary" 66 android:textSize="12sp" 67 android:maxLines="1" 68 android:ellipsize="end" 69 android:layout_width="wrap_content" 70 android:layout_height="wrap_content" /> 71 <TextView 72 android:layout_weight="1" 73 android:layout_width="wrap_content" 74 android:layout_height="wrap_content"/> 75 </LinearLayout> 76 77 <TextView 78 android:layout_weight="52" 79 android:layout_width="0dp" 80 android:layout_height="wrap_content" 81 android:ellipsize="end" 82 android:maxLines="2" 83 android:text="@string/empty_status" 84 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification.Title" 85 android:textColor="?android:attr/textColorPrimary" 86 android:textSize="12sp" /> 87 <TextView 88 android:layout_weight="6" 89 android:layout_width="0dp" 90 android:layout_height="wrap_content"/> 91 </LinearLayout> 92</LinearLayout>