From 8b9d67fb636a89fe6537e7affb9d01a75f263d93 Mon Sep 17 00:00:00 2001 From: Jason Monk Date: Wed, 2 Mar 2016 08:59:08 -0500 Subject: Move QS Edit into QSContainer This will let it play nicely with heads up. - Move to QS Container. - QS Edit is always full height (some layout hacks to do this) - Always draw QS customizer on top when animating - Block all panel scrolling while QS edit is open (all touches go to editing) - Instantaneously change the height of the QS container at start/end of animation as needed Bug: 26969293 Change-Id: Iedc6f5aaf659dcc6750972eae5f69cc0cd2df844 --- .../SystemUI/res/layout/qs_customize_panel.xml | 4 +- packages/SystemUI/res/layout/qs_panel.xml | 3 ++ .../SystemUI/res/layout/status_bar_expanded.xml | 6 ++- .../src/com/android/systemui/qs/QSContainer.java | 43 +++++++++++++++++++- .../src/com/android/systemui/qs/QSPanel.java | 13 +++--- .../src/com/android/systemui/qs/QuickQSPanel.java | 5 --- .../systemui/qs/customize/QSCustomizer.java | 46 +++++++++++++++++++--- .../statusbar/phone/NotificationPanelView.java | 26 ++++-------- .../phone/NotificationsQuickSettingsContainer.java | 30 +++++++++++--- .../statusbar/phone/QuickStatusBarHeader.java | 2 +- 10 files changed, 130 insertions(+), 48 deletions(-) diff --git a/packages/SystemUI/res/layout/qs_customize_panel.xml b/packages/SystemUI/res/layout/qs_customize_panel.xml index 582ad48c189e..0491ea08525d 100644 --- a/packages/SystemUI/res/layout/qs_customize_panel.xml +++ b/packages/SystemUI/res/layout/qs_customize_panel.xml @@ -14,10 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. --> + + diff --git a/packages/SystemUI/res/layout/qs_panel.xml b/packages/SystemUI/res/layout/qs_panel.xml index 994d3c943671..ef15195b5f71 100644 --- a/packages/SystemUI/res/layout/qs_panel.xml +++ b/packages/SystemUI/res/layout/qs_panel.xml @@ -34,4 +34,7 @@ + + diff --git a/packages/SystemUI/res/layout/status_bar_expanded.xml b/packages/SystemUI/res/layout/status_bar_expanded.xml index 656941f8b725..ccefb5fe0a5b 100644 --- a/packages/SystemUI/res/layout/status_bar_expanded.xml +++ b/packages/SystemUI/res/layout/status_bar_expanded.xml @@ -43,8 +43,10 @@ android:id="@+id/qs_density_container" android:layout="@layout/qs_panel" android:layout_width="@dimen/notification_panel_width" - android:layout_height="wrap_content" - android:layout_gravity="@integer/notification_panel_layout_gravity" /> + android:layout_height="match_parent" + android:layout_gravity="@integer/notification_panel_layout_gravity" + android:clipToPadding="false" + android:clipChildren="false" />