getColorWithTransparency

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.

If the given colorInt itself has transparency, it will be forced to the transparency specified by transparency.

Throws