Code example for AnticipateInterpolator

0
        if (mView.getLeft() > 160) {
            to_x = 0;
            to_y = 240;
            size = 150;
        } 
        ViewTween.to(mView, 500l,
                to_x, to_y,
                size, size,
                null, new AnticipateInterpolator());
    } 
 
    public void onClickButton02(View v) {
        ViewTween.anim(mView, 800l,
                0.0f, 1.0f, 
                0.0f, 360.0f, 
                null, new LinearInterpolator());
    } 
 
    @Override 
    public boolean onTouch(View vw, MotionEvent ev) {
        int px = (int) ev.getRawX();