Reorder style menu

pull/198/head
M66B 4 years ago
parent 1238873b63
commit 7096f66504

@ -142,6 +142,8 @@ public class StyleHelper {
return setSize(item); return setSize(item);
} else if (groupId == R.id.group_style_color) { } else if (groupId == R.id.group_style_color) {
return setColor(item); return setColor(item);
} else if (groupId == R.id.group_style_font) {
return setFont(item);
} else if (groupId == R.id.group_style_align) { } else if (groupId == R.id.group_style_align) {
return setAlignment(item); return setAlignment(item);
} else if (groupId == R.id.group_style_list) { } else if (groupId == R.id.group_style_list) {
@ -150,8 +152,6 @@ public class StyleHelper {
return setListLevel(item); return setListLevel(item);
else else
return setList(item); return setList(item);
} else if (groupId == R.id.group_style_font) {
return setFont(item);
} else if (groupId == R.id.group_style_blockquote) { } else if (groupId == R.id.group_style_blockquote) {
return setBlockQuote(item); return setBlockQuote(item);
} else if (groupId == R.id.group_style_strikethrough) { } else if (groupId == R.id.group_style_strikethrough) {

@ -31,10 +31,20 @@
android:title="@string/title_style_color" /> android:title="@string/title_style_color" />
</group> </group>
<item
android:id="@+id/menu_style_font"
android:icon="@drawable/twotone_title_24"
android:orderInCategory="3"
android:title="@string/title_style_font">
<menu>
<group android:id="@+id/group_style_font" />
</menu>
</item>
<item <item
android:id="@+id/menu_style_align" android:id="@+id/menu_style_align"
android:icon="@drawable/twotone_format_align_center_24" android:icon="@drawable/twotone_format_align_center_24"
android:orderInCategory="3" android:orderInCategory="4"
android:title="@string/title_style_align"> android:title="@string/title_style_align">
<menu> <menu>
<group android:id="@+id/group_style_align"> <group android:id="@+id/group_style_align">
@ -59,7 +69,7 @@
<item <item
android:id="@+id/menu_style_list" android:id="@+id/menu_style_list"
android:icon="@drawable/twotone_format_list_bulleted_24" android:icon="@drawable/twotone_format_list_bulleted_24"
android:orderInCategory="4" android:orderInCategory="5"
android:title="@string/title_style_list"> android:title="@string/title_style_list">
<menu> <menu>
<group android:id="@+id/group_style_list"> <group android:id="@+id/group_style_list">
@ -83,16 +93,6 @@
</menu> </menu>
</item> </item>
<item
android:id="@+id/menu_style_font"
android:icon="@drawable/twotone_title_24"
android:orderInCategory="5"
android:title="@string/title_style_font">
<menu>
<group android:id="@+id/group_style_font" />
</menu>
</item>
<group <group
android:id="@+id/group_style_blockquote" android:id="@+id/group_style_blockquote"
android:orderInCategory="6"> android:orderInCategory="6">

Loading…
Cancel
Save