Java tutorial
//package com.java2s; import android.graphics.Color; public class Main { /** * Make a color darker * @param argb The main color * @param value Float value [0...1] * @return The darker color code */ public static int getDarkenColor(int argb, float value) { return adjustColorBrightness(argb, value); } private static int adjustColorBrightness(int argb, float factor) { final float[] hsv = new float[3]; Color.colorToHSV(argb, hsv); hsv[2] = Math.min(hsv[2] * factor, 1f); return Color.HSVToColor(Color.alpha(argb), hsv); } }