createWithElevationOverlay

Returns a MaterialShapeDrawable with the elevation overlay functionality initialized, a fill color of colorSurface, and an elevation of 0.

See compositeOverlayIfNeeded for information on when the overlay will be active.


Returns a MaterialShapeDrawable with the elevation overlay functionality initialized, a fill color of colorSurface, and an elevation of elevation.

See compositeOverlayIfNeeded for information on when the overlay will be active.


Returns a MaterialShapeDrawable with the elevation overlay functionality initialized, a fill color of backgroundTint, and an elevation of elevation. When backgroundTint is null, colorSurface will be used as default.

See compositeOverlayIfNeeded for information on when the overlay will be active.