Created
February 26, 2020 17:13
-
-
Save AmaroNeto/f7e403fa354174d22d8871920319f81c 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
private fun expandAnimation() { | |
val changeColor = AnimatorUtils.changeColor( | |
cardBox::setCardBackgroundColor, | |
ContextCompat.getColor(this, R.color.red), | |
ContextCompat.getColor(this,R.color.white), | |
500) | |
val resize = AnimatorUtils.resize(cardBox, oldHeight, newHeight, 300) | |
val fadeOut = AnimatorUtils.hideWithFadeOut(intro, 200) | |
val fadeIn = AnimatorUtils.showWithFadeIn(detail, 300) | |
AnimatorSet().apply { | |
playTogether(changeColor, resize, fadeOut) | |
play(fadeIn).after(fadeOut) | |
start() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment