Place a blank view below the Toolbar in front of the AppBarLayout close AppBarLayout . This worked for me when I had this problem.
<android.support.design.widget.AppBarLayout android:id="@+id/appbar" android:layout_width="match_parent" android:layout_height="wrap_content"> <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="?attr/colorPrimary" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" app:layout_scrollFlags="scroll|enterAlways" /> <View android:id="@+id/appbar_bottom" android:layout_width="match_parent" android:layout_height="1dp" android:background="@android:color/transparent" android:visibility="invisible" /> </android.support.design.widget.AppBarLayout>
Mcguile
source share