Fix fingerprint enrollment animation is not in correct position.

1. Change SPFS ring progress bar and lottie animaiton from
layout_marginLeft/ layout_marginRight to marginStart/marginEnd for
RTL language.
2. Modify SPFS ring progress bar and lottie animaiton dimensioin for
RTL language and check three different SFPS projects.

Flag: NONE bug-fixing

Bug: 338911438

Test: manual build and check UI visually.
Change-Id: I88edad459eefbb3c6be337263045cd87685810e9
This commit is contained in:
Jason Chang
2024-09-07 13:29:10 +00:00
parent 3f7e49dbc6
commit 386071e91d
2 changed files with 6 additions and 2 deletions

View File

@@ -45,7 +45,7 @@
android:id="@+id/illustration_lottie"
android:layout_width="@dimen/fingerprint_progress_bar_max_size"
android:layout_height="@dimen/fingerprint_progress_bar_max_size"
android:layout_marginRight="@dimen/sfps_lottie_translate_x"
android:layout_marginEnd="@dimen/sfps_lottie_translate_x"
android:layout_marginBottom="@dimen/sfps_lottie_translate_y"
android:scaleType="centerInside"
android:visibility="gone"
@@ -66,7 +66,7 @@
android:id="@+id/fingerprint_progress_bar"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="@dimen/sfps_progress_bar_translate_x"
android:layout_marginStart="@dimen/sfps_progress_bar_translate_x"
android:layout_marginTop="@dimen/sfps_progress_bar_translate_y"
android:layout_gravity="center"
android:minHeight="@dimen/fingerprint_progress_bar_min_size"

View File

@@ -23,4 +23,8 @@
<dimen name="rotation_90_enroll_padding_start">20dp</dimen>
<dimen name="rotation_90_enroll_padding_end">0dp</dimen>
<dimen name="rotation_90_enroll_margin_end">20dp</dimen>
<!-- SFPS Fingerprint -->
<dimen name="fingerprint_progress_bar_max_size">242dp</dimen>
<dimen name="sfps_lottie_translate_x">10dp</dimen>
</resources>