You can use static bind method of ViewBinding to create binding from already existing layout. Add it as a property to viewholder:
class ViewHolder(view: View) : RecyclerView.ViewHolder(view) {
val binding = ItemListBinding.bind(view)
}
then you can access all the views through the binding field, for example:
override fun onBindViewHolder(holder: ViewHolder, position: Int) {
with(holder) {
// TODO
binding.tvMovieName.text = data[position].title
binding.imageView.setDrawableImage(data[position].image)
}
}