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