Checking out the decompiled Java code of your Kotlin classes helps you get a better understanding of what’s happening behind the scenes. In this video, see how Kotlin Android Extensions work in more detail.
- [Instructor] Checking out the recompiled Java code…of your kotlin classes will help you…get a better understanding of what's happening…behind the scenes.…Lets take a look at the code…for our Planet List activity class…to see how Kotlin Android extensions work.…So we're going to use a quick action…and we're going to go to kotlin bi code.…And then we're going to click on decompile…so that it's easier to follow.…So the first thing that you notice as we scroll down…is that the planet list activity now has this…view cache which is just a hash map.…
So whenever we want to find elements of our view…this find cached view by ID method is executed.…So if we navigate to it,…we notice the first thing it tries to do…is create the hash map if it's empty.…Otherwise it looks into the hash map to get the view…and if it can't find it, then it does Androids…find view by ID lookup and stores it inside of the hash map.…So this is just a really nice experience…when working with our code…because we know that the find view by ID method…
- 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.