ModifiersBuilders.Padding.Builder

Added in 1.0.0
Deprecated in 1.2.0

class ModifiersBuilders.Padding.Builder


Builder for Padding

Summary

Public constructors

Public functions

ModifiersBuilders.Padding

Builds an instance from accumulated values.

ModifiersBuilders.Padding.Builder

Sets the padding for all sides of the content, in DP.

ModifiersBuilders.Padding.Builder

Sets the padding at the bottom, in DP.

ModifiersBuilders.Padding.Builder

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

ModifiersBuilders.Padding.Builder
setRtlAware(rtlAware: Boolean)

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

ModifiersBuilders.Padding.Builder

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

ModifiersBuilders.Padding.Builder

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

ModifiersBuilders.Padding.Builder

Sets the padding at the top, in DP.

Public constructors

Builder

Added in 1.0.0
Deprecated in 1.2.0
Builder()

Public functions

build

Added in 1.0.0
Deprecated in 1.2.0
fun build(): ModifiersBuilders.Padding

Builds an instance from accumulated values.

setAll

Added in 1.0.0
Deprecated in 1.2.0
fun setAll(value: DimensionBuilders.DpProp): ModifiersBuilders.Padding.Builder

Sets the padding for all sides of the content, in DP.

setBottom

Added in 1.0.0
Deprecated in 1.2.0
fun setBottom(bottom: DimensionBuilders.DpProp): ModifiersBuilders.Padding.Builder

Sets the padding at the bottom, in DP.

setEnd

Added in 1.0.0
Deprecated in 1.2.0
fun setEnd(end: DimensionBuilders.DpProp): ModifiersBuilders.Padding.Builder

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

setRtlAware

Added in 1.0.0
Deprecated in 1.2.0
fun setRtlAware(rtlAware: Boolean): ModifiersBuilders.Padding.Builder

Sets 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.

setRtlAware

Added in 1.0.0
Deprecated in 1.2.0
fun setRtlAware(rtlAware: TypeBuilders.BoolProp): ModifiersBuilders.Padding.Builder

Sets 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.

setStart

Added in 1.0.0
Deprecated in 1.2.0
fun setStart(start: DimensionBuilders.DpProp): ModifiersBuilders.Padding.Builder

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

setTop

Added in 1.0.0
Deprecated in 1.2.0
fun setTop(top: DimensionBuilders.DpProp): ModifiersBuilders.Padding.Builder

Sets the padding at the top, in DP.