Skip to content

Instantly share code, notes, and snippets.

@JillevdW
Created January 19, 2018 10:48
Show Gist options
  • Save JillevdW/04df1c1c6153cd8295f5630397a0d5f2 to your computer and use it in GitHub Desktop.
Save JillevdW/04df1c1c6153cd8295f5630397a0d5f2 to your computer and use it in GitHub Desktop.
AnimatorSet
fun AnimatorSet.onFinished(execute: Runnable, delay: Long) {
var animationDelay : Long = this.childAnimations.last().duration + this.childAnimations.last().startDelay
Handler().postDelayed({
execute.run()
},animationDelay + delay)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment