Class

AbsoluteRoundedCornerShape

A shape describing the rectangle with rounded corners.

Source set: Common
public class AbsoluteRoundedCornerShape(
    topLeft: CornerSize,
    topRight: CornerSize,
    bottomRight: CornerSize,
    bottomLeft: CornerSize,
) :
    CornerBasedShape(
        topStart = topLeft,
        topEnd = topRight,
        bottomEnd = bottomRight,
        bottomStart = bottomLeft,
    )

A shape describing the rectangle with rounded corners.

This shape will not automatically mirror the corner sizes in LayoutDirection.Rtl, use RoundedCornerShape for the layout direction aware version of this shape.

Parameters

topLeft a size of the top left corner
topRight a size of the top right corner
bottomRight a size of the bottom right corner
bottomLeft a size of the bottom left corner
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: