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

ConstrainedLayoutAnchor

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

Anchor corresponding to the left or right of a child of the ConstraintLayout.

Summary

Public methods
infix Unit

Adds a constraint between a ConstrainedLayoutAnchor and a VerticalAnchor.

Properties
Dp

The margin to be applied to the current ConstrainedLayoutAnchor.

Public methods

constrainTo

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

Adds a constraint between a ConstrainedLayoutAnchor and a VerticalAnchor.

Properties

margin

var margin: Dp

The margin to be applied to the current ConstrainedLayoutAnchor.