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