ConstraintsChangedListener

public abstract class ConstraintsChangedListener
extends Object

java.lang.Object
   ↳ android.support.constraint.ConstraintsChangedListener


Added in 2.0

Callbacks on state change

Summary

Public constructors

ConstraintsChangedListener()

Public methods

void postLayoutChange(int stateId, int constraintId)

called after layout happens

void preLayoutChange(int stateId, int constraintId)

called before layout happens

Inherited methods

Object clone()
boolean equals(Object arg0)
void finalize()
final Class<?> getClass()
int hashCode()
final void notify()
final void notifyAll()
String toString()
final void wait(long arg0, int arg1)
final void wait(long arg0)
final void wait()

Public constructors

ConstraintsChangedListener

public ConstraintsChangedListener ()

Public methods

postLayoutChange

public void postLayoutChange (int stateId, 
                int constraintId)

called after layout happens

Parameters
stateId int: -1 if state unknown, otherwise the current state

constraintId int: the current constraintSet id we transitioned to

preLayoutChange

public void preLayoutChange (int stateId, 
                int constraintId)

called before layout happens

Parameters
stateId int: -1 if state unknown, otherwise the state we will transition to

constraintId int: the constraintSet id that we will transition to