Diolor / Swipecards

A Tinder-like Android library to create the swipe cards effect. You can swipe left or right to like or dislike the content.
Apache License 2.0
2.34k stars 583 forks source link

ViewPager #208

Open bbetter opened 6 years ago

bbetter commented 6 years ago

I experience severe blinking after viewpager reloading inside of your SwipeFlingAdapterView.

I dug into lib and found out this specific line View newUnderChild = this.mAdapter.getView(startingIndex, (View)null, this);

therefore getview method of my adapter is always initializing itself from scratch , making viewholder pattern impossible to use. And I have some operations like setting viewpager adapter in the viewholder constructor, which I assume makes it blink and lag a bit after each card is swiped.

Can you pls suggest something to fix this issue ?