1<?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-auto" 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 android:gravity="center_vertical" 27 > 28 29 <LinearLayout 30 android:id="@+id/status_icon_area" 31 android:layout_width="wrap_content" 32 android:layout_height="match_parent" 33 android:paddingTop="@dimen/status_bar_padding_top" 34 android:layout_alignParentEnd="true" 35 android:gravity="center_vertical|end" > 36 <FrameLayout android:id="@+id/system_icons_container" 37 android:layout_width="0dp" 38 android:layout_height="match_parent" 39 android:layout_weight="1" 40 android:layout_marginStart="@dimen/system_icons_super_container_margin_start" 41 android:gravity="center_vertical|end" 42 android:paddingEnd="@dimen/system_icons_keyguard_padding_end" > 43 <include layout="@layout/system_icons" /> 44 </FrameLayout> 45 46 <com.android.systemui.statusbar.phone.MultiUserSwitch android:id="@+id/multi_user_switch" 47 android:layout_width="@dimen/multi_user_switch_width_keyguard" 48 android:layout_height="match_parent" 49 android:background="@drawable/ripple_drawable" 50 android:layout_marginEnd="@dimen/multi_user_switch_keyguard_margin"> 51 <ImageView android:id="@+id/multi_user_avatar" 52 android:layout_width="@dimen/multi_user_avatar_keyguard_size" 53 android:layout_height="@dimen/multi_user_avatar_keyguard_size" 54 android:layout_gravity="center" 55 android:scaleType="centerInside"/> 56 </com.android.systemui.statusbar.phone.MultiUserSwitch> 57 </LinearLayout> 58 59 <Space 60 android:id="@+id/cutout_space_view" 61 android:layout_width="0dp" 62 android:layout_height="match_parent" 63 android:gravity="center" 64 android:visibility="gone" /> 65 66 <com.android.keyguard.CarrierText 67 android:id="@+id/keyguard_carrier_text" 68 android:layout_width="match_parent" 69 android:layout_height="match_parent" 70 android:paddingTop="@dimen/status_bar_padding_top" 71 android:layout_marginStart="@dimen/keyguard_carrier_text_margin" 72 android:layout_toStartOf="@id/system_icons_container" 73 android:gravity="center_vertical" 74 android:ellipsize="marquee" 75 android:textDirection="locale" 76 android:textAppearance="@style/TextAppearance.StatusBar.Clock" 77 android:textColor="?attr/wallpaperTextColorSecondary" 78 android:singleLine="true" 79 systemui:showMissingSim="true" 80 systemui:showAirplaneMode="true" /> 81 82</com.android.systemui.statusbar.phone.KeyguardStatusBarView> 83