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

HorizontalAnchorable

interface HorizontalAnchorable
androidx.constraintlayout.compose.HorizontalAnchorable

Represents a horizontal side of a layout (i.e top and bottom) that can be anchored using linkTo in their Modifier.constrainAs blocks.

Summary

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

Adds a link towards a ConstraintLayoutBaseScope.HorizontalAnchor.

Public methods

linkTo

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

Adds a link towards a ConstraintLayoutBaseScope.HorizontalAnchor.