Size

sealed interface Size

Size policy for the image of placeholder.

Inheritors

Types

Link copied to clipboard
data class Fixed(@FloatRange(from = 0.0) val width: Float, @FloatRange(from = 0.0) val height: Float) : Placeholder.Image.Size

Determines the size of the image with a fixed dp value.

Link copied to clipboard

Determines the size of the image flexibly based on the width of the media view. If the media view width is 220dp or more, the image size will be 100x100dp. If the media view width is less than 220dp, the image size will be 84x84dp.