(1/2) Fix settings face enrollment UI layout problem

Use overlay mechanism to adjust face_enroll_education.xml layout
dimensions for ToF.

1. Fix settings face enrollment UI truncate problem
2. Fix It's hard to tap "setup for limited vision or head motion"
button

Bug: 260653042
Bug: 263065347

Test: manually go to Settings > Security & privacy > Device lock >
Face & Fingerprint Unlock > Face Unlock, then start enroll Face,
In second stage ("How to set up Face Unlock" page ), check the layout
and lottie animation do not truncate.
Test: m -j SettingsGoogleRoboTests RunSettingsGoogleRoboTests
Test: m RunSettingsRoboTests ROBOTEST_FILTER=
"com.android.settings.biometrics.face.FaceEnrollEducationTest"
Test: m RunSettingsRoboTests ROBOTEST_FILTER=
"com.android.settings.biometrics.face.FaceEnrollIntroductionTest"

Change-Id: Ib42a2632bf501b20b4386ed656701ca8ec7b3924
This commit is contained in:
Jason Chang 2023-01-07 12:51:59 +00:00
parent b9f6c727e2
commit cf83f6dd52

View file

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2023 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>
<!-- Biometrics Face enroll education dimensions-->
<dimen name="face_enroll_icon_large_width">260dp</dimen>
<dimen name="face_enroll_icon_large_height">260dp</dimen>
<dimen name="illustration_lottie_height">360dp</dimen>
<dimen name="illustration_accessibility_margin_top">-18dp</dimen>
<dimen name="face_enroll_education_lottie_frame_margin_top">-34dp</dimen>
<dimen name="lottie_animation_view_margin_top">-52dp</dimen>
<dimen name="limited_vision_button_frame_margin_top">-34dp</dimen>
<dimen name="limited_vision_button_margin_top">10dp</dimen>
<dimen name="limited_vision_button_margin_bottom">10dp</dimen>
<dimen name="limited_vision_button_toggle_margin_top">-26dp</dimen>
</resources>