From ab2a1ed1fafd2921400874bd0bb15a34d708ec20 Mon Sep 17 00:00:00 2001 From: Philoul Date: Mon, 4 Jan 2021 22:19:02 +0100 Subject: [PATCH] Layout improvement datetime vertical centered for languages with "long translations" Add marging for right icon of automation (too close to border) --- app/src/main/res/layout/automation_event_item.xml | 1 + app/src/main/res/layout/datetime.xml | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/main/res/layout/automation_event_item.xml b/app/src/main/res/layout/automation_event_item.xml index bb88af4702..04402e6a38 100644 --- a/app/src/main/res/layout/automation_event_item.xml +++ b/app/src/main/res/layout/automation_event_item.xml @@ -65,6 +65,7 @@ android:layout_height="wrap_content" android:contentDescription="@string/reorder_label" android:orientation="horizontal" + android:layout_marginEnd="8dp" app:layout_constraintBottom_toTopOf="@+id/iconLayout" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@+id/iconTrash" diff --git a/app/src/main/res/layout/datetime.xml b/app/src/main/res/layout/datetime.xml index 830dc0ca94..f19abd8f43 100644 --- a/app/src/main/res/layout/datetime.xml +++ b/app/src/main/res/layout/datetime.xml @@ -7,9 +7,10 @@ @@ -19,7 +20,7 @@ android:id="@+id/overview_eventdate" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="center_horizontal" + android:layout_gravity="center" android:padding="10dp" android:text="2017/05/05" /> @@ -27,7 +28,7 @@ android:id="@+id/overview_eventtime" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="center_horizontal" + android:layout_gravity="center" android:padding="10dp" android:text="08:20pm" />