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:orientation="vertical" 28 android:focusable="false" 29 android:descendantFocusability="afterDescendants" 30 android:accessibilityPaneTitle="@string/status_bar" 31 > 32 33 <ImageView 34 android:id="@+id/notification_lights_out" 35 android:layout_width="@dimen/status_bar_icon_size" 36 android:layout_height="match_parent" 37 android:paddingStart="@dimen/status_bar_padding_start" 38 android:paddingBottom="2dip" 39 android:src="@drawable/ic_sysbar_lights_out_dot_small" 40 android:scaleType="center" 41 android:visibility="gone" 42 /> 43 44 <LinearLayout android:id="@+id/status_bar_contents" 45 android:layout_width="match_parent" 46 android:layout_height="match_parent" 47 android:paddingStart="@dimen/status_bar_padding_start" 48 android:paddingEnd="@dimen/status_bar_padding_end" 49 android:paddingTop="@dimen/status_bar_padding_top" 50 android:orientation="horizontal"> 51 52 <!-- Container for the entire start half of the status bar. It will always use the same 53 width, independent of the number of visible children and sub-children. --> 54 <FrameLayout 55 android:id="@+id/status_bar_start_side_container" 56 android:layout_height="match_parent" 57 android:layout_width="0dp" 58 android:clipChildren="false" 59 android:layout_weight="1"> 60 61 <!-- Container that is wrapped around the views on the start half of the status bar. 62 Its width will change with the number of visible children and sub-children. 63 It is useful when we want to know the visible bounds of the content. --> 64 <FrameLayout 65 android:id="@+id/status_bar_start_side_content" 66 android:layout_width="wrap_content" 67 android:layout_height="wrap_content" 68 android:clipChildren="false"> 69 70 <include layout="@layout/heads_up_status_bar_layout" /> 71 72 <!-- The alpha of the start side is controlled by PhoneStatusBarTransitions, and the 73 individual views are controlled by StatusBarManager disable flags DISABLE_CLOCK 74 and DISABLE_NOTIFICATION_ICONS, respectively --> 75 <LinearLayout 76 android:id="@+id/status_bar_start_side_except_heads_up" 77 android:layout_height="wrap_content" 78 android:layout_width="match_parent" 79 android:clipChildren="false"> 80 <ViewStub 81 android:id="@+id/operator_name" 82 android:layout_width="wrap_content" 83 android:layout_height="match_parent" 84 android:layout="@layout/operator_name" /> 85 86 <com.android.systemui.statusbar.policy.Clock 87 android:id="@+id/clock" 88 android:layout_width="wrap_content" 89 android:layout_height="match_parent" 90 android:textAppearance="@style/TextAppearance.StatusBar.Clock" 91 android:singleLine="true" 92 android:paddingStart="@dimen/status_bar_left_clock_starting_padding" 93 android:paddingEnd="@dimen/status_bar_left_clock_end_padding" 94 android:gravity="center_vertical|start" 95 /> 96 97 <include layout="@layout/ongoing_call_chip" /> 98 99 <com.android.systemui.statusbar.AlphaOptimizedFrameLayout 100 android:id="@+id/notification_icon_area" 101 android:layout_width="wrap_content" 102 android:layout_height="match_parent" 103 android:orientation="horizontal" 104 android:clipChildren="false"/> 105 106 </LinearLayout> 107 </FrameLayout> 108 </FrameLayout> 109 110 <!-- Space should cover the notch (if it exists) and let other views lay out around it --> 111 <android.widget.Space 112 android:id="@+id/cutout_space_view" 113 android:layout_width="0dp" 114 android:layout_height="match_parent" 115 android:gravity="center_horizontal|center_vertical" 116 /> 117 118 <!-- Container for the entire end half of the status bar. It will always use the same 119 width, independent of the number of visible children and sub-children. --> 120 <FrameLayout 121 android:id="@+id/status_bar_end_side_container" 122 android:layout_width="0dp" 123 android:layout_height="match_parent" 124 android:layout_weight="1" 125 android:clipChildren="false"> 126 127 <!-- Container that is wrapped around the views on the end half of the 128 status bar. Its width will change with the number of visible children and 129 sub-children. 130 It is useful when we want know the visible bounds of the content.--> 131 <com.android.keyguard.AlphaOptimizedLinearLayout 132 android:id="@+id/status_bar_end_side_content" 133 android:layout_width="wrap_content" 134 android:layout_height="match_parent" 135 android:layout_gravity="end" 136 android:orientation="horizontal" 137 android:gravity="center_vertical|end" 138 android:clipChildren="false"> 139 140 <include 141 android:id="@+id/user_switcher_container" 142 android:layout_width="wrap_content" 143 android:layout_height="wrap_content" 144 android:layout_marginEnd="@dimen/status_bar_user_chip_end_margin" 145 layout="@layout/status_bar_user_chip_container" /> 146 147 <include layout="@layout/system_icons" /> 148 </com.android.keyguard.AlphaOptimizedLinearLayout> 149 </FrameLayout> 150 </LinearLayout> 151 152</com.android.systemui.statusbar.phone.PhoneStatusBarView> 153