constrain

abstract fun constrain(view: View, constraints: ConstraintDslContext.(Bounds) -> Unit): ConstraintLayout

Add constraints for view.

Return

Layout with additional constraints

Parameters

view

being constrained

constraints

being applied


abstract fun constrain(first: View, second: View, constraints: ConstraintDslContext.(Bounds, Bounds) -> Unit): ConstraintLayout

Add constraints for 2 Views.

Return

Layout with additional constraints

Parameters

first

being constrained

second

being constrained

constraints

being applied


abstract fun constrain(first: View, second: View, third: View, constraints: ConstraintDslContext.(Bounds, Bounds, Bounds) -> Unit): ConstraintLayout

Add constraints for 3 Views.

Return

Layout with additional constraints

Parameters

first

View being constrained

second

View being constrained

third

View being constrained

constraints

being applied


abstract fun constrain(first: View, second: View, third: View, fourth: View, constraints: ConstraintDslContext.(Bounds, Bounds, Bounds, Bounds) -> Unit): ConstraintLayout

Add constraints for 4 Views.

Return

Layout with additional constraints

Parameters

first

first View being constrained

second

second View being constrained

third

third View being constrained

fourth

fourth View being constrained

constraints

being applied


abstract fun constrain(first: View, second: View, third: View, fourth: View, fifth: View, constraints: ConstraintDslContext.(Bounds, Bounds, Bounds, Bounds, Bounds) -> Unit): ConstraintLayout

Add constraints for 5 Views.

Return

Layout with additional constraints

Parameters

first

View being constrained

second

View being constrained

third

View being constrained

fourth

View being constrained

fifth

View being constrained

constraints

being applied


abstract fun constrain(first: View, second: View, vararg others: View, constraints: ConstraintDslContext.(List<Bounds>) -> Unit): ConstraintLayout

Add constraints for several Views.

Return

Layout with additional constraints

Parameters

first

View being constrained

second

View being constrained

others

Views being constrained

constraints

being applied