blob: 55da5bc4be15ed30a2e6af59c9b0f5bda8e54aa5 [file] [log] [blame]
Jorim Jaggi4538027d2014-07-30 15:43:13 +02001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 ~ Copyright (C) 2014 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
18<!-- Extends RelativeLayout -->
19<com.android.systemui.statusbar.phone.KeyguardStatusBarView
20 xmlns:android="http://schemas.android.com/apk/res/android"
21 xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
22 android:id="@+id/keyguard_header"
23 android:layout_width="match_parent"
24 android:layout_height="@dimen/status_bar_header_height_keyguard"
25 android:baselineAligned="false"
26 >
27
Evan Laird264275e2018-03-01 19:39:39 -050028 <LinearLayout
29 android:id="@+id/status_icon_area"
30 android:layout_width="wrap_content"
Selim Cinek6ebba592016-05-31 15:28:28 -070031 android:layout_height="match_parent"
Jorim Jaggi4538027d2014-07-30 15:43:13 +020032 android:layout_alignParentEnd="true"
Evan Laird264275e2018-03-01 19:39:39 -050033 android:gravity="center_vertical|end" >
Jorim Jaggi4538027d2014-07-30 15:43:13 +020034 <FrameLayout android:id="@+id/system_icons_container"
Evan Laird264275e2018-03-01 19:39:39 -050035 android:layout_width="0dp"
Jorim Jaggi4538027d2014-07-30 15:43:13 +020036 android:layout_height="@dimen/status_bar_height"
Evan Laird264275e2018-03-01 19:39:39 -050037 android:layout_weight="1"
38 android:layout_marginStart="@dimen/system_icons_super_container_margin_start"
39 android:gravity="center_vertical|end"
40 android:paddingEnd="@dimen/system_icons_keyguard_padding_end" >
Jorim Jaggi4538027d2014-07-30 15:43:13 +020041 <include layout="@layout/system_icons" />
42 </FrameLayout>
Evan Laird264275e2018-03-01 19:39:39 -050043
44 <com.android.systemui.statusbar.phone.MultiUserSwitch android:id="@+id/multi_user_switch"
45 android:layout_width="@dimen/multi_user_switch_width_keyguard"
46 android:layout_height="match_parent"
47 android:background="@drawable/ripple_drawable"
48 android:layout_marginEnd="@dimen/multi_user_switch_keyguard_margin">
49 <ImageView android:id="@+id/multi_user_avatar"
50 android:layout_width="@dimen/multi_user_avatar_keyguard_size"
51 android:layout_height="@dimen/multi_user_avatar_keyguard_size"
52 android:layout_gravity="center"
53 android:scaleType="centerInside"/>
54 </com.android.systemui.statusbar.phone.MultiUserSwitch>
Jorim Jaggi4538027d2014-07-30 15:43:13 +020055 </LinearLayout>
56
Evan Laird264275e2018-03-01 19:39:39 -050057 <Space
58 android:id="@+id/cutout_space_view"
59 android:layout_width="0dp"
60 android:layout_height="match_parent"
61 android:gravity="center"
62 android:visibility="gone" />
63
Jorim Jaggi4538027d2014-07-30 15:43:13 +020064 <com.android.keyguard.CarrierText
65 android:id="@+id/keyguard_carrier_text"
66 android:layout_width="match_parent"
Selim Cinek6ebba592016-05-31 15:28:28 -070067 android:layout_height="match_parent"
Jorim Jaggi4538027d2014-07-30 15:43:13 +020068 android:layout_marginStart="@dimen/keyguard_carrier_text_margin"
Evan Laird264275e2018-03-01 19:39:39 -050069 android:layout_toStartOf="@id/system_icons_container"
Jorim Jaggi4538027d2014-07-30 15:43:13 +020070 android:gravity="center_vertical"
71 android:ellipsize="marquee"
Evan Lairdaca8c632018-04-17 16:22:50 -040072 android:textDirection="locale"
Jorim Jaggi4538027d2014-07-30 15:43:13 +020073 android:textAppearance="?android:attr/textAppearanceSmall"
Lucas Dupina360e1e72017-07-17 17:25:20 -070074 android:textColor="?attr/wallpaperTextColorSecondary"
Jorim Jaggi4538027d2014-07-30 15:43:13 +020075 android:singleLine="true" />
76
77</com.android.systemui.statusbar.phone.KeyguardStatusBarView>