public class ColorIndex extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int[] |
indexedColors
color cache
|
static Color[] |
themeColors
Defined 12 base theme color
|
| 构造器和说明 |
|---|
ColorIndex() |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
indexOf(Color color) |
static int |
indexOf(int rgb) |
static String |
toARGB(Color color)
to argb string
|
static String |
toARGB(int rgb) |
static Color |
toColor(String rgb)
已过时。
使用
Styles.toColor(String) 代替 |
static String |
toRGB(Color color)
to rgb string
|
static String |
toRGB(int rgb) |
public static final int[] indexedColors
public static final Color[] themeColors
public static int indexOf(Color color)
public static int indexOf(int rgb)
public static String toARGB(int rgb)
public static String toRGB(int rgb)
@Deprecated public static Color toColor(String rgb)
Styles.toColor(String) 代替rgb - 16进制颜色值或者颜色名称(如:red, black等)Copyright © 2024. All rights reserved.