1<!--
2  ~ Copyright (C) 2022 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<androidx.constraintlayout.widget.ConstraintLayout
17    xmlns:android="http://schemas.android.com/apk/res/android"
18    xmlns:app="http://schemas.android.com/apk/res-auto"
19    android:layout_width="wrap_content"
20    android:layout_height="wrap_content"
21    android:orientation="vertical">
22
23    <ImageView
24        android:id="@+id/user_switcher_icon"
25        android:layout_width="@dimen/bouncer_user_switcher_icon_size_plus_margin"
26        android:layout_height="@dimen/bouncer_user_switcher_icon_size_plus_margin"
27        app:layout_constraintEnd_toEndOf="parent"
28        app:layout_constraintStart_toStartOf="parent"
29        app:layout_constraintTop_toTopOf="parent" />
30
31    <TextView
32        android:id="@+id/user_switcher_text"
33        style="@style/Bouncer.UserSwitcher.Spinner.Item"
34        android:layout_width="0dp"
35        android:layout_height="wrap_content"
36        android:ellipsize="end"
37        android:gravity="center"
38        android:textColor="@*android:color/text_color_primary_device_default_dark"
39        app:layout_constraintEnd_toEndOf="@id/user_switcher_icon"
40        app:layout_constraintStart_toStartOf="@id/user_switcher_icon"
41        app:layout_constraintTop_toBottomOf="@id/user_switcher_icon" />
42</androidx.constraintlayout.widget.ConstraintLayout>
43