ModifiersBuilders.Padding

Added in 1.0.0
Deprecated in 1.2.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.

Public functions

getBottom

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

Gets the padding at the bottom, in DP. Intended for testing purposes only.

getEnd

Added in 1.0.0
Deprecated in 1.2.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". Intended for testing purposes only.

getRtlAware

Added in 1.0.0
Deprecated in 1.2.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. Intended for testing purposes only.

getStart

Added in 1.0.0
Deprecated in 1.2.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". Intended for testing purposes only.

getTop

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

Gets the padding at the top, in DP. Intended for testing purposes only.