Source set: Common
class LayerOutsets(
val left: Dp = 0.dp,
val top: Dp = 0.dp,
val right: Dp = 0.dp,
val bottom: Dp = 0.dp,
)
Represents the outsets of a layer, which define the extra visual space around the layer's content. These outsets can be used to expand the layer's bounds beyond its measured content size.
This does not affect the clip or shadows itself and only increases the visual bounds of the layer.
All outset values must be non-negative.
Parameters
| left | The outset on the left side. |
| top | The outset on the top side. |
| right | The outset on the right side. |
| bottom | The outset on the bottom side. |
Companion Object
Properties
Source set: Common
val Zero = LayerOutsets()
A LayerOutsets with all sides set to zero.