EdgeTreatment

open class EdgeTreatment

A basic edge treatment (a single straight line). Sub-classed for custom edge treatments.

Note: For edge treatments which result in a concave shape, the parent view must disable clipping of children by calling setClipChildren, or by setting `android:clipChildren="false"` in xml. `clipToPadding` may also need to be false if there is any padding on the parent that could intersect the shadow.

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun getEdgePath(length: Float, interpolation: Float, @NonNull shapePath: ShapePath)

open fun getEdgePath(length: Float, center: Float, interpolation: Float, @NonNull shapePath: ShapePath)
Generates a ShapePath for this edge treatment.