ModifiersBuilders.Padding.Builder

public static final class ModifiersBuilders.Padding.Builder
extends Object

java.lang.Object
   ↳ androidx.wear.tiles.builders.ModifiersBuilders.Padding.Builder


Builder for ModifiersBuilders.Padding

Summary

Public methods

ModifiersBuilders.Padding build()

Builds an instance from accumulated values.

ModifiersBuilders.Padding.Builder setAll(DimensionBuilders.DpProp.Builder valueBuilder)

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

ModifiersBuilders.Padding.Builder setAll(DimensionBuilders.DpProp value)

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

ModifiersBuilders.Padding.Builder setBottom(DimensionBuilders.DpProp.Builder bottomBuilder)

Sets the padding at the bottom, in DP.

ModifiersBuilders.Padding.Builder setBottom(DimensionBuilders.DpProp bottom)

Sets the padding at the bottom, in DP.

ModifiersBuilders.Padding.Builder setEnd(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".

ModifiersBuilders.Padding.Builder setEnd(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".

ModifiersBuilders.Padding.Builder setRtlAware(boolean rtlAware)

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

ModifiersBuilders.Padding.Builder setStart(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".

ModifiersBuilders.Padding.Builder setStart(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".

ModifiersBuilders.Padding.Builder setTop(DimensionBuilders.DpProp.Builder topBuilder)

Sets the padding at the top, in DP.

ModifiersBuilders.Padding.Builder setTop(DimensionBuilders.DpProp top)

Sets the padding at the top, in DP.

Inherited methods

Public methods

build

public ModifiersBuilders.Padding build ()

Builds an instance from accumulated values.

Returns
ModifiersBuilders.Padding

setAll

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

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

Parameters
valueBuilder DimensionBuilders.DpProp.Builder

Returns
ModifiersBuilders.Padding.Builder

setAll

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

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

Parameters
value DimensionBuilders.DpProp

Returns
ModifiersBuilders.Padding.Builder

setBottom

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

Sets the padding at the bottom, in DP.

Parameters
bottomBuilder DimensionBuilders.DpProp.Builder

Returns
ModifiersBuilders.Padding.Builder

setBottom

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

Sets the padding at the bottom, in DP.

Parameters
bottom DimensionBuilders.DpProp

Returns
ModifiersBuilders.Padding.Builder

setEnd

public ModifiersBuilders.Padding.Builder setEnd (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".

Parameters
end DimensionBuilders.DpProp

Returns
ModifiersBuilders.Padding.Builder

setEnd

public ModifiersBuilders.Padding.Builder setEnd (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".

Parameters
endBuilder DimensionBuilders.DpProp.Builder

Returns
ModifiersBuilders.Padding.Builder

setRtlAware

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

Parameters
rtlAware boolean

Returns
ModifiersBuilders.Padding.Builder

setStart

public ModifiersBuilders.Padding.Builder setStart (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".

Parameters
startBuilder DimensionBuilders.DpProp.Builder

Returns
ModifiersBuilders.Padding.Builder

setStart

public ModifiersBuilders.Padding.Builder setStart (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".

Parameters
start DimensionBuilders.DpProp

Returns
ModifiersBuilders.Padding.Builder

setTop

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

Sets the padding at the top, in DP.

Parameters
topBuilder DimensionBuilders.DpProp.Builder

Returns
ModifiersBuilders.Padding.Builder

setTop

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

Sets the padding at the top, in DP.

Parameters
top DimensionBuilders.DpProp

Returns
ModifiersBuilders.Padding.Builder