Stay organized with collections Save and categorize content based on your preferences.

VerticalAnchorable

interface VerticalAnchorable
androidx.constraintlayout.compose.VerticalAnchorable

Represents a vertical side of a layout (i.e start and end) that can be anchored using linkTo in their Modifier.constrainAs blocks.

Summary

Public methods
abstract Unit
linkTo(anchor: ConstraintLayoutBaseScope.VerticalAnchor, margin: Dp = 0.dp, goneMargin: Dp = 0.dp)

Adds a link towards a ConstraintLayoutBaseScope.VerticalAnchor.

Public methods

linkTo

abstract fun linkTo(
    anchor: ConstraintLayoutBaseScope.VerticalAnchor,
    margin: Dp = 0.dp,
    goneMargin: Dp = 0.dp
): Unit

Adds a link towards a ConstraintLayoutBaseScope.VerticalAnchor.