Code example for AccelerateInterpolator

Methods: setInterpolator

0
        setAlpha(0.0f);
        setTranslationX(0.0f);
        setTranslationY(0.0f);
 
        // First step of animation: fade in quick 
        animate().alpha(1.0f).scaleX(1.0f).scaleY(1.0f).setInterpolator(new AccelerateInterpolator())
                .setDuration(FADE_IN_DURATION_MS)
                .setListener(new Animator.AnimatorListener() {
            @Override 
            public void onAnimationStart(Animator animator) {
 
            } 
 
            @Override 
            public void onAnimationEnd(Animator animator) {
                // Second step: fade out and scale and slide 
                animate().alpha(0.0f).scaleY(0.7f).scaleX(0.7f).translationXBy(-getWidth()*1.5f).setStartDelay(100)
                        .setDuration(FADE_OUT_DURATION_MS).setListener(new Animator.AnimatorListener() {
                    @Override 
                    public void onAnimationStart(Animator animator) {