LayoutElementBuilders.DashedArcLine


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


A dashed arc line that can be placed in an Arc container. It is an arc line made up of arc line segments separated by gaps.

Summary

Nested types

Builder for DashedArcLine.

Public methods

@Nullable LayoutElementBuilders.ArcDirectionProp

Gets the direction in which this line is drawn.

@Nullable ColorBuilders.ColorProp

Gets the color of this line.

@Nullable DimensionBuilders.AngularLayoutConstraint

Gets the bounding constraints for the layout affected by the dynamic value from getLength.

@Nullable DimensionBuilders.DegreesProp

Gets the length of this line in degrees, including gaps.

@Nullable LayoutElementBuilders.DashedLinePattern

Gets the dashed line pattern which describes how the arc line is segmented by gaps.

@Nullable ModifiersBuilders.ArcModifiers

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

@Dimension(unit = 0) float

Gets the thickness of this line.

@NonNull String

Public methods

getArcDirection

Added in 1.3.0-alpha04
public @Nullable LayoutElementBuilders.ArcDirectionProp getArcDirection()

Gets the direction in which this line is drawn.

getColor

Added in 1.3.0-alpha04
public @Nullable ColorBuilders.ColorProp getColor()

Gets the color of this line.

getLayoutConstraintsForDynamicLength

Added in 1.3.0-alpha04
public @Nullable DimensionBuilders.AngularLayoutConstraint getLayoutConstraintsForDynamicLength()

Gets the bounding constraints for the layout affected by the dynamic value from getLength.

getLength

Added in 1.3.0-alpha04
public @Nullable DimensionBuilders.DegreesProp getLength()

Gets the length of this line in degrees, including gaps.

When using a dynamic value, make sure to specify the bounding constraints for the affected layout element through setLayoutConstraintsForDynamicLength (AngularLayoutConstraint), otherwise build() fails.

getLinePattern

Added in 1.3.0-alpha04
public @Nullable LayoutElementBuilders.DashedLinePattern getLinePattern()

Gets the dashed line pattern which describes how the arc line is segmented by gaps.

getThickness

Added in 1.3.0-alpha04
public @Dimension(unit = 0) float getThickness()

Gets the thickness of this line.

toString

public @NonNull String toString()