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 <ScrollView 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content"> 23 <!-- Current user info --> 24 <LinearLayout 25 android:layout_width="match_parent" 26 android:layout_height="wrap_content" 27 android:orientation="vertical" > 28 <TextView 29 android:layout_width="wrap_content" 30 android:layout_height="wrap_content" android:text="Current User"/> 31 <com.google.android.car.kitchensink.users.UserInfoView 32 android:id="@+id/current_user" 33 android:layout_width="wrap_content" android:layout_height="wrap_content"/> 34 35 <!-- Existing users... --> 36 <com.google.android.car.kitchensink.users.ExistingUsersView 37 android:layout_marginTop="80dp" 38 android:id="@+id/current_users" 39 android:layout_width="wrap_content" 40 android:layout_height="wrap_content" /> 41 42 <!-- ...and actions on them --> 43 <LinearLayout android:layout_width="match_parent" 44 android:layout_height="wrap_content" 45 android:orientation="horizontal" > 46 <Button 47 android:id="@+id/remove_user" 48 android:layout_width="wrap_content" 49 android:layout_height="wrap_content" 50 android:text="Remove"/> 51 <Button 52 android:id="@+id/start_user_in_background" 53 android:layout_width="wrap_content" 54 android:layout_height="wrap_content" 55 android:text="Start In Background"/> 56 <Button 57 android:id="@+id/stop_user" 58 android:layout_width="wrap_content" 59 android:layout_height="wrap_content" 60 android:text="Stop"/> 61 </LinearLayout> 62 63 <!-- New user section --> 64 <TextView 65 android:layout_marginTop="80dp" 66 android:layout_width="wrap_content" 67 android:layout_height="wrap_content" android:text="New User"/> 68 <LinearLayout android:layout_width="match_parent" 69 android:layout_height="wrap_content" 70 android:orientation="horizontal" > 71 <TextView 72 android:layout_width="wrap_content" 73 android:layout_height="wrap_content" android:text="Name: "/> 74 <EditText 75 android:id="@+id/new_user_name" 76 android:layout_width="150dp" 77 android:layout_height="wrap_content" 78 android:maxLength="25" 79 android:text=""/> 80 <TextView 81 android:layout_width="wrap_content" 82 android:layout_height="wrap_content" android:text="Is admin? "/> 83 <CheckBox android:layout_width="wrap_content" android:layout_height="wrap_content" 84 android:id="@+id/new_user_is_admin"/> 85 <TextView 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" android:text="Is guest? "/> 88 <CheckBox android:layout_width="wrap_content" android:layout_height="wrap_content" 89 android:id="@+id/new_user_is_guest"/> 90 </LinearLayout> 91 <LinearLayout android:layout_width="match_parent" 92 android:layout_height="wrap_content" 93 android:orientation="horizontal" > 94 <Button 95 android:id="@+id/create_user" 96 android:layout_width="wrap_content" 97 android:layout_height="wrap_content" android:text="Create"/> 98 </LinearLayout> 99 100 <!-- Non user-related actions --> 101 <TextView 102 android:layout_marginTop="80dp" 103 android:layout_width="wrap_content" 104 android:layout_height="wrap_content" 105 android:text="Other actions"/> 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" 112 android:text="Password"/> 113 <EditText 114 android:id="@+id/password" 115 android:layout_width="150dp" 116 android:layout_height="wrap_content" 117 android:maxLength="10" 118 android:text=""/> 119 <Button 120 android:id="@+id/reset_password" 121 android:layout_width="wrap_content" 122 android:layout_height="wrap_content" 123 android:text="Reset"/> 124 <Button 125 android:id="@+id/lock_now" 126 android:layout_width="wrap_content" 127 android:layout_height="wrap_content" 128 android:text="Lock Now"/> 129 </LinearLayout> 130 131 <LinearLayout android:layout_width="match_parent" 132 android:layout_height="wrap_content" 133 android:orientation="horizontal" > 134 <TextView 135 android:layout_width="wrap_content" 136 android:layout_height="wrap_content" 137 android:text="Wipe data"/> 138 <EditText 139 android:id="@+id/wipe_data_flags" 140 android:layout_width="150dp" 141 android:layout_height="wrap_content" 142 android:maxLength="10" 143 android:text=""/> 144 <Button 145 android:id="@+id/wipe_data" 146 android:layout_width="wrap_content" 147 android:layout_height="wrap_content" 148 android:text="Do it"/> 149 </LinearLayout> 150 151 <LinearLayout android:layout_width="match_parent" 152 android:layout_height="wrap_content" 153 android:orientation="horizontal" > 154 <TextView 155 android:layout_width="wrap_content" 156 android:layout_height="wrap_content" 157 android:text="Lock tasks"/> 158 <Button 159 android:id="@+id/check_lock_tasks" 160 android:layout_width="wrap_content" 161 android:layout_height="wrap_content" 162 android:text="Check"/> 163 <Button 164 android:id="@+id/start_lock_tasks" 165 android:layout_width="wrap_content" 166 android:layout_height="wrap_content" 167 android:text="Start"/> 168 <Button 169 android:id="@+id/stop_lock_tasks" 170 android:layout_width="wrap_content" 171 android:layout_height="wrap_content" 172 android:text="Stop"/> 173 </LinearLayout> 174 175 <LinearLayout android:layout_width="match_parent" 176 android:layout_height="wrap_content" 177 android:orientation="horizontal" > 178 <TextView 179 android:layout_width="wrap_content" 180 android:layout_height="wrap_content" 181 android:text="Add admin"/> 182 <Spinner 183 android:id="@+id/device_admin_apps" 184 android:layout_width="wrap_content" 185 android:layout_height="wrap_content"/> 186 <Button 187 android:id="@+id/set_device_admin_app" 188 android:layout_width="wrap_content" 189 android:layout_height="wrap_content" 190 android:text="Set"/> 191 </LinearLayout> 192 </LinearLayout> 193 </ScrollView> 194</LinearLayout> 195