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.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

left

The left margin in pixels.

top

The top margin in pixels.

right

The right margin in pixels.

bottom

The bottom margin in pixels.

Constructors

Link copied to clipboard
fun Margin(@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
Link copied to clipboard
val left: Int
Link copied to clipboard
val right: Int
Link copied to clipboard
val top: Int