private static int blendColors(int color1, int color2, float ratio) {
        final float inverseRation = 1f - ratio;
        float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation);
        float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation);
        float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation);
        return Color.rgb((int) r, (int) g, (int) b);
    }
Blend {@code color1} and {@code color2} using the given ratio.

@param ratio of which to blend. 1.0 will return {@code color1}, 0.5 will give an even blend,
             0.0 will return {@code color2}.
SwipeRefreshMultipleViews/Application/src/main/java/com/example/android/common/view/SlidingTabStrip.java