Taller volume dialog slider on taller screens
Length of the vertical volume dialog slider (the one that pops up in response to volume button press) is now proportional to device height Bug: b/220088292 Test: Manual. Press volume button up/down on a large screen device. Verify the slider is no longer short. Change-Id: I70dcc2eb6748536f772aaeebd5a3a64be0050f56
This commit is contained in:
19
packages/SystemUI/res/values-h411dp/dimens.xml
Normal file
19
packages/SystemUI/res/values-h411dp/dimens.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2022 The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
<resources>
|
||||
<dimen name="volume_row_slider_height">137dp</dimen>
|
||||
</resources>
|
||||
@@ -17,4 +17,5 @@
|
||||
<resources>
|
||||
<!-- Margin above the ambient indication container -->
|
||||
<dimen name="ambient_indication_container_margin_top">15dp</dimen>
|
||||
</resources>
|
||||
<dimen name="volume_row_slider_height">177dp</dimen>
|
||||
</resources>
|
||||
|
||||
19
packages/SystemUI/res/values-h841dp/dimens.xml
Normal file
19
packages/SystemUI/res/values-h841dp/dimens.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2022 The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
<resources>
|
||||
<dimen name="volume_row_slider_height">237dp</dimen>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user