Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setCurrentItem() freezes #16

Open
DigitalDavo opened this issue Aug 22, 2014 · 3 comments
Open

setCurrentItem() freezes #16

DigitalDavo opened this issue Aug 22, 2014 · 3 comments

Comments

@DigitalDavo
Copy link

Seems some calls to setCurrentItem() to jump directly between the fragments freezes.

According to
http://stackoverflow.com/questions/22937651/infiniteviewpager-freezes-on-setcurrentitem-method
it is because of an infinite loop - but alas their solution of using 3000 does not fix the issue for me.

@Porval
Copy link

Porval commented Sep 2, 2014

me,too.
I find README last line.

It is only possible to achieve wrapping when you have at least 4 pages. This is because of the way the ViewPager creates, destroys, and displays the pages. No fix for the general case has been found.

at least 4 pages.

@PiNotEqual3
Copy link

I had the same problem with more pages. Solved it by looking at forks.

Found akhoi90 two commits with getRealCurrentItem() and setRealCurrentItem():
khoi-nguyen-2359@a4bf46a
khoi-nguyen-2359@3ca4abc

If I use those it works just fine.

@zayo
Copy link

zayo commented Sep 10, 2015

I used the getRealCurrentItem() too. I got this problem with only 3 pages.

And i found another approach: http://stackoverflow.com/questions/22937651/infiniteviewpager-freezes-on-setcurrentitem-method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants