Android: NavigationDrawer/multiple activities/same menu

后端 未结 4 555
情深已故
情深已故 2020-12-12 19:56

What I am trying to do, is have a NavigationDrawer menu like this: NavigationDrawer

I\'ve figured out how to change layouts when menu items are clicked, but how do I

4条回答
  •  孤街浪徒
    2020-12-12 20:16

    You Have to Take On BaseActivity With Navigation Drawer as Normal Activity. Then after Extend this BaseActvity for all other activity.

    Note: In BaseActivity You Have to Take Framelayout Instead of Your Include File like Below. GitHub Code Available Here

    
    
        
    
        
    
    
    
    
    
    
    

    For Complete Code Visit Github Project Click Here To Download Complete Project

提交回复
热议问题