Skip to content

Instantly share code, notes, and snippets.

@abohomol
Last active October 25, 2018 11:22
Show Gist options
  • Save abohomol/94a67ec2e80882a12dbddcb9e3faf429 to your computer and use it in GitHub Desktop.
Save abohomol/94a67ec2e80882a12dbddcb9e3faf429 to your computer and use it in GitHub Desktop.
Extensions example
fun View.hide() {
visibility = View.INVISIBLE
}
/* Now you can call the newly created method like this: */
val textView = TextView(context)
textView.hide()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment