ModifiersBuilders.Shadow


@RequiresSchemaVersion(major = 1, minor = 300)
public final class ModifiersBuilders.Shadow


The shadow definition. The shadow is drawn as a blur region around the element.

Summary

Nested types

Builder for Shadow

Public methods

@NonNull DimensionBuilders.DpProp

Gets the blur radius of the shadow.

@NonNull ColorBuilders.ColorProp

Gets the color used in the shadow.

@NonNull String

Public methods

getBlurRadius

Added in 1.1.0
public @NonNull DimensionBuilders.DpProp getBlurRadius()

Gets the blur radius of the shadow. It controls the size of the blur that is drawn. When set to zero, the shadow is not drawn. Defaults to zero.

getColor

Added in 1.1.0
public @NonNull ColorBuilders.ColorProp getColor()

Gets the color used in the shadow. Defaults to Black.

toString

public @NonNull String toString()