public final class

LayoutElementBuilders.Arc

extends java.lang.Object

implements LayoutElementBuilders.LayoutElement

 java.lang.Object

↳androidx.wear.protolayout.LayoutElementBuilders.Arc

Overview

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.

Note that when setting padding for the arc, if padding values (top, button, left, and right) are not equal, the largest between them will be used to apply padding uniformly to all sides.

Summary

Methods
public static LayoutElementBuilders.ArcfromProto(LayoutElementProto.Arc proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public DimensionBuilders.DegreesPropgetAnchorAngle()

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

public LayoutElementBuilders.ArcAnchorTypePropgetAnchorType()

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

public LayoutElementBuilders.ArcDirectionPropgetArcDirection()

Gets defines the direction in which child elements are laid out.

public java.util.List<LayoutElementBuilders.ArcLayoutElement>getContents()

Gets contents of this container.

public FingerprintgetFingerprint()

public ModifiersBuilders.ModifiersgetModifiers()

Gets ModifiersBuilders.Modifiers for this element.

public LayoutElementBuilders.VerticalAlignmentPropgetVerticalAlign()

Gets vertical alignment of elements within the arc.

public LayoutElementProto.LayoutElementtoLayoutElementProto()

public java.lang.StringtoString()

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Methods

public java.util.List<LayoutElementBuilders.ArcLayoutElement> getContents()

Gets contents of this container.

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

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

Gets how to align the contents of this container relative to anchor_angle. If not defined, defaults to ARC_ANCHOR_CENTER.

Gets vertical alignment of elements within the arc. If the LayoutElementBuilders.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.

public ModifiersBuilders.Modifiers getModifiers()

Gets ModifiersBuilders.Modifiers for this element.

Gets defines the direction in which child elements are laid out.

public Fingerprint getFingerprint()

public static LayoutElementBuilders.Arc fromProto(LayoutElementProto.Arc proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public LayoutElementProto.LayoutElement toLayoutElementProto()

public java.lang.String toString()