ColorUtils
object ColorUtils
Properties
Functions
Link copied to clipboard
Converting color hexadecimal string to an array of ARGB.
Link copied to clipboard
Parse the color string, and return the corresponding color-int.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Converting an argb array to color string.
Link copied to clipboard
fun getColorIntWithTransparency(@IntRange(from = 0, to = 100) transparency: Int, colorInt: Int): Int
Get the color-int by transparency and colorInt.
Link copied to clipboard
fun getColorWithTransparency(@IntRange(from = 0, to = 100) transparency: Int, colorInt: Int): String
Get the color hex in the format of #AARRGGBB by transparency and colorInt.
Link copied to clipboard
Return true if the color hex string is right,false otherwise.