ConstraintSetAnimator
open class ConstraintSetAnimator(layout: ConstraintLayout, duration: Int = 200, initialiseSet: (constraintSet: ConstraintSet) -> Unit)
Constraint Set Animator class
Example usage:
ConstraintSetAnimator(clMain, duration = 200) { newLayout -> newLayout.setVisibility(R.id.tvText, View.GONE) }
Callback should be used to set the other state of the constraint layout
Constructors
Link copied to clipboard
constructor(layout: ConstraintLayout, duration: Int = 200, initialiseSet: (constraintSet: ConstraintSet) -> Unit)