From d06c4c6fc0fa27d897844b682534262e505d643d Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 1 Feb 2020 18:33:14 +0100 Subject: [PATCH] Show importance with upward/downward arrow --- .../eu/faircode/email/AdapterMessage.java | 24 ++++++++++++++----- .../drawable/baseline_arrow_downward_24.xml | 10 ++++++++ .../res/drawable/baseline_arrow_upward_24.xml | 10 ++++++++ app/src/main/res/drawable/importance.xml | 9 +++++++ .../res/layout/include_message_compact.xml | 13 +++++++++- .../res/layout/include_message_normal.xml | 13 +++++++++- 6 files changed, 71 insertions(+), 8 deletions(-) create mode 100644 app/src/main/res/drawable/baseline_arrow_downward_24.xml create mode 100644 app/src/main/res/drawable/baseline_arrow_upward_24.xml create mode 100644 app/src/main/res/drawable/importance.xml diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index fc1f241137..12600096f0 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -304,6 +304,7 @@ public class AdapterMessage extends RecyclerView.Adapter 0 ? View.VISIBLE : View.GONE); ivEncrypted.setVisibility(message.encrypted > 0 ? View.VISIBLE : View.GONE); tvFrom.setText(MessageHelper.formatAddresses(addresses, name_email, false)); @@ -3969,10 +3982,9 @@ public class AdapterMessage extends RecyclerView.Adapter 0) diff --git a/app/src/main/res/drawable/baseline_arrow_downward_24.xml b/app/src/main/res/drawable/baseline_arrow_downward_24.xml new file mode 100644 index 0000000000..8f9be44a70 --- /dev/null +++ b/app/src/main/res/drawable/baseline_arrow_downward_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/baseline_arrow_upward_24.xml b/app/src/main/res/drawable/baseline_arrow_upward_24.xml new file mode 100644 index 0000000000..07b7a8366c --- /dev/null +++ b/app/src/main/res/drawable/baseline_arrow_upward_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/importance.xml b/app/src/main/res/drawable/importance.xml new file mode 100644 index 0000000000..81d6784a99 --- /dev/null +++ b/app/src/main/res/drawable/importance.xml @@ -0,0 +1,9 @@ + + + + + diff --git a/app/src/main/res/layout/include_message_compact.xml b/app/src/main/res/layout/include_message_compact.xml index 1e670f745c..85838fd0c4 100644 --- a/app/src/main/res/layout/include_message_compact.xml +++ b/app/src/main/res/layout/include_message_compact.xml @@ -93,6 +93,17 @@ app:layout_constraintTop_toTopOf="@+id/tvFrom" app:srcCompat="@drawable/baseline_low_priority_24" /> + + diff --git a/app/src/main/res/layout/include_message_normal.xml b/app/src/main/res/layout/include_message_normal.xml index 42b3e3f95a..73a207c8ce 100644 --- a/app/src/main/res/layout/include_message_normal.xml +++ b/app/src/main/res/layout/include_message_normal.xml @@ -92,6 +92,17 @@ app:layout_constraintTop_toTopOf="@+id/tvFrom" app:srcCompat="@drawable/baseline_low_priority_24" /> + +