Code example for AccelerateInterpolator

0
 
    /** 
     * Start the transition animation 
     */ 
    public void runAnimation() { 
        animateOnce(new AccelerateInterpolator(), this);
    } 
 
    /** 
     * @see android.view.animation.Animation#applyTransformation( 
     *      float, 
     *      android.view.animation.Transformation) 
     */ 
    @Override 
    protected void applyTransformation(float t, Transformation xf) {
        Matrix xform = xf.getMatrix();
 
        float z = ((dir > 0) ? 0.0f : -Z_MAX) - (dir * t * Z_MAX);
 
        camera.save();
        camera.rotateZ(t * 360);