Anish Singh Anish Singh - 1 month ago 27
Android Question

How to create a multi-line options menu item (SubMenu)

I have a really long title for MenuItem (Added as a SubMenu).
When added to Action-bar the menu item spills over the screen.
Even adding a "\n" in the title does not help.
Is there a way to make the title appear in two lines?

Answer

You can create a custom layout for this type of menu. Here is an approach Android Action bar custom dropdown view on item click.