How to add buttons like refresh and search in ToolBar in Android?

后端 未结 4 1736
情书的邮戳
情书的邮戳 2020-12-12 18:50

\"enter

I have made a ToolBar, but when I add menu items in menu.xml it always shows a

4条回答
  •  既然无缘
    2020-12-12 19:22

    Add this line at the top:

    "xmlns:app="http://schemas.android.com/apk/res-auto"

    and then use:

    app:showasaction="ifroom"

提交回复
热议问题