layer
open fun layer(@NonNull view: View, @AttrRes backgroundColorAttributeResId: Int, @AttrRes overlayColorAttributeResId: Int): Int
Convenience method that calculates layer without an overlayAlpha
value by passing in 1f
for the alpha value.
open fun layer(@NonNull view: View, @AttrRes backgroundColorAttributeResId: Int, @AttrRes overlayColorAttributeResId: Int, @FloatRange(from = 0.0, to = 1.0 ) overlayAlpha: Float): Int
Convenience method that wraps layer for layering colors from theme attributes.
open fun layer(@ColorInt backgroundColor: Int, @ColorInt overlayColor: Int, @FloatRange(from = 0.0, to = 1.0 ) overlayAlpha: Float): Int
Calculates a color that represents the layering of the overlayColor
(with
overlayAlpha
applied) on top of the backgroundColor
.
Calculates a color that represents the layering of the overlayColor
on top of the backgroundColor
.