The second Android 11 Developer Preview is now available, test it out and share your feedback.

EdgeInsets

@Immutable data class EdgeInsets
kotlin.Any
   ↳ androidx.ui.layout.EdgeInsets

Describes a set of offsets from each of the four sides of a box.

Summary

Public constructors

<init>(all: Dp)

<init>(left: Dp = 0.dp, top: Dp = 0.dp, right: Dp = 0.dp, bottom: Dp = 0.dp)

Describes a set of offsets from each of the four sides of a box.

Properties

Dp

Dp

Dp

Dp

Public constructors

<init>

EdgeInsets(all: Dp)

<init>

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

Describes a set of offsets from each of the four sides of a box.

Properties

bottom

val bottom: Dp

left

val left: Dp

right

val right: Dp

top

val top: Dp