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 |
|---|
public final class LayoutElementBuilders.ArcLine.BuilderBuilder for |
Public methods |
|
|---|---|
@Nullable LayoutElementBuilders.ArcDirectionProp |
Gets defines the direction in which line drawn. |
@Nullable ColorBuilders.Brush |
getBrush()Gets a brush used to draw this line. |
@Nullable ColorBuilders.ColorProp |
getColor()Gets the color of this line. |
@Nullable DimensionBuilders.AngularLayoutConstraint |
Gets the bounding constraints for the layout affected by the dynamic value from |
@Nullable DimensionBuilders.DegreesProp |
Gets the length of this line, in degrees. |
@Nullable ModifiersBuilders.ArcModifiers |
Gets |
@Nullable LayoutElementBuilders.StrokeCapProp |
Gets the line stroke cap. |
@Nullable DimensionBuilders.DpProp |
Gets the thickness of this line. |
@NonNull String |
toString() |
Public methods
getArcDirection
public @Nullable LayoutElementBuilders.ArcDirectionProp getArcDirection()
Gets defines the direction in which line drawn.
getBrush
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
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
public @Nullable DimensionBuilders.AngularLayoutConstraint getLayoutConstraintsForDynamicLength()
Gets the bounding constraints for the layout affected by the dynamic value from getLength.
getLength
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).
getModifiers
public @Nullable ModifiersBuilders.ArcModifiers getModifiers()
Gets androidx.wear.protolayout.ModifiersBuilders.Modifiers for this element.
getStrokeCap
public @Nullable LayoutElementBuilders.StrokeCapProp getStrokeCap()
Gets the line stroke cap. If not defined, defaults to STROKE_CAP_ROUND.
getThickness
public @Nullable DimensionBuilders.DpProp getThickness()
Gets the thickness of this line. If not defined, defaults to 0.