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 |
|---|
public final class LayoutElementBuilders.ArcSpacer.BuilderBuilder for |
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 |
@Nullable DimensionBuilders.DpProp |
Gets the thickness of this spacer, in DP. |
@NonNull String |
toString() |
Public methods
getAngularLength
public @Nullable DimensionBuilders.AngularDimension getAngularLength()
Gets the length of this spacer.
getLength
public @Nullable DimensionBuilders.DegreesProp getLength()
Gets the length of this spacer, in degrees. If not defined, defaults to 0.
getModifiers
public @Nullable ModifiersBuilders.ArcModifiers getModifiers()
Gets androidx.wear.protolayout.ModifiersBuilders.Modifiers for this element.
getThickness
public @Nullable DimensionBuilders.DpProp getThickness()
Gets the thickness of this spacer, in DP. If not defined, defaults to 0.