public class ConstraintReference extends java.lang.Object implements Reference
| Modifier and Type | Class and Description |
|---|---|
static interface |
ConstraintReference.ConstraintReferenceFactory |
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
mBottomToBottom |
protected java.lang.Object |
mBottomToTop |
protected java.lang.Object |
mEndToEnd |
protected java.lang.Object |
mEndToStart |
protected java.lang.Object |
mLeftToLeft |
protected java.lang.Object |
mLeftToRight |
protected int |
mMarginBottom |
protected int |
mMarginBottomGone |
protected int |
mMarginEnd |
protected int |
mMarginEndGone |
protected int |
mMarginLeft |
protected int |
mMarginLeftGone |
protected int |
mMarginRight |
protected int |
mMarginRightGone |
protected int |
mMarginStart |
protected int |
mMarginStartGone |
protected int |
mMarginTop |
protected int |
mMarginTopGone |
protected java.lang.Object |
mRightToLeft |
protected java.lang.Object |
mRightToRight |
protected java.lang.Object |
mStartToEnd |
protected java.lang.Object |
mStartToStart |
protected java.lang.Object |
mTopToBottom |
protected java.lang.Object |
mTopToTop |
| Constructor and Description |
|---|
ConstraintReference(State state) |
protected int mMarginLeft
protected int mMarginRight
protected int mMarginStart
protected int mMarginEnd
protected int mMarginTop
protected int mMarginBottom
protected int mMarginLeftGone
protected int mMarginRightGone
protected int mMarginStartGone
protected int mMarginEndGone
protected int mMarginTopGone
protected int mMarginBottomGone
protected java.lang.Object mLeftToLeft
protected java.lang.Object mLeftToRight
protected java.lang.Object mRightToLeft
protected java.lang.Object mRightToRight
protected java.lang.Object mStartToStart
protected java.lang.Object mStartToEnd
protected java.lang.Object mEndToStart
protected java.lang.Object mEndToEnd
protected java.lang.Object mTopToTop
protected java.lang.Object mTopToBottom
protected java.lang.Object mBottomToTop
protected java.lang.Object mBottomToBottom
public ConstraintReference(State state)
public void setTag(java.lang.String tag)
public java.lang.String getTag()
public void setView(java.lang.Object view)
public java.lang.Object getView()
public void setFacade(Facade facade)
public void setConstraintWidget(ConstraintWidget widget)
setConstraintWidget in interface Referencepublic ConstraintWidget getConstraintWidget()
getConstraintWidget in interface Referencepublic ConstraintWidget createConstraintWidget()
public void validate()
throws androidx.constraintlayout.core.state.ConstraintReference.IncorrectConstraintException
androidx.constraintlayout.core.state.ConstraintReference.IncorrectConstraintExceptionpublic void setHorizontalChainStyle(int chainStyle)
public int getHorizontalChainStyle()
public void setVerticalChainStyle(int chainStyle)
public int getVerticalChainStyle(int chainStyle)
public float getHorizontalChainWeight()
public void setHorizontalChainWeight(float weight)
public float getVerticalChainWeight()
public void setVerticalChainWeight(float weight)
public ConstraintReference clearVertical()
public ConstraintReference clearHorizontal()
public float getTranslationX()
public float getTranslationY()
public float getTranslationZ()
public float getScaleX()
public float getScaleY()
public float getAlpha()
public float getPivotX()
public float getPivotY()
public float getRotationX()
public float getRotationY()
public float getRotationZ()
public ConstraintReference pivotX(float x)
public ConstraintReference pivotY(float y)
public ConstraintReference rotationX(float x)
public ConstraintReference rotationY(float y)
public ConstraintReference rotationZ(float z)
public ConstraintReference translationX(float x)
public ConstraintReference translationY(float y)
public ConstraintReference translationZ(float z)
public ConstraintReference scaleX(float x)
public ConstraintReference scaleY(float y)
public ConstraintReference alpha(float alpha)
public ConstraintReference visibility(int visibility)
public ConstraintReference left()
public ConstraintReference right()
public ConstraintReference start()
public ConstraintReference end()
public ConstraintReference top()
public ConstraintReference bottom()
public ConstraintReference baseline()
public void addCustomColor(java.lang.String name,
int color)
public void addCustomFloat(java.lang.String name,
float value)
public ConstraintReference leftToLeft(java.lang.Object reference)
public ConstraintReference leftToRight(java.lang.Object reference)
public ConstraintReference rightToLeft(java.lang.Object reference)
public ConstraintReference rightToRight(java.lang.Object reference)
public ConstraintReference startToStart(java.lang.Object reference)
public ConstraintReference startToEnd(java.lang.Object reference)
public ConstraintReference endToStart(java.lang.Object reference)
public ConstraintReference endToEnd(java.lang.Object reference)
public ConstraintReference topToTop(java.lang.Object reference)
public ConstraintReference topToBottom(java.lang.Object reference)
public ConstraintReference bottomToTop(java.lang.Object reference)
public ConstraintReference bottomToBottom(java.lang.Object reference)
public ConstraintReference baselineToBaseline(java.lang.Object reference)
public ConstraintReference baselineToTop(java.lang.Object reference)
public ConstraintReference baselineToBottom(java.lang.Object reference)
public ConstraintReference centerHorizontally(java.lang.Object reference)
public ConstraintReference centerVertically(java.lang.Object reference)
public ConstraintReference circularConstraint(java.lang.Object reference, float angle, float distance)
public ConstraintReference width(Dimension dimension)
public ConstraintReference height(Dimension dimension)
public Dimension getWidth()
public ConstraintReference setWidth(Dimension dimension)
public Dimension getHeight()
public ConstraintReference setHeight(Dimension dimension)
public ConstraintReference margin(java.lang.Object marginValue)
public ConstraintReference marginGone(java.lang.Object marginGoneValue)
public ConstraintReference margin(int value)
public ConstraintReference marginGone(int value)
public ConstraintReference horizontalBias(float value)
public ConstraintReference verticalBias(float value)
public ConstraintReference bias(float value)
public ConstraintReference clear()