Code example for ValueAnimator

Methods: getAnimatedValue

0
import android.animation.ValueAnimator; 
import android.animation.ValueAnimator.AnimatorUpdateListener; 
 
abstract class LauncherAnimatorUpdateListener implements AnimatorUpdateListener {
    public void onAnimationUpdate(ValueAnimator animation) {
        final float b = (Float) animation.getAnimatedValue();
        final float a = 1f - b;
        onAnimationUpdate(a, b);
    } 
 
    abstract void onAnimationUpdate(float a, float b);
}