setAnimation

open override fun setAnimation(animation: Animation?)

Sets the animation to be played when start() is called.

Equivalent to providing the android:animation attribute in the layout xml file.