Items repeating when slide down in recyclerview
SahajRana opened this issue · comments
Hi Saket, as I was working through the recyclerview, InboxRecyclerView is making items to repeat when used with FastAdapter or RendererRecyclerAdapter, I haven't tried on default adapter, but when I use Default Recyclerview, It works fine.
Initially i thought that it's due to adapters and also opened an issue but after looking into for a while I realised that the problem was in InboxRecyclerView
LinearLayoutManager mLayoutManager = new LinearLayoutManager(getActivity());
mLayoutManager.setAutoMeasureEnabled(true);
mRecyclerView.setLayoutManager(mLayoutManager);
mExpandablePage=(ExpandablePageLayout)getActivity().findViewById(R.id.inbox_expand_page);
mRecyclerView.setHasFixedSize(false);
mRecyclerView.setTintPainter(new CompleteListTintPainter(Color.WHITE,0.99f));
mRecyclerView.setExpandablePage(mExpandablePage);
adapter=new FastItemAdapter<>();
adapter.setHasStableIds(true);
mRecyclerView.setItemAnimator(new AlphaInAnimator());
mRecyclerView.setAdapter(adapter);
resultRealm=realm.where(ToTal_ProfileModelRealmClass.class).sort("userId",Sort.ASCENDING).findAll();
adapter.add(resultRealm.subList(0,17));
This is very strange. InboxRecyclerView doesn't modify the items in any manner. It's only responsible for animating them. Can you share a sample project to reproduce this error?
Closing this due to inactivity. Feel free to re-open this.