98 lines
3.6 KiB
XML
98 lines
3.6 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<!--
|
||
|
Copyright (C) 2022 The Android Open Source Project
|
||
|
|
||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
you may not use this file except in compliance with the License.
|
||
|
You may obtain a copy of the License at
|
||
|
|
||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
Unless required by applicable law or agreed to in writing, software
|
||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
See the License for the specific language governing permissions and
|
||
|
limitations under the License.
|
||
|
-->
|
||
|
<LinearLayout
|
||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
|
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
|
||
|
android:id="@+id/user_switcher_root"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<ScrollView
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="0dp"
|
||
|
android:layout_weight="1"
|
||
|
android:fillViewport="true">
|
||
|
|
||
|
<com.android.systemui.user.UserSwitcherRootView
|
||
|
android:id="@+id/user_switcher_grid_container"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:paddingTop="40dp"
|
||
|
android:paddingHorizontal="60dp">
|
||
|
|
||
|
<androidx.constraintlayout.helper.widget.Flow
|
||
|
android:id="@+id/flow"
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||
|
app:layout_constraintTop_toTopOf="parent"
|
||
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
app:flow_horizontalBias="0.5"
|
||
|
app:flow_verticalAlign="center"
|
||
|
app:flow_wrapMode="chain2"
|
||
|
app:flow_horizontalGap="@dimen/user_switcher_fullscreen_horizontal_gap"
|
||
|
app:flow_verticalGap="44dp"
|
||
|
app:flow_horizontalStyle="packed"/>
|
||
|
</com.android.systemui.user.UserSwitcherRootView>
|
||
|
|
||
|
</ScrollView>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="96dp"
|
||
|
android:orientation="horizontal"
|
||
|
android:gravity="center_vertical|end"
|
||
|
android:paddingEnd="48dp">
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/cancel"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center"
|
||
|
android:gravity="center"
|
||
|
android:minHeight="48dp"
|
||
|
android:paddingHorizontal="@dimen/user_switcher_fullscreen_button_padding"
|
||
|
android:textSize="@dimen/user_switcher_fullscreen_button_text_size"
|
||
|
android:textColor="?androidprv:attr/colorAccentPrimary"
|
||
|
android:text="@string/cancel" />
|
||
|
|
||
|
<Space
|
||
|
android:layout_width="24dp"
|
||
|
android:layout_height="0dp"
|
||
|
/>
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/add"
|
||
|
android:background="@drawable/user_switcher_fullscreen_button_bg"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center"
|
||
|
android:gravity="center"
|
||
|
android:paddingHorizontal="@dimen/user_switcher_fullscreen_button_padding"
|
||
|
android:text="@string/add"
|
||
|
android:textColor="?androidprv:attr/colorAccentPrimary"
|
||
|
android:textSize="@dimen/user_switcher_fullscreen_button_text_size"
|
||
|
android:visibility="gone"
|
||
|
android:minHeight="48dp" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
</LinearLayout>
|