Interface

ScaleScope

An interface that introduces the scaleX and scaleY properties to a Style receiver scope.

Source set: Common
@Deprecated(
    DeprecatedStyleScope,
    replaceWith = ReplaceWith(""),
    level = DeprecationLevel.WARNING,
)
public interface ScaleScope

An interface that introduces the scaleX and scaleY properties to a Style receiver scope.

Functions

scaleX

Source set: Common
public fun scaleX(@FloatRange(from = 0.0) value: Float)

Scales the component horizontally around its center pivot point.

Setting scaleX will override the horizontal scaling set by a previous call to scale.

This property is not inherited

Parameters

value The scaling factor for the X-axis. 1.0f is no scale.

scaleY

Source set: Common
public fun scaleY(@FloatRange(from = 0.0) value: Float)

Scales the component vertically around its center pivot point.

Setting scaleX will override the vertical scaling set by a previous call to scale.

This property is not inherited

Parameters

value The scaling factor for the Y-axis. 1.0f is no scale.
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: