I am new in kotlin. I have found and tried to use synthetic method instead of annoying method findViewById in my Activity class, but I have found \
findViewById
Activity
Try
class CustomViewModel(val baseView: View) { val firstName = baseView.firstName val lastName = baseView.lastName }
View object exposes the views ref:https://discuss.kotlinlang.org/t/unable-to-use-kotlin-android-extension-in-adapter-class/2890