Java tutorial
//package com.java2s; import android.animation.ValueAnimator; public class Main { private static final int ANIM_DURATION = 200; public static ValueAnimator checkAnim(ValueAnimator.AnimatorUpdateListener listener) { ValueAnimator anim = ValueAnimator.ofFloat(0f, 1f); anim.setDuration(ANIM_DURATION); anim.addUpdateListener(listener); return anim; } }