-
Notifications
You must be signed in to change notification settings - Fork 52
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
How to add infinite scroll in both direction? #17
Comments
This is my question in Stackoverflow |
I will trying to add this feature in the nearest time. |
I implemented this feature like this.
|
I forgot to write this |
hello, |
full source code is here #26 |
thank you. |
hi, can you please tell me how to implement this thing in java as I am not able to get infinite scroll on both sides. |
I did this and worked for me, first put this code in your adapter:
then, set the slider item at the middle by doing this in Fragment or Activity:
you also should use (position % sliders.size()) instead of position:(sliders is the list of items in my adapter)
|
should i add this line in activity "slider.setCurrentItem(Integer.MAX_VALUE / 2, false);" before setting adapter or after setting adapter; |
you should add this after setting adapter. |
No description provided.
The text was updated successfully, but these errors were encountered: