class Chain


Chain management and constraints creation

Summary

Constants

const Boolean

Public constructors

Public functions

java-static Unit
applyChainConstraints(
    constraintWidgetContainer: ConstraintWidgetContainer!,
    system: LinearSystem!,
    widgets: ArrayList<ConstraintWidget!>!,
    orientation: Int
)

Apply specific rules for dealing with chains of widgets.

Constants

USE_CHAIN_OPTIMIZATION

Added in 1.1.0-alpha13
const val USE_CHAIN_OPTIMIZATION = false: Boolean

Public constructors

Chain

Added in 1.1.0-alpha13
Chain()

Public functions

applyChainConstraints

Added in 1.1.0-alpha13
java-static fun applyChainConstraints(
    constraintWidgetContainer: ConstraintWidgetContainer!,
    system: LinearSystem!,
    widgets: ArrayList<ConstraintWidget!>!,
    orientation: Int
): Unit

Apply specific rules for dealing with chains of widgets. Chains are defined as a list of widget linked together with bi-directional connections

Parameters
constraintWidgetContainer: ConstraintWidgetContainer!

root container

system: LinearSystem!

the linear system we add the equations to

orientation: Int

HORIZONTAL or VERTICAL