kotlin - How synthetic property initialise view?
问题 I used synthetic property in my code.But wondering for how and when it actually initialise each view in android. We simply provide import and access each view by its id. When it allocate memory for view object? 回答1: This is easy enough to investigate by decompiling a Kotlin file where you use Kotlin Android Extensions. (You can do this by going to Tools -> Kotlin -> Show Kotlin Bytecode and then choosing Decompile in the pane that appears.) In short, it's nothing magical, it just uses