I am trying to animate RecyclerView
items using ConstraintSet
animation.
I have two layouts and they are switched properly using this code:
val constraint2 = ConstraintSet()
constraint2.clone(binding.root.context, R.layout.list_item_2)
val transition = ChangeBounds()
transition.interpolator = OvershootInterpolator(1.0f)
transition.duration = 1200
TransitionManager.beginDelayedTransition(binding.root.container, transition)
constraint2.applyTo(binding.root.container)
However delayed transition is completely ignored and it works the same way whether or not I add beginDelayedTransition
code, so there is no animation.