Padding

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

Padding configuration.

Parameters

top

Top padding.

right

Right padding.

bottom

Bottom padding.

left

Left padding.

Constructors

Link copied to clipboard
fun Padding(all: Float)

Padding configuration.

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

Padding configuration.

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

Functions

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

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