ConstraintsChangedListener

public abstract class ConstraintsChangedListener


Added in 2.0

Callbacks on state change

Summary

Public constructors

Public methods

void
postLayoutChange(int stateId, int constraintId)

called after layout happens

void
preLayoutChange(int stateId, int constraintId)

called before layout happens

Public constructors

ConstraintsChangedListener

Added in 2.2.0-alpha13
public ConstraintsChangedListener()

Public methods

postLayoutChange

Added in 2.2.0-alpha13
public void postLayoutChange(int stateId, int constraintId)

called after layout happens

Parameters
int stateId

-1 if state unknown, otherwise the current state

int constraintId

the current constraintSet id we transitioned to

preLayoutChange

Added in 2.2.0-alpha13
public void preLayoutChange(int stateId, int constraintId)

called before layout happens

Parameters
int stateId

-1 if state unknown, otherwise the state we will transition to

int constraintId

the constraintSet id that we will transition to