How do you remove an inflated menu/items from the new Lollipop Toolbar?

前端 未结 1 1302
醉话见心
醉话见心 2021-02-03 17:32

I include a v7 Toolbar in my layout.



        
1条回答
  •  一生所求
    2021-02-03 18:28

    I am not entirely sure if this is what you mean nor have tried it but.

    mToolbar.getMenu().clear();
    

    should clear the menu.

    I have still been using onCreateOptionsMenu for all my menu creation however

    0 讨论(0)
提交回复
热议问题