From a16b21f4c0755607bdf66d2f5238219da51e21a7 Mon Sep 17 00:00:00 2001 From: fynngodau <fynngodau@mailbox.org> Date: Thu, 27 May 2021 21:16:30 +0200 Subject: [PATCH] Fix RAT profile continue button padding (COMMUNITY) (#3308) * Fix padding of RAT profile continue button * Enhance scrolling behavior of RAT profile screen Co-authored-by: Matthias Urhahn <matthias.urhahn@sap.com> Co-authored-by: Mohamed Metwalli <mohamed.metwalli@sap.com> --- .../res/layout/rat_profile_qr_code_fragment.xml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Corona-Warn-App/src/main/res/layout/rat_profile_qr_code_fragment.xml b/Corona-Warn-App/src/main/res/layout/rat_profile_qr_code_fragment.xml index 5cef26cc2..854a73d92 100644 --- a/Corona-Warn-App/src/main/res/layout/rat_profile_qr_code_fragment.xml +++ b/Corona-Warn-App/src/main/res/layout/rat_profile_qr_code_fragment.xml @@ -12,9 +12,8 @@ android:id="@+id/coordinator_layout" android:layout_width="0dp" android:layout_height="0dp" - android:layout_marginBottom="12dp" android:nestedScrollingEnabled="true" - app:layout_constraintBottom_toTopOf="@id/next_button" + app:layout_constraintBottom_toTopOf="@id/guideline_action" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" @@ -94,6 +93,8 @@ android:id="@+id/nested_scroll_view" android:layout_width="match_parent" android:layout_height="match_parent" + android:paddingBottom="12dp" + android:clipToPadding="false" app:layout_behavior="@string/appbar_scrolling_view_behavior"> <androidx.constraintlayout.widget.ConstraintLayout @@ -190,10 +191,17 @@ android:layout_height="wrap_content" android:layout_marginStart="@dimen/spacing_normal" android:layout_marginEnd="@dimen/spacing_normal" - android:layout_marginBottom="8dp" android:text="@string/rat_qr_code_profile_next_button" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toStartOf="parent" /> + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/guideline_action"/> + + <androidx.constraintlayout.widget.Guideline + android:id="@+id/guideline_action" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + app:layout_constraintGuide_end="@dimen/guideline_action" /> </androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file -- GitLab