Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/codesoup/android-cubic-bezier-interpolator
- Owner: codesoup
- Created: 2013-10-25T12:24:03.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-03T08:33:01.000Z (over 9 years ago)
- Last Synced: 2024-03-27T14:19:45.746Z (10 months ago)
- Language: Java
- Homepage:
- Size: 165 KB
- Stars: 163
- Watchers: 10
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-android-ui - https://github.com/codesoup/android-cubic-bezier-interpolator
- awesome-android-ui - https://github.com/codesoup/android-cubic-bezier-interpolator
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);
```