From bd0b12748c7a588fee92ee9426d58b72907fee8d Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 21 Jan 2020 11:41:07 +0100 Subject: [PATCH] Smaller popup menu titles --- app/src/main/java/eu/faircode/email/AdapterAccount.java | 2 ++ app/src/main/java/eu/faircode/email/AdapterAnswer.java | 2 ++ app/src/main/java/eu/faircode/email/AdapterCertificate.java | 2 ++ app/src/main/java/eu/faircode/email/AdapterContact.java | 2 ++ app/src/main/java/eu/faircode/email/AdapterFolder.java | 2 ++ app/src/main/java/eu/faircode/email/AdapterIdentity.java | 2 ++ app/src/main/java/eu/faircode/email/AdapterOperation.java | 2 ++ app/src/main/java/eu/faircode/email/AdapterRule.java | 2 ++ app/src/main/java/eu/faircode/email/FragmentMessages.java | 2 ++ 9 files changed, 18 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/AdapterAccount.java b/app/src/main/java/eu/faircode/email/AdapterAccount.java index fa92acea59..6f91ed52f0 100644 --- a/app/src/main/java/eu/faircode/email/AdapterAccount.java +++ b/app/src/main/java/eu/faircode/email/AdapterAccount.java @@ -31,6 +31,7 @@ import android.os.Build; import android.os.Bundle; import android.provider.Settings; import android.text.SpannableString; +import android.text.style.RelativeSizeSpan; import android.text.style.StyleSpan; import android.view.LayoutInflater; import android.view.Menu; @@ -235,6 +236,7 @@ public class AdapterAccount extends RecyclerView.Adapter { SpannableString ss = new SpannableString(rule.name); ss.setSpan(new StyleSpan(Typeface.ITALIC), 0, ss.length(), 0); + ss.setSpan(new RelativeSizeSpan(0.9f), 0, ss.length(), 0); popupMenu.getMenu().add(Menu.NONE, 0, 0, ss).setEnabled(false); popupMenu.getMenu().add(Menu.NONE, R.string.title_rule_enabled, 1, R.string.title_rule_enabled) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 620b02768c..b341a788e0 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -56,6 +56,7 @@ import android.security.KeyChain; import android.text.SpannableString; import android.text.TextUtils; import android.text.format.DateUtils; +import android.text.style.RelativeSizeSpan; import android.text.style.StyleSpan; import android.util.Base64; import android.util.LongSparseArray; @@ -990,6 +991,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. SpannableString ss = new SpannableString(getString(R.string.title_search_server)); ss.setSpan(new StyleSpan(Typeface.ITALIC), 0, ss.length(), 0); + ss.setSpan(new RelativeSizeSpan(0.9f), 0, ss.length(), 0); popupMenu.getMenu().add(Menu.NONE, 0, 0, ss) .setEnabled(false); popupMenu.getMenu().add(Menu.NONE, 1, 1, R.string.title_search_text)