Merge "Use negative margins to make material Slider occupy the whole space inside the container" into main
diff --git a/packages/SystemUI/res/layout/volume_dialog_slider.xml b/packages/SystemUI/res/layout/volume_dialog_slider.xml
index 0acf410..967cb3f 100644
--- a/packages/SystemUI/res/layout/volume_dialog_slider.xml
+++ b/packages/SystemUI/res/layout/volume_dialog_slider.xml
@@ -14,15 +14,17 @@
limitations under the License.
-->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content">
+ android:layout_width="@dimen/volume_dialog_slider_width"
+ android:layout_height="@dimen/volume_dialog_slider_height">
<com.google.android.material.slider.Slider
android:id="@+id/volume_dialog_slider"
style="@style/SystemUI.Material3.Slider.Volume"
- android:layout_width="@dimen/volume_dialog_slider_width"
- android:layout_height="@dimen/volume_dialog_slider_height"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
android:layout_gravity="center"
+ android:layout_marginTop="-20dp"
+ android:layout_marginBottom="-20dp"
android:orientation="vertical"
android:theme="@style/Theme.Material3.DayNight" />
</FrameLayout>
\ No newline at end of file