Class HelperWidget
- java.lang.Object
-
- androidx.constraintlayout.core.widgets.ConstraintWidget
-
- androidx.constraintlayout.core.widgets.HelperWidget
-
- All Implemented Interfaces:
Helper
- Direct Known Subclasses:
Barrier,VirtualLayout
public class HelperWidget extends ConstraintWidget implements Helper
HelperWidget class
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class androidx.constraintlayout.core.widgets.ConstraintWidget
ConstraintWidget.DimensionBehaviour
-
-
Field Summary
Fields Modifier and Type Field Description ConstraintWidget[]mWidgetsintmWidgetsCount-
Fields inherited from class androidx.constraintlayout.core.widgets.ConstraintWidget
ANCHOR_BASELINE, ANCHOR_BOTTOM, ANCHOR_LEFT, ANCHOR_RIGHT, ANCHOR_TOP, BOTH, CHAIN_PACKED, CHAIN_SPREAD, CHAIN_SPREAD_INSIDE, DEFAULT_BIAS, DIRECT, frame, GONE, HORIZONTAL, horizontalChainRun, horizontalGroup, INVISIBLE, isTerminalWidget, mAnchors, MATCH_CONSTRAINT_PERCENT, MATCH_CONSTRAINT_RATIO, MATCH_CONSTRAINT_RATIO_RESOLVED, MATCH_CONSTRAINT_SPREAD, MATCH_CONSTRAINT_WRAP, mBaseline, mBottom, mCenter, mDimensionRatio, mDimensionRatioSide, measured, mHorizontalResolution, mHorizontalRun, mIsHeightWrapContent, mIsWidthWrapContent, mLeft, mListAnchors, mListDimensionBehaviors, mListNextMatchConstraintsWidget, mMatchConstraintDefaultHeight, mMatchConstraintDefaultWidth, mMatchConstraintMaxHeight, mMatchConstraintMaxWidth, mMatchConstraintMinHeight, mMatchConstraintMinWidth, mMatchConstraintPercentHeight, mMatchConstraintPercentWidth, mMinHeight, mMinWidth, mNextChainWidget, mOffsetX, mOffsetY, mParent, mResolvedMatchConstraintDefault, mRight, mTop, mVerticalResolution, mVerticalRun, mWeight, mX, mY, run, SOLVER, stringId, UNKNOWN, VERTICAL, verticalChainRun, verticalGroup, VISIBLE, WRAP_BEHAVIOR_HORIZONTAL_ONLY, WRAP_BEHAVIOR_INCLUDED, WRAP_BEHAVIOR_SKIPPED, WRAP_BEHAVIOR_VERTICAL_ONLY
-
-
Constructor Summary
Constructors Constructor Description HelperWidget()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(ConstraintWidget widget)Add a widget to the helpervoidaddDependents(java.util.ArrayList<WidgetGroup> dependencyLists, int orientation, WidgetGroup group)voidcopy(ConstraintWidget src, java.util.HashMap<ConstraintWidget,ConstraintWidget> map)intfindGroupInDependents(int orientation)voidremoveAllIds()Reset the widgets list contained by this helpervoidupdateConstraints(ConstraintWidgetContainer container)-
Methods inherited from class androidx.constraintlayout.core.widgets.ConstraintWidget
addChildrenToSolverByDependency, addToSolver, allowedInBarrier, connect, connect, connect, connectCircularConstraint, createObjectVariables, ensureMeasureRequested, ensureWidgetRuns, getAnchor, getAnchors, getBaselineDistance, getBiasPercent, getBottom, getCompanionWidget, getContainerItemSkip, getDebugName, getDimensionBehaviour, getDimensionRatio, getDimensionRatioSide, getHasBaseline, getHeight, getHorizontalBiasPercent, getHorizontalChainControlWidget, getHorizontalChainStyle, getHorizontalDimensionBehaviour, getHorizontalMargin, getLastHorizontalMeasureSpec, getLastVerticalMeasureSpec, getLeft, getLength, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getNextChainMember, getOptimizerWrapHeight, getOptimizerWrapWidth, getParent, getPreviousChainMember, getRight, getRootX, getRootY, getRun, getSceneString, getTop, getType, getVerticalBiasPercent, getVerticalChainControlWidget, getVerticalChainStyle, getVerticalDimensionBehaviour, getVerticalMargin, getVisibility, getWidth, getWrapBehaviorInParent, getX, getY, hasBaseline, hasDanglingDimension, hasDependencies, hasDimensionOverride, hasResolvedTargets, immediateConnect, isAnimated, isHeightWrapContent, isHorizontalSolvingPassDone, isInBarrier, isInHorizontalChain, isInPlaceholder, isInVerticalChain, isInVirtualLayout, isMeasureRequested, isResolvedHorizontally, isResolvedVertically, isRoot, isSpreadHeight, isSpreadWidth, isVerticalSolvingPassDone, isWidthWrapContent, markHorizontalSolvingPassDone, markVerticalSolvingPassDone, oppositeDimensionDependsOn, oppositeDimensionsTied, reset, resetAllConstraints, resetAnchor, resetAnchors, resetFinalResolution, resetSolverVariables, resetSolvingPassFlag, serialize, setAnimated, setBaselineDistance, setCompanionWidget, setContainerItemSkip, setDebugName, setDebugSolverName, setDimension, setDimensionRatio, setDimensionRatio, setFinalBaseline, setFinalFrame, setFinalHorizontal, setFinalLeft, setFinalTop, setFinalVertical, setFrame, setFrame, setGoneMargin, setHasBaseline, setHeight, setHeightWrapContent, setHorizontalBiasPercent, setHorizontalChainStyle, setHorizontalDimension, setHorizontalDimensionBehaviour, setHorizontalMatchStyle, setHorizontalWeight, setInBarrier, setInPlaceholder, setInVirtualLayout, setLastMeasureSpec, setLength, setMaxHeight, setMaxWidth, setMeasureRequested, setMinHeight, setMinWidth, setOffset, setOrigin, setParent, setType, setupDimensionRatio, setVerticalBiasPercent, setVerticalChainStyle, setVerticalDimension, setVerticalDimensionBehaviour, setVerticalMatchStyle, setVerticalWeight, setVisibility, setWidth, setWidthWrapContent, setWrapBehaviorInParent, setX, setY, toString, updateFromRuns, updateFromSolver
-
-
-
-
Field Detail
-
mWidgets
public ConstraintWidget[] mWidgets
-
mWidgetsCount
public int mWidgetsCount
-
-
Method Detail
-
updateConstraints
public void updateConstraints(ConstraintWidgetContainer container)
- Specified by:
updateConstraintsin interfaceHelper
-
add
public void add(ConstraintWidget widget)
Add a widget to the helper
-
copy
public void copy(ConstraintWidget src, java.util.HashMap<ConstraintWidget,ConstraintWidget> map)
- Overrides:
copyin classConstraintWidget
-
removeAllIds
public void removeAllIds()
Reset the widgets list contained by this helper- Specified by:
removeAllIdsin interfaceHelper
-
addDependents
public void addDependents(java.util.ArrayList<WidgetGroup> dependencyLists, int orientation, WidgetGroup group)
-
findGroupInDependents
public int findGroupInDependents(int orientation)
-
-