From 82c589b194fa36bbeaa8ee06446f484f75f77f79 Mon Sep 17 00:00:00 2001 From: alexandr Date: Wed, 22 May 2024 15:08:38 +0300 Subject: [PATCH 1/2] [MS-468] Adding a separate horizontal fragment_confirmation.xml layout, so that the face capture screen elements won't overlap each other --- .../res/layout-land/fragment_confirmation.xml | 60 +++++++++++++++++++ .../main/res/layout/fragment_confirmation.xml | 4 +- 2 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 face/capture/src/main/res/layout-land/fragment_confirmation.xml diff --git a/face/capture/src/main/res/layout-land/fragment_confirmation.xml b/face/capture/src/main/res/layout-land/fragment_confirmation.xml new file mode 100644 index 0000000000..a403d39af0 --- /dev/null +++ b/face/capture/src/main/res/layout-land/fragment_confirmation.xml @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + diff --git a/face/capture/src/main/res/layout/fragment_confirmation.xml b/face/capture/src/main/res/layout/fragment_confirmation.xml index 927f7defae..cfdbf677cf 100644 --- a/face/capture/src/main/res/layout/fragment_confirmation.xml +++ b/face/capture/src/main/res/layout/fragment_confirmation.xml @@ -1,6 +1,7 @@ @@ -23,7 +24,8 @@ app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toTopOf="parent" /> + app:layout_constraintTop_toTopOf="parent" + tools:src="@tools:sample/avatars" /> Date: Wed, 22 May 2024 15:35:28 +0300 Subject: [PATCH 2/2] [MS-468] Adding max height/width constraints to the image so that it never exceeds 300dp --- face/capture/src/main/res/layout-land/fragment_confirmation.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/face/capture/src/main/res/layout-land/fragment_confirmation.xml b/face/capture/src/main/res/layout-land/fragment_confirmation.xml index a403d39af0..a8d86d101f 100644 --- a/face/capture/src/main/res/layout-land/fragment_confirmation.xml +++ b/face/capture/src/main/res/layout-land/fragment_confirmation.xml @@ -21,6 +21,8 @@ android:id="@+id/confirmation_img" android:layout_width="0dp" android:layout_height="0dp" + app:layout_constraintHeight_max="300dp" + app:layout_constraintWidth_max="300dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toTopOf="@+id/container_buttons" app:layout_constraintDimensionRatio="1:1"