How to put navigation drawer below toolbar?

前端 未结 9 2049
轮回少年
轮回少年 2021-01-02 08:17

Here my navigation drawer is above toolbar.I also added some xml code.Please help me.

here is my activity.xml



        
9条回答
  •  南笙
    南笙 (楼主)
    2021-01-02 08:49

    If you are using custom toolbar then use the drawer layout in this way..

    
    
        
        
    
        
    
            
            
                ....
            
    
        
    
      
    

    and if you are not using custom toolbar then you have to set margin top to the drawer layout..

    android:layout_marginTop ="?android:attr/actionBarSize"
    

提交回复
热议问题