Reputation: 894
I have some problems with Collapsing Toolbar. I have following layout structure
<CoordinatorLayout>
<AppbarLayout>
<CollapsingToolbar>
<NestedScrollView>
<HorizontalRecyclerView>
</NestedScrollView>
</CoordinatorLayout>
The problem occurs only when I'am trying to scroll my NestedScrollView
touching the HorizontalRecyclerView
. In that case CollapsingToolbar
doesn't collaps. Just AppbarLayout
stay on it's place and NestedScrollView
scroll under it. I've attached a video, where everything is clear. Can anyone explain the problem? Thanks.
Upvotes: 7
Views: 1090
Reputation: 12715
The problem can be solved by adding setNestedScrollingEnabled(false)
to inner HorizontalRecyclerView
.
Upvotes: 3