Everything
I also had the same problem.
This problem can be easily solved by simply removing
Application: layout_scrollFlags = "Spiral | enterAlways"
from your tool code in xmlfile.
i also encountered the same problem, but soon after deleting this viewpager was located inside the screen (did not cross the borders of the screen)
it was the default code
<android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?attr/colorPrimary" app:layout_scrollFlags="scroll|enterAlways" app:popupTheme="@style/AppTheme.PopupOverlay">
change it to
<android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?attr/colorPrimary" app:popupTheme="@style/AppTheme.PopupOverlay">
second line from the bottom.
source share