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

后端 未结 10 995
[愿得一人]
[愿得一人] 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:31

    I am Using Design Support Library. And just by using custom theme I achived transparent Status Bar when Opened Navigation Drawer.

    enter image description here

    
    

    Finally add theme in Manifest File

     
    
    

    Do not forget to use the property, android:fitsSystemWindows="true" in "DrawerLayout"

提交回复
热议问题