yarolegovich / DiscreteScrollView

A scrollable list of items that centers the current element and provides easy-to-use APIs for cool item animations.
5.78k stars 782 forks source link

performance issue #173

Open ArsalanImtiaz opened 5 years ago

ArsalanImtiaz commented 5 years ago

When there is more items in list scroll view and animation become too much slow i am using in a fragment and loading images when list size be more than 5 it make ver y slow

parisaalamshahi commented 5 years ago

i have same problem in big size is too slow

juniens commented 5 years ago

I have same problem, I have a fragment in which I am adding the fragment containing the discrete scroll view. I am using a ViewPager and sliding my fragments using a tablayout. The problem is that the discrete view is shuffling the items data in each positioned item!

To overcome this problem I used: mDiscreteView.recycledViewPool.setMaxRecycledViews(0, 0)

But it creates a new problem solving my old one, now the items won't shuffled but this is performance issue. I know that I should use the setHasFixedSize to true and with adapter setHasStableIds to true; but still the recyclerview shuffled my items. Don't know why?