davideas / FlexibleAdapter

Fast and versatile Adapter for RecyclerView which regroups several features into one library to considerably improve the user experience :-)
Apache License 2.0
3.56k stars 552 forks source link

Sticky headers lag when using beginDelayedTransition() #755

Open BorisLaskov opened 4 years ago

BorisLaskov commented 4 years ago

Please check the tiny sample project here: https://github.com/145k0v/sticky-headers-sample

In the activity there is a CustomButton which has a TransitionManager.beginDelayedTransition() call used to animate it. When scrolling fast enough you can notice that the sticky header disappears, waits till the button is settled (transition is over), and only then the header is added on top.

Is there a way to use transitions without messing up sticky headers so that they work simultaneously?