dispatchAnimationStarted

Method to be called by subclasses when an animation is started.

For each call RecyclerView makes to animateAppearance(), animatePersistence(), or animateDisappearance(), there should be a matching dispatchAnimationStarted call by the subclass.

For animateChange(), subclass should call this method for both the oldHolder and newHolder (if they are not the same instance).

If your ItemAnimator decides not to animate a ViewHolder, it should call dispatchAnimationFinishedwithout calling dispatchAnimationStarted.

Parameters

viewHolder

The ViewHolder whose animation is starting.

See also