Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/codesoup/android-cubic-bezier-interpolator

Deprecated in favour of https://developer.android.com/reference/android/support/v4/view/animation/PathInterpolatorCompat.html
https://github.com/codesoup/android-cubic-bezier-interpolator

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

**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
----------

```java
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);
```