blob: f8db97dbf800be56cb5798487cb5e73b3f84cafe [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001<?xml version="1.0" encoding="utf-8"?>
2<!--
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08003**
4** Copyright 2006, The Android Open Source Project
5**
Selim Cinekaa9db1f2018-02-27 17:35:47 -08006** 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
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08009**
Selim Cinekaa9db1f2018-02-27 17:35:47 -080010** http://www.apache.org/licenses/LICENSE-2.0
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080011**
Selim Cinekaa9db1f2018-02-27 17:35:47 -080012** 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
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080016** limitations under the License.
17*/
18-->
19
20<!-- android:background="@drawable/status_bar_closed_default_background" -->
Joe Onoratofd52b182010-11-10 18:00:52 -080021<com.android.systemui.statusbar.phone.PhoneStatusBarView
Joe Onorato5ee67eb2010-05-25 19:42:38 -040022 xmlns:android="http://schemas.android.com/apk/res/android"
Joe Onorato52c1dc22010-07-01 16:39:39 -040023 xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
Jason Monkaa573e92017-01-27 17:00:29 -050024 android:layout_width="match_parent"
25 android:layout_height="@dimen/status_bar_height"
Daniel Sandlera310af82012-04-24 01:20:13 -040026 android:id="@+id/status_bar"
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080027 android:orientation="vertical"
Julia Reynolds6819b9a2015-07-16 12:18:43 -040028 android:focusable="false"
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080029 android:descendantFocusability="afterDescendants"
Phil Weaver06c9e012018-04-17 17:53:29 -070030 android:accessibilityPaneTitle="@string/status_bar"
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080031 >
32
Daniel Sandlerd7e96862012-04-26 01:10:29 -040033 <ImageView
34 android:id="@+id/notification_lights_out"
35 android:layout_width="@dimen/status_bar_icon_size"
36 android:layout_height="match_parent"
Selim Cinekaa9db1f2018-02-27 17:35:47 -080037 android:paddingStart="@dimen/status_bar_padding_start"
Daniel Sandler173bae22012-09-25 14:37:42 -040038 android:paddingBottom="2dip"
Daniel Sandlerd7e96862012-04-26 01:10:29 -040039 android:src="@drawable/ic_sysbar_lights_out_dot_small"
40 android:scaleType="center"
41 android:visibility="gone"
42 />
43
Daniel Sandler173bae22012-09-25 14:37:42 -040044 <LinearLayout android:id="@+id/status_bar_contents"
Romain Guy980a9382010-01-08 15:06:28 -080045 android:layout_width="match_parent"
46 android:layout_height="match_parent"
Selim Cinekaa9db1f2018-02-27 17:35:47 -080047 android:paddingStart="@dimen/status_bar_padding_start"
Amin Shaikh9cac3382018-04-11 17:10:07 -040048 android:paddingEnd="@dimen/status_bar_padding_end"
Evan Lairdcc1f3b62019-04-10 11:19:28 -040049 android:paddingTop="@dimen/status_bar_padding_top"
Daniel Sandler05e24142011-11-10 11:56:49 -050050 android:orientation="horizontal"
51 >
Selim Cinekaa9db1f2018-02-27 17:35:47 -080052 <FrameLayout
Evan Laird2cf56822017-12-18 11:22:39 -050053 android:layout_height="match_parent"
Evan Laird058c8ae2018-01-12 14:26:10 -050054 android:layout_width="0dp"
Selim Cinekaa9db1f2018-02-27 17:35:47 -080055 android:layout_weight="1">
Evan Laird058c8ae2018-01-12 14:26:10 -050056
Selim Cinekaa9db1f2018-02-27 17:35:47 -080057 <include layout="@layout/heads_up_status_bar_layout" />
Evan Laird058c8ae2018-01-12 14:26:10 -050058
Evan Laird4b68e2f72018-03-29 18:21:48 -040059 <!-- 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 -->
Selim Cinekaa9db1f2018-02-27 17:35:47 -080062 <LinearLayout
Evan Laird4b68e2f72018-03-29 18:21:48 -040063 android:id="@+id/status_bar_left_side"
Selim Cinekaa9db1f2018-02-27 17:35:47 -080064 android:layout_height="match_parent"
65 android:layout_width="match_parent"
66 android:clipChildren="false"
67 >
Tetsutoki Shiozawace9645b2018-09-05 13:17:01 +090068 <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
Selim Cinekaa9db1f2018-02-27 17:35:47 -080074 <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
Selim Cinekaa9db1f2018-02-27 17:35:47 -080085 <com.android.systemui.statusbar.AlphaOptimizedFrameLayout
86 android:id="@+id/notification_icon_area"
87 android:layout_width="0dp"
88 android:layout_height="match_parent"
89 android:layout_weight="1"
90 android:orientation="horizontal"
91 android:clipChildren="false"/>
92
93 </LinearLayout>
94 </FrameLayout>
Evan Laird058c8ae2018-01-12 14:26:10 -050095
96 <!-- Space should cover the notch (if it exists) and let other views lay out around it -->
97 <android.widget.Space
98 android:id="@+id/cutout_space_view"
99 android:layout_width="0dp"
100 android:layout_height="match_parent"
101 android:gravity="center_horizontal|center_vertical"
Evan Laird2cf56822017-12-18 11:22:39 -0500102 />
103
Beverly40770652019-02-15 15:49:49 -0500104 <com.android.systemui.statusbar.AlphaOptimizedFrameLayout
105 android:id="@+id/centered_icon_area"
106 android:layout_width="wrap_content"
107 android:layout_height="match_parent"
108 android:orientation="horizontal"
109 android:clipChildren="false"
110 android:gravity="center_horizontal|center_vertical"/>
111
Evan Laird058c8ae2018-01-12 14:26:10 -0500112 <com.android.keyguard.AlphaOptimizedLinearLayout android:id="@+id/system_icon_area"
113 android:layout_width="0dp"
Romain Guy980a9382010-01-08 15:06:28 -0800114 android:layout_height="match_parent"
Daniel Sandler05e24142011-11-10 11:56:49 -0500115 android:layout_weight="1"
Jorim Jaggi0d74eeb2014-05-09 22:05:24 +0200116 android:orientation="horizontal"
Evan Laird058c8ae2018-01-12 14:26:10 -0500117 android:gravity="center_vertical|end"
Jorim Jaggi0d74eeb2014-05-09 22:05:24 +0200118 >
Jorim Jaggi0d74eeb2014-05-09 22:05:24 +0200119
Jorim Jaggi4538027d2014-07-30 15:43:13 +0200120 <include layout="@layout/system_icons" />
Jorim Jaggie19b1ac2014-09-11 18:17:56 +0200121 </com.android.keyguard.AlphaOptimizedLinearLayout>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800122 </LinearLayout>
Dan Sandler44c0dfd2014-06-09 11:26:16 -0400123
Adrian Roos316bf542016-08-23 17:53:07 +0200124 <ViewStub
125 android:id="@+id/emergency_cryptkeeper_text"
126 android:layout_width="wrap_content"
127 android:layout_height="match_parent"
128 android:layout="@layout/emergency_cryptkeeper_text"
129 />
130
Joe Onoratofd52b182010-11-10 18:00:52 -0800131</com.android.systemui.statusbar.phone.PhoneStatusBarView>