setAnimationSpeed

fun setAnimationSpeed(animationIndex: Int, speed: Float)

Sets the rate at which the animation is played.

Parameters

animationIndex

Zero-based index for the animation of interest.

speed

The rate at which the animation plays. Reverses the animation if negative. Pauses the animation if zero.

See also


fun setAnimationSpeed(animationName: String, speed: Float)

See also

Animator.getAnimationName