-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a6a9d2c
commit 0d9e5b5
Showing
29 changed files
with
2,012 additions
and
21 deletions.
There are no files selected for viewing
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.amit.anim; | ||
|
||
/** | ||
* The Easing class provides a collection of ease functions. It does not use the standard 4 param | ||
* ease signature. Instead it uses a single param which indicates the current linear ratio (0 to 1) of the tween. | ||
*/ | ||
public enum Ease | ||
{ | ||
LINEAR, | ||
QUAD_IN, | ||
QUAD_OUT, | ||
QUAD_IN_OUT, | ||
CUBIC_IN, | ||
CUBIC_OUT, | ||
CUBIC_IN_OUT, | ||
QUART_IN, | ||
QUART_OUT, | ||
QUART_IN_OUT, | ||
QUINT_IN, | ||
QUINT_OUT, | ||
QUINT_IN_OUT, | ||
SINE_IN, | ||
SINE_OUT, | ||
SINE_IN_OUT, | ||
BACK_IN, | ||
BACK_OUT, | ||
BACK_IN_OUT, | ||
CIRC_IN, | ||
CIRC_OUT, | ||
CIRC_IN_OUT, | ||
BOUNCE_IN, | ||
BOUNCE_OUT, | ||
BOUNCE_IN_OUT, | ||
ELASTIC_IN, | ||
ELASTIC_OUT, | ||
ELASTIC_IN_OUT | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.amit.anim; | ||
|
||
import android.animation.TimeInterpolator; | ||
import android.support.annotation.NonNull; | ||
|
||
/** | ||
* Created by Amit Jangid on 21,May,2018 | ||
**/ | ||
public class EaseInterpolator implements TimeInterpolator | ||
{ | ||
private final Ease ease; | ||
|
||
public EaseInterpolator(@NonNull Ease ease) | ||
{ | ||
this.ease = ease; | ||
} | ||
|
||
@Override | ||
public float getInterpolation(float input) | ||
{ | ||
return EaseProvider.get(this.ease, input); | ||
} | ||
|
||
public Ease getEase() | ||
{ | ||
return ease; | ||
} | ||
} |
Oops, something went wrong.