public final class

LayoutElementProto.Spacer.Builder

extends <any>

implements LayoutElementProto.SpacerOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.proto.LayoutElementProto.Spacer.Builder

Overview

 A simple spacer, typically used to provide padding between adjacent elements.
 
Protobuf type androidx.wear.protolayout.proto.Spacer

Summary

Methods
public LayoutElementProto.Spacer.BuilderclearHeight()

 The height of this spacer.

public LayoutElementProto.Spacer.BuilderclearModifiers()

 Modifiers for this element.

public LayoutElementProto.Spacer.BuilderclearWidth()

 The width of this Spacer.

public DimensionProto.SpacerDimensiongetHeight()

 The height of this spacer.

public ModifiersProto.ModifiersgetModifiers()

 Modifiers for this element.

public DimensionProto.SpacerDimensiongetWidth()

 The width of this Spacer.

public booleanhasHeight()

 The height of this spacer.

public booleanhasModifiers()

 Modifiers for this element.

public booleanhasWidth()

 The width of this Spacer.

public LayoutElementProto.Spacer.BuildermergeHeight(DimensionProto.SpacerDimension value)

 The height of this spacer.

public LayoutElementProto.Spacer.BuildermergeModifiers(ModifiersProto.Modifiers value)

 Modifiers for this element.

public LayoutElementProto.Spacer.BuildermergeWidth(DimensionProto.SpacerDimension value)

 The width of this Spacer.

public LayoutElementProto.Spacer.BuildersetHeight(DimensionProto.SpacerDimension.Builder builderForValue)

 The height of this spacer.

public LayoutElementProto.Spacer.BuildersetHeight(DimensionProto.SpacerDimension value)

 The height of this spacer.

public LayoutElementProto.Spacer.BuildersetModifiers(ModifiersProto.Modifiers.Builder builderForValue)

 Modifiers for this element.

public LayoutElementProto.Spacer.BuildersetModifiers(ModifiersProto.Modifiers value)

 Modifiers for this element.

public LayoutElementProto.Spacer.BuildersetWidth(DimensionProto.SpacerDimension.Builder builderForValue)

 The width of this Spacer.

public LayoutElementProto.Spacer.BuildersetWidth(DimensionProto.SpacerDimension value)

 The width of this Spacer.

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

Methods

public boolean hasWidth()

 The width of this Spacer. When this is added as the direct child of an Arc,
 this must be specified as an angular dimension, otherwise a linear
 dimension must be used. If not defined, defaults to 0.

 While this field is statically accessible from 1.0, it's only bindable
 since version 1.2 and renderers supporting version 1.2 will use the dynamic
 value (if set).

 When using a dynamic value, make sure to specify the bounding constraints
 for the affected layout element through {@code
 setLayoutConstraintsForDynamicWidth(HorizontalLayoutConstraint)} otherwise
 {@code build()} fails.
 
.androidx.wear.protolayout.proto.SpacerDimension width = 1;

 The width of this Spacer. When this is added as the direct child of an Arc,
 this must be specified as an angular dimension, otherwise a linear
 dimension must be used. If not defined, defaults to 0.

 While this field is statically accessible from 1.0, it's only bindable
 since version 1.2 and renderers supporting version 1.2 will use the dynamic
 value (if set).

 When using a dynamic value, make sure to specify the bounding constraints
 for the affected layout element through {@code
 setLayoutConstraintsForDynamicWidth(HorizontalLayoutConstraint)} otherwise
 {@code build()} fails.
 
.androidx.wear.protolayout.proto.SpacerDimension width = 1;

 The width of this Spacer. When this is added as the direct child of an Arc,
 this must be specified as an angular dimension, otherwise a linear
 dimension must be used. If not defined, defaults to 0.

 While this field is statically accessible from 1.0, it's only bindable
 since version 1.2 and renderers supporting version 1.2 will use the dynamic
 value (if set).

 When using a dynamic value, make sure to specify the bounding constraints
 for the affected layout element through {@code
 setLayoutConstraintsForDynamicWidth(HorizontalLayoutConstraint)} otherwise
 {@code build()} fails.
 
.androidx.wear.protolayout.proto.SpacerDimension width = 1;

 The width of this Spacer. When this is added as the direct child of an Arc,
 this must be specified as an angular dimension, otherwise a linear
 dimension must be used. If not defined, defaults to 0.

 While this field is statically accessible from 1.0, it's only bindable
 since version 1.2 and renderers supporting version 1.2 will use the dynamic
 value (if set).

 When using a dynamic value, make sure to specify the bounding constraints
 for the affected layout element through {@code
 setLayoutConstraintsForDynamicWidth(HorizontalLayoutConstraint)} otherwise
 {@code build()} fails.
 
.androidx.wear.protolayout.proto.SpacerDimension width = 1;

 The width of this Spacer. When this is added as the direct child of an Arc,
 this must be specified as an angular dimension, otherwise a linear
 dimension must be used. If not defined, defaults to 0.

 While this field is statically accessible from 1.0, it's only bindable
 since version 1.2 and renderers supporting version 1.2 will use the dynamic
 value (if set).

 When using a dynamic value, make sure to specify the bounding constraints
 for the affected layout element through {@code
 setLayoutConstraintsForDynamicWidth(HorizontalLayoutConstraint)} otherwise
 {@code build()} fails.
 
.androidx.wear.protolayout.proto.SpacerDimension width = 1;

 The width of this Spacer. When this is added as the direct child of an Arc,
 this must be specified as an angular dimension, otherwise a linear
 dimension must be used. If not defined, defaults to 0.

 While this field is statically accessible from 1.0, it's only bindable
 since version 1.2 and renderers supporting version 1.2 will use the dynamic
 value (if set).

 When using a dynamic value, make sure to specify the bounding constraints
 for the affected layout element through {@code
 setLayoutConstraintsForDynamicWidth(HorizontalLayoutConstraint)} otherwise
 {@code build()} fails.
 
.androidx.wear.protolayout.proto.SpacerDimension width = 1;

public boolean hasHeight()

 The height of this spacer. If not defined, defaults to 0.

 While this field is statically accessible from 1.0, it's only bindable
 since version 1.2 and renderers supporting version 1.2 will use the dynamic
 value (if set).

 When using a dynamic value, make sure to specify the bounding constraints
 for the affected layout element through {@code
 setLayoutConstraintsForDynamicWidth(HorizontalLayoutConstraint)} otherwise
 {@code build()} fails.
 
.androidx.wear.protolayout.proto.SpacerDimension height = 2;

 The height of this spacer. If not defined, defaults to 0.

 While this field is statically accessible from 1.0, it's only bindable
 since version 1.2 and renderers supporting version 1.2 will use the dynamic
 value (if set).

 When using a dynamic value, make sure to specify the bounding constraints
 for the affected layout element through {@code
 setLayoutConstraintsForDynamicWidth(HorizontalLayoutConstraint)} otherwise
 {@code build()} fails.
 
.androidx.wear.protolayout.proto.SpacerDimension height = 2;

 The height of this spacer. If not defined, defaults to 0.

 While this field is statically accessible from 1.0, it's only bindable
 since version 1.2 and renderers supporting version 1.2 will use the dynamic
 value (if set).

 When using a dynamic value, make sure to specify the bounding constraints
 for the affected layout element through {@code
 setLayoutConstraintsForDynamicWidth(HorizontalLayoutConstraint)} otherwise
 {@code build()} fails.
 
.androidx.wear.protolayout.proto.SpacerDimension height = 2;

 The height of this spacer. If not defined, defaults to 0.

 While this field is statically accessible from 1.0, it's only bindable
 since version 1.2 and renderers supporting version 1.2 will use the dynamic
 value (if set).

 When using a dynamic value, make sure to specify the bounding constraints
 for the affected layout element through {@code
 setLayoutConstraintsForDynamicWidth(HorizontalLayoutConstraint)} otherwise
 {@code build()} fails.
 
.androidx.wear.protolayout.proto.SpacerDimension height = 2;

 The height of this spacer. If not defined, defaults to 0.

 While this field is statically accessible from 1.0, it's only bindable
 since version 1.2 and renderers supporting version 1.2 will use the dynamic
 value (if set).

 When using a dynamic value, make sure to specify the bounding constraints
 for the affected layout element through {@code
 setLayoutConstraintsForDynamicWidth(HorizontalLayoutConstraint)} otherwise
 {@code build()} fails.
 
.androidx.wear.protolayout.proto.SpacerDimension height = 2;

 The height of this spacer. If not defined, defaults to 0.

 While this field is statically accessible from 1.0, it's only bindable
 since version 1.2 and renderers supporting version 1.2 will use the dynamic
 value (if set).

 When using a dynamic value, make sure to specify the bounding constraints
 for the affected layout element through {@code
 setLayoutConstraintsForDynamicWidth(HorizontalLayoutConstraint)} otherwise
 {@code build()} fails.
 
.androidx.wear.protolayout.proto.SpacerDimension height = 2;

public boolean hasModifiers()

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.Modifiers modifiers = 3;

public ModifiersProto.Modifiers getModifiers()

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.Modifiers modifiers = 3;

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.Modifiers modifiers = 3;

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.Modifiers modifiers = 3;

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.Modifiers modifiers = 3;

public LayoutElementProto.Spacer.Builder clearModifiers()

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.Modifiers modifiers = 3;