How to add Android actionmenu text -


how add text view in action bar show data in android application. following menu.xml

<menu xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools" tools:context=".mainactivity">     <menu>     <item         android:id="@+id/action_log"         android:title="@string/action_log"         android:showasaction="never"/>      <item         android:id="@+id/account_log"         android:title="@string/accountlog"         android:showasaction="never"/>      <item android:id="@+id/logout"         android:title="logout"         android:showasaction="never"/>     </menu> </menu> 

any changes required in strings.xml?

change

android:showasaction="never" 

to

android:showasaction="ifroom" 

please check correct case of ifroom, not quite sure.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -