Add support for half-opened posture bouncer
This aligns the numbers to the bottom half of the
screen when the device posture is half opened.
Fixes: 328726067
Test: manual - use bouncer on comet
Flag: None
Change-Id: I55bb04fa010958f4b43f0b11cde054eb713b8d39
(cherry picked from commit 75c9a7fe89
)
This commit is contained in:
parent
79fc617abb
commit
d4b366bf87
1 changed files with 24 additions and 0 deletions
|
@ -0,0 +1,24 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
* Copyright (c) 2024, 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>
|
||||||
|
<!-- Proportion of the screen height to use to set the maximum height of the bouncer to when
|
||||||
|
the device is in the DEVICE_POSTURE_HALF_OPENED posture, for the PIN/pattern entry. 0 will
|
||||||
|
allow it to use the whole screen space, 0.6 will allow it to use just under half of the
|
||||||
|
screen. -->
|
||||||
|
<item name="half_opened_bouncer_height_ratio" type="dimen" format="float">0.6</item>
|
||||||
|
</resources>
|
Loading…
Add table
Add a link
Reference in a new issue