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 xmlns:android="http://schemas.android.com/apk/res/android" 17 android:layout_width="match_parent" 18 android:layout_height="match_parent" 19 android:orientation="vertical" > 20 21 <!-- Current user info --> 22 <ScrollView 23 android:layout_width="wrap_content" 24 android:layout_height="wrap_content" android:text="Current User"/> 25 <com.google.android.car.kitchensink.users.UserInfoView 26 android:id="@+id/current_user" 27 android:layout_width="wrap_content" android:layout_height="wrap_content"/> 28 29 <!-- Actions on current user --> 30 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 31 android:layout_width="match_parent" 32 android:layout_height="wrap_content" 33 android:orientation="horizontal"> 34 <TextView 35 android:layout_width="wrap_content" 36 android:layout_height="wrap_content" 37 android:text="Is admin? "/> 38 <CheckBox 39 android:layout_width="wrap_content" 40 android:layout_height="wrap_content" 41 android:id="@+id/is_admin"/> 42 <TextView 43 android:layout_width="wrap_content" 44 android:layout_height="wrap_content" 45 android:text="Associate Key Fob?"/> 46 <CheckBox android:layout_width="wrap_content" android:layout_height="wrap_content" 47 android:id="@+id/is_associated_key_fob"/> 48 </LinearLayout> 49 50 <!-- Existing users... --> 51 <com.google.android.car.kitchensink.users.ExistingUsersView 52 android:layout_marginTop="80dp" 53 android:id="@+id/current_users" 54 android:layout_width="wrap_content" 55 android:layout_height="wrap_content" /> 56 57 <!-- ...and actions on them --> 58 <LinearLayout android:layout_width="match_parent" 59 android:layout_height="wrap_content" 60 android:orientation="horizontal" > 61 <Button 62 android:id="@+id/switch_user" 63 android:layout_width="wrap_content" 64 android:layout_height="wrap_content" 65 android:text="Switch"/> 66 <Button 67 android:id="@+id/remove_user" 68 android:layout_width="wrap_content" 69 android:layout_height="wrap_content" 70 android:text="Remove"/> 71 <Button 72 android:id="@+id/lock_user_data" 73 android:layout_width="wrap_content" 74 android:layout_height="wrap_content" 75 android:text="Lock Data"/> 76 </LinearLayout> 77 78 <!-- New user section --> 79 <TextView 80 android:layout_marginTop="80dp" 81 android:layout_width="wrap_content" 82 android:layout_height="wrap_content" android:text="New User"/> 83 <LinearLayout android:layout_width="match_parent" 84 android:layout_height="wrap_content" 85 android:orientation="horizontal" > 86 <TextView 87 android:layout_width="wrap_content" 88 android:layout_height="wrap_content" android:text="Name: "/> 89 <EditText 90 android:id="@+id/new_user_name" 91 android:layout_width="150dp" 92 android:layout_height="wrap_content" 93 android:maxLength="25" 94 android:text=""/> 95 <TextView 96 android:layout_width="wrap_content" 97 android:layout_height="wrap_content" android:text="Is admin? "/> 98 <CheckBox android:layout_width="wrap_content" android:layout_height="wrap_content" 99 android:id="@+id/new_user_is_admin"/> 100 <TextView 101 android:layout_width="wrap_content" 102 android:layout_height="wrap_content" android:text="Is guest? "/> 103 <CheckBox android:layout_width="wrap_content" android:layout_height="wrap_content" 104 android:id="@+id/new_user_is_guest"/> 105 </LinearLayout> 106 <LinearLayout android:layout_width="match_parent" 107 android:layout_height="wrap_content" 108 android:orientation="horizontal" > 109 <TextView 110 android:layout_width="wrap_content" 111 android:layout_height="wrap_content" android:text="Extra flags: "/> 112 <EditText 113 android:id="@+id/new_user_flags" 114 android:layout_width="30dp" 115 android:layout_height="wrap_content" 116 android:maxLength="3" 117 android:inputType="numberDecimal" 118 android:text=""/> 119 <Button 120 android:id="@+id/create_user" 121 android:layout_width="wrap_content" 122 android:layout_height="wrap_content" android:text="Create"/> 123 </LinearLayout> 124</LinearLayout> 125