Package com.secoo.coobox.library.util.graphics

Functions

alphaOfColor
Link copied to clipboard
fun alphaOfColor(colorString: String?): Int?
获取色值对应的alpha
appendNumberSignColorPrefix
Link copied to clipboard
private fun appendNumberSignColorPrefix(colorString: String?): String?
为color增加 # 前缀
isTransparentColor
Link copied to clipboard
fun isTransparentColor(colorString: String?): Boolean
是否为透明色
isValidColorString
Link copied to clipboard
fun isValidColorString(colorString: String?): Boolean
是否为合法的Color 字符串
parseColorSafely
Link copied to clipboard
private fun parseColorSafely(colorString: String?): Int?
安全地转换并获取color,否则为null
parseColorSmartly
Link copied to clipboard
fun parseColorSmartly(colorString: String?): Int?
智能转换colorString 能够处理 #cce8cf 和 cce8cf(不含#)的情况

Properties

NUMBER_SIGN_COLOR_CHAR
Link copied to clipboard
const val NUMBER_SIGN_COLOR_CHAR: Char = '#'