Back to project page AndroidViewAnimations.
The source code is released under:
MIT License
If you think the Android project AndroidViewAnimations listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.daimajia.androidanimations.library.specials.in; /* w w w . jav a 2 s .co m*/ import android.view.View; import com.daimajia.androidanimations.library.BaseViewAnimator; import com.daimajia.easing.Glider; import com.daimajia.easing.Skill; import com.nineoldandroids.animation.ObjectAnimator; public class DropOutAnimator extends BaseViewAnimator{ @Override protected void prepare(View target) { int distance = target.getTop() + target.getHeight(); getAnimatorAgent().playTogether( ObjectAnimator.ofFloat(target, "alpha", 0, 1), Glider.glide(Skill.BounceEaseOut, getDuration(), ObjectAnimator.ofFloat(target, "translationY", -distance, 0)) ); } }