Padding

data class Padding(val start: Float = 0.0f, val end: Float = 0.0f, val top: Float = 0.0f, val bottom: Float = 0.0f)

Padding to apply to a com.splendo.kaluga.resources.view.KalugaButton Respects layouts based on reading direction

Constructors

Link copied to clipboard
constructor(start: Float = 0.0f, end: Float = 0.0f, top: Float = 0.0f, bottom: Float = 0.0f)
constructor(horizontal: Float = 0.0f, vertical: Float = 0.0f)

Creates a Padding where Padding.start and Padding.end are equal to horizontal and Padding.top and Padding.bottom are equal to vertical

constructor(padding: Float)

Creates a Padding where all sides are equal to padding

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

the padding at the bottom of the view

Link copied to clipboard
val end: Float

the padding at the end of the view (right or left depending on reading direction)

Link copied to clipboard

the padding at the start of the view (left or right depending on reading direction)

Link copied to clipboard
val top: Float

the padding at the top of the view