From 24c32796ceecba5cc2e8f033e18070c8a855e7bd Mon Sep 17 00:00:00 2001 From: jacques Date: Mon, 19 Aug 2024 15:24:20 +0200 Subject: [PATCH] rework button position, not happy with it when changing language. --- app/src/main/res/layout/backupprefs.xml | 74 +++++++++++++------------ 1 file changed, 38 insertions(+), 36 deletions(-) diff --git a/app/src/main/res/layout/backupprefs.xml b/app/src/main/res/layout/backupprefs.xml index b9da7e0..45b6914 100644 --- a/app/src/main/res/layout/backupprefs.xml +++ b/app/src/main/res/layout/backupprefs.xml @@ -26,25 +26,33 @@ style="@style/Widget.MaterialComponents.Button.OutlinedButton" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_marginEnd="68dp" + android:layout_marginTop="100dp" + android:layout_marginEnd="76dp" android:layout_weight="1" android:backgroundTint="@color/selected_background" + android:bottomLeftRadius="0dp" + android:bottomRightRadius="10dp" android:gravity="center" android:paddingStart="25dp" android:paddingEnd="25dp" android:text="@string/export_prescriptions" android:textColor="@color/white" - app:layout_constraintBottom_toBottomOf="@+id/switch_btn_import" + android:topLeftRadius="0dp" + android:topRightRadius="10dp" app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintTop_toTopOf="@+id/switch_btn_import" /> + app:layout_constraintTop_toTopOf="parent" /> + app:layout_constraintTop_toTopOf="parent" /> - - + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" /> + +