TobiasBuchholz / CircularViewPager

This is my implementation of a circular ViewPager
84 stars 22 forks source link

How reinitialize this circularViewpager? #7

Open afiqiqmal opened 8 years ago

afiqiqmal commented 8 years ago

I tried to reinitialize like this

viewpager.setAdapter(new BranchCircularViewPagerAdapter(getApplicationContext(), getSupportFragmentManager(), temp)); final CircularViewPagerHandler circularViewPagerHandler = new CircularViewPagerHandler(viewpager); circularViewPagerHandler.setOnPageChangeListener(createOnPageChangeListener()); viewpager.addOnPageChangeListener(circularViewPagerHandler);

But it previous fragment is still there it wont remove..