The following recipes will be covered in this chapter:
- Setting up Anko library for Anko layouts in Gradle
- Creating user-interface programmatically
- Working with the old code of XML layouts
- Using the provided AnkoComponent interface
- Setting theme for Android views in Anko
- Setting layout parameters for Anko views
-
Adding listeners to Anko views
-
Inserting XML layouts into DSL
-
Converting XML files into DSL
-
Showing Snackbar
-
Showing Toasts
-
Accessing views using synthetic properties
-
Accessing views of view groups using extension functions