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 17<!-- 18 NOTE: This layout is meant to be used by the UserInfoView widget only 19--> 20<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 21 xmlns:admin_ui="http://schemas.android.com/apk/res-auto" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent" 24 android:orientation="horizontal" > 25 <FrameLayout 26 android:layout_width="wrap_content" 27 android:layout_height="match_parent" 28 android:layout_marginRight="30dp"> 29 <com.android.car.admin.ui.UserAvatarView 30 android:id="@+id/user_avatar" 31 android:layout_width="108dp" 32 android:layout_height="108dp" 33 admin_ui:badgeDiameter="36dp" 34 admin_ui:badgeMargin="2dp" 35 /> 36 </FrameLayout> 37 38 <LinearLayout 39 android:layout_width="wrap_content" 40 android:layout_height="match_parent" 41 android:orientation="vertical" > 42 <LinearLayout 43 android:layout_width="match_parent" 44 android:layout_height="wrap_content" 45 android:orientation="horizontal" > 46 <TextView 47 android:layout_width="wrap_content" 48 android:layout_height="wrap_content" android:text="ID: "/> 49 <EditText 50 android:id="@+id/user_id" 51 android:enabled="false" 52 android:layout_width="wrap_content" 53 android:layout_height="wrap_content" android:text=""/> 54 <TextView 55 android:layout_width="wrap_content" 56 android:layout_height="wrap_content" android:text="Name: "/> 57 <EditText 58 android:id="@+id/user_name" 59 android:enabled="false" 60 android:layout_width="wrap_content" 61 android:layout_height="wrap_content" android:text=""/> 62 <TextView 63 android:id="@+id/managed" 64 android:layout_width="wrap_content" 65 android:layout_height="wrap_content" 66 android:visibility="gone"/> 67 </LinearLayout> 68 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 69 android:layout_width="match_parent" 70 android:layout_height="wrap_content" 71 android:orientation="horizontal" > 72 <TextView 73 android:layout_width="wrap_content" 74 android:layout_height="wrap_content" android:text="Type: "/> 75 <EditText 76 android:id="@+id/user_type" 77 android:enabled="false" 78 android:layout_width="wrap_content" 79 android:layout_height="wrap_content" android:text=""/> 80 </LinearLayout> 81 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 82 android:layout_width="match_parent" 83 android:layout_height="wrap_content" 84 android:orientation="horizontal" > 85 <TextView 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" android:text="Flags: "/> 88 <EditText 89 android:id="@+id/user_flags" 90 android:enabled="false" 91 android:layout_width="wrap_content" 92 android:layout_height="wrap_content" android:text=""/> 93 </LinearLayout> 94 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 95 android:layout_width="match_parent" 96 android:layout_height="wrap_content" 97 android:orientation="horizontal" > 98 <TextView 99 android:layout_width="wrap_content" 100 android:layout_height="wrap_content" android:text="Status: "/> 101 <EditText 102 android:id="@+id/user_status" 103 android:enabled="false" 104 android:layout_width="wrap_content" 105 android:layout_height="wrap_content" android:text=""/> 106 </LinearLayout> 107 </LinearLayout> 108</LinearLayout> 109