Android-Easing

Light weight easing for Android

License

License

GroupId

GroupId

it.sephiroth.android.library.easing
ArtifactId

ArtifactId

library
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

aar
Description

Description

Android-Easing
Light weight easing for Android
Project URL

Project URL

http://blog.sephiroth.it
Source Code Management

Source Code Management

https://github.com/sephiroth74/Android-Easing

Download library

How to add to project

<!-- https://jarcasting.com/artifacts/it.sephiroth.android.library.easing/library/ -->
<dependency>
    <groupId>it.sephiroth.android.library.easing</groupId>
    <artifactId>library</artifactId>
    <version>1.0.2</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/it.sephiroth.android.library.easing/library/
implementation 'it.sephiroth.android.library.easing:library:1.0.2'
// https://jarcasting.com/artifacts/it.sephiroth.android.library.easing/library/
implementation ("it.sephiroth.android.library.easing:library:1.0.2")
'it.sephiroth.android.library.easing:library:aar:1.0.2'
<dependency org="it.sephiroth.android.library.easing" name="library" rev="1.0.2">
  <artifact name="library" type="aar" />
</dependency>
@Grapes(
@Grab(group='it.sephiroth.android.library.easing', module='library', version='1.0.2')
)
libraryDependencies += "it.sephiroth.android.library.easing" % "library" % "1.0.2"
[it.sephiroth.android.library.easing/library "1.0.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.0.2
1.0.1
1.0.0