1<?xml version="1.0" encoding="utf-8"?>
2
3<!--
4  ~ Copyright (C) 2014 The Android Open Source Project
5  ~
6  ~ Licensed under the Apache License, Version 2.0 (the "License");
7  ~ you may not use this file except in compliance with the License.
8  ~ You may obtain a copy of the License at
9  ~
10  ~      http://www.apache.org/licenses/LICENSE-2.0
11  ~
12  ~ Unless required by applicable law or agreed to in writing, software
13  ~ distributed under the License is distributed on an "AS IS" BASIS,
14  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  ~ See the License for the specific language governing permissions and
16  ~ limitations under the License
17  -->
18
19<!-- LinearLayout -->
20<com.android.systemui.statusbar.policy.KeyguardUserDetailItemView
21        android:id="@+id/user_item"
22        xmlns:android="http://schemas.android.com/apk/res/android"
23        xmlns:systemui="http://schemas.android.com/apk/res-auto"
24        android:layout_width="wrap_content"
25        android:layout_height="wrap_content"
26        android:padding="8dp"
27        android:layout_marginEnd="8dp"
28        android:gravity="end|center_vertical"
29        android:clickable="true"
30        android:background="@drawable/kg_user_switcher_rounded_bg"
31        systemui:activatedTextAppearance="@style/TextAppearance.StatusBar.Expanded.UserSwitcher"
32        systemui:regularTextAppearance="@style/TextAppearance.StatusBar.Expanded.UserSwitcher">
33    <TextView
34        android:id="@+id/user_name"
35        android:layout_width="wrap_content"
36        android:layout_height="wrap_content"
37        android:layout_marginStart="20dp"
38        android:layout_marginEnd="16dp" />
39    <com.android.systemui.statusbar.phone.UserAvatarView
40        android:id="@+id/user_picture"
41        android:layout_width="@dimen/kg_framed_avatar_size"
42        android:layout_height="@dimen/kg_framed_avatar_size"
43        systemui:avatarPadding="0dp"
44        systemui:badgeDiameter="18dp"
45        systemui:badgeMargin="1dp"
46        systemui:frameWidth="0dp"
47        systemui:framePadding="0dp"
48        systemui:frameColor="@color/kg_user_avatar_frame" />
49</com.android.systemui.statusbar.policy.KeyguardUserDetailItemView>
50