mirror of https://github.com/M66B/FairEmail.git
Fixed style menu order
This commit is contained in:
parent
61dbfa389f
commit
7a8916f141
|
@ -96,8 +96,8 @@ public class StyleHelper {
|
||||||
|
|
||||||
String[] fontNames = anchor.getResources().getStringArray(R.array.fontNameNames);
|
String[] fontNames = anchor.getResources().getStringArray(R.array.fontNameNames);
|
||||||
for (int i = 0; i < fontNames.length; i++)
|
for (int i = 0; i < fontNames.length; i++)
|
||||||
popupMenu.getMenu().add(R.id.group_style_font, i, Menu.NONE, fontNames[i]);
|
popupMenu.getMenu().add(R.id.group_style_font, i, 3, fontNames[i]);
|
||||||
popupMenu.getMenu().add(R.id.group_style_font, fontNames.length, Menu.NONE, R.string.title_style_font_default);
|
popupMenu.getMenu().add(R.id.group_style_font, fontNames.length, 3, R.string.title_style_font_default);
|
||||||
|
|
||||||
popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
|
popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<group android:id="@+id/group_style_size">
|
<group
|
||||||
|
android:id="@+id/group_style_size"
|
||||||
|
android:orderInCategory="1">
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_style_size_small"
|
android:id="@+id/menu_style_size_small"
|
||||||
android:title="@string/title_style_size_small" />
|
android:title="@string/title_style_size_small" />
|
||||||
|
@ -14,15 +16,21 @@
|
||||||
android:title="@string/title_style_size_large" />
|
android:title="@string/title_style_size_large" />
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
<group android:id="@+id/group_style_color">
|
<group
|
||||||
|
android:id="@+id/group_style_color"
|
||||||
|
android:orderInCategory="2">
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_style_color"
|
android:id="@+id/menu_style_color"
|
||||||
android:title="@string/title_style_color" />
|
android:title="@string/title_style_color" />
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
<group android:id="@+id/group_style_font" />
|
<group
|
||||||
|
android:id="@+id/group_style_font"
|
||||||
|
android:orderInCategory="3" />
|
||||||
|
|
||||||
<group android:id="@+id/group_style_clear">
|
<group
|
||||||
|
android:id="@+id/group_style_clear"
|
||||||
|
android:orderInCategory="4">
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_style_clear"
|
android:id="@+id/menu_style_clear"
|
||||||
android:title="@string/title_style_clear" />
|
android:title="@string/title_style_clear" />
|
||||||
|
|
Loading…
Reference in New Issue