Skip to content

Commit a310af8

Browse files
committed
All Status in a Window.
Bug: 5907042 (jank on pulldown) Bug: 6347684 (hardware acceleration) Change-Id: I90a0ac21db493cccf6913cbc271a21a130276991
1 parent 427db9b commit a310af8

File tree

3 files changed

+137
-142
lines changed

3 files changed

+137
-142
lines changed

packages/SystemUI/res/layout/status_bar.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<com.android.systemui.statusbar.phone.PhoneStatusBarView
2323
xmlns:android="http://schemas.android.com/apk/res/android"
2424
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
25+
android:id="@+id/status_bar"
2526
android:background="@drawable/status_bar_background"
2627
android:orientation="vertical"
2728
android:focusable="true"
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
**
4+
** Copyright 2012, 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+
<!-- This is the combined status bar / notification panel window. -->
21+
<FrameLayout
22+
xmlns:android="http://schemas.android.com/apk/res/android"
23+
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
24+
android:focusable="true"
25+
android:descendantFocusability="afterDescendants"
26+
android:fitsSystemWindows="true"
27+
>
28+
29+
<include layout="@layout/status_bar_expanded"
30+
android:layout_width="match_parent"
31+
android:layout_height="match_parent"
32+
/>
33+
34+
<include layout="@layout/status_bar"
35+
android:layout_width="match_parent"
36+
android:layout_height="@*android:dimen/status_bar_height"
37+
/>
38+
39+
</FrameLayout>

0 commit comments

Comments
 (0)