Margin

data class Margin(@IntRange(from = 0) val left: Int, @IntRange(from = 0) val top: Int, @IntRange(from = 0) val right: Int, @IntRange(from = 0) val bottom: Int)

Defines the margins of the UI component in pixels.

Constructors

Link copied to clipboard
constructor(@IntRange(from = 0) left: Int, @IntRange(from = 0) top: Int, @IntRange(from = 0) right: Int, @IntRange(from = 0) bottom: Int)

Properties

Link copied to clipboard
val bottom: Int

The bottom margin in pixels.

Link copied to clipboard
val left: Int

The left margin in pixels.

Link copied to clipboard
val right: Int

The right margin in pixels.

Link copied to clipboard
val top: Int

The top margin in pixels.