androidx.glance.wear.tiles.curved

Interfaces

CurvedChildScope

This interface is deprecated. glance-wear-tiles is deprecated and will be removed

CurvedScope

This interface is deprecated. glance-wear-tiles is deprecated and will be removed

GlanceCurvedModifier

This interface is deprecated. glance-wear-tiles is deprecated and will be removed

GlanceCurvedModifier.Element

This interface is deprecated. glance-wear-tiles is deprecated and will be removed

Classes

AnchorType

This class is deprecated. glance-wear-tiles is deprecated and will be removed

CombinedGlanceCurvedModifier

This class is deprecated. glance-wear-tiles is deprecated and will be removed

CurvedTextStyle

This class is deprecated. glance-wear-tiles is deprecated and will be removed

RadialAlignment

This class is deprecated. glance-wear-tiles is deprecated and will be removed

Objects

GlanceCurvedModifier.Companion

This object is deprecated. glance-wear-tiles is deprecated and will be removed

Annotations

CurvedScopeMarker

This annotation is deprecated. glance-wear-tiles is deprecated and will be removed

Top-level functions summary

Unit
@Composable
CurvedRow(
    modifier: GlanceModifier,
    anchorDegrees: Float,
    anchorType: AnchorType,
    radialAlignment: RadialAlignment,
    content: CurvedScope.() -> Unit
)

This function is deprecated. glance-wear-tiles is deprecated and will be removed

Extension functions summary

GlanceCurvedModifier

This function is deprecated. glance-wear-tiles is deprecated and will be removed

GlanceCurvedModifier

This function is deprecated. glance-wear-tiles is deprecated and will be removed

GlanceCurvedModifier

This function is deprecated. glance-wear-tiles is deprecated and will be removed

GlanceCurvedModifier

This function is deprecated. glance-wear-tiles is deprecated and will be removed

Top-level functions

@Composable
fun CurvedRow(
    modifier: GlanceModifier = GlanceModifier,
    anchorDegrees: Float = 270.0f,
    anchorType: AnchorType = AnchorType.Center,
    radialAlignment: RadialAlignment = RadialAlignment.Center,
    content: CurvedScope.() -> Unit
): Unit

A curved layout 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 parameters anchorDegrees and anchorType can be used to specify where to draw children within this circle. Each child will then be placed, one after the other, clockwise around the circle.

While this container can hold any composable element, only those built specifically to work inside of a CurvedRow container (e.g. CurvedScope.curvedText) will adapt themselves to the CurvedRow. Any other element wrapped in CurvedScope.curvedComposable will be drawn normally, at a tangent to the circle or straight up depending on the value of rotateContent.

Parameters
modifier: GlanceModifier = GlanceModifier

Modifiers for this container.

anchorDegrees: Float = 270.0f

The angle for the anchor in degrees, used with anchorType to determine where to draw children. Note that 0 degrees is the 3 o'clock position on a device, and the angle sweeps clockwise. 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.

anchorType: AnchorType = AnchorType.Center

Alignment of the contents of this container relative to anchorDegrees.

radialAlignment: RadialAlignment = RadialAlignment.Center

specifies where to lay down children that are thinner than the CurvedRow, either closer to the center (INNER), apart from the center (OUTER) or in the middle point (CENTER).

content: CurvedScope.() -> Unit

The content of this CurvedRow.

Extension functions

clickable

fun GlanceCurvedModifier.clickable(onClick: Action): GlanceCurvedModifier

Apply an Action, to be executed in response to a user click

semantics

fun GlanceCurvedModifier.semantics(properties: SemanticsPropertyReceiver.() -> Unit): GlanceCurvedModifier

Associate accessibility semantics with an element. This should generally be used sparingly, amd in mose cases should only be applied to the top-level layout element or clickable elements.

sweepAngleDegrees

fun GlanceCurvedModifier.sweepAngleDegrees(degrees: Float): GlanceCurvedModifier

Sets the sweep angle of the curved element, in degrees

thickness

fun GlanceCurvedModifier.thickness(thickness: Dp): GlanceCurvedModifier

Sets the thickness of the curved element, in Dp