In order to work successfully with Anko Layouts, you need to understand its use of the Anko Context and AnkoComponents. In this video, learn how the two work together to create DSL based layouts for your Android Views.
- [Instructor] In order to work successfully…with Anko layouts,…you need to understand its use of the AnkoContext…and Anko components.…First, you can think of the AnkoContext…as the container for all of your Android goodies.…It's an interface that holds a reference to the context,…which is needed to create views programmatically,…the owner of the created views, and the view itself.…Notice that it also implements another interface,…the ViewManager.…The ViewManager contains a few methods…for working with views, the most important of which…is the addView method.…
This takes in a view you want to add,…and then the LayoutParams, which describe…how this view should be positioned in its parent.…And that's it for the AnkoContext.…Next up is the Anko component.…This is where we define what views we want to have created.…This can be anything, from an entire screen's layout…to just a simple component.…And these views are defined using Anko's DSL.…DSL, as a refresher, stands for Domain-Specific Language.…
It can be thought of as a mini-language…
- What Kotlin has to offer
- Working with lambdas
- Common Android extension functions
- Kotlin Android Extensions overview
- Making use of the Anko library
- Working with coroutines
- Nullability and collections
Skill Level Intermediate
Android App Development: Data Persistence Librarieswith Annyce Davis4h 52m Intermediate
Developing AWS Lambda Functions with Kotlinwith Troy Miles1h 55m Intermediate
1. Kotlin Overview
2. Extension Functions and Properties
3. Incorporating Anko
4. Advanced Anko
5. Working with Collections
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.