I have a very simple question.. I am using the following code to edit the title of my option menu.
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.menu, menu);
menu.findItem(R.id.default_email).setTitle("Default E-mail: "+gmailAc);
I just want to add a new line after “Default E-mail”.. I have tried \n and \r\n but none of them worked.. Its quite strange that android doesn’t support even the simplest of the formatting commands..
Can anyone guide me here.
Thanks all.
Line breaks are not possible in menu.
check this LINK
this is same as what you are trying to do.
hope this helps.