From a14c8e8f2b729eaeb50cd8911614268b0ec63995 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 19 Jan 2019 08:25:47 +0000 Subject: [PATCH] Small layout improvements --- .../java/eu/faircode/email/FragmentRule.java | 2 +- app/src/main/res/layout/dialog_ask_again.xml | 6 ++-- app/src/main/res/layout/dialog_duration.xml | 6 ++-- app/src/main/res/layout/dialog_message.xml | 6 ++-- app/src/main/res/layout/fragment_legend.xml | 23 ++++++++++++- .../main/res/layout/fragment_quick_setup.xml | 4 +-- app/src/main/res/layout/fragment_rule.xml | 33 ++++++++++++------- app/src/main/res/layout/fragment_setup.xml | 4 +-- app/src/main/res/values/strings.xml | 5 ++- 9 files changed, 61 insertions(+), 28 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentRule.java b/app/src/main/java/eu/faircode/email/FragmentRule.java index 5f70a318cf..a194373135 100644 --- a/app/src/main/java/eu/faircode/email/FragmentRule.java +++ b/app/src/main/java/eu/faircode/email/FragmentRule.java @@ -141,7 +141,7 @@ public class FragmentRule extends FragmentBase { actions.add(new Action(EntityRule.TYPE_SEEN, getString(R.string.title_seen))); actions.add(new Action(EntityRule.TYPE_UNSEEN, getString(R.string.title_unseen))); actions.add(new Action(EntityRule.TYPE_MOVE, getString(R.string.title_move))); - actions.add(new Action(EntityRule.TYPE_ANSWER, getString(R.string.menu_answers))); + actions.add(new Action(EntityRule.TYPE_ANSWER, getString(R.string.title_answer_reply))); adapterAction.addAll(actions); spAction.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { diff --git a/app/src/main/res/layout/dialog_ask_again.xml b/app/src/main/res/layout/dialog_ask_again.xml index 4722a3ba31..3fa2a75580 100644 --- a/app/src/main/res/layout/dialog_ask_again.xml +++ b/app/src/main/res/layout/dialog_ask_again.xml @@ -2,12 +2,12 @@ + android:layout_height="match_parent"> + android:layout_height="wrap_content" + android:padding="24dp"> + android:layout_height="match_parent"> + android:layout_height="wrap_content" + android:padding="24dp"> + android:layout_height="match_parent"> + android:layout_height="wrap_content" + android:padding="24dp"> + + + + + app:layout_constraintTop_toBottomOf="@id/tvStop" /> + android:layout_height="wrap_content" + android:padding="12dp"> + android:layout_height="wrap_content" + android:padding="12dp"> @@ -238,14 +237,14 @@ android:layout_height="wrap_content" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@id/tvTargetArguments" /> + app:layout_constraintTop_toBottomOf="@id/tvMoveTarget" /> @@ -256,7 +255,17 @@ android:layout_height="wrap_content" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@id/tvAnswerArguments" /> + app:layout_constraintTop_toBottomOf="@id/tvAnswerIdentity" /> + + + app:layout_constraintTop_toBottomOf="@id/tvAnswerTemplate" /> + app:constraint_referenced_ids="tvMoveTarget,spTarget" /> + app:constraint_referenced_ids="tvAnswerIdentity,spIdent,tvAnswerTemplate,spAnswer" /> diff --git a/app/src/main/res/layout/fragment_setup.xml b/app/src/main/res/layout/fragment_setup.xml index 32aee2099b..feffe876b4 100644 --- a/app/src/main/res/layout/fragment_setup.xml +++ b/app/src/main/res/layout/fragment_setup.xml @@ -4,13 +4,13 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_margin="12dp" android:orientation="vertical" tools:context=".ActivitySetup"> + android:layout_height="wrap_content" + android:padding="12dp"> Regex AND Action - Parameters + Folder + Identity + Reply template Rule name missing Condition missing @@ -428,6 +430,7 @@ Synchronizing Downloading Closing + Stop processing rules Connection is metered Connection is unmetered Number of days to synchronize / to keep messages