by @alexstyl
✉️ Leave your feedback

← Back to Compose UI

scale

Modifier
in
Compose UI
. Since 1.0.0

Overview

Examples

Community Notes

Scale the contents of the composable by the following scale factors along the horizontal and vertical axis respectively. Negative scale factors can be used to mirror content across the corresponding horizontal or vertical axis.

Overloads

scale

fun Modifier.scale(scaleX: Float, scaleY: Float)

Parameters

NameDescription
scaleXMultiplier to scale content along the horizontal axis
scaleYMultiplier to scale content along the vertical axi

scale

fun Modifier.scale(scale: Float)

Parameters

NameDescription
scaleMultiplier to scale content along the horizontal and vertical axi
Next ComponentAndroidView