rounded

fun rounded(allPercent: Int): CorneredShape

Creates a Shape with all corners rounded.

Parameters

allPercent

the radius of each corner (in percent).


fun rounded(topLeftPercent: Int = 0, topRightPercent: Int = 0, bottomRightPercent: Int = 0, bottomLeftPercent: Int = 0): CorneredShape

Creates a Shape with all corners rounded.

Parameters

topLeftPercent

the top-left corner radius (in percent).

topRightPercent

the top-right corner radius (in percent).

bottomRightPercent

the bottom-right corner radius (in percent).

bottomLeftPercent

the bottom-left corner radius (in percent).


fun rounded(allDp: Float): Shape

Creates a CorneredShape with rounded corners of the provided size.


fun rounded(topLeftDp: Float = 0.0f, topRightDp: Float = 0.0f, bottomRightDp: Float = 0.0f, bottomLeftDp: Float = 0.0f): CorneredShape

Creates a CorneredShape with rounded corners of the provided sizes.