drawRoundedCorner

open fun drawRoundedCorner(@NonNull canvas: Canvas)(source)

Draws the rounded corners on the given canvas. The bounds for drawing are obtained from the canvas's clip bounds.

Parameters

canvas

The canvas to draw on. Must not be null.


open fun drawRoundedCorner(@NonNull view: View, @NonNull canvas: Canvas)(source)

Draws the rounded corners for the given view.

Parameters

view

The view to draw the rounded corners for.

canvas

The canvas to draw on.


open fun drawRoundedCorner(@NonNull canvas: Canvas, @Nullable insets: Insets)(source)

Draws the rounded corners on the given canvas with the specified insets.

Parameters

canvas

The canvas to draw on.

insets

The insets to apply to the rounded corners. If null, no insets are applied.


open fun drawRoundedCorner(@NonNull rect: Rect, @NonNull canvas: Canvas)(source)

Draws the rounded corners onto the provided canvas. The corners are drawn within the bounds specified by the rect parameter.

Parameters

rect

The rectangular bounds within which the rounded corners will be drawn.

canvas

The canvas on which to draw the rounded corners.