ModifiersBuilders.Padding.Builder

public final class ModifiersBuilders.Padding.Builder


Builder for Padding

Summary

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

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

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

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

@NonNull ModifiersBuilders.Padding.Builder

Sets the padding at the top, in DP.

Public methods

build

@NonNull
public ModifiersBuilders.Padding build()

Builds an instance from accumulated values.

setAll

@NonNull
public ModifiersBuilders.Padding.Builder setAll(@NonNull DimensionBuilders.DpProp value)

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

setAll

@NonNull
public ModifiersBuilders.Padding.Builder setAll(@NonNull DimensionBuilders.DpProp.Builder valueBuilder)

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

setBottom

@NonNull
public ModifiersBuilders.Padding.Builder setBottom(@NonNull DimensionBuilders.DpProp bottom)

Sets the padding at the bottom, in DP.

setBottom

@NonNull
public ModifiersBuilders.Padding.Builder setBottom(@NonNull DimensionBuilders.DpProp.Builder bottomBuilder)

Sets the padding at the bottom, in DP.

setEnd

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

setEnd

@NonNull
public ModifiersBuilders.Padding.Builder setEnd(@NonNull DimensionBuilders.DpProp.Builder endBuilder)

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

setRtlAware

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

setRtlAware

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

setStart

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

setStart

@NonNull
public ModifiersBuilders.Padding.Builder setStart(@NonNull DimensionBuilders.DpProp.Builder startBuilder)

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

setTop

@NonNull
public ModifiersBuilders.Padding.Builder setTop(@NonNull DimensionBuilders.DpProp top)

Sets the padding at the top, in DP.

setTop

@NonNull
public ModifiersBuilders.Padding.Builder setTop(@NonNull DimensionBuilders.DpProp.Builder topBuilder)

Sets the padding at the top, in DP.