CornerRadius

fun CornerRadius(radius: Float)

Corner radius configuration.

Parameters

radius

Radius for all corners.


fun CornerRadius(radius: Pair<Float, Float>)

Corner radius configuration.

Parameters

radius

Radius for all corners, in the pair values, first is for x-axis and second is for y-axis.


fun CornerRadius(    topLeft: Float,     topRight: Float,     bottomRight: Float,     bottomLeft: Float)

Corner radius configuration.

Parameters

topLeft

Top left radius.

topRight

Top right radius.

bottomRight

Bottom right radius.

bottomLeft

Bottom left radius.


fun CornerRadius(    topLeftX: Float,     topLeftY: Float,     topRightX: Float,     topRightY: Float,     bottomRightX: Float,     bottomRightY: Float,     bottomLeftX: Float,     bottomLeftY: Float)

Parameters

topLeftX

Top left radius for x-axis.

topLeftY

Top left radius for y-axis.

topRightX

Top right radius for x-axis.

topRightY

Top right radius for y-axis.

bottomRightX

Bottom right radius for x-axis.

bottomRightY

Bottom right radius for y-axis.

bottomLeftX

Bottom left radius for x-axis.

bottomLeftY

Bottom left radius for y-axis.