RecyclerView prevents NestedScrollView ToolBar from minimizing

Hi I used Chris Banes example ( https://github.com/chrisbanes/cheesesquare ) to create this layout. I am trying to create a similar but slightly different version of this for my application. Although the example has 3 instances of the same Fragment with RecyclerView, my requirement is a RecyclerView Fragment, a NestedScrollView Fragment, and another RecyclerView Fragment.

No problem, if I start scrolling from the NestedScrollView snippet everything is fine, ToolBar is minimized and maximized accordingly. But once I go to the RecyclerView snippet and come back, I cannot minimize / maximize ToolBar. It stays frozen and I have to go back to the RecyclerView snippet to minimize / maximize it.

These are the layouts for the changed files, the rest is the same as in the repo:

http://pastebin.com/zs0krQW3

What could I be doing wrong?

+3


source to share


1 answer


As pointed out here , using setNestedScrollingEnabled on recyclerview does the trick. This worked for me, but the only strange thing is the software version:



recyclerView.setNestedScrollingEnabled(false);

      

0


source







All Articles