LayoutElementBuilders.ArcSpacer


@RequiresSchemaVersion(major = 1, minor = 0)
public final class LayoutElementBuilders.ArcSpacer implements LayoutElementBuilders.ArcLayoutElement


A simple spacer used to provide padding between adjacent elements in an Arc.

Summary

Nested types

Builder for ArcSpacer.

Public methods

@Nullable DimensionBuilders.AngularDimension

Gets the length of this spacer.

@Nullable DimensionBuilders.DegreesProp

Gets the length of this spacer, in degrees.

@Nullable ModifiersBuilders.ArcModifiers

Gets androidx.wear.protolayout.ModifiersBuilders.Modifiers for this element.

@Nullable DimensionBuilders.DpProp

Gets the thickness of this spacer, in DP.

@NonNull String

Public methods

getAngularLength

Added in 1.3.0-alpha05
public @Nullable DimensionBuilders.AngularDimension getAngularLength()

Gets the length of this spacer.

getLength

Added in 1.0.0
public @Nullable DimensionBuilders.DegreesProp getLength()

Gets the length of this spacer, in degrees. If not defined, defaults to 0.

getThickness

Added in 1.0.0
public @Nullable DimensionBuilders.DpProp getThickness()

Gets the thickness of this spacer, in DP. If not defined, defaults to 0.

toString

public @NonNull String toString()