January 2018
Intermediate to advanced
434 pages
14h 1m
English
If we use the AnkoComponent interface for creating our DSL in another class, we can also preview our layout DSL using the Anko support plugin.
For doing so, first add Anko support plugin from plugins in Android Studio settings. After that, put the cursor somewhere inside the MainActivityUI declaration, open the Anko Layout Preview tool window by clicking on View|Tool Windows|Anko Layout Preview, and press Refresh.
If the layout preview is not being rendered properly, rebuild the project. This is how the window looks:

Read now
Unlock full access