ToxicBakery / ViewPagerTransforms

Library containing common animations needed for transforming ViewPager scrolling for Android v13+.
https://toxicbakery.github.io/ViewPagerTransforms/
Apache License 2.0
2.57k stars 489 forks source link

button and swipe controls don't work after more than 4 pages added #62

Closed mooseandpebs closed 7 years ago

mooseandpebs commented 7 years ago

I am using FragmentStatePagerAdapter, ViewPager, v4.Fragments and the CubeOutTransformer. When I use the following code: CubeOutTransformer ct = new CubeOutTransformer(); mViewPager.setPageTransformer(true,ct);

and add more than 4 pages the Button and gesture controls on the 5 page don't work. When I comment out the above code, the 5th page's controls work fine. Am I missing something... possible max setting??? Thanks

mooseandpebs commented 7 years ago

It seems the Transformers that don't work are the ones that override: protected boolean isPagingEnabled() { return true; } The ones that override this method return true and the base class's method returns false; Guess I'll have to dig a little deeper

ToxicBakery commented 7 years ago

Duplicate of #45

farhanijz commented 6 years ago

same problem If I add this line in code viewPager.setOffscreenPageLimit(3); then controls on page 4 and onwards didn't work.