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.

Summary

Public companion properties

LayerOutsets

A LayerOutsets with all sides set to zero.

Cmn

Public constructors

LayerOutsets(left: Dp, top: Dp, right: Dp, bottom: Dp)
Cmn

Public functions

open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
open String
Cmn

Public properties

Dp

The outset on the bottom side.

Cmn
Dp

The outset on the left side.

Cmn
Dp

The outset on the right side.

Cmn
Dp

The outset on the top side.

Cmn

Public companion properties

Zero

val ZeroLayerOutsets

A LayerOutsets with all sides set to zero.

Public constructors

LayerOutsets

LayerOutsets(left: Dp = 0.dp, top: Dp = 0.dp, right: Dp = 0.dp, bottom: Dp = 0.dp)
Parameters
left: Dp = 0.dp

The outset on the left side.

top: Dp = 0.dp

The outset on the top side.

right: Dp = 0.dp

The outset on the right side.

bottom: Dp = 0.dp

The outset on the bottom side.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

bottom

val bottomDp

The outset on the bottom side.

left

val leftDp

The outset on the left side.

right

val rightDp

The outset on the right side.

top

val topDp

The outset on the top side.