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:orientation="horizontal" 51 > 52 <ViewStub 53 android:id="@+id/operator_name" 54 android:layout_width="wrap_content" 55 android:layout_height="match_parent" 56 android:layout="@layout/operator_name" /> 57 <FrameLayout 58 android:layout_height="match_parent" 59 android:layout_width="0dp" 60 android:layout_weight="1"> 61 62 <include layout="@layout/heads_up_status_bar_layout" /> 63 64 <!-- The alpha of the left side is controlled by PhoneStatusBarTransitions, and the 65 individual views are controlled by StatusBarManager disable flags DISABLE_CLOCK and 66 DISABLE_NOTIFICATION_ICONS, respectively --> 67 <LinearLayout 68 android:id="@+id/status_bar_left_side" 69 android:layout_height="match_parent" 70 android:layout_width="match_parent" 71 android:clipChildren="false" 72 > 73 <com.android.systemui.statusbar.policy.Clock 74 android:id="@+id/clock" 75 android:layout_width="wrap_content" 76 android:layout_height="match_parent" 77 android:textAppearance="@style/TextAppearance.StatusBar.Clock" 78 android:singleLine="true" 79 android:paddingStart="@dimen/status_bar_left_clock_starting_padding" 80 android:paddingEnd="@dimen/status_bar_left_clock_end_padding" 81 android:gravity="center_vertical|start" 82 /> 83 84 <com.android.systemui.statusbar.AlphaOptimizedFrameLayout 85 android:id="@+id/notification_icon_area" 86 android:layout_width="0dp" 87 android:layout_height="match_parent" 88 android:layout_weight="1" 89 android:orientation="horizontal" 90 android:clipChildren="false"/> 91 92 </LinearLayout> 93 </FrameLayout> 94 95 <!-- Space should cover the notch (if it exists) and let other views lay out around it --> 96 <android.widget.Space 97 android:id="@+id/cutout_space_view" 98 android:layout_width="0dp" 99 android:layout_height="match_parent" 100 android:gravity="center_horizontal|center_vertical" 101 /> 102 103 <com.android.keyguard.AlphaOptimizedLinearLayout android:id="@+id/system_icon_area" 104 android:layout_width="0dp" 105 android:layout_height="match_parent" 106 android:layout_weight="1" 107 android:orientation="horizontal" 108 android:gravity="center_vertical|end" 109 > 110 111 <include layout="@layout/system_icons" /> 112 </com.android.keyguard.AlphaOptimizedLinearLayout> 113 </LinearLayout> 114 115 <ViewStub 116 android:id="@+id/emergency_cryptkeeper_text" 117 android:layout_width="wrap_content" 118 android:layout_height="match_parent" 119 android:layout="@layout/emergency_cryptkeeper_text" 120 /> 121 122 </com.android.systemui.statusbar.phone.PhoneStatusBarView> 123