Class ChainReference
- java.lang.Object
-
- androidx.constraintlayout.core.state.ConstraintReference
-
- androidx.constraintlayout.core.state.HelperReference
-
- androidx.constraintlayout.core.state.helpers.ChainReference
-
- Direct Known Subclasses:
HorizontalChainReference,VerticalChainReference
public class ChainReference extends HelperReference
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class androidx.constraintlayout.core.state.ConstraintReference
ConstraintReference.ConstraintReferenceFactory
-
-
Field Summary
Fields Modifier and Type Field Description protected floatmBiasprotected java.util.HashMap<java.lang.String,java.lang.Float>mMapPostMarginprotected java.util.HashMap<java.lang.String,java.lang.Float>mMapPreMarginprotected java.util.HashMap<java.lang.String,java.lang.Float>mMapWeightsprotected State.ChainmStyle-
Fields inherited from class androidx.constraintlayout.core.state.HelperReference
mHelperState, mReferences
-
Fields inherited from class androidx.constraintlayout.core.state.ConstraintReference
mBottomToBottom, mBottomToTop, mEndToEnd, mEndToStart, mHorizontalBias, mLeftToLeft, mLeftToRight, mMarginBottom, mMarginBottomGone, mMarginEnd, mMarginEndGone, mMarginLeft, mMarginLeftGone, mMarginRight, mMarginRightGone, mMarginStart, mMarginStartGone, mMarginTop, mMarginTopGone, mRightToLeft, mRightToRight, mStartToEnd, mStartToStart, mTopToBottom, mTopToTop, mVerticalBias
-
-
Constructor Summary
Constructors Constructor Description ChainReference(State state, State.Helper type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChainElement(java.lang.String id, float weight, float preMargin, float postMargin)ChainReferencebias(float bias)floatgetBias()protected floatgetPostMargin(java.lang.String id)protected floatgetPreMargin(java.lang.String id)State.ChaingetStyle()protected floatgetWeight(java.lang.String id)ChainReferencestyle(State.Chain style)-
Methods inherited from class androidx.constraintlayout.core.state.HelperReference
add, apply, applyBase, getConstraintWidget, getHelperWidget, getType, setHelperWidget
-
Methods inherited from class androidx.constraintlayout.core.state.ConstraintReference
addCustomColor, addCustomFloat, alpha, applyWidgetConstraints, baseline, baselineToBaseline, baselineToBottom, baselineToTop, bottom, bottomToBottom, bottomToTop, centerHorizontally, centerVertically, circularConstraint, clear, clearAll, clearHorizontal, clearVertical, createConstraintWidget, end, endToEnd, endToStart, getAlpha, getFacade, getHeight, getHorizontalChainStyle, getHorizontalChainWeight, getKey, getPivotX, getPivotY, getRotationX, getRotationY, getRotationZ, getScaleX, getScaleY, getTag, getTranslationX, getTranslationY, getTranslationZ, getVerticalChainStyle, getVerticalChainWeight, getView, getWidth, height, horizontalBias, left, leftToLeft, leftToRight, margin, margin, marginGone, marginGone, pivotX, pivotY, right, rightToLeft, rightToRight, rotationX, rotationY, rotationZ, scaleX, scaleY, setConstraintWidget, setFacade, setHeight, setHorizontalChainStyle, setHorizontalChainWeight, setKey, setTag, setVerticalChainStyle, setVerticalChainWeight, setView, setWidth, start, startToEnd, startToStart, top, topToBottom, topToTop, translationX, translationY, translationZ, validate, verticalBias, visibility, width
-
-
-
-
Field Detail
-
mBias
protected float mBias
-
mMapWeights
protected java.util.HashMap<java.lang.String,java.lang.Float> mMapWeights
-
mMapPreMargin
protected java.util.HashMap<java.lang.String,java.lang.Float> mMapPreMargin
-
mMapPostMargin
protected java.util.HashMap<java.lang.String,java.lang.Float> mMapPostMargin
-
mStyle
protected State.Chain mStyle
-
-
Constructor Detail
-
ChainReference
public ChainReference(State state, State.Helper type)
-
-
Method Detail
-
getStyle
public State.Chain getStyle()
-
style
public ChainReference style(State.Chain style)
-
addChainElement
public void addChainElement(java.lang.String id, float weight, float preMargin, float postMargin)
-
getWeight
protected float getWeight(java.lang.String id)
-
getPostMargin
protected float getPostMargin(java.lang.String id)
-
getPreMargin
protected float getPreMargin(java.lang.String id)
-
getBias
public float getBias()
-
bias
public ChainReference bias(float bias)
- Overrides:
biasin classConstraintReference
-
-