public class HelperReference extends ConstraintReference implements Facade

Known direct subclasses
AlignHorizontallyReference
AlignVerticallyReference
BarrierReference
ChainReference

HelperReference for Chains.

FlowReference

The FlowReference class can be used to store the relevant properties of a Flow Helper when parsing the Flow Helper information in a JSON representation.

GridReference

A HelperReference of a Grid Helper that helps enable Grid in Compose


Summary

Protected fields

final State
ArrayList<Object>

Public constructors

Public methods

HelperReference
add(Object[] objects)
void
void

Allows the derived classes to invoke the apply method in the ConstraintReference

ConstraintWidget
HelperWidget
State.Helper
void

Inherited methods

From androidx.constraintlayout.core.state.ConstraintReference
void
addCustomColor(String name, int color)
void
addCustomFloat(String name, float value)
ConstraintReference
alpha(float alpha)
void

apply all the constraints attributes of the mConstraintWidget

ConstraintReference
ConstraintReference
ConstraintReference
ConstraintReference
baselineToTop(Object reference)
ConstraintReference
bias(float value)
ConstraintReference
ConstraintReference
ConstraintReference
bottomToTop(Object reference)
ConstraintReference
ConstraintReference
ConstraintReference
circularConstraint(Object reference, float angle, float distance)
ConstraintReference
ConstraintReference

Clears all constraints.

ConstraintReference
ConstraintReference
ConstraintWidget
ConstraintReference
end()
ConstraintReference
endToEnd(Object reference)
ConstraintReference
endToStart(Object reference)
float
Facade
Dimension
int
float
Object
float
float
float
float
float
float
float
String
float
float
float
int
getVerticalChainStyle(int chainStyle)
float
Object
Dimension
ConstraintReference
height(Dimension dimension)
ConstraintReference
horizontalBias(float value)
ConstraintReference
ConstraintReference
leftToLeft(Object reference)
ConstraintReference
leftToRight(Object reference)
ConstraintReference
margin(Object marginValue)
ConstraintReference
margin(int value)
ConstraintReference
marginGone(Object marginGoneValue)
ConstraintReference
marginGone(int value)
ConstraintReference
pivotX(float x)
ConstraintReference
pivotY(float y)
ConstraintReference
ConstraintReference
rightToLeft(Object reference)
ConstraintReference
rightToRight(Object reference)
ConstraintReference
rotationX(float x)
ConstraintReference
rotationY(float y)
ConstraintReference
rotationZ(float z)
ConstraintReference
scaleX(float x)
ConstraintReference
scaleY(float y)
void
void
setFacade(Facade facade)
ConstraintReference
setHeight(Dimension dimension)
void
setHorizontalChainStyle(int chainStyle)
void
void
void
void
setVerticalChainStyle(int chainStyle)
void
setVerticalChainWeight(float weight)
void
ConstraintReference
setWidth(Dimension dimension)
ConstraintReference
ConstraintReference
startToEnd(Object reference)
ConstraintReference
startToStart(Object reference)
ConstraintReference
top()
ConstraintReference
topToBottom(Object reference)
ConstraintReference
topToTop(Object reference)
ConstraintReference
translationX(float x)
ConstraintReference
translationY(float y)
ConstraintReference
translationZ(float z)
void

Validate the constraints

ConstraintReference
verticalBias(float value)
ConstraintReference
visibility(int visibility)
ConstraintReference
width(Dimension dimension)

Protected fields

mHelperState

Added in 1.1.0
protected final State mHelperState

mReferences

Added in 1.1.0
protected ArrayList<ObjectmReferences

Public constructors

HelperReference

Added in 1.1.0
public HelperReference(State state, State.Helper type)

Public methods

add

public HelperReference add(Object[] objects)

apply

public void apply()

applyBase

Added in 1.1.0
public void applyBase()

Allows the derived classes to invoke the apply method in the ConstraintReference

getConstraintWidget

public ConstraintWidget getConstraintWidget()

getHelperWidget

Added in 1.1.0
public HelperWidget getHelperWidget()

getType

Added in 1.1.0
public State.Helper getType()

setHelperWidget

Added in 1.1.0
public void setHelperWidget(HelperWidget helperWidget)