StikkyHeader icon indicating copy to clipboard operation
StikkyHeader copied to clipboard

StikkyHeader with ViewPager, which contains RecyclerViews?

Open dotWee opened this issue 11 years ago • 6 comments

Thoughts how to dynamically attaching multible RecyclerView to the StikkyHeader?

dotWee avatar Apr 20 '15 13:04 dotWee

could you give me an example to understand what you mean?

carlonzo avatar Apr 20 '15 15:04 carlonzo

Think of a layout, seperated in two halfs: A StikkyHeader and a ViewPager. The ViewPager has multiple pages, each of them are RecyclerView's. Is it possible to set up the StikkyHeader to collapse, when I scroll (up & down) inside the ViewPager's RecyclerView? Like a StikkyHeader for ViewPagers.

dotWee avatar Apr 21 '15 13:04 dotWee

I've implemented something like that, but I had to override the onScroll and pass the scroll to the fragment that contains the viewpager and header and translate the header manually. actually I could implement something inside the library. good point! (PR are always welcomed)

carlonzo avatar Apr 25 '15 18:04 carlonzo

please can you upload the example you are talking about untill you add it to the library, how does one tell scroll view to ignore the on scroll and pass it to it;s children ??(fragment that contains the view pager)

amansatija avatar Apr 26 '15 18:04 amansatija

Awesome! Nice to hear about a planed implementation.

dotWee avatar Apr 27 '15 14:04 dotWee

I'm looking for the described implementation! Anyone found an example of how to implement it?

Rafagf avatar Nov 11 '15 20:11 Rafagf