Reading
Add Comment
Android Easing Functions
This project is originally from my another project, AndroidViewAnimation, that is Associate in Nursing animation assortment, to assist you create animation easier.
While, i used to be still unhappy with the animation impact.
So, I began to explore the way to build it a lot of and a lot of real.
I found the Easing Functions created by Henry Martyn Robert pasta, then, I enforced Easing Functions and build a beautiful demo.
Demo
Demo
Demo
Uasage
Step 1
Gradle
or maven
<dependency>
<groupId>com.nineoldandroids</groupId>
<artifactId>library</artifactId>
<version>2.4.0</version>
</dependency>
<dependency>
<groupId>com.daimajia.easing</groupId>
<artifactId>library</artifactId>
<version>1.0.1</version>
<type>apklib</type>
</dependency>
Step 2
Just like a glider.
AnimatorSet set = new AnimatorSet();
set.playTogether(
Glider.glide(Skill.BounceEaseInOut, 1200, ObjectAnimator.ofFloat(mTarget, "translationY", 0, 100)
);
set.setDuration(1200);
set.start();
Zip
Tips
Download Project
If you encounter exceptions such as
ClassNotFoundExceptions
( #4), please add the following to your proguard-project.txt
:-keep class com.daimajia.easing.** { *; }
-keep interface com.daimajia.easing.** { *; }
More details visit official guide.
About Developer
A student in mainland China.
Welcome to supply Pine Tree State Associate in Nursing berth. If you have got any new plan concerning this project, be at liberty to contact Pine Tree State.
0 comments:
Post a Comment