Skip to content

Instantly share code, notes, and snippets.

@arunkumar9t2
Created September 20, 2018 23:13
Show Gist options
  • Save arunkumar9t2/1d2cd1f519a7d4e26818bd39abd1fe22 to your computer and use it in GitHub Desktop.
Save arunkumar9t2/1d2cd1f519a7d4e26818bd39abd1fe22 to your computer and use it in GitHub Desktop.
constraintLayout.prepareTransition {
auto {
standardEasing()
exclude(metamorphosisDesc2)
}
transitionSet {
fade()
slide()
accelerateEasing()
+metamorphosisDesc2
}
changeImage { add(*imageViews) }
onEnd {
constraintLayout.prepareTransition {
moveResize()
changeText {
+collapseButton
changeTextBehavior = CHANGE_BEHAVIOR_OUT_IN
}
}
collapseButton.setText(R.string.collapse)
}
duration = 300
}
expandConstraint.applyTo(constraintLayout)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment