Margin

data class Margin(    var top: Float,     var right: Float,     var bottom: Float,     var left: Float)

Margin configuration.

Parameters

top

Top margin.

right

Right margin.

bottom

Bottom margin.

left

Left margin.

Constructors

Link copied to clipboard
fun Margin(all: Float)

Margin configuration.

Link copied to clipboard
fun Margin(vertical: Float, horizontal: Float)

Margin configuration.

Link copied to clipboard
fun Margin(    top: Float,     right: Float,     bottom: Float,     left: Float)

Functions

Link copied to clipboard
fun asDpToPx(context: Context): Margin

Interprets that the current values are expressed in density-independent pixels (dp) and converts them to pixels (px) according to the device screen density.

Properties

Link copied to clipboard
var bottom: Float
Link copied to clipboard
var left: Float
Link copied to clipboard
var right: Float
Link copied to clipboard
var top: Float