You must dynamically add user information (name + email) to the menu item. Information should be displayed in two lines in one element. Already tried to implement this:

android:lines="2" android:inputType="textMultiLine" android:maxLines="4" android:singleLine="false" android:text="First line\nSecond line"? 

So:

 System.getProperty ("line.separator") \n, \r string = string.replace("\\\n", System.getProperty("line.separator")); (Html.fromHtml("text before break<br/>text after break").toString()); 

not all to no avail. I would be very grateful for any hint or help!

    1 answer 1

    After several days of searching for a solution, I came to the conclusion that it is not possible to do this in the options menu. And the best (for me) alternative was to use the Popup Window. Of course, you will have to tinker with the layout layout, but if there is an urgent need (as in my case), then this is a great solution.