public class Barrier extends HelperWidget
ConstraintWidget.DimensionBehaviour| Modifier and Type | Field and Description |
|---|---|
static int |
BOTTOM |
static int |
LEFT |
static int |
RIGHT |
static int |
TOP |
mWidgets, mWidgetsCountANCHOR_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, horizontalRun, 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, mIsHeightWrapContent, mIsWidthWrapContent, mLeft, mListAnchors, mListDimensionBehaviors, mListNextMatchConstraintsWidget, mMatchConstraintDefaultHeight, mMatchConstraintDefaultWidth, mMatchConstraintMaxHeight, mMatchConstraintMaxWidth, mMatchConstraintMinHeight, mMatchConstraintMinWidth, mMatchConstraintPercentHeight, mMatchConstraintPercentWidth, mMinHeight, mMinWidth, mNextChainWidget, mOffsetX, mOffsetY, mParent, mResolvedMatchConstraintDefault, mRight, mTop, mVerticalResolution, mWeight, mX, mY, run, SOLVER, stringId, UNKNOWN, VERTICAL, verticalChainRun, verticalGroup, verticalRun, VISIBLE, WRAP_BEHAVIOR_HORIZONTAL_ONLY, WRAP_BEHAVIOR_INCLUDED, WRAP_BEHAVIOR_SKIPPED, WRAP_BEHAVIOR_VERTICAL_ONLY| Constructor and Description |
|---|
Barrier() |
Barrier(java.lang.String debugName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToSolver(LinearSystem system,
boolean optimize)
Add this widget to the solver
|
boolean |
allowedInBarrier()
Returns true if this widget should be used in a barrier
|
boolean |
allowsGoneWidget()
Deprecated.
This method should be called
getAllowsGoneWidget such that allowsGoneWidget
can be accessed as a property from Kotlin; https://android.github.io/kotlin-guides/interop.html#property-prefixes.
Use getAllowsGoneWidget() instead. |
boolean |
allSolved() |
void |
copy(ConstraintWidget src,
java.util.HashMap<ConstraintWidget,ConstraintWidget> map) |
boolean |
getAllowsGoneWidget()
Find if this barrier supports gone widgets.
|
int |
getBarrierType() |
int |
getMargin() |
int |
getOrientation() |
boolean |
isResolvedHorizontally() |
boolean |
isResolvedVertically() |
protected void |
markWidgets() |
void |
setAllowsGoneWidget(boolean allowsGoneWidget) |
void |
setBarrierType(int barrierType) |
void |
setMargin(int margin) |
java.lang.String |
toString()
Returns a string representation of the ConstraintWidget
|
add, addDependents, findGroupInDependents, removeAllIds, updateConstraintsaddChildrenToSolverByDependency, 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, isHeightWrapContent, isHorizontalSolvingPassDone, isInBarrier, isInHorizontalChain, isInPlaceholder, isInVerticalChain, isInVirtualLayout, isMeasureRequested, isRoot, isSpreadHeight, isSpreadWidth, isVerticalSolvingPassDone, isWidthWrapContent, markHorizontalSolvingPassDone, markVerticalSolvingPassDone, oppositeDimensionDependsOn, oppositeDimensionsTied, reset, resetAllConstraints, resetAnchor, resetAnchors, resetFinalResolution, resetSolverVariables, resetSolvingPassFlag, serialize, 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, updateFromRuns, updateFromSolverpublic static final int LEFT
public static final int RIGHT
public static final int TOP
public static final int BOTTOM
public boolean allowedInBarrier()
ConstraintWidgetallowedInBarrier in class ConstraintWidgetpublic int getBarrierType()
public void setBarrierType(int barrierType)
public void setAllowsGoneWidget(boolean allowsGoneWidget)
@Deprecated public boolean allowsGoneWidget()
getAllowsGoneWidget such that allowsGoneWidget
can be accessed as a property from Kotlin; https://android.github.io/kotlin-guides/interop.html#property-prefixes.
Use getAllowsGoneWidget() instead.public boolean getAllowsGoneWidget()
public boolean isResolvedHorizontally()
isResolvedHorizontally in class ConstraintWidgetpublic boolean isResolvedVertically()
isResolvedVertically in class ConstraintWidgetpublic void copy(ConstraintWidget src, java.util.HashMap<ConstraintWidget,ConstraintWidget> map)
copy in class HelperWidgetpublic java.lang.String toString()
ConstraintWidgettoString in class ConstraintWidgetprotected void markWidgets()
public void addToSolver(LinearSystem system, boolean optimize)
addToSolver in class ConstraintWidgetsystem - the solver we want to add the widget tooptimize - true if Optimizer.OPTIMIZATION_GRAPH is onpublic void setMargin(int margin)
public int getMargin()
public int getOrientation()
public boolean allSolved()