Code example for AnimatorSet

Methods: playTogether, setDuration, setInterpolator, start

0
                                    } catch (SecurityException e) {
                                    } 
                                } 
                            }, LAUNCH_ZOOM_TIME);
                            endscale = 0;
                            AnimatorSet s = new AnimatorSet();
                            s.playTogether(
                                ObjectAnimator.ofFloat(this, "scaleX", 15f),
                                ObjectAnimator.ofFloat(this, "scaleY", 15f),
                                ObjectAnimator.ofFloat(this, "alpha", 0f)
                            ); 
 
                            // make sure things are still moving until the very last instant the 
                            // activity is visible 
                            s.setDuration((int)(LAUNCH_ZOOM_TIME * 1.25));
                            s.setInterpolator(new android.view.animation.AccelerateInterpolator(3));
                            s.start();
                        } 
                        break; 
                } 
                return true; 
            }