Two line text for MenuItem
Do you know how 开发者_开发百科to have a two lines menu item title? I've tried using \n in the string or Html.fromHtml with
tag but it doesn't work. ThanksThis is the recommended answer from Google: "If text in a simple menu wraps to a second line, use a simple dialog instead. Simple dialogs can have rows with varying heights."
https://material.io/guidelines/components/menus.html#menus-simple-menus
You can use String line=System.getProperty("line.separator")
this will give you newline effect in string.
精彩评论