Showing a menu overflow button in a Toolbar

后端 未结 2 812
遇见更好的自我
遇见更好的自我 2021-01-18 14:00

I\'ve created a Toolbar for Lollipop, but I can\'t seem to figure out how to add an overflow button to the toolbar. I\'m not going to be using the v7 appcompat

2条回答
  •  清歌不尽
    2021-01-18 14:38

    If your toolbar is of the package android.support.v7.widget, use setSupportActionBar(mToolbar); instead of setActionBar(mToolbar);

提交回复
热议问题