Code example for AnimatorSet

Methods: cancel, play, start

0
        float left    = imageLeft+100f; //rp to use some randomness
        float alpha   = splashImage.getAlpha() / 2;//rp to use some randomness
         
         
        if (mCurrentAnim != null) {
        	animSet.cancel();
        } 
  
        animSet.play(ObjectAnimator.ofFloat(splashImage, View.SCALE_X, scaleUp))
               .with(ObjectAnimator.ofFloat(splashImage, View.SCALE_Y, scaleUp))
               .with(ObjectAnimator.ofFloat(splashImage, View.X, left))
               .with(ObjectAnimator.ofFloat(splashImage, View.Y, top));
               //.with(ObjectAnimator.ofFloat(splashImage, View.ALPHA, alpha)); 
  
         
        animSet.start();
        mCurrentAnim = animSet;
    	 
    }