LayoutElementBuilders.ArcLine


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


A line that can be used in an Arc and renders as a round progress bar.

Summary

Nested types

Builder for ArcLine.

Public methods

@Nullable LayoutElementBuilders.ArcDirectionProp

Gets defines the direction in which line drawn.

@Nullable ColorBuilders.Brush

Gets a brush used to draw this line.

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

@Nullable ModifiersBuilders.ArcModifiers

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

@Nullable LayoutElementBuilders.StrokeCapProp

Gets the line stroke cap.

@Nullable DimensionBuilders.DpProp

Gets the thickness of this line.

@NonNull String

Public methods

getArcDirection

Added in 1.2.0
public @Nullable LayoutElementBuilders.ArcDirectionProp getArcDirection()

Gets defines the direction in which line drawn.

getBrush

Added in 1.1.0
public @Nullable ColorBuilders.Brush getBrush()

Gets a brush used to draw this line. If set, the brush will be used instead of the color provided in setColor().

getColor

Added in 1.0.0
public @Nullable ColorBuilders.ColorProp getColor()

Gets the color of this line.

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

If a brush is set, this color will not be used.

getLayoutConstraintsForDynamicLength

Added in 1.0.0
public @Nullable DimensionBuilders.AngularLayoutConstraint getLayoutConstraintsForDynamicLength()

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

getLength

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

Gets the length of this line, in degrees. 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 setLayoutConstraintsForDynamicLength(AngularLayoutConstraint) otherwise build() fails.

getStrokeCap

Added in 1.0.0
public @Nullable LayoutElementBuilders.StrokeCapProp getStrokeCap()

Gets the line stroke cap. If not defined, defaults to STROKE_CAP_ROUND.

getThickness

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

Gets the thickness of this line. If not defined, defaults to 0.

toString

public @NonNull String toString()