diff options
| author | 2025-01-03 03:52:31 -0800 | |
|---|---|---|
| committer | 2025-01-03 03:52:31 -0800 | |
| commit | c7b8ed318facff1b94f735d354ef5ed2f79e03d5 (patch) | |
| tree | 34775900007cba5d9a3ec1299a49e2201e7c5ea8 | |
| parent | 51b56a1c6f774bdd19e7781ec7f4cd95c3821e06 (diff) | |
| parent | 993e067db67e70599013c0ed996c7d4611ab52c6 (diff) | |
Merge "Use negative margins to make material Slider occupy the whole space inside the container" into main
| -rw-r--r-- | packages/SystemUI/res/layout/volume_dialog_slider.xml | 10 |
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 |