Code example for DecelerateInterpolator

Methods: setInterpolator

0
                        s.play(shrink.setDuration(SLIDE_TIME/2)); 
                        s.play(grow.setDuration(SLIDE_TIME/2)).after(shrink); 
                        s.setInterpolator(mSlowStartWithBrakes); 
                    } else { 
                        AccelerateInterpolator accel = new AccelerateInterpolator(); 
                        DecelerateInterpolator decel = new DecelerateInterpolator(); 
 
                        shrink.setDuration(FADE_TIME).setInterpolator(accel); 
                        fadeout.setDuration(FADE_TIME).setInterpolator(accel); 
                        grow.setDuration(FADE_TIME).setInterpolator(decel); 
                        fadein.setDuration(FADE_TIME).setInterpolator(decel); 
                        s.play(shrink); 
                        s.play(fadeout); 
                        s.play(xMove.setDuration(0)).after(FADE_TIME); 
                        s.play(yMove.setDuration(0)).after(FADE_TIME); 
                        s.play(fadein).after(FADE_TIME); 
                        s.play(grow).after(FADE_TIME); 
                    } 
                    s.start(); 
                }