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.0
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.0
fun define(): Unit

getFirst

Added in 1.1.0
fun getFirst(): ConstraintWidget!

getFirstMatchConstraintWidget

Added in 1.1.0
fun getFirstMatchConstraintWidget(): ConstraintWidget!

getFirstVisibleWidget

Added in 1.1.0
fun getFirstVisibleWidget(): ConstraintWidget!

getHead

Added in 1.1.0
fun getHead(): ConstraintWidget!

getLast

Added in 1.1.0
fun getLast(): ConstraintWidget!

getLastMatchConstraintWidget

Added in 1.1.0
fun getLastMatchConstraintWidget(): ConstraintWidget!

getLastVisibleWidget

Added in 1.1.0
fun getLastVisibleWidget(): ConstraintWidget!

getTotalWeight

Added in 1.1.0
fun getTotalWeight(): Float

Protected properties

mFirst

Added in 1.1.0
protected val mFirstConstraintWidget!

mFirstMatchConstraintWidget

Added in 1.1.0
protected val mFirstMatchConstraintWidgetConstraintWidget!

mFirstVisibleWidget

Added in 1.1.0
protected val mFirstVisibleWidgetConstraintWidget!

mHasComplexMatchWeights

Added in 1.1.0
protected val mHasComplexMatchWeightsBoolean

mHasDefinedWeights

Added in 1.1.0
protected val mHasDefinedWeightsBoolean

mHasRatio

Added in 1.1.0
protected val mHasRatioBoolean

mHasUndefinedWeights

Added in 1.1.0
protected val mHasUndefinedWeightsBoolean

mHead

Added in 1.1.0
protected val mHeadConstraintWidget!

mLast

Added in 1.1.0
protected val mLastConstraintWidget!

mLastMatchConstraintWidget

Added in 1.1.0
protected val mLastMatchConstraintWidgetConstraintWidget!

mLastVisibleWidget

Added in 1.1.0
protected val mLastVisibleWidgetConstraintWidget!

mTotalWeight

Added in 1.1.0
protected val mTotalWeightFloat

mWeightedMatchConstraintsWidgets

Added in 1.1.0
protected val mWeightedMatchConstraintsWidgetsArrayList<ConstraintWidget!>!

mWidgetsCount

Added in 1.1.0
protected val mWidgetsCountInt

mWidgetsMatchCount

Added in 1.1.0
protected val mWidgetsMatchCountInt