How do I use DrawerLayout to display over the ActionBar/Toolbar and under the status bar?

后端 未结 10 843
[愿得一人]
[愿得一人] 2020-11-22 04:05

I\'ve seen in the new material design Side Nav spec that you can display the drawer over the action bar and behind the status bar. How can I implement this?

10条回答
  •  感情败类
    2020-11-22 04:39

    This is the most simple, and it worked for me:

    In the values-21:

    
        
        25dp
    
    

    In the values:

    
        0dp
    
    

    And set to your toolbar

    android:layout_marginTop="@dimen/topMargin"
    

提交回复
热议问题