ConstraintLayoutStates


public class ConstraintLayoutStates


Summary

Constants

static final String
TAG = "ConstraintLayoutStates"

Public methods

boolean
needsToChange(int id, float width, float height)

Return true if it needs to change

void
setOnConstraintsChanged(
    ConstraintsChangedListener constraintsChangedListener
)
void
updateConstraints(int id, float width, float height)

updateConstraints for the view with the id and width and height

Constants

TAG

Added in 2.2.0
public static final String TAG = "ConstraintLayoutStates"

Public methods

needsToChange

Added in 2.2.0
public boolean needsToChange(int id, float width, float height)

Return true if it needs to change

Parameters
int id
float width
float height
Returns
boolean

setOnConstraintsChanged

Added in 2.2.0
public void setOnConstraintsChanged(
    ConstraintsChangedListener constraintsChangedListener
)

updateConstraints

Added in 2.2.0
public void updateConstraints(int id, float width, float height)

updateConstraints for the view with the id and width and height

Parameters
int id
float width
float height