Two-line text for MenuItem

Do you know how to have a menu bar with two lines? I tried using \ n in a string or Html.fromHtml with a tag, but it does not work. Thanks

+7
source share
2 answers

This is Google’s recommended response: β€œIf the text in a simple menu wraps in the second line, use a simple dialog. Simple dialogs can have lines with different heights.”

https://material.io/guidelines/components/menus.html#menus-simple-menus

+1
source

You can use String line=System.getProperty("line.separator")


this will give you the effect of a new line in a line.

-one
source

All Articles