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

BaselineAnchorable

interface BaselineAnchorable
androidx.constraintlayout.compose.BaselineAnchorable

Represents the FirstBaseline of a layout that can be anchored using linkTo in their Modifier.constrainAs blocks.

Summary

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

Adds a link towards a ConstraintLayoutBaseScope.BaselineAnchor.

Public methods

linkTo

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

Adds a link towards a ConstraintLayoutBaseScope.BaselineAnchor.