Currently, Kotlin Android Extensions supports access to layout id as extension property. But it only supports Activity and Fragment. It would be nice to support android.support.v7.widget.RecyclerView.ViewHolder, or provide some way to cache view, to improve performance.
It will be supported soon, please see Android Extensions: View holder pattern support and caching options by yanex · Pull Request #33 · Kotlin/KEEP · GitHub for more details.
1 Like