getAlphaSetColor

fun getAlphaSetColor(@ColorInt color: Int, @FloatRange(from = 0.0, to = 1.0) alpha: Float): Int

Returns color with its alpha replaced by alpha.

This accepts Android's usual normalized alpha value and hides the required conversion to the integer channel expected by ColorUtils.setAlphaComponent.