What\'s Happening:
The list (RecyclerView)
is mixing up the data when I scroll.
I.E when I scr
In kotlin with clearing the previous items from the LinearLayout list item from the RecyclerView
override fun onBindViewHolder(view: MyViewHolder, index: Int) {
view.guideLinearLayout.removeAllViews()
/* do binding here*/
}
override fun getItemId(position: Int): Long {
return position.toLong()
}
override fun getItemViewType(position: Int): Int {
return position
}