1<?xml version="1.0" encoding="utf-8"?><!-- 2 ~ Copyright (C) 2020 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 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" 19 android:id="@+id/tile_view" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:orientation="vertical"> 23 24 <LinearLayout 25 android:orientation="vertical" 26 android:background="?androidprv:attr/colorSurface" 27 android:padding="12dp" 28 android:elevation="4dp" 29 android:layout_width="match_parent" 30 android:layout_height="wrap_content"> 31 32 <LinearLayout 33 android:orientation="horizontal" 34 android:layout_width="match_parent" 35 android:layout_height="wrap_content" 36 android:gravity="start"> 37 38 <ImageView 39 android:id="@+id/tile_view_person_icon" 40 android:layout_width="@dimen/avatar_size_for_medium" 41 android:layout_height="@dimen/avatar_size_for_medium" /> 42 43 <LinearLayout 44 android:orientation="horizontal" 45 android:layout_width="wrap_content" 46 android:layout_height="wrap_content" 47 android:layout_gravity="center_vertical"> 48 49 <TextView 50 android:id="@+id/tile_view_name" 51 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.ListItem" 52 android:paddingHorizontal="16dp" 53 android:textSize="22sp" 54 android:layout_width="wrap_content" 55 android:layout_height="wrap_content" 56 android:layout_gravity="center_vertical"/> 57 </LinearLayout> 58 </LinearLayout> 59 </LinearLayout> 60</LinearLayout>