Java tutorial
//package com.java2s; //License from project: Open Source License import android.animation.ValueAnimator; public class Main { static float getAnimatedFraction(ValueAnimator animator) { float fraction = animator.getDuration() > 0L ? (float) animator.getCurrentPlayTime() / (float) animator.getDuration() : 0.0F; fraction = Math.min(fraction, 1.0F); fraction = animator.getInterpolator().getInterpolation(fraction); return fraction; } }