diff --git a/packages/SystemUI/res/layout/qs_customize_panel.xml b/packages/SystemUI/res/layout/qs_customize_panel.xml
index cbc2575bd6f84..9ab8ac6346d3b 100644
--- a/packages/SystemUI/res/layout/qs_customize_panel.xml
+++ b/packages/SystemUI/res/layout/qs_customize_panel.xml
@@ -21,7 +21,6 @@
android:layout_width="match_parent"
android:layout_height="0dp"
android:orientation="vertical"
- android:elevation="4dp"
android:background="@drawable/qs_customizer_background"
android:gravity="center_horizontal">
diff --git a/packages/SystemUI/res/layout/qs_detail.xml b/packages/SystemUI/res/layout/qs_detail.xml
index 34e43ce88ebcd..63f80ae3d4138 100644
--- a/packages/SystemUI/res/layout/qs_detail.xml
+++ b/packages/SystemUI/res/layout/qs_detail.xml
@@ -20,7 +20,6 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/qs_detail_background"
- android:elevation="4dp"
android:clickable="true"
android:orientation="vertical"
android:paddingBottom="8dp"
diff --git a/packages/SystemUI/res/layout/qs_footer.xml b/packages/SystemUI/res/layout/qs_footer.xml
index 871d1f361dd09..db39905cf52a3 100644
--- a/packages/SystemUI/res/layout/qs_footer.xml
+++ b/packages/SystemUI/res/layout/qs_footer.xml
@@ -21,13 +21,11 @@
android:id="@+id/header"
android:layout_width="match_parent"
android:layout_height="48dp"
- android:elevation="4dp"
android:baselineAligned="false"
android:clickable="false"
android:clipChildren="false"
android:clipToPadding="false"
android:paddingTop="0dp"
- android:background="#00000000"
android:gravity="center_vertical"
android:orientation="horizontal">
@@ -116,9 +114,4 @@
android:padding="14dp" />
-
-
diff --git a/packages/SystemUI/res/layout/qs_panel.xml b/packages/SystemUI/res/layout/qs_panel.xml
index 62a1756108f91..87101e4b3d14c 100644
--- a/packages/SystemUI/res/layout/qs_panel.xml
+++ b/packages/SystemUI/res/layout/qs_panel.xml
@@ -18,24 +18,16 @@
android:id="@+id/quick_settings_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:background="@drawable/qs_background_primary"
+ android:elevation="4dp"
android:clipToPadding="false"
android:clipChildren="false">
-
-
diff --git a/packages/SystemUI/res/layout/quick_status_bar_expanded_header.xml b/packages/SystemUI/res/layout/quick_status_bar_expanded_header.xml
index 97376c377b77c..885e3f38d92b2 100644
--- a/packages/SystemUI/res/layout/quick_status_bar_expanded_header.xml
+++ b/packages/SystemUI/res/layout/quick_status_bar_expanded_header.xml
@@ -24,8 +24,6 @@
android:layout_height="@dimen/status_bar_header_height"
android:layout_gravity="@integer/notification_panel_layout_gravity"
android:baselineAligned="false"
- android:background="#00000000"
- android:elevation="4dp"
android:clickable="false"
android:clipChildren="false"
android:clipToPadding="false"
diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml
index d71bfcaecbca1..fe422dbea41f9 100644
--- a/packages/SystemUI/res/values/dimens.xml
+++ b/packages/SystemUI/res/values/dimens.xml
@@ -813,8 +813,6 @@
0dp
0dp
- 6dp
-
0.75dp
diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSContainerImpl.java b/packages/SystemUI/src/com/android/systemui/qs/QSContainerImpl.java
index 0d74b7a85ad18..ed57c043a1096 100644
--- a/packages/SystemUI/src/com/android/systemui/qs/QSContainerImpl.java
+++ b/packages/SystemUI/src/com/android/systemui/qs/QSContainerImpl.java
@@ -39,8 +39,6 @@ public class QSContainerImpl extends FrameLayout {
protected float mQsExpansion;
private QSCustomizer mQSCustomizer;
private QSFooter mQSFooter;
- private int mGutterHeight;
- private View mBackground;
private float mFullElevation;
public QSContainerImpl(Context context, AttributeSet attrs) {
@@ -55,8 +53,6 @@ public class QSContainerImpl extends FrameLayout {
mHeader = findViewById(R.id.header);
mQSCustomizer = findViewById(R.id.qs_customize);
mQSFooter = findViewById(R.id.qs_footer);
- mBackground = findViewById(R.id.qs_background);
- mGutterHeight = getContext().getResources().getDimensionPixelSize(R.dimen.qs_gutter_height);
mFullElevation = mQSPanel.getElevation();
setClickable(true);
@@ -110,18 +106,10 @@ public class QSContainerImpl extends FrameLayout {
public void updateExpansion() {
int height = calculateContainerHeight();
- int gutterHeight = Math.round(mQsExpansion * mGutterHeight);
- setBottom(getTop() + height + gutterHeight);
+ setBottom(getTop() + height);
mQSDetail.setBottom(getTop() + height);
- mBackground.setBottom(getTop() + height);
// Pin QS Footer to the bottom of the panel.
mQSFooter.setTranslationY(height - mQSFooter.getHeight());
-
- float elevation = mQsExpansion * mFullElevation;
- mQSDetail.setElevation(elevation);
- mBackground.setElevation(elevation);
- mQSFooter.setElevation(elevation);
- mQSPanel.setElevation(elevation);
}
protected int calculateContainerHeight() {
@@ -135,17 +123,4 @@ public class QSContainerImpl extends FrameLayout {
mQsExpansion = expansion;
updateExpansion();
}
-
- public void setGutterEnabled(boolean gutterEnabled) {
- if (gutterEnabled == (mGutterHeight != 0)) {
- return;
- }
- if (gutterEnabled) {
- mGutterHeight = getContext().getResources().getDimensionPixelSize(
- R.dimen.qs_gutter_height);
- } else {
- mGutterHeight = 0;
- }
- updateExpansion();
- }
}
diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSFragment.java b/packages/SystemUI/src/com/android/systemui/qs/QSFragment.java
index c9c3a7f9e1476..3f00276a65068 100644
--- a/packages/SystemUI/src/com/android/systemui/qs/QSFragment.java
+++ b/packages/SystemUI/src/com/android/systemui/qs/QSFragment.java
@@ -63,7 +63,6 @@ public class QSFragment extends Fragment implements QS {
private QSContainerImpl mContainer;
private int mLayoutDirection;
private QSFooter mFooter;
- private int mGutterHeight;
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container,
@@ -80,7 +79,6 @@ public class QSFragment extends Fragment implements QS {
mHeader = view.findViewById(R.id.header);
mFooter = view.findViewById(R.id.qs_footer);
mContainer = view.findViewById(id.quick_settings_container);
- mGutterHeight = getContext().getResources().getDimensionPixelSize(R.dimen.qs_gutter_height);
mQSDetail.setQsPanel(mQSPanel, mHeader);
@@ -131,7 +129,6 @@ public class QSFragment extends Fragment implements QS {
@Override
public void setHasNotifications(boolean hasNotifications) {
- mContainer.setGutterEnabled(hasNotifications);
}
public void setPanelView(HeightListener panelView) {
@@ -250,7 +247,7 @@ public class QSFragment extends Fragment implements QS {
mContainer.setExpansion(expansion);
final float translationScaleY = expansion - 1;
if (!mHeaderAnimating) {
- int height = mHeader.getHeight() + mGutterHeight;
+ int height = mHeader.getHeight();
getView().setTranslationY(mKeyguardShowing ? (translationScaleY * height)
: headerTranslation);
}
@@ -333,15 +330,15 @@ public class QSFragment extends Fragment implements QS {
LayoutParams layoutParams = (LayoutParams) mQSPanel.getLayoutParams();
int panelHeight = layoutParams.topMargin + layoutParams.bottomMargin +
+ mQSPanel.getMeasuredHeight();
- return panelHeight + getView().getPaddingBottom() + mGutterHeight;
+ return panelHeight + getView().getPaddingBottom();
} else {
- return getView().getMeasuredHeight() + mGutterHeight;
+ return getView().getMeasuredHeight();
}
}
@Override
public void setHeightOverride(int desiredHeight) {
- mContainer.setHeightOverride(desiredHeight - mGutterHeight);
+ mContainer.setHeightOverride(desiredHeight);
}
public int getQsMinExpansionHeight() {