From 66f2104ff4ba93264c53df5184c078b5999f7249 Mon Sep 17 00:00:00 2001 From: Robozinho <65715921+RobozinhoD@users.noreply.github.com> Date: Wed, 2 Oct 2024 13:48:12 -0300 Subject: [PATCH] fix controls layout in landscape the warning wasn't well positioned --- AnkiDroid/src/main/res/layout/gesture_picker.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/AnkiDroid/src/main/res/layout/gesture_picker.xml b/AnkiDroid/src/main/res/layout/gesture_picker.xml index 6395c8f08c20..529a4220eca4 100644 --- a/AnkiDroid/src/main/res/layout/gesture_picker.xml +++ b/AnkiDroid/src/main/res/layout/gesture_picker.xml @@ -18,8 +18,6 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" tools:parentTag="androidx.constraintlayout.widget.ConstraintLayout" - tools:layout_height="500dp" - tools:layout_width="400dp" android:layout_width="match_parent" android:layout_height="match_parent"> @@ -42,6 +40,7 @@ android:gravity="center_horizontal" android:spinnerMode="dropdown" app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toBottomOf="@id/gestureDisplay" app:layout_constraintStart_toStartOf="parent" app:layout_constraintBottom_toTopOf="@id/warning"/> @@ -55,7 +54,7 @@ android:visibility="gone" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintTop_toBottomOf="@id/spinner_gesture" + app:layout_constraintBottom_toBottomOf="parent" android:drawableStart="@drawable/ic_warning" android:drawableTint="?attr/colorError" android:drawablePadding="4dp"