ModifiersBuilders.Padding.Builder

Added in 1.0.0
Deprecated in 1.2.0

public final class ModifiersBuilders.Padding.Builder


Builder for Padding

Summary

Public constructors

Public methods

@NonNull ModifiersBuilders.Padding

Builds an instance from accumulated values.

@NonNull ModifiersBuilders.Padding.Builder

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
setRtlAware(boolean rtlAware)

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

@NonNull ModifiersBuilders.Padding.Builder

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
Deprecated in 1.2.0
public Builder()

Public methods

build

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

Builds an instance from accumulated values.

setAll

Added in 1.0.0
Deprecated in 1.2.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
Deprecated in 1.2.0
public @NonNull ModifiersBuilders.Padding.Builder setBottom(@NonNull DimensionBuilders.DpProp bottom)

Sets the padding at the bottom, in DP.

setEnd

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

setRtlAware

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

setStart

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

setTop

Added in 1.0.0
Deprecated in 1.2.0
public @NonNull ModifiersBuilders.Padding.Builder setTop(@NonNull DimensionBuilders.DpProp top)

Sets the padding at the top, in DP.