I'm dynamically adding Views to my items in a RecyclerView
. These added Views should only be related to the item which they're added to, but I'm having a problem when I scroll. It seems the View
is recycled and a new item is loaded, but those previously added views are still there, only now on the wrong item.
I'm assuming that it's just because the ViewHolder
is being reused, so the added items show up again with a new item, when loaded.
How would one go about solving this?