Clicking hamburger icon on Toolbar does not open Navigation Drawer

后端 未结 13 2830
太阳男子
太阳男子 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条回答
  •  萌比男神i
    2020-12-14 00:30

    After a lot of different problems I found a way to make it work putting Toolbar Widget inside AppBarLayout.

    Be sure that there is no other layout on top of widget toolbar!

    
    
        
    
            **
    
              
    
              
             **
    
            .... YOUR LAYOUT ...
    
        
    
        
    
        
    
    
    

提交回复
热议问题