ShadowsRelativeLayout

class ShadowsRelativeLayout @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0, defStyleRes: Int = 0) : ClippedShadowsRelativeLayout, ShadowsViewGroup

A custom RelativeLayout that implements ShadowsViewGroup.

Apart from the additional handling of the library's shadow properties and draw operations, this group behaves just like its base class.

Currently, this class directly extends its deprecated Clipped predecessor in order to keep everything working without making breaking changes during the transition. User code should not expect or rely on this fact, as the Clipped* classes will eventually be removed altogether.

Also, due to this inheritance, and the settings chosen to generate minimal documentation, some of ShadowsViewGroup's members do not show here.

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0, defStyleRes: Int = 0)

Properties

Link copied to clipboard

The ClippedShadowPlane to set on all child Views as they're added during initialization.

Link copied to clipboard

A single color value to set on all children during initialization as their color compat value.

Link copied to clipboard
open override var childShadowsPlane: ShadowPlane

The ShadowPlane to set on all child Views as they're added during initialization.

Link copied to clipboard

If true, sets forceOutlineShadowColorCompat=true on all child Views during initialization.