From b375ae45ae89c35c107ca3c748f239b6ee10a54b Mon Sep 17 00:00:00 2001 From: Philoul Date: Sat, 27 Mar 2021 16:02:40 +0100 Subject: [PATCH] Improve Layout (avoid overlap between Action and Icon on low res screen) --- .../res/layout/treatments_user_entry_item.xml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/app/src/main/res/layout/treatments_user_entry_item.xml b/app/src/main/res/layout/treatments_user_entry_item.xml index 551ee2fe88..30cb17d7a7 100644 --- a/app/src/main/res/layout/treatments_user_entry_item.xml +++ b/app/src/main/res/layout/treatments_user_entry_item.xml @@ -12,7 +12,8 @@ android:id="@+id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:paddingStart="5dp" + android:paddingStart="10dp" + android:paddingTop="3dp" android:text="1.1.2021 09:00" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="@+id/iconSource" @@ -22,13 +23,14 @@ @@ -51,7 +54,7 @@ android:paddingEnd="10dp" android:textStyle="bold" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@id/date" + app:layout_constraintTop_toBottomOf="@id/action" android:visibility="gone" android:text="Values with units" /> @@ -60,6 +63,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingStart="20dp" + android:paddingEnd="10dp" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/values" android:textAppearance="?android:attr/textAppearanceSmall"