Closed ppamorim closed 7 years ago
Why are you checking holder.adapterPosition
? In onBindViewHolder
You are given a new position for an item from your dataset to bind into the holder. That's all that matters.
Please reopen if you can expand on the issue.
Please add on readme to be careful of ViewHolder position, after an analyse of the source code, I discovered that the first header has a negative ID, this value can be a problem if you check it during the method
onBindViewHolder
, my code used to cancel the process if the ID is negative. I had problems to fill the copy header view and I solved it just treating this negative ID.I was doing something like this:
Thank you.