Items in ActionBarCompat are showed always in Overflow

后端 未结 7 1849
暗喜
暗喜 2021-02-07 06:02

I\'m using ActionBarCompat in my app, an I want to show one or two items in the action bar

I follwed the guide of google developers, but when I test it, the items are sh

7条回答
  •  抹茶落季
    2021-02-07 06:30

    The question has been updated to include the answer, but for anyone who is interested in the official documentation, see http://developer.android.com/guide/topics/ui/actionbar.html#ActionItems and pay particular attention to the note about using a custom namespace for the showAsAction attribute.

提交回复
热议问题