From 69cc573b76e62bd968af33fdcaa6d9530cd6442b Mon Sep 17 00:00:00 2001 From: Joshua McCloskey Date: Wed, 29 Jun 2022 19:07:44 +0000 Subject: [PATCH] Add field to control margin in FaceEnrollIntro Problem -> The require scroll mixin seems to scroll an entire device length when a button click occurs. If you have page content of 2x device_length + 10 pixels, a user will have to press the more button twice to scroll this length. With the illustration_margin_bottom field, devices can tune this parameter to allow the user to press the more button once. Fixes: 237474002 Test: Manual. Change-Id: I9de2d74608260fe835870211a07b96249a8598f8 --- res/layout/face_enroll_introduction.xml | 3 ++- res/values/dimens.xml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/res/layout/face_enroll_introduction.xml b/res/layout/face_enroll_introduction.xml index c497015ebcd..8b0352928ca 100644 --- a/res/layout/face_enroll_introduction.xml +++ b/res/layout/face_enroll_introduction.xml @@ -48,7 +48,8 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:contentDescription="@null" - android:src="@drawable/face_enroll_intro_illustration"/> + android:src="@drawable/face_enroll_intro_illustration" + android:layout_marginBottom="@dimen/face_enroll_intro_illustration_margin_bottom"/> diff --git a/res/values/dimens.xml b/res/values/dimens.xml index b88d01d12b9..c9557c14dfb 100755 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -234,6 +234,7 @@ 0 0 1.0 + 0dp 48dp