January 2018
Intermediate to advanced
434 pages
14h 1m
English
It is worth understanding how Kotlin's synthetic properties work. Kotlin generates some extra code that helps us use our views like properties, naming the variables similar to that of the ID of the view. Basically, it is running findViewById() the first time we try to access a view as property and storing it in cache so that all the consecutive calls to the same view invoke findCachedViewById(), thus making the access a lot faster.
Read now
Unlock full access