Function

CutCornerShape

Creates CutCornerShape with the same size applied for all four corners.

CutCornerShape

Source set: Common
public fun CutCornerShape(corner: CornerSize): CutCornerShape

Creates CutCornerShape with the same size applied for all four corners.

Parameters

corner CornerSize to apply.

CutCornerShape

Source set: Common
public fun CutCornerShape(size: Dp): CutCornerShape

Creates CutCornerShape with the same size applied for all four corners.

Parameters

size Size in Dp to apply.

CutCornerShape

Source set: Common
public fun CutCornerShape(size: Float): CutCornerShape

Creates CutCornerShape with the same size applied for all four corners.

Parameters

size Size in pixels to apply.

CutCornerShape

Source set: Common
public fun CutCornerShape(percent: Int): CutCornerShape

Creates CutCornerShape with the same size applied for all four corners.

Parameters

percent Size in percents to apply.

CutCornerShape

Source set: Common
public fun CutCornerShape(
    topStart: Dp = 0.dp,
    topEnd: Dp = 0.dp,
    bottomEnd: Dp = 0.dp,
    bottomStart: Dp = 0.dp,
): CutCornerShape

Creates CutCornerShape with sizes defined in Dp.

CutCornerShape

Source set: Common
public fun CutCornerShape(
    topStart: Float = 0.0f,
    topEnd: Float = 0.0f,
    bottomEnd: Float = 0.0f,
    bottomStart: Float = 0.0f,
): CutCornerShape

Creates CutCornerShape with sizes defined in float.

CutCornerShape

Source set: Common
public fun CutCornerShape(
    @IntRange(from = 0, to = 100) topStartPercent: Int = 0,
    @IntRange(from = 0, to = 100) topEndPercent: Int = 0,
    @IntRange(from = 0, to = 100) bottomEndPercent: Int = 0,
    @IntRange(from = 0, to = 100) bottomStartPercent: Int = 0,
): CutCornerShape

Creates CutCornerShape with sizes defined in percents of the shape's smaller side.

Parameters

topStartPercent The top start corner clip size as a percentage of the smaller side, with a range of 0 - 100.
topEndPercent The top end corner clip size as a percentage of the smaller side, with a range of 0 - 100.
bottomEndPercent The bottom end clip size radius as a percentage of the smaller side, with a range of 0 - 100.
bottomStartPercent The bottom start clip size radius as a percentage of the smaller side, with a range of 0 - 100.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: