setAnimation

fun setAnimation(@AnimRes resId: Int)

Sets the animation for each label shown during the countdown.

If the provided animation doesn't have a duration, then the duration is set to:

Calls to this method are ignored if the countdown timer is already running.

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


open override fun setAnimation(animation: Animation?)