Hard to say without seeing your code, as a guess this could be one of two things:
1.
enterAlwaysCollapsed - This flag defines how View enter back into the screen. When your view has declared a minHeight and you use this flag, your View will only enter at its minimum height (i.e., ‘collapsed’), only re-expanding to its full height when the scrolling view has reached it’s top. Use it with scroll flag like this: scroll|enterAlwaysCollapsed
Anyway it seems like it doesn‘t work as described in minHeight part.
2.
You have not formatted your code correctly.
From Android‘s Developer Blog I quote on "CoordinatorLayout and the app bar":
One note: all views using the scroll flag must be declared before views that do not use the flag. This ensures that all views exit from the top, leaving the fixed elements behind.
This link also goes into more detail about how to use enterAlwaysCollapsed
and is worth looking at.