Use at the outermost layer
Relativelayout as the root node while setting the
Android:fitssystemwindows= "true"
Problem solving.
<?xml version= "1.0" encoding= "Utf-8"?>
<relativelayout xmlns:android= "Http://schemas.android.com/apk/res/android"
xmlns:app= "Http://schemas.android.com/apk/res-auto"
android:layout_width= "Match_parent"
android:layout_height= "Match_parent"
android:background= "@color/white"
android:fitssystemwindows= "true" >
<android.support.design.widget.coordinatorlayout
Android:layout_width= "Match_parent"
android:layout_height= "Match_parent" >
<!--title bar toolbar-->
<android.support.design.widget.appbarlayout
Android:layout_width= "Match_parent"
android:layout_height= "Wrap_content"
Android:theme= "@style/apptheme.appbaroverlay" >
<android.support.v7.widget.toolbar
Android:id= "@+id/toolbar"
Android:layout_width= "Match_parent"
android:minheight= "48DP"
android:layout_height= "48DP"
Android:background= "? Attr/colorprimary"
App:popuptheme= "@style/apptheme"/>
</android.support.design.widget.AppBarLayout>
Android.support.design.widget.AppBarLayout Blank bar at bottom of android5.0+