Google is committed to advancing racial equity for Black communities. See how.

ScaleFit

interface ScaleFit : ContentScale
androidx.ui.core.ScaleFit

Represents a rule to apply to scale a source rectangle to be inscribed into a destination

Summary

Inherited functions

Inherited extension functions

From androidx.ui.core
Float
ContentScale.scale(srcSize: Size, dstSize: Size)

Convenience method to compute the scale factor from Size parameters

Companion properties

ContentScale

Scale the source maintaining the aspect ratio so that the bounds match the destination height.

ContentScale

Scale the source maintaining the aspect ratio so that the bounds match the maximum of the destination width or height.

ContentScale

Scale the source maintaining the aspect ratio so that the bounds match the minimum of the destination width or height.

ContentScale

Scale the source maintaining the aspect ratio so that the bounds match the destination width.

ContentScale

Scale the source to maintain the aspect ratio to fit within the destination bounds if the source is larger than the destination.

FixedScale

Do not apply any scaling to the source

Companion properties

FillHeight

val FillHeight: ContentScale

Deprecated.

Scale the source maintaining the aspect ratio so that the bounds match the destination height. This can cover a larger area than the destination if the height is larger than the width.

FillMaxDimension

val FillMaxDimension: ContentScale

Deprecated.

Scale the source maintaining the aspect ratio so that the bounds match the maximum of the destination width or height. This can cover a larger area than the destination.

FillMinDimension

val FillMinDimension: ContentScale

Deprecated.

Scale the source maintaining the aspect ratio so that the bounds match the minimum of the destination width or height. This will always fill an area smaller than or equal to the destination.

FillWidth

val FillWidth: ContentScale

Deprecated.

Scale the source maintaining the aspect ratio so that the bounds match the destination width. This can cover a larger area than the destination if the width is larger than the height.

Fit

val Fit: ContentScale

Deprecated.

Scale the source to maintain the aspect ratio to fit within the destination bounds if the source is larger than the destination. If the source is smaller than or equal to the destination in both dimensions, this behaves similarly to None. This will always be contained within the bounds of the destination.

None

val None: FixedScale

Deprecated.

Do not apply any scaling to the source