public interface

LayoutElementProto.SpacerOrBuilder

 androidx.wear.protolayout.proto.LayoutElementProto.SpacerOrBuilder

Subclasses:

LayoutElementProto.Spacer, LayoutElementProto.Spacer.Builder

Summary

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

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;

Returns:

Whether the width field is set.

 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;

Returns:

The width.

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;

Returns:

Whether the height field is set.

 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;

Returns:

The height.

public boolean hasModifiers()

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

Returns:

Whether the modifiers field is set.

public ModifiersProto.Modifiers getModifiers()

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

Returns:

The modifiers.