interface BaselineAnchorable


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

Summary

Public functions

Unit
linkTo(
    anchor: ConstraintLayoutBaseScope.BaselineAnchor,
    margin: Dp,
    goneMargin: Dp
)

Adds a link towards a ConstraintLayoutBaseScope.BaselineAnchor.

Unit
linkTo(
    anchor: ConstraintLayoutBaseScope.HorizontalAnchor,
    margin: Dp,
    goneMargin: Dp
)

Adds a link towards a ConstraintLayoutBaseScope.HorizontalAnchor.

Public functions

linkTo

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

Adds a link towards a ConstraintLayoutBaseScope.BaselineAnchor.

linkTo

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

Adds a link towards a ConstraintLayoutBaseScope.HorizontalAnchor.