h6ah4i / android-advancedrecyclerview

RecyclerView extension library which provides advanced features. (ex. Google's Inbox app like swiping, Play Music app like drag and drop sorting)
https://advancedrecyclerview.h6ah4i.com/
Apache License 2.0
5.32k stars 862 forks source link

Parallax Header - feature #348

Open iballan opened 7 years ago

iballan commented 7 years ago

I would like to use this library with parallax header as well. Is there any way to make the header as a parallax header in the current library version ?

rok5ek commented 7 years ago

@iballan You could add your own decorator as a header and change its view position accordingly to the scroll position with an e.g. linear interpolator.

iballan commented 7 years ago

@rok5ek is there any example about it ? i have no good idea about recycler views indeed thats why i used this library

rok5ek commented 7 years ago

@iballan You could take a look at this library for header https://github.com/blipinsk/RecyclerViewHeader so you could modify it a bit for parallax purposes. Just add a scroll listener and change the header content position according to that. I think this class would also help you...its already integrated in advanced recyclerView https://github.com/h6ah4i/android-advancedrecyclerview/blob/master/library/src/main/java/com/h6ah4i/android/widget/advrecyclerview/headerfooter/AbstractHeaderFooterWrapperAdapter.java