ModifiersBuilders.Padding.Builder


public final class ModifiersBuilders.Padding.Builder


Builder for Padding

Summary

Public constructors

Creates an instance of Builder.

Public methods

@NonNull ModifiersBuilders.Padding

Builds an instance from accumulated values.

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

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

@NonNull ModifiersBuilders.Padding.Builder

Sets the padding at the bottom, in DP.

@NonNull 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".

@NonNull ModifiersBuilders.Padding.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setRtlAware(boolean rtlAware)

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

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

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

@NonNull 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".

@NonNull ModifiersBuilders.Padding.Builder

Sets the padding at the top, in DP.

Public constructors

Builder

Added in 1.0.0
public Builder()

Creates an instance of Builder.

Public methods

build

Added in 1.0.0
public @NonNull ModifiersBuilders.Padding build()

Builds an instance from accumulated values.

setAll

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull ModifiersBuilders.Padding.Builder setAll(@NonNull DimensionBuilders.DpProp value)

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

setBottom

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull ModifiersBuilders.Padding.Builder setBottom(@NonNull DimensionBuilders.DpProp bottom)

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)
public @NonNull ModifiersBuilders.Padding.Builder setEnd(@NonNull DimensionBuilders.DpProp end)

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)
public @NonNull ModifiersBuilders.Padding.Builder setRtlAware(boolean rtlAware)

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)
public @NonNull ModifiersBuilders.Padding.Builder setRtlAware(@NonNull TypeBuilders.BoolProp rtlAware)

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)
public @NonNull ModifiersBuilders.Padding.Builder setStart(@NonNull DimensionBuilders.DpProp start)

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)
public @NonNull ModifiersBuilders.Padding.Builder setTop(@NonNull DimensionBuilders.DpProp top)

Sets the padding at the top, in DP.

Note that this field only supports static values.