Java tutorial
//package com.java2s; import android.animation.ArgbEvaluator; import android.animation.ValueAnimator; import android.widget.TextView; public class Main { /** * Update text color with animation */ public static void updateTextColor(final TextView textView, int fromColor, int toColor) { ValueAnimator colorAnimation = ValueAnimator.ofObject(new ArgbEvaluator(), fromColor, toColor); colorAnimation.setDuration(150); colorAnimation.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { @Override public void onAnimationUpdate(ValueAnimator animator) { textView.setTextColor((Integer) animator.getAnimatedValue()); } }); colorAnimation.start(); } }