3

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

There is no problem if I start scrolling from the NestedScrollView fragment, everything works fine, the ToolBar gets minimized and maximized accordingly. But once I go to the RecyclerView Fragment and comes back, I cannot minimize/maximize the ToolBar. It stays frozen and I have to go back to the RecyclerView Fragment in order 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?

Suhair Zain
  • 403
  • 4
  • 15

1 Answers1

0

As pointed here, using setNestedScrollingEnabled on the recyclerview does the trick. It worked for me, but strangely only the programmatic version:

recyclerView.setNestedScrollingEnabled(false);
Community
  • 1
  • 1
Javi Martínez
  • 502
  • 4
  • 10