create With Elevation Overlay
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.
open fun createWithElevationOverlay(@NonNull context: Context, elevation: Float): MaterialShapeDrawable
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.
open fun createWithElevationOverlay(@NonNull context: Context, elevation: Float, @Nullable backgroundTint: ColorStateList): MaterialShapeDrawable
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.