Class ChainHead


  • public class ChainHead
    extends java.lang.Object
    Class to represent a chain by its main elements.
    • Field Detail

      • mFirstMatchConstraintWidget

        protected ConstraintWidget mFirstMatchConstraintWidget
      • mLastMatchConstraintWidget

        protected ConstraintWidget mLastMatchConstraintWidget
      • mWeightedMatchConstraintsWidgets

        protected java.util.ArrayList<ConstraintWidget> mWeightedMatchConstraintsWidgets
      • mWidgetsCount

        protected int mWidgetsCount
      • mWidgetsMatchCount

        protected int mWidgetsMatchCount
      • mTotalWeight

        protected float mTotalWeight
      • mHasUndefinedWeights

        protected boolean mHasUndefinedWeights
      • mHasDefinedWeights

        protected boolean mHasDefinedWeights
      • mHasComplexMatchWeights

        protected boolean mHasComplexMatchWeights
      • mHasRatio

        protected boolean mHasRatio
    • Constructor Detail

      • ChainHead

        public ChainHead​(ConstraintWidget first,
                         int orientation,
                         boolean isRtl)
        Initialize variables, then determine visible widgets, the head of chain and matched constraint widgets.
        Parameters:
        first - first widget in a chain
        orientation - orientation of the chain (either Horizontal or Vertical)
        isRtl - Right-to-left layout flag to determine the actual head of the chain