{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

AbsoluteCutCornerShapeKt

public final class AbsoluteCutCornerShapeKt


Summary

Public methods

static final @NonNull AbsoluteCutCornerShape

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

static final @NonNull AbsoluteCutCornerShape

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

static final @NonNull AbsoluteCutCornerShape

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

static final @NonNull AbsoluteCutCornerShape

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

static final @NonNull AbsoluteCutCornerShape
AbsoluteCutCornerShape(
    @NonNull Dp topLeft,
    @NonNull Dp topRight,
    @NonNull Dp bottomRight,
    @NonNull Dp bottomLeft
)

Creates AbsoluteCutCornerShape with sizes defined in Dp.

static final @NonNull AbsoluteCutCornerShape
AbsoluteCutCornerShape(
    float topLeft,
    float topRight,
    float bottomRight,
    float bottomLeft
)

Creates AbsoluteCutCornerShape with sizes defined in float.

static final @NonNull AbsoluteCutCornerShape
AbsoluteCutCornerShape(
    int topLeftPercent,
    int topRightPercent,
    int bottomRightPercent,
    int bottomLeftPercent
)

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

Public methods

AbsoluteCutCornerShape

public static final @NonNull AbsoluteCutCornerShape AbsoluteCutCornerShape(@NonNull CornerSize corner)

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

Parameters
@NonNull CornerSize corner

CornerSize to apply.

AbsoluteCutCornerShape

public static final @NonNull AbsoluteCutCornerShape AbsoluteCutCornerShape(int percent)

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

Parameters
int percent

Size in percents to apply.

AbsoluteCutCornerShape

public static final @NonNull AbsoluteCutCornerShape AbsoluteCutCornerShape(@NonNull Dp size)

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

Parameters
@NonNull Dp size

Size in Dp to apply.

AbsoluteCutCornerShape

public static final @NonNull AbsoluteCutCornerShape AbsoluteCutCornerShape(float size)

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

Parameters
float size

Size in pixels to apply.

AbsoluteCutCornerShape

public static final @NonNull AbsoluteCutCornerShape AbsoluteCutCornerShape(
    @NonNull Dp topLeft,
    @NonNull Dp topRight,
    @NonNull Dp bottomRight,
    @NonNull Dp bottomLeft
)

Creates AbsoluteCutCornerShape with sizes defined in Dp.

AbsoluteCutCornerShape

public static final @NonNull AbsoluteCutCornerShape AbsoluteCutCornerShape(
    float topLeft,
    float topRight,
    float bottomRight,
    float bottomLeft
)

Creates AbsoluteCutCornerShape with sizes defined in float.

AbsoluteCutCornerShape

public static final @NonNull AbsoluteCutCornerShape AbsoluteCutCornerShape(
    int topLeftPercent,
    int topRightPercent,
    int bottomRightPercent,
    int bottomLeftPercent
)

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

Parameters
int topLeftPercent

The top left corner clip size as a percentage of the smaller side, with a range of 0 - 100.

int topRightPercent

The top right corner clip size as a percentage of the smaller side, with a range of 0 - 100.

int bottomRightPercent

The bottom right clip size radius as a percentage of the smaller side, with a range of 0 - 100.

int bottomLeftPercent

The bottom left clip size radius as a percentage of the smaller side, with a range of 0 - 100.