January 2018
Intermediate to advanced
434 pages
14h 1m
English
The verticalLayout (which is a vertical linear layout) block is an extension function provided by Anko, which creates a new view instance and adds it to the parent. There are such extension functions for every view in the Android framework. For example, we used button and edit text as well in the preceding example. We can also use it as button(), which accepts a string parameter for text on the button or button{} if we want to set any properties on that view.
Read now
Unlock full access