Skip to content

Instantly share code, notes, and snippets.

@xiahua
xiahua / ArcTranslateAnimation.java
Created September 17, 2012 02:58 — forked from guohai/ArcTranslateAnimation.java
Curved Path Animation in Android
import android.graphics.PointF;
import android.view.animation.Animation;
import android.view.animation.Transformation;
// http://www.math.ubc.ca/~cass/gfx/bezier.html
public class ArcTranslateAnimation extends Animation {
private int mFromXType = ABSOLUTE;
private int mToXType = ABSOLUTE;