Skip to content Skip to sidebar Skip to footer

Recyclerview Inconsistency Detected. Invalid View Holder Adapter PositionViewHolder

In my app right now I am working with two lists. One is a List of an Object and the other the a List of Lists of the same object. I have a method in my Activity that transforms a l

Solution 1:

My problem was caused by the BaseSkeletonAdapter<Feed> that my FeedAdapter was extending. BaseSkeletonAdapter was using the original list and not the List of Lists I had to use. So I created a new class SkeletonAdapterFeed that is basically equal to the previous one, but the new one is receiving a List of Lists instead of just the List. I know that it sounds a little confusing. I don't have full understanding of the project I am working right now so that's why I don't know everything about the classes, etc.


Post a Comment for "Recyclerview Inconsistency Detected. Invalid View Holder Adapter PositionViewHolder"