Recyclerview changing items when is scrolled

后端 未结 6 802
一个人的身影
一个人的身影 2021-02-09 17:57

Can someone explain to me, what the problem is?

When I scroll down and then back to the top, my items were changed for other items in the list, and if I scroll again, th

6条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-09 18:40

    Add holder.setIsRecyclable(false); in your onBindViewHolder

    @Override
    public void onBindViewHolder(final MyViewHolder holder, final int position) {
        holder.setIsRecyclable(false);
    }
    

提交回复
热议问题