Devlight / InfiniteCycleViewPager

Infinite cycle ViewPager with two-way orientation and interactive effect.
Apache License 2.0
5.75k stars 827 forks source link

1. adapter.notifyDataSetChanged is not working for all fragments adapter . 2. Issue in setOffscreenPageLimit. #33

Open jazzbpn opened 7 years ago

jazzbpn commented 7 years ago

1. adapter.notifyDataSetChanged() is not working for the active fragments which are viewing. Except the active fragments other fragments dataSet are changed. So there is problem in notifyDataSetChanged() .

2. We can even setOffScreenPageLimit to 1 because default is two.

// YOUR CODE
public void setOffscreenPageLimit(int limit) {
    super.setOffscreenPageLimit(2);
}