i totally agree with you.. but the emphasize here ...
# android
f
i totally agree with you.. but the emphasize here is on how we can blindly import anything without it’s context!
e
The ide have no idea of what context it is using, its just too much variations to deal with, say one can also import the view when using
ViewHolder
for
RecyclerView
f
sorry my bad if i couldn’t clearly express my question. let me rephrase my question, i know it’s all upto us developers in the end to carefully import correct layouts, but still newbies are going to pickup a bad practice(i have seen ). apart from this, is there anything like performance cost while using these extension. or better if someone can point me to some doc where it explains how it exactly works behind the scenes
e
The official doc saids it uses cache to save the number of
findViewById
calls for the same view, you can check it out https://kotlinlang.org/docs/tutorials/android-plugin.html