Open afiqiqmal opened 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..
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..