What makes me puzzled is how to bind view in Recycleler.ViewHolder.
This is my simple adapter and how to Convert it to kotlin use kotlin-android-extensio
Others answered the question quite well, I just wanted to add that in class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) there should be no nullable operator ('?') after itemView for kotlin binding to work.
Android Studio automatically adds that nullable operator when using autocomplete for adding constructer parameters from ViewHolder(itemView).