Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sephiroth74/Android-Easing
Ligh weight android easing
https://github.com/sephiroth74/Android-Easing
Last synced: 9 days ago
JSON representation
Ligh weight android easing
- Host: GitHub
- URL: https://github.com/sephiroth74/Android-Easing
- Owner: sephiroth74
- License: apache-2.0
- Created: 2013-11-21T18:39:05.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-05-23T23:13:46.000Z (over 10 years ago)
- Last Synced: 2024-10-03T06:44:23.531Z (about 1 month ago)
- Language: Java
- Size: 291 KB
- Stars: 105
- Watchers: 8
- Forks: 32
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Android-Easing
==============Light weight android easing library.
## Setup
Just add the following line to your `dependencies` group:compile 'it.sephiroth.android.library.easing:android-easing:+'
> In this way you'll always use the latest version
## Example usage:
import it.sephiroth.android.library.easing.*;
EasingManager manager = new EasingManager(new EasingManager.EasingCallback() {
@Override
public void onEasingValueChanged(double value, double oldValue) {
}@Override
public void onEasingStarted(double value) {
}@Override
public void onEasingFinished(double value) {
}
});
// start the easing from 0 to 100
// using Cubic easeOut
// and a duration of 500ms
manager.start(Cubic.class, EaseType.EaseOut, 0, 100, 500);There are different easing classes you can use:
* Back
* Bounce
* Circ
* Cubic
* Elastic
* Expo
* Linear
* Quad
* Quart
* Quint
* Sine