1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2022 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16--> 17<LinearLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" 21 android:id="@+id/user_switcher_root" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent" 24 android:orientation="vertical"> 25 26 <ScrollView 27 android:layout_width="match_parent" 28 android:layout_height="0dp" 29 android:layout_weight="1" 30 android:fillViewport="true"> 31 32 <com.android.systemui.user.UserSwitcherRootView 33 android:id="@+id/user_switcher_grid_container" 34 android:layout_width="match_parent" 35 android:layout_height="wrap_content" 36 android:paddingTop="40dp" 37 android:paddingHorizontal="60dp"> 38 39 <androidx.constraintlayout.helper.widget.Flow 40 android:id="@+id/flow" 41 android:layout_width="0dp" 42 android:layout_height="wrap_content" 43 app:layout_constraintBottom_toBottomOf="parent" 44 app:layout_constraintTop_toTopOf="parent" 45 app:layout_constraintStart_toStartOf="parent" 46 app:layout_constraintEnd_toEndOf="parent" 47 app:flow_horizontalBias="0.5" 48 app:flow_verticalAlign="center" 49 app:flow_wrapMode="chain2" 50 app:flow_horizontalGap="@dimen/user_switcher_fullscreen_horizontal_gap" 51 app:flow_verticalGap="44dp" 52 app:flow_horizontalStyle="packed"/> 53 </com.android.systemui.user.UserSwitcherRootView> 54 55 </ScrollView> 56 57 <LinearLayout 58 android:layout_width="match_parent" 59 android:layout_height="96dp" 60 android:orientation="horizontal" 61 android:gravity="center_vertical|end" 62 android:paddingEnd="48dp"> 63 64 <TextView 65 android:id="@+id/cancel" 66 android:layout_width="wrap_content" 67 android:layout_height="wrap_content" 68 android:layout_gravity="center" 69 android:gravity="center" 70 android:minHeight="48dp" 71 android:paddingHorizontal="@dimen/user_switcher_fullscreen_button_padding" 72 android:textSize="@dimen/user_switcher_fullscreen_button_text_size" 73 android:textColor="?androidprv:attr/colorAccentPrimary" 74 android:text="@string/cancel" /> 75 76 <Space 77 android:layout_width="24dp" 78 android:layout_height="0dp" 79 /> 80 81 <TextView 82 android:id="@+id/add" 83 android:background="@drawable/user_switcher_fullscreen_button_bg" 84 android:layout_width="wrap_content" 85 android:layout_height="wrap_content" 86 android:layout_gravity="center" 87 android:gravity="center" 88 android:paddingHorizontal="@dimen/user_switcher_fullscreen_button_padding" 89 android:text="@string/add" 90 android:textColor="?androidprv:attr/colorAccentPrimary" 91 android:textSize="@dimen/user_switcher_fullscreen_button_text_size" 92 android:visibility="gone" 93 android:minHeight="48dp" /> 94 95 </LinearLayout> 96 97</LinearLayout> 98