public final class

ModifiersBuilders.Padding.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.ModifiersBuilders.Padding.Builder

Overview

Builder for ModifiersBuilders.Padding

Summary

Constructors
publicBuilder()

Creates an instance of ModifiersBuilders.Clickable.Builder.

Methods
public ModifiersBuilders.Paddingbuild()

Builds an instance from accumulated values.

public ModifiersBuilders.Padding.BuildersetAll(DimensionBuilders.DpProp value)

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

public ModifiersBuilders.Padding.BuildersetBottom(DimensionBuilders.DpProp bottom)

Sets the padding at the bottom, in DP.

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

public ModifiersBuilders.Padding.BuildersetRtlAware(boolean rtlAware)

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

public ModifiersBuilders.Padding.BuildersetRtlAware(TypeBuilders.BoolProp rtlAware)

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

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

public ModifiersBuilders.Padding.BuildersetTop(DimensionBuilders.DpProp top)

Sets the padding at the top, in DP.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Creates an instance of ModifiersBuilders.Clickable.Builder.

Methods

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.

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.

Sets the padding at the top, in DP.

Note that this field only supports static values.

Sets the padding at the bottom, in DP.

Note that this field only supports static values.

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.

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.

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

Builds an instance from accumulated values.