setAlphaComponent

open fun setAlphaComponent(@ColorInt color: Int, @IntRange(from = 0, to = 255) alpha: Int): Int(source)

Set the alpha component of color to be alpha.