ShamylZakariya / StickyHeaders

Adapter and LayoutManager for Android RecyclerView which enables sticky header positioning.
MIT License
1.4k stars 185 forks source link

Custom Scroll Behaviour #112

Open emrebehadir opened 4 years ago

emrebehadir commented 4 years ago

Custom Scroll Behaviour

I want to implement custom scroll behavior. When i scroll to an item position, item must locate bottom of sticky header view. I tried to scrollToPosition, linearSmoothScrooler etc. These scroll behaviours working like recycler scroll behaviour. It is not calculate sticky position. When scroll to an item position, item stayed bottom of sticky header. How can i can implement my intended scroll behaviour?

Thanks,

Example: Scroll programatically to 0/1 item (position 3)

Start:

Screen Shot 2019-12-19 at 22 33 07

After scroll:

Screen Shot 2019-12-19 at 22 33 07