setAnimations

fun setAnimations(@AnimatorRes inAnimation: Int?, @AnimatorRes outAnimation: Int?)

Sets the layout transition animations that will be used to animate embedded content changes.

When included inside of a RecyclerView, animations should not be set directly on the embedded view, as they may conflict with the RecyclerView animations. Prefer item animations on the RecyclerView instead.

Parameters

inAnimation

The animation resource ID for the in animation.

outAnimation

The animation resource ID for the out animation.