Hello friends i want to create option menu like below image
so i create below menu.xml file:
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/live_cart"
android:orderInCategory="100"
android:showAsAction="always"
android:icon="@drawable/cart"
android:title=""/>
<item
android:id="@+id/overflow"
android:orderInCategory="100"
android:showAsAction="always"
android:icon="@drawable/ic_menu_overflow"
android:title="">
<menu>
<item android:id="@+id/action_dasbboard"
android:title="Logout"
android:showAsAction="never"
/>
<item android:id="@+id/export_data"
android:title="My accout"
android:showAsAction="never"
/>
<item android:id="@+id/action_help"
android:title="Wishlist"
android:showAsAction="never"
/>
<item android:id="@+id/action_feedback"
android:title="Track order"
android:showAsAction="never"
/>
<item android:id="@+id/about"
android:title="Help"
android:showAsAction="never"
/>
<item
android:id="@+id/terms"
android:title="Legal"
app:showAsAction="never"/>
</menu>
</item>
</menu>
When i run above code i will come like below
it is coming only one option so how can i solve this problem any idea?
insert
try this