I have following setup:
I had the same issue and my solution was add android:fitsSystemWindows="true" to the DrawerLayout
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">
....
</android.support.v4.widget.DrawerLayout>
as some users said, by setting android:fitsSystemWindows="false"
, the layout overlapped below statusbar
.
I solved it by setting android:fitsSystemWindows="true"
and in CoordinatorLayout
tag setting app:statusBarBackground="@android:color/transparent"
.