scale

abstract fun scale(scale: Float, origin: TransformOrigin = TransformOrigin.Center)

Scales the view by the given scale and origin.

Parameters

scale

The unitless scale multiplier of view.

origin

The origin of scale.


abstract fun scale(scaleX: Float, scaleY: Float, origin: TransformOrigin = TransformOrigin.Center)

Scales the view by the given scaleX, scaleY, and origin.

Parameters

scaleX

The unitless scale multiplier of view on x-axis.

scaleY

The unitless scale multiplier of view on y-axis.

origin

The origin of scale.