Clicking hamburger icon on Toolbar does not open Navigation Drawer

后端 未结 13 2878
太阳男子
太阳男子 2020-12-14 00:08

I have a simple android.support.v7.widget.Toolbar and all I am trying to do is to open a NavigationDrawer by pressing the \"hamburger\" icon in the top left cor

13条回答
  •  不知归路
    2020-12-14 00:36

    If none of the above answer works, please cross check again,

    First you need to call setSupportActionBar(toolbar); and then do the necessary work for nav drawer. I wasted my 2 hours because of this silly mistake.

提交回复
热议问题