codesoup / android-cubic-bezier-interpolator

Deprecated in favour of https://developer.android.com/reference/android/support/v4/view/animation/PathInterpolatorCompat.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deprecated: use https://developer.android.com/reference/android/support/v4/view/animation/PathInterpolatorCompat.html instead.

android-cubic-bezier-interpolator

An Android Library that helps you implement bezier animations in you application

How to use

Animation animation = new Animation() {
    @Override
    protected void applyTransformation(float interpolatedTime, Transformation t) {
        super.applyTransformation(interpolatedTime, t);
        myView.setAlpha(interpolatedTime);
    }
};

//define the CubicBezierInterpolator
Interpolator easeInOut = new CubicBezierInterpolator(.1, .7, .1, 1);
animation.setInterpolator(easeInOut);

animation.setDuration(3000);
myView.startAnimation(animation);

About

Deprecated in favour of https://developer.android.com/reference/android/support/v4/view/animation/PathInterpolatorCompat.html


Languages

Language:Java 100.0%