I got the following structure:
<CoordinatorLayout>
<AppBar>
<CollapsingToolbar
app:layout_scrollFlags="scroll|exitUntilCollapsed|snap"/>
</AppBar>
<NestedScrollView
android:layout_height="wrap_content"
android:fillViewport="true"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<ViewPager />
</NestedScrollView>
</CoordinatorLayout>
The fragment inside the ViewPager looks like:
<LinearLayout
android:layout_height="wrap_content">
<RecyclerView
android:layout_height="wrap_content" />
</LinearLayout>
Inside this Fragment's RecyclerView, I got
<RelativeLayout
android:layout_height="wrap_content">
<...>
<RecyclerView
....
android:layout_height="wrap_content" />
</RelativeLayout>
Now the problem is, that the Toolbar gets collapsed correctly when I scroll the List below. But when the Toolbar is fully collapsed, no more scrolling is happening and I can't figure out how to achieve that.
For every RecyclerView, I am using a LinearLayoutManager with AutoMeasureEnabled set to true. Furthermore, HasFixedSize-Flags are set to false.
Any ideas?
//Edit: the content is not fixed; it gets passed in via reactiveUI.