LayoutElementBuilders.Arc

Added in 1.0.0
Deprecated in 1.2.0

public final class LayoutElementBuilders.Arc implements LayoutElementBuilders.LayoutElement


An arc container. This container will fill itself to a circle, which fits inside its parent container, and all of its children will be placed on that circle. The fields anchor_angle and anchor_type can be used to specify where to draw children within this circle.

Summary

Nested types

Builder for Arc.

Public methods

@Nullable DimensionBuilders.DegreesProp

Gets the angle for the anchor, used with anchor_type to determine where to draw children.

@Nullable LayoutElementBuilders.ArcAnchorTypeProp

Gets how to align the contents of this container relative to anchor_angle.

@NonNull List<LayoutElementBuilders.ArcLayoutElement>

Gets contents of this container.

@Nullable ModifiersBuilders.Modifiers

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

@Nullable LayoutElementBuilders.VerticalAlignmentProp

Gets vertical alignment of elements within the arc.

Public methods

getAnchorAngle

Added in 1.0.0
Deprecated in 1.2.0
public @Nullable DimensionBuilders.DegreesProp getAnchorAngle()

Gets the angle for the anchor, used with anchor_type to determine where to draw children. Note that 0 degrees is the 12 o clock position on a device, and the angle sweeps clockwise. If not defined, defaults to 0 degrees.

Values do not have to be clamped to the range 0-360; values less than 0 degrees will sweep anti-clockwise (i.e. -90 degrees is equivalent to 270 degrees), and values >360 will be be placed at X mod 360 degrees. Intended for testing purposes only.

getAnchorType

Added in 1.0.0
Deprecated in 1.2.0
public @Nullable LayoutElementBuilders.ArcAnchorTypeProp getAnchorType()

Gets how to align the contents of this container relative to anchor_angle. If not defined, defaults to ARC_ANCHOR_CENTER. Intended for testing purposes only.

getContents

Added in 1.0.0
Deprecated in 1.2.0
public @NonNull List<LayoutElementBuilders.ArcLayoutElementgetContents()

Gets contents of this container. Intended for testing purposes only.

getModifiers

Added in 1.0.0
Deprecated in 1.2.0
public @Nullable ModifiersBuilders.Modifiers getModifiers()

Gets androidx.wear.tiles.ModifiersBuilders.Modifiers for this element. Intended for testing purposes only.

getVerticalAlign

Added in 1.0.0
Deprecated in 1.2.0
public @Nullable LayoutElementBuilders.VerticalAlignmentProp getVerticalAlign()

Gets vertical alignment of elements within the arc. If the Arc's thickness is larger than the thickness of the element being drawn, this controls whether the element should be drawn towards the inner or outer edge of the arc, or drawn in the center. If not defined, defaults to VERTICAL_ALIGN_CENTER. Intended for testing purposes only.