class ChainHead


Class to represent a chain by its main elements.

Summary

Public constructors

ChainHead(first: ConstraintWidget!, orientation: Int, isRtl: Boolean)

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

Public constructors

ChainHead

Added in 1.1.2
ChainHead(first: ConstraintWidget!, orientation: Int, isRtl: Boolean)

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

Parameters
first: ConstraintWidget!

first widget in a chain

orientation: Int

orientation of the chain (either Horizontal or Vertical)

isRtl: Boolean

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

Public functions

define

Added in 1.1.2
fun define(): Unit

getFirst

Added in 1.1.2
fun getFirst(): ConstraintWidget!

getFirstMatchConstraintWidget

Added in 1.1.2
fun getFirstMatchConstraintWidget(): ConstraintWidget!

getFirstVisibleWidget

Added in 1.1.2
fun getFirstVisibleWidget(): ConstraintWidget!

getHead

Added in 1.1.2
fun getHead(): ConstraintWidget!

getLast

Added in 1.1.2
fun getLast(): ConstraintWidget!

getLastMatchConstraintWidget

Added in 1.1.2
fun getLastMatchConstraintWidget(): ConstraintWidget!

getLastVisibleWidget

Added in 1.1.2
fun getLastVisibleWidget(): ConstraintWidget!

getTotalWeight

Added in 1.1.2
fun getTotalWeight(): Float

Protected properties

mFirst

Added in 1.1.2
protected val mFirst: ConstraintWidget!

mFirstMatchConstraintWidget

Added in 1.1.2
protected val mFirstMatchConstraintWidget: ConstraintWidget!

mFirstVisibleWidget

Added in 1.1.2
protected val mFirstVisibleWidget: ConstraintWidget!

mHasComplexMatchWeights

Added in 1.1.2
protected val mHasComplexMatchWeights: Boolean

mHasDefinedWeights

Added in 1.1.2
protected val mHasDefinedWeights: Boolean

mHasRatio

Added in 1.1.2
protected val mHasRatio: Boolean

mHasUndefinedWeights

Added in 1.1.2
protected val mHasUndefinedWeights: Boolean

mHead

Added in 1.1.2
protected val mHead: ConstraintWidget!

mLast

Added in 1.1.2
protected val mLast: ConstraintWidget!

mLastMatchConstraintWidget

Added in 1.1.2
protected val mLastMatchConstraintWidget: ConstraintWidget!

mLastVisibleWidget

Added in 1.1.2
protected val mLastVisibleWidget: ConstraintWidget!

mTotalWeight

Added in 1.1.2
protected val mTotalWeight: Float

mWeightedMatchConstraintsWidgets

Added in 1.1.2
protected val mWeightedMatchConstraintsWidgets: ArrayList<ConstraintWidget!>!

mWidgetsCount

Added in 1.1.2
protected val mWidgetsCount: Int

mWidgetsMatchCount

Added in 1.1.2
protected val mWidgetsMatchCount: Int