Skip to content

Instantly share code, notes, and snippets.

@gpeal
Last active March 14, 2021 02:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save gpeal/30c2884d77e18c02760e6a3e8044d04f to your computer and use it in GitHub Desktop.
// Will fade myView in or out.
// You can call this repeatedly with the same value and it won't interrupt the ongoing animation.
myView.fadeTo(true)
myView.fadeTo(false)
myView.fadeTo(true, toAlpha = 0.8f)
myView.fadeTo(true, startDelay = 300)
myView.fadeTo(true, duration = 500)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment