Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Design Lib CollapsingToolbarLayout stops interact when horizontal RecyclerView is touched

I have an activity with CollapsingToolbarLayout for parallax effect(From Android Design Library) and FrameLayout where i set Fragment.

Fragments layout contains NestedScrollView.

Everything is working well except one moment. In NestedScrollView I have a horizontal RecyclerView with StaggerGridLayoutManager and when i scroll vertically from that recyclerview - parallax not starting. When i scroll from any other place of screen it works.

Seems it's problem with layout_behavior tag or loosing focus of NestedScrollView.

Does any one faced this problem ? Some ideas ?

like image 412
Penzzz Avatar asked Jun 17 '15 14:06

Penzzz


1 Answers

Fuh! Got a solution! Disabling nested scroll on RecyclerView solved the problem.

recyclerView.setNestedScrollingEnabled(false);
like image 173
Penzzz Avatar answered Oct 30 '22 16:10

Penzzz