Code example for AccelerateInterpolator

0
            // tell ObjectAnimator to automatically animate the target object for us, so we no 
            // longer need to listen for frame updates and do that work ourselves. 
            ObjectAnimator anim = getObjectAnimator();
            anim.setRepeatCount(ValueAnimator.INFINITE);
            anim.setRepeatMode(ValueAnimator.REVERSE);
            anim.setInterpolator(new AccelerateInterpolator());
            anim.start();
        } 
 
        ObjectAnimator getObjectAnimator() {
            return ObjectAnimator.ofInt(this, "shapeY", 0, (getHeight() - mShapeH));
        } 
 
    } 
}