summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/SystemUI/res/layout/volume_dialog_slider.xml10
1 files changed, 6 insertions, 4 deletions
diff --git a/packages/SystemUI/res/layout/volume_dialog_slider.xml b/packages/SystemUI/res/layout/volume_dialog_slider.xml
index 0acf4109bbb5..967cb3fd68de 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