Last active
June 23, 2017 02:45
-
-
Save khunzohn/0a5a2218f0b3379a13fb52984ee32964 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
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_kotlin_extensions) | |
welcomeMessage.text = "Hello Kotlin!" | |
helloButton.setOnClickListener { toast.("Hello Kotlin") } | |
} | |
fun setMessaeg(message: String) { | |
welcomeMessage.text = message // this wont call findViewById again | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment