Android examples for android.view.animation:ObjectAnimator
Add ArgbEvaluator to ObjectAnimator
import android.animation.ArgbEvaluator; import android.animation.ObjectAnimator; import android.util.Property; public class Main { private static final ArgbEvaluator ARGB_EVALUATOR = new ArgbEvaluator(); public static <T> ObjectAnimator ofArgb(T target, Property<T, Integer> property, int... values) { ObjectAnimator animator = ObjectAnimator.ofInt(target, property, values); animator.setEvaluator(ARGB_EVALUATOR); return animator; }/*from w w w .j a v a 2 s .co m*/ }