compositeOverlay

open fun compositeOverlay(@ColorInt backgroundColor: Int, elevation: Float, @NonNull overlayView: View): Int

See compositeOverlay.


open fun compositeOverlay(@ColorInt backgroundColor: Int, elevation: Float): Int

Blends the calculated elevation overlay color with the provided backgroundColor.

An alpha level is applied to the theme's R.attr.elevationOverlayColor by using a formula that is based on the provided elevation value.