Skip to content

Commit ffc731d

Browse files
dsandlerAndroid (Google) Code Review
authored andcommitted
Merge "Properly crop header underneath panel close handle." into jb-dev
2 parents a25c198 + 2857d7b commit ffc731d

File tree

1 file changed

+22
-18
lines changed

1 file changed

+22
-18
lines changed

packages/SystemUI/res/layout/status_bar_expanded.xml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,34 +23,39 @@
2323
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
2424
android:id="@+id/notification_panel"
2525
android:layout_width="match_parent"
26-
android:layout_height="wrap_content"
27-
android:orientation="vertical"
26+
android:layout_height="match_parent"
2827
android:background="@drawable/notification_panel_bg"
2928
android:paddingTop="@dimen/notification_panel_padding_top"
3029
android:layout_marginLeft="@dimen/notification_panel_margin_left"
3130
>
3231

33-
<include layout="@layout/status_bar_expanded_header"
34-
android:layout_width="match_parent"
35-
android:layout_height="wrap_content"
36-
/>
37-
38-
<ScrollView
39-
android:id="@+id/scroll"
32+
<FrameLayout
4033
android:layout_width="match_parent"
4134
android:layout_height="match_parent"
42-
android:fadingEdge="none"
43-
android:overScrollMode="ifContentScrolls"
44-
android:layout_marginTop="@dimen/notification_panel_header_height"
4535
android:layout_marginBottom="@dimen/close_handle_underlap"
4636
>
47-
<com.android.systemui.statusbar.policy.NotificationRowLayout
48-
android:id="@+id/latestItems"
37+
38+
<include layout="@layout/status_bar_expanded_header"
4939
android:layout_width="match_parent"
50-
android:layout_height="wrap_content"
51-
systemui:rowHeight="@dimen/notification_row_min_height"
40+
android:layout_height="48dp"
5241
/>
53-
</ScrollView>
42+
43+
<ScrollView
44+
android:id="@+id/scroll"
45+
android:layout_width="match_parent"
46+
android:layout_height="match_parent"
47+
android:fadingEdge="none"
48+
android:overScrollMode="ifContentScrolls"
49+
android:layout_marginTop="@dimen/notification_panel_header_height"
50+
>
51+
<com.android.systemui.statusbar.policy.NotificationRowLayout
52+
android:id="@+id/latestItems"
53+
android:layout_width="match_parent"
54+
android:layout_height="wrap_content"
55+
systemui:rowHeight="@dimen/notification_row_min_height"
56+
/>
57+
</ScrollView>
58+
</FrameLayout>
5459

5560
<com.android.systemui.statusbar.phone.CloseDragHandle android:id="@+id/close"
5661
android:layout_width="match_parent"
@@ -67,5 +72,4 @@
6772
/>
6873

6974
</com.android.systemui.statusbar.phone.CloseDragHandle>
70-
7175
</FrameLayout><!-- end of sliding panel -->

0 commit comments

Comments
 (0)