Java tutorial
//package com.java2s; //License from project: Open Source License import android.animation.ArgbEvaluator; public class Main { public static int interpolate(float percent, int color1, int color2) { return (int) new ArgbEvaluator().evaluate(percent, color1, color2); } }