Created
May 2, 2022 14:55
-
-
Save wwdablu/27fa3c86a69a6ca3379bb97d3a5f3a1a 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
textViewAnimator | |
.typewrite("Android animation library") | |
.then(waitFor = 1000) { | |
imageViewAnimator.flipAndSetImage(Axis.X, R.drawable.ic_love, 300) | |
textViewAnimator.typewrite("ViewAnimator") | |
.then(waitFor = 1000) { | |
var heartBeat = 0 | |
imageViewAnimator.loop({ viewAnimator, callback -> | |
viewAnimator.scale(2F, 100).then { | |
it.scale(1F, 100).then { | |
callback.done() | |
} | |
} | |
}, fun(): Boolean { | |
return heartBeat++ != 2 | |
}, {}) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment