| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Copyright (C) 2023 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:systemui="http://schemas.android.com/apk/res-auto" |
| android:clipChildren="false" |
| android:alpha="0" |
| android:layout_height="wrap_content" |
| android:layout_width="match_parent" |
| android:orientation="vertical" |
| android:gravity="center"> |
| |
| <FrameLayout |
| android:id="@+id/current_user_frame" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content"> |
| <ImageView |
| android:id="@+id/user_avatar" |
| android:layout_width="@dimen/user_picker_user_avatar_size" |
| android:layout_height="@dimen/user_picker_user_avatar_size" |
| android:background="?android:attr/selectableItemBackground" |
| android:layout_gravity="center"/> |
| <ImageView |
| android:id="@+id/user_avatar_border" |
| android:layout_width="@dimen/user_picker_user_avatar_border_size" |
| android:layout_height="@dimen/user_picker_user_avatar_border_size" |
| android:src="@drawable/car_border_circle" |
| android:tint="@color/user_picker_current_login_state_color" |
| android:layout_gravity="center" |
| android:visibility="gone"/> |
| </FrameLayout> |
| |
| <TextView |
| android:id="@+id/user_name" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="@*android:dimen/car_padding_2" |
| android:textSize="@dimen/user_picker_user_name_text_size" |
| android:textColor="@color/user_picker_user_name_color" |
| android:textFontWeight="500" |
| android:singleLine="true" |
| android:ellipsize="end" |
| android:gravity="center"/> |
| <TextView |
| android:id="@+id/logged_in_info" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:textSize="@dimen/user_picker_login_state_text_size" |
| android:layout_marginTop="@*android:dimen/car_padding_0" |
| android:singleLine="true" |
| android:ellipsize="end" |
| android:gravity="center"/> |
| </LinearLayout> |