public final class

LayoutElementProto.Spacer

extends <any>

implements LayoutElementProto.SpacerOrBuilder

 java.lang.Object

↳<any>

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

Overview

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

Summary

Fields
public static final intHEIGHT_FIELD_NUMBER

public static final intMODIFIERS_FIELD_NUMBER

public static final intWIDTH_FIELD_NUMBER

Methods
protected final java.lang.ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

public static LayoutElementProto.SpacergetDefaultInstance()

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 static LayoutElementProto.Spacer.BuildernewBuilder()

public static LayoutElementProto.Spacer.BuildernewBuilder(LayoutElementProto.Spacer prototype)

public static LayoutElementProto.SpacerparseDelimitedFrom(java.io.InputStream input)

public static LayoutElementProto.SpacerparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpacerparseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpacerparseFrom(java.nio.ByteBuffer data)

public static LayoutElementProto.SpacerparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpacerparseFrom(com.google.protobuf.ByteString data)

public static LayoutElementProto.SpacerparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpacerparseFrom(com.google.protobuf.CodedInputStream input)

public static LayoutElementProto.SpacerparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpacerparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static <any>parser()

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

Fields

public static final int WIDTH_FIELD_NUMBER

public static final int HEIGHT_FIELD_NUMBER

public static final int MODIFIERS_FIELD_NUMBER

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;

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;

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;

public static LayoutElementProto.Spacer parseFrom(java.nio.ByteBuffer data)

public static LayoutElementProto.Spacer parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.Spacer parseFrom(com.google.protobuf.ByteString data)

public static LayoutElementProto.Spacer parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.Spacer parseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.Spacer parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.Spacer parseDelimitedFrom(java.io.InputStream input)

public static LayoutElementProto.Spacer parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.Spacer parseFrom(com.google.protobuf.CodedInputStream input)

public static LayoutElementProto.Spacer parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.Spacer.Builder newBuilder()

protected final java.lang.Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

public static LayoutElementProto.Spacer getDefaultInstance()

public static <any> parser()