wrap_content items and annoying wink after scroll last item to first item
hzandi opened this issue · 1 comments
hzandi commented
I use wrap_content items (items are images with same height), it works well but after scroll right in last item all items in the page(just not the viewpager) will be refreshed (with significant wink)
after reading lib, I find out it because of calling requestLayout in LoopingViewPager.java line 190
with call this method
setCurrentItem(1, true);
I try to change mCurItem = 1 with reflection and don't call setCurrentItem but it just crashed.
siralam commented
setCurrentItem(1, true) should not be doing refreshing of the viewpager item, unless you have set your own onPageSelected listener.
But by the way, I think I am going to mark do not use wrap_content for height. If you do not use wrap_content, will it solves your issue?