I want to use material drawer like about 30 times I already used it. If I put materialDrawer builder in OnCreate method all work well. Building drawer after some seconds with thread a CountDown timer produces a white grey space in statusbar.
My simple code to build it:
result = new DrawerBuilder(this)
.withActivity(this)
.withToolbar(toolbar)
.withActionBarDrawerToggle(true)
.addDrawerItems(
My values-21 Activity Style:
<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
<item name="android:statusBarColor">@android:color/transparent</item>
</style>
My activity_main.xml: Watch at fitSystemWindows="true". Using this attribute in CoordinatorLayout
solve statusbar issue. But the same space is on bottom of xml now. Removing it from coordinator, cause the issue on statusbar and not anymore in bottom layout.