CornerTreatment

open class CornerTreatment

A basic corner treatment (a single point which does not affect the shape).

Note: For corner 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 getCornerPath(angle: Float, interpolation: Float, @NonNull shapePath: ShapePath)
open fun getCornerPath(@NonNull shapePath: ShapePath, angle: Float, interpolation: Float, radius: Float)
open fun getCornerPath(@NonNull shapePath: ShapePath, angle: Float, interpolation: Float, @NonNull bounds: RectF, @NonNull size: CornerSize)
Generates a ShapePath for this corner treatment.