Last active
October 25, 2018 11:22
-
-
Save abohomol/94a67ec2e80882a12dbddcb9e3faf429 to your computer and use it in GitHub Desktop.
Extensions example
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
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