December 2017
Intermediate to advanced
260 pages
7h 34m
English
Using DSL, Anko also supports creating dynamic layouts. Just to give you an idea, the following code can create a simple EditText with a button following it:
verticalLayout {
val name = editText()
button("Say Hello") {
onClick { toast("Hello, ${name.text}!") }
}
}
And the screen will look like the following:

Read now
Unlock full access