cutCornerShape

fun cutCornerShape(allPercent: Int): CorneredShape

Creates a Shape with all corners cut.

Parameters

allPercent

the radius of each corner (in percent).


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

Creates a Shape with all corners cut.

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).