Join us for ⁠#Android11: The Beta Launch Show on June 3!

CornerSize

interface CornerSize
androidx.ui.foundation.shape.corner.CornerSize

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

Summary

Public methods

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

Converts the CornerSize to pixels.

Public methods

toPx

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

Converts the CornerSize to pixels.

Parameters
shapeSize: PxSize the size of the shape
density: Density the current density of the screen.
Return
resolved size of the corner in pixels