From e219baac3f807de4c2c51ee53669c05d1257ecbc Mon Sep 17 00:00:00 2001 From: Matthias Urhahn <matthias.urhahn@sap.com> Date: Wed, 14 Apr 2021 14:14:22 +0200 Subject: [PATCH] Fix button alignment Missing top padding if checkin texts are single row (#2826) Co-authored-by: AlexanderAlferov <64849422+AlexanderAlferov@users.noreply.github.com> --- .../trace_location_attendee_checkins_item_active.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Corona-Warn-App/src/main/res/layout/trace_location_attendee_checkins_item_active.xml b/Corona-Warn-App/src/main/res/layout/trace_location_attendee_checkins_item_active.xml index 4fe7a317f..67a3a719f 100644 --- a/Corona-Warn-App/src/main/res/layout/trace_location_attendee_checkins_item_active.xml +++ b/Corona-Warn-App/src/main/res/layout/trace_location_attendee_checkins_item_active.xml @@ -98,6 +98,13 @@ app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="parent" /> + <androidx.constraintlayout.widget.Barrier + android:id="@+id/button_barrier" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + app:barrierDirection="bottom" + app:constraint_referenced_ids="checkout_info,traceLocationCardHighlightView" /> + <com.google.android.material.button.MaterialButton android:id="@+id/checkout_action" style="@style/Widget.MaterialComponents.Button.OutlinedButton" @@ -112,6 +119,7 @@ app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/checkout_info" app:strokeColor="@color/colorAccent" /> </androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file -- GitLab