Reputation: 427
I was wondering if it is possible to put items directly in the overflow menu on the actionbar. I am using ActionbarSherlock for my app (if this is relevant). I have several menu items, for instance: Add, Delete, Sort, About app, etc. These are all items for my actionbar menu. I would like to leave only "Add" outside, and put the rest in the overflow menu. Is there any way to do that?
Upvotes: 0
Views: 1105
Reputation: 86958
I was wondering if it is possible to put items directly in the overflow menu on the actionbar.
Yes, set the attribute showAsAction
to "never"
:
<item android:id="@+id/item"
android:title="@string/item"
android:showAsAction="never"/>
Upvotes: 4