Android Utililty Methods Color Adjust

List of utility methods to do Color Adjust

Description

The list of methods to do Color Adjust are organized into topic(s).

Method

intadjustTextColor(int color)
adjust Text Color
if (Color.red(color) == Color.green(color)
        && Color.green(color) == Color.blue(color)) {
    int value = Color.red(color);
    if (value < MinBlackValue) {
        value = MinBlackValue;
        return Color.argb(Color.alpha(color), value, value, value);
return color;
intgetInverseColor(int color)
get Inverse Color
int grey = 255 - rgb2greyscale(color);
if (grey < 128) {
    grey = 0;
} else {
    grey = 255;
return (grey << 16) + (grey << 8) + grey;