← Back to Compose UI
scale
Modifier
in
Compose UI
. Since 1.0.0Overview
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
Name | Description |
---|---|
scaleX | Multiplier to scale content along the horizontal axis |
scaleY | Multiplier to scale content along the vertical axi |
scale
fun Modifier.scale(scale: Float)
Parameters
Name | Description |
---|---|
scale | Multiplier to scale content along the horizontal and vertical axi |
Next ComponentAndroidView →