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
Post a Comment