Relative

data class Relative(val top: Float? = null, val left: Float? = null, val right: Float? = null, val bottom: Float? = null) : Position(source)

The item participates in flex flow; top, left, right, and bottom offsets shift its painted position without affecting sibling layout. Mirrors CSS position: relative.

Constructors

Link copied to clipboard
constructor(top: Float? = null, left: Float? = null, right: Float? = null, bottom: Float? = null)

Properties

Link copied to clipboard

Pixels to shift up from the item's normal position; null = no shift.

Link copied to clipboard
val left: Float?

Pixels to shift right from the item's normal position; null = no shift.

Link copied to clipboard
val right: Float?

Pixels to shift left from the item's normal position; null = no shift.

Link copied to clipboard
val top: Float?

Pixels to shift down from the item's normal position; null = no shift.