Skip to content
Advertisement

Model and list do not match when converting from java to kotlin

Whatever a video is made on Youtube, I do the same, Java language is used in the video, and I try to do it with Kotlin. I do exactly the same. I tried all the situations but could not fix them. I would be glad if you help

JavaScript

enter image description here

Advertisement

Answer

This is how I fixed it, but this time only the last value appears in the recyclerView @aldrin

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement