Files
frameworks_base/packages/SystemUI/res/values/integers.xml
Sergey Nikolaienkov 40f95d3321 Fix VolumeDialog position and appearance on TVs
Create layout-land-television/volume_dialog.xml layout file that
describes layout for VolumeDialog on TVs. (layout-television does not
work since the orientation dimension seems to have priority over form
factor dimension). The new layout file is a copy of
layout-land/volume_dialog.xml but does not contain ringer and
settings_container.
Also adding volume_dialog_gravity integer value which specifies position
of the volume dialog on the screen. The default position
(values/integer.xml) - RIGHT|CENTER_VERTICAL, TV specific position
(values-television) - BOTTOM|CENTER_HORIZONTAL.

Exempt-From-Owner-Approval: TV Branch
Change-Id: Ie73b59f0b25b6cc9f16e24cfd48d38c401647017
Bug: 146436981
Bug: 146188087
Test: make SystemUI
Test: change volume and see Volume dialog at the bottom & center of the
screen, see it does not have bell and setting icons
(cherry picked from commit 7269e9e32f7a2af5590cbe0ff8673ed8608d58e7)
2020-03-03 13:56:09 +01:00

47 lines
2.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2018 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>
<integer name="biometric_dialog_text_gravity">8388611</integer> <!-- gravity start -->
<!-- Action footer width used for layout_width to indicate WRAP_CONTENT (along with a weight of
0) as we can allow the carrier text to stretch as far as needed in the QS footer. -->
<integer name="qs_footer_actions_width">0</integer>
<integer name="qs_footer_actions_weight">1</integer>
<!-- Maximum number of bubbles to render and animate at one time. While the animations used are
lightweight translation animations, this number can be reduced on lower end devices if any
performance issues arise. -->
<integer name="bubbles_max_rendered">5</integer>
<!-- Number of columns in bubble overflow. -->
<integer name="bubbles_overflow_columns">4</integer>
<!-- Maximum number of bubbles we allow in overflow before we dismiss the oldest one. -->
<integer name="bubbles_max_overflow">16</integer>
<!-- Ratio of "left" end of status bar that will swipe to QQS. -->
<integer name="qqs_split_fraction">3</integer>
<!-- Ratio of "right" end of status bar that will swipe to QS. -->
<integer name="qs_split_fraction">2</integer>
<integer name="magnification_default_scale">2</integer>
<!-- The position of the volume dialog on the screen.
See com.android.systemui.volume.VolumeDialogImpl.
Value 21 corresponds to RIGHT|CENTER_VERTICAL. -->
<integer name="volume_dialog_gravity">21</integer>
</resources>