Toolbar behind status bar

◇◆丶佛笑我妖孽 提交于 2019-12-04 12:53:43

The solution is apply the item

<item name="android:windowTranslucentStatus">false</item>

in the styles.

I don't like these answers. Just because with Material design a Navigation Drawer should overlap the toolbar and have a translucent status bar so long as the API level supports it.

If you want the toolbar to fit properly and have a translucent status bar then you just need these items in your style.

    <item name="windowActionBar">false</item>
    <item name="windowNoTitle">true</item>
    <item name="android:windowDrawsSystemBarBackgrounds">true</item>
    <item name="android:windowTranslucentStatus">true</item>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!