Created
November 15, 2016 12:52
-
-
Save sembozdemir/f2bf171653f7644bac666f12882d81cf to your computer and use it in GitHub Desktop.
Sample Anko DSL
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
verticalLayout { | |
val name = editText() | |
button("Say Hello") { | |
onClick { toast("Hello, ${name.text}!") } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment