From b85ab4ee2a9a1b2b763a8557c4b6729757483a35 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 21 May 2021 08:18:59 +0200 Subject: [PATCH] Small layout improvements --- .../java/eu/faircode/email/ActivityView.java | 8 ++-- app/src/main/res/layout/dialog_ask_again.xml | 1 + .../main/res/layout/dialog_certificate.xml | 1 + app/src/main/res/layout/dialog_deepl.xml | 1 + app/src/main/res/layout/dialog_first.xml | 42 ++++++++++++------- app/src/main/res/layout/dialog_junk.xml | 16 +++++-- app/src/main/res/layout/dialog_search.xml | 1 + 7 files changed, 46 insertions(+), 24 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityView.java b/app/src/main/java/eu/faircode/email/ActivityView.java index 20cd70a972..a47863ab99 100644 --- a/app/src/main/java/eu/faircode/email/ActivityView.java +++ b/app/src/main/java/eu/faircode/email/ActivityView.java @@ -1553,17 +1553,17 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) { LayoutInflater inflater = LayoutInflater.from(getContext()); View dview = inflater.inflate(R.layout.dialog_first, null); - Button btnBatteryInfo = dview.findViewById(R.id.btnBatteryInfo); - Button btnReformatInfo = dview.findViewById(R.id.btnReformatInfo); + ImageButton ibBatteryInfo = dview.findViewById(R.id.ibBatteryInfo); + ImageButton ibReformatInfo = dview.findViewById(R.id.ibReformatInfo); - btnBatteryInfo.setOnClickListener(new View.OnClickListener() { + ibBatteryInfo.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Helper.viewFAQ(v.getContext(), 39); } }); - btnReformatInfo.setOnClickListener(new View.OnClickListener() { + ibReformatInfo.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Helper.viewFAQ(v.getContext(), 35); diff --git a/app/src/main/res/layout/dialog_ask_again.xml b/app/src/main/res/layout/dialog_ask_again.xml index bd865b2b65..0444301006 100644 --- a/app/src/main/res/layout/dialog_ask_again.xml +++ b/app/src/main/res/layout/dialog_ask_again.xml @@ -30,6 +30,7 @@ android:contentDescription="@string/title_info" android:padding="6dp" android:scaleType="fitCenter" + android:tint="?attr/colorAccent" android:tooltipText="@string/title_info" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="@id/tvMessage" diff --git a/app/src/main/res/layout/dialog_certificate.xml b/app/src/main/res/layout/dialog_certificate.xml index d480efc493..c0a22c6425 100644 --- a/app/src/main/res/layout/dialog_certificate.xml +++ b/app/src/main/res/layout/dialog_certificate.xml @@ -106,6 +106,7 @@ android:layout_height="24dp" android:background="?android:attr/selectableItemBackgroundBorderless" android:contentDescription="@string/title_info" + android:tint="?attr/colorAccent" android:tooltipText="@string/title_info" app:layout_constraintBottom_toBottomOf="@id/tvSubjectTitle" app:layout_constraintEnd_toEndOf="parent" diff --git a/app/src/main/res/layout/dialog_deepl.xml b/app/src/main/res/layout/dialog_deepl.xml index fdbe37133a..bf59b63db9 100644 --- a/app/src/main/res/layout/dialog_deepl.xml +++ b/app/src/main/res/layout/dialog_deepl.xml @@ -29,6 +29,7 @@ android:contentDescription="@string/title_info" android:padding="6dp" android:scaleType="fitCenter" + android:tint="?attr/colorAccent" android:tooltipText="@string/title_info" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="@id/tvDeepL" diff --git a/app/src/main/res/layout/dialog_first.xml b/app/src/main/res/layout/dialog_first.xml index 0a4558d6da..b21f538f5b 100644 --- a/app/src/main/res/layout/dialog_first.xml +++ b/app/src/main/res/layout/dialog_first.xml @@ -55,14 +55,19 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/tvSyncNote" /> -