Why RecyclerView items disappear with scrolling

后端 未结 5 866
无人共我
无人共我 2020-12-10 08:36

I am using a RecyclerView in my app but when I scroll on my RecyclerView my items will disappear! I used this code for a lot of RecyclerView but this time I don\'t know what

5条回答
  •  不知归路
    2020-12-10 08:55

    Instead of using simple position (which is actually adapterPosition AFAIK) you should try using getAdapterPosition/getLayoutPosition. Read about difference between them. This might help. If it not you cat try to use different ViewTypes of items. Good luck

提交回复
热议问题