Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
592 views
in Technique[技术] by (71.8m points)

android - Two line text for MenuItem

Do you know how to have a two lines menu item title? I've tried using in the string or Html.fromHtml with
tag but it doesn't work. Thanks

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

This 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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...