Function

scale

Scale the contents of the composable by the scale factor along horizontal, vertical, and depth axes.

scale

Source set: Android
public fun SubspaceModifier.scale(
    @FloatRange(from = 0.0, fromInclusive = false) scale: Float
): SubspaceModifier

Scale the contents of the composable by the scale factor along horizontal, vertical, and depth axes. Scaling does not change the measured size of the composable content during layout. The measured size of androidx.xr.compose.subspace.SubspaceComposable elements can be controlled using size modifiers. The scale factor must be a positive number.

Parameters

scale Multiplier to scale content along the horizontal, vertical, and depth axes.
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: