ConstraintsChangedListener

abstract class ConstraintsChangedListener


Added in 2.0

Callbacks on state change

Summary

Public functions

Unit
postLayoutChange(stateId: Int, constraintId: Int)

called after layout happens

Unit
preLayoutChange(stateId: Int, constraintId: Int)

called before layout happens

Public functions

postLayoutChange

fun postLayoutChange(stateId: Int, constraintId: Int): Unit

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

fun preLayoutChange(stateId: Int, constraintId: Int): Unit

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