How to get the new NavigationView to play nice with status bar scrim?

前端 未结 5 1064
时光说笑
时光说笑 2020-12-30 03:22

I\'ve been playing with Google\'s new design support library and it\'s a blast! I\'m just a little stumped though on the navigation view. All the things I read say that the

5条回答
  •  再見小時候
    2020-12-30 03:56

    After struggling with this for several more hours, and copiously comparing my code to the cheesesquare app, I found the following: The DrawerLayout must have the attribute android:fitsSystemWindows="true", and the NavigationView as well, but the CoordinatorLayout should not. Once I made those changes, it worked.

    Thanks all, and hopefully this is helpful to somebody!

    You can look at my code for the layout here.

    -Justin

提交回复
热议问题