The Developer Preview for Android 11 is now available; test it out and share your feedback.


interface CornerSize

Defines size of a corner in Px. For example for rounded shape it can be a corner radius.


Public methods

abstract Px
toPx(shapeSize: PxSize, density: Density)

Converts the CornerSize to Px.

Inherited extension functions

From androidx.compose
operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

Public methods


abstract fun toPx(
    shapeSize: PxSize,
    density: Density
): Px

Converts the CornerSize to Px.

shapeSize: PxSize the size of the shape
density: Density the current density of the screen.
resolved size of the corner in Px