Created
September 20, 2018 23:13
-
-
Save arunkumar9t2/1d2cd1f519a7d4e26818bd39abd1fe22 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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