carlonzo / StikkyHeader

This is a very simple library for Android that allows you to stick an header to a scrollable view and easily apply animation to it
Apache License 2.0
838 stars 182 forks source link

StikkyHeader with ViewPager, which contains RecyclerViews? #38

Open dotWee opened 9 years ago

dotWee commented 9 years ago

Thoughts how to dynamically attaching multible RecyclerView to the StikkyHeader?

carlonzo commented 9 years ago

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

dotWee commented 9 years ago

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.

carlonzo commented 9 years ago

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)

amansatija commented 9 years ago

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)

dotWee commented 9 years ago

Awesome! Nice to hear about a planed implementation.

Rafagf commented 8 years ago

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