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

AbsoluteRoundedCornerShapeKt

public final class AbsoluteRoundedCornerShapeKt


Summary

Public methods

static final @NonNull AbsoluteRoundedCornerShape

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

static final @NonNull AbsoluteRoundedCornerShape

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

static final @NonNull AbsoluteRoundedCornerShape

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

static final @NonNull AbsoluteRoundedCornerShape

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

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

Creates AbsoluteRoundedCornerShape with sizes defined in Dp.

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

Creates AbsoluteRoundedCornerShape with sizes defined in pixels.

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

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

Public methods

AbsoluteRoundedCornerShape

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

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

Parameters
@NonNull CornerSize corner

CornerSize to apply.

AbsoluteRoundedCornerShape

public static final @NonNull AbsoluteRoundedCornerShape AbsoluteRoundedCornerShape(int percent)

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

Parameters
int percent

Size in percents to apply.

AbsoluteRoundedCornerShape

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

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

Parameters
@NonNull Dp size

Size in Dp to apply.

AbsoluteRoundedCornerShape

public static final @NonNull AbsoluteRoundedCornerShape AbsoluteRoundedCornerShape(float size)

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

Parameters
float size

Size in pixels to apply.

AbsoluteRoundedCornerShape

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

Creates AbsoluteRoundedCornerShape with sizes defined in Dp.

AbsoluteRoundedCornerShape

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

Creates AbsoluteRoundedCornerShape with sizes defined in pixels.

AbsoluteRoundedCornerShape

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

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

Parameters
int topLeftPercent

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

int topRightPercent

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

int bottomRightPercent

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

int bottomLeftPercent

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