andkulikov / Transitions-Everywhere

Set of extra Transitions on top of Jetpack Transitions Library
Apache License 2.0
4.83k stars 486 forks source link

Collapse/expand animation #96

Open LeoDroidCoder opened 5 years ago

LeoDroidCoder commented 5 years ago

Is there a way to animate expand/collapse of a RecyclerView item?
I tried to mix Scale, Fade, Slide, but cannot achieve a collapse/expand effect

andkulikov commented 5 years ago

Hey. The main animation here is ChangeBounds as the size(height) of the item is changing. So you would need to apply TransitionManager.beginDelayedTransition() on the RecyclerView itself. If you would share more code maybe I will be able to provide more concrete suggestions