From 57435d65e9f96fd1fd9807e2adabbdb8f770aae1 Mon Sep 17 00:00:00 2001 From: Jason Chang Date: Wed, 20 Jul 2022 17:22:19 +0800 Subject: [PATCH] (1/n) Fix Face Unlock LottieAnimationView IllustrationViewView ImageView truncate in GlifLayout (face_enroll_education.xml) Adjust layout margin and scale type to fulfil different Display & Font size on device. Bug: 233835795 Test: manually change different Display & Font size to test UI. Change-Id: Ia54bc6a2b0cc4522416bda3d051730d3cbd349f5 --- res/layout/face_enroll_education.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/res/layout/face_enroll_education.xml b/res/layout/face_enroll_education.xml index 2a78f999eb8..fec6d538c7e 100644 --- a/res/layout/face_enroll_education.xml +++ b/res/layout/face_enroll_education.xml @@ -54,7 +54,7 @@ android:layout_width="match_parent" android:layout_height="440dp" android:layout_marginTop="-52dp" - android:scaleType="centerCrop" + android:scaleType="centerInside" android:visibility="gone" app:lottie_autoPlay="true" app:lottie_loop="true" @@ -66,7 +66,7 @@ android:layout_height="wrap_content" android:layout_gravity="center" android:visibility="invisible" - android:background="@drawable/face_enroll_icon_large"/> + android:src="@drawable/face_enroll_icon_large"/> @@ -83,7 +83,8 @@ + android:layout_height="wrap_content" + android:layout_marginTop="-24dp">