public class ColorUtils
extends java.lang.Object
| Constructor and Description |
|---|
ColorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static android.content.res.ColorStateList |
colorToStateList(int color) |
static int |
getColor(int color0,
int color1,
float p) |
static int |
getColorWithAlpha(int c0,
int c1,
float p) |
static boolean |
isColorDark(int color)
Calculate whether a color is light or dark, based on a commonly known
brightness formula.
|
public static int getColor(int color0,
int color1,
float p)
public static int getColorWithAlpha(int c0,
int c1,
float p)
public static android.content.res.ColorStateList colorToStateList(int color)
public static boolean isColorDark(int color)