dimensionResource

Composable Function

Android
@Composable
@ReadOnlyComposable
fun dimensionResource(@DimenRes id: Int): Dp

Load a dimension resource.

Parameters

idthe resource identifier

Returns

the dimension value associated with the resource