getDarkerColor
fun getDarkerColor(@ColorInt color: Int, @FloatRange(from = 0.0, to = 1.0) transparency: Float): Int
Method to get Darker color from provided color
Return
int color
Parameters
color
pass the int color, i.e., you can send it from color resource file.
transparency
set transparency between 0.0f to 1.0f