Sapient
Company
Programming
What will be the output of the following code?
AnimatorSet bouncer = new AnimatorSet();
bouncer.play(bounceAnim).before(squashAnim1);
bouncer.play(squashAnim1).with(squashAnim2);
bouncer.play(squashAnim1).with(stretchAnim1);
bouncer.play(squashAnim1).with(stretchAnim2);
ValueAnimator fadeAnim = ObjectAnimator.ofFloat(newBall, "alpha", 1f, 0f);
fadeAnim.setDuration(250);
AnimatorSet animatorSet = new AnimatorSet();
animatorSet.play(bouncer).before(fadeAnim);
animatorSet.start();
1) runs successfully
2) compile time error
3) runtime error
4) none of the above
Read Solution (Total 1)
-
- runs successfully
https://developer.android.com/guide/topics/graphics/prop-animation.html#choreography - 7 years agoHelpfull: Yes(0) No(0)
Sapient Other Question