android - Nested RecyclerView issue with AppBarLayout -


my activity contains appbarlayout provided design library 23.0.1, hides when scroll up. have recyclerview each child item containing recyclerview too, nested recyclerview going on.

my issue when touch on of inner recyclerview's child , scroll up, appbar not hide. however, if place finger somewhere else (not on inner recyclerview) , scroll, app bar scrolls fine. why happening? tried adding appbar behavior inner recycler view, yet app bar scroll when touch somewhere else , scroll.

note: inner recyclerview has fixed set of items visible @ times, basically, there no scrolling within recyclerview.

there similar question , provided solution intercept touch of inner recyclerview , pass parent recycler view. disables click events of children in inner recycler view, not want that.

you need set nested scrolling flag false inner recycler views.

msomeinnerrecyclerview.setnestedscrollingenabled(false);


Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -