ModifiersBuilders.Padding.Builder


class ModifiersBuilders.Padding.Builder


Builder for Padding

Summary

Public constructors

Creates an instance of Builder.

Public functions

ModifiersBuilders.Padding

Builds an instance from accumulated values.

ModifiersBuilders.Padding.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setAll(value: DimensionBuilders.DpProp)

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

ModifiersBuilders.Padding.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setBottom(bottom: DimensionBuilders.DpProp)

Sets the padding at the bottom, in DP.

ModifiersBuilders.Padding.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setEnd(end: DimensionBuilders.DpProp)

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
@RequiresSchemaVersion(major = 1, minor = 0)
setRtlAware(rtlAware: Boolean)

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

ModifiersBuilders.Padding.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setRtlAware(rtlAware: TypeBuilders.BoolProp)

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

ModifiersBuilders.Padding.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setStart(start: DimensionBuilders.DpProp)

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
@RequiresSchemaVersion(major = 1, minor = 0)
setTop(top: DimensionBuilders.DpProp)

Sets the padding at the top, in DP.

Public constructors

Builder

Added in 1.0.0
Builder()

Creates an instance of Builder.

Public functions

build

Added in 1.0.0
fun build(): ModifiersBuilders.Padding

Builds an instance from accumulated values.

setAll

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 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
@RequiresSchemaVersion(major = 1, minor = 0)
fun setBottom(bottom: DimensionBuilders.DpProp): ModifiersBuilders.Padding.Builder

Sets the padding at the bottom, in DP.

Note that this field only supports static values.

setEnd

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 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".

Note that this field only supports static values.

setRtlAware

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 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
@RequiresSchemaVersion(major = 1, minor = 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.

Note that this field only supports static values.

setStart

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 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".

Note that this field only supports static values.

setTop

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
fun setTop(top: DimensionBuilders.DpProp): ModifiersBuilders.Padding.Builder

Sets the padding at the top, in DP.

Note that this field only supports static values.