public class ChainHead


Class to represent a chain by its main elements.

Summary

Public constructors

ChainHead(ConstraintWidget first, int orientation, boolean isRtl)

Initialize variables, then determine visible widgets, the head of chain and matched constraint widgets.

Protected fields

mFirst

Added in 1.1.0-alpha14
protected ConstraintWidget mFirst

mFirstMatchConstraintWidget

Added in 1.1.0-alpha14
protected ConstraintWidget mFirstMatchConstraintWidget

mFirstVisibleWidget

Added in 1.1.0-alpha14
protected ConstraintWidget mFirstVisibleWidget

mHasComplexMatchWeights

Added in 1.1.0-alpha14
protected boolean mHasComplexMatchWeights

mHasDefinedWeights

Added in 1.1.0-alpha14
protected boolean mHasDefinedWeights

mHasRatio

Added in 1.1.0-alpha14
protected boolean mHasRatio

mHasUndefinedWeights

Added in 1.1.0-alpha14
protected boolean mHasUndefinedWeights

mHead

Added in 1.1.0-alpha14
protected ConstraintWidget mHead

mLast

Added in 1.1.0-alpha14
protected ConstraintWidget mLast

mLastMatchConstraintWidget

Added in 1.1.0-alpha14
protected ConstraintWidget mLastMatchConstraintWidget

mLastVisibleWidget

Added in 1.1.0-alpha14
protected ConstraintWidget mLastVisibleWidget

mTotalWeight

Added in 1.1.0-alpha14
protected float mTotalWeight

mWeightedMatchConstraintsWidgets

Added in 1.1.0-alpha14
protected ArrayList<ConstraintWidgetmWeightedMatchConstraintsWidgets

mWidgetsCount

Added in 1.1.0-alpha14
protected int mWidgetsCount

mWidgetsMatchCount

Added in 1.1.0-alpha14
protected int mWidgetsMatchCount

Public constructors

ChainHead

Added in 1.1.0-alpha14
public ChainHead(ConstraintWidget first, int orientation, boolean isRtl)

Initialize variables, then determine visible widgets, the head of chain and matched constraint widgets.

Parameters
ConstraintWidget first

first widget in a chain

int orientation

orientation of the chain (either Horizontal or Vertical)

boolean isRtl

Right-to-left layout flag to determine the actual head of the chain

Public methods

define

Added in 1.1.0-alpha14
public void define()

getFirst

Added in 1.1.0-alpha14
public ConstraintWidget getFirst()

getFirstMatchConstraintWidget

Added in 1.1.0-alpha14
public ConstraintWidget getFirstMatchConstraintWidget()

getFirstVisibleWidget

Added in 1.1.0-alpha14
public ConstraintWidget getFirstVisibleWidget()

getHead

Added in 1.1.0-alpha14
public ConstraintWidget getHead()

getLast

Added in 1.1.0-alpha14
public ConstraintWidget getLast()

getLastMatchConstraintWidget

Added in 1.1.0-alpha14
public ConstraintWidget getLastMatchConstraintWidget()

getLastVisibleWidget

Added in 1.1.0-alpha14
public ConstraintWidget getLastVisibleWidget()

getTotalWeight

Added in 1.1.0-alpha14
public float getTotalWeight()