drawRoundedCorner

open fun drawRoundedCorner(left: Int, top: Int, right: Int, bottom: Int, @NonNull canvas: Canvas)


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

Draws the rounded corners for the specified view onto the given canvas. Translates the canvas if the view has a non-zero translation Y.

Parameters

view

The view to draw the rounded corners for. Must not be null.

canvas

The canvas to draw on. Must not be null.