ModifiersBuilders.Padding


@RequiresSchemaVersion(major = 1, minor = 0)
class ModifiersBuilders.Padding


A modifier to apply padding around an element.

Summary

Nested types

Builder for Padding

Public functions

DimensionBuilders.DpProp?

Gets the padding at the bottom, in DP.

DimensionBuilders.DpProp?

Gets the padding on the end of the content, depending on the layout direction, in DP and the value of "rtl_aware".

TypeBuilders.BoolProp?

Gets whether the start/end padding is aware of RTL support.

DimensionBuilders.DpProp?

Gets the padding on the start of the content, depending on the layout direction, in DP and the value of "rtl_aware".

DimensionBuilders.DpProp?

Gets the padding at the top, in DP.

String

Public functions

getBottom

Added in 1.0.0
fun getBottom(): DimensionBuilders.DpProp?

Gets the padding at the bottom, in DP.

getEnd

Added in 1.0.0
fun getEnd(): DimensionBuilders.DpProp?

Gets the padding on the end of the content, depending on the layout direction, in DP and the value of "rtl_aware".

getRtlAware

Added in 1.0.0
fun getRtlAware(): TypeBuilders.BoolProp?

Gets whether the start/end padding is aware of RTL support. If true, the values for start/end will follow the layout direction (i.e. start will refer to the right hand side of the container if the device is using an RTL locale). If false, start/end will always map to left/right, accordingly.

getStart

Added in 1.0.0
fun getStart(): DimensionBuilders.DpProp?

Gets the padding on the start of the content, depending on the layout direction, in DP and the value of "rtl_aware".

getTop

Added in 1.0.0
fun getTop(): DimensionBuilders.DpProp?

Gets the padding at the top, in DP.

toString

fun toString(): String