setAnimationParams

fun setAnimationParams(animation: Animation, duration: Long, accelerate: Boolean): Animation

Sets duration and interpolator for the given Animation object.

Return

the input Animation with duration and interpolator set

Parameters

animation

The Animation object to modify.

duration

Amount of time (in milliseconds) for the animation to run.

accelerate

Whether to use the accelerate interpolator or the decelerate interpolator.