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