1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 ** 4 ** Copyright 2006, 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 20 <!-- android:background="@drawable/status_bar_closed_default_background" --> 21 <com.android.systemui.statusbar.phone.PhoneStatusBarView 22 xmlns:android="http://schemas.android.com/apk/res/android" 23 xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui" 24 android:layout_width="match_parent" 25 android:layout_height="@dimen/status_bar_height" 26 android:id="@+id/status_bar" 27 android:background="@drawable/system_bar_background" 28 android:orientation="vertical" 29 android:focusable="false" 30 android:descendantFocusability="afterDescendants" 31 android:accessibilityPaneTitle="@string/status_bar" 32 > 33 34 <ImageView 35 android:id="@+id/notification_lights_out" 36 android:layout_width="@dimen/status_bar_icon_size" 37 android:layout_height="match_parent" 38 android:paddingStart="@dimen/status_bar_padding_start" 39 android:paddingBottom="2dip" 40 android:src="@drawable/ic_sysbar_lights_out_dot_small" 41 android:scaleType="center" 42 android:visibility="gone" 43 /> 44 45 <LinearLayout android:id="@+id/status_bar_contents" 46 android:layout_width="match_parent" 47 android:layout_height="match_parent" 48 android:paddingStart="@dimen/status_bar_padding_start" 49 android:paddingEnd="@dimen/status_bar_padding_end" 50 android:paddingTop="@dimen/status_bar_padding_top" 51 android:orientation="horizontal" 52 > 53 <FrameLayout 54 android:layout_height="match_parent" 55 android:layout_width="0dp" 56 android:layout_weight="1"> 57 58 <include layout="@layout/heads_up_status_bar_layout" /> 59 60 <!-- The alpha of the left side is controlled by PhoneStatusBarTransitions, and the 61 individual views are controlled by StatusBarManager disable flags DISABLE_CLOCK and 62 DISABLE_NOTIFICATION_ICONS, respectively --> 63 <LinearLayout 64 android:id="@+id/status_bar_left_side" 65 android:layout_height="match_parent" 66 android:layout_width="match_parent" 67 android:clipChildren="false" 68 > 69 <ViewStub 70 android:id="@+id/operator_name" 71 android:layout_width="wrap_content" 72 android:layout_height="match_parent" 73 android:layout="@layout/operator_name" /> 74 75 <com.android.systemui.statusbar.policy.Clock 76 android:id="@+id/clock" 77 android:layout_width="wrap_content" 78 android:layout_height="match_parent" 79 android:textAppearance="@style/TextAppearance.StatusBar.Clock" 80 android:singleLine="true" 81 android:paddingStart="@dimen/status_bar_left_clock_starting_padding" 82 android:paddingEnd="@dimen/status_bar_left_clock_end_padding" 83 android:gravity="center_vertical|start" 84 /> 85 86 <com.android.systemui.statusbar.AlphaOptimizedFrameLayout 87 android:id="@+id/notification_icon_area" 88 android:layout_width="0dp" 89 android:layout_height="match_parent" 90 android:layout_weight="1" 91 android:orientation="horizontal" 92 android:clipChildren="false"/> 93 94 </LinearLayout> 95 </FrameLayout> 96 97 <!-- Space should cover the notch (if it exists) and let other views lay out around it --> 98 <android.widget.Space 99 android:id="@+id/cutout_space_view" 100 android:layout_width="0dp" 101 android:layout_height="match_parent" 102 android:gravity="center_horizontal|center_vertical" 103 /> 104 105 <com.android.systemui.statusbar.AlphaOptimizedFrameLayout 106 android:id="@+id/centered_icon_area" 107 android:layout_width="wrap_content" 108 android:layout_height="match_parent" 109 android:orientation="horizontal" 110 android:clipChildren="false" 111 android:gravity="center_horizontal|center_vertical"/> 112 113 <com.android.keyguard.AlphaOptimizedLinearLayout android:id="@+id/system_icon_area" 114 android:layout_width="0dp" 115 android:layout_height="match_parent" 116 android:layout_weight="1" 117 android:orientation="horizontal" 118 android:gravity="center_vertical|end" 119 > 120 121 <include layout="@layout/system_icons" /> 122 </com.android.keyguard.AlphaOptimizedLinearLayout> 123 </LinearLayout> 124 125 <ViewStub 126 android:id="@+id/emergency_cryptkeeper_text" 127 android:layout_width="wrap_content" 128 android:layout_height="match_parent" 129 android:layout="@layout/emergency_cryptkeeper_text" 130 /> 131 132 </com.android.systemui.statusbar.phone.PhoneStatusBarView> 133