From 3e39a7ff779fafb26f582e7edc16dd0e3b4c491e Mon Sep 17 00:00:00 2001 From: Distopico Vegan Date: Thu, 6 Dec 2018 00:57:11 -0500 Subject: [PATCH] improve the changes on message list --- .../org/dystopia/email/AdapterMessage.java | 33 +++++---- .../main/res/layout/item_message_compact.xml | 74 ++++++++++--------- .../main/res/layout/item_message_normal.xml | 48 ++++++------ app/src/main/res/layout/widget.xml | 2 +- app/src/main/res/values/dimens.xml | 11 ++- 5 files changed, 91 insertions(+), 77 deletions(-) diff --git a/app/src/main/java/org/dystopia/email/AdapterMessage.java b/app/src/main/java/org/dystopia/email/AdapterMessage.java index a1492f39..33c0dfb7 100644 --- a/app/src/main/java/org/dystopia/email/AdapterMessage.java +++ b/app/src/main/java/org/dystopia/email/AdapterMessage.java @@ -334,7 +334,6 @@ public class AdapterMessage extends PagedListAdapter 0 ? View.VISIBLE : View.GONE); tvSubject.setText(message.subject); @@ -342,17 +341,14 @@ public class AdapterMessage extends PagedListAdapter - - - + + + + app:layout_constraintTop_toBottomOf="@id/tvSummary" + app:layout_constraintStart_toEndOf="@id/tvFolder" /> + app:layout_constraintTop_toTopOf="@id/tvCount" /> diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index c985d6e8..1c8d29a3 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -1,10 +1,17 @@ + 0dp 12dp 3dp - 6dp + 6dp + 3dp + 6dp + 12dp + 16dp + 12dp + 14dp 12dp - 6dp + 8dp 6dp 40dp 24dp