Google is committed to advancing racial equity for Black communities. See how.

ConstrainedLayoutAnchor

class ConstrainedLayoutAnchor : ConstraintSetBuilderScope.HorizontalAnchor
kotlin.Any
   ↳ androidx.ui.layout.ConstraintSetBuilderScope.HorizontalAnchor
   ↳ androidx.ui.layout.ConstraintSetBuilderScope.HorizontalAnchor.ConstrainedLayoutAnchor

Anchor corresponding to the top or bottom of a child of the ConstraintLayout.

Summary

Public methods
infix Unit

Adds a constraint between a ConstrainedLayoutAnchor and a HorizontalAnchor.

Properties
Dp

The margin to be applied to the current ConstrainedLayoutAnchor.

Public methods

constrainTo

infix fun constrainTo(other: ConstraintSetBuilderScope.HorizontalAnchor): Unit

Adds a constraint between a ConstrainedLayoutAnchor and a HorizontalAnchor.

Properties

margin

var margin: Dp

The margin to be applied to the current ConstrainedLayoutAnchor.