ConstraintsChangedListener

public abstract class ConstraintsChangedListener


Added in 2.0

Callbacks on state change

Summary

Public methods

@NonNull void
postLayoutChange(@NonNull int stateId, @NonNull int constraintId)

called after layout happens

@NonNull void
preLayoutChange(@NonNull int stateId, @NonNull int constraintId)

called before layout happens

Public methods

postLayoutChange

@NonNull
public void postLayoutChange(@NonNull int stateId, @NonNull int constraintId)

called after layout happens

Parameters
@NonNull int stateId

-1 if state unknown, otherwise the current state

@NonNull int constraintId

the current constraintSet id we transitioned to

preLayoutChange

@NonNull
public void preLayoutChange(@NonNull int stateId, @NonNull int constraintId)

called before layout happens

Parameters
@NonNull int stateId

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

@NonNull int constraintId

the constraintSet id that we will transition to