Total animation duration

Report a typo

Examine the following Kotlin animation code:

val scaleXAnimator = ObjectAnimator.ofFloat(myView, "scaleX", 1f, 1.5f, 1f)
scaleXAnimator.duration = 400

val scaleYAnimator = ObjectAnimator.ofFloat(myView, "scaleY", 1f, 1.2f)
scaleYAnimator.duration = 600

val rotationAnimator = ObjectAnimator.ofFloat(myView, "rotation", 0f, 360f)
rotationAnimator.duration = 800

val animatorSet = AnimatorSet()
animatorSet.playTogether(scaleXAnimator, scaleYAnimator, rotationAnimator)
animatorSet.start()

What is the total duration of the animation in milliseconds?

Enter a number

Create a free account to access the full topic