Android Actionbar Always Showing Overflow Menu For Menu Items In Actionbar
Hi I am developing sample Android application in which I am trying to display menu items in actionbar. But my actionbar always showing overflow menu even if there is only single me
Solution 1:
Try this code and add extra xmlns attribute for your menu and try app:showAsAction instead of android:showAsAction
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" >
<item
android:id="@+id/categories"
android:icon="@drawable/navigation_collapse"
android:title="Categories"
app:showAsAction="always"/>
</menu>
Post a Comment for "Android Actionbar Always Showing Overflow Menu For Menu Items In Actionbar"