I have the following layout
[CoordinatorLayout]
[AppBarLayout]
[CollapsingToolbarLayout]
[Toolbar]
[RelativeLayout/]
[/Toolbar]
[/CollapsingToolbarLayout]
[AppBarLayout]
[RecyclerView/]
[/CoordinatorLayout]
The collapsing toolbar works fine.
My recycle view is like this
<android.support.v7.widget.RecyclerView
android:id="@+id/profile_grid"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:overScrollMode="never"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
When there are not enough items you can't scroll and collapse the toolbar.
If you try to touch the appbar and scroll upwards it collapses.
Do you know a way to stop that and make it collapse ONLY when the user touches the recycler?