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

Disable flinging #29

Closed
ursusursus opened this issue Sep 20, 2017 · 10 comments
Closed

Disable flinging #29

ursusursus opened this issue Sep 20, 2017 · 10 comments
Milestone

Comments

@ursusursus
Copy link

Hi, nice effect but being able to fling which turns into linear scroll really ruins it, id like to mimic view pager physics, exactly how google play does it

thanks

@rubensousa
Copy link
Owner

Did you try using GravityPagerSnapHelper?

@ursusursus
Copy link
Author

Didnt know about it, thanks!
Now when Im trying it, its more of what I want, but is there a way to customize it? Say google play one "feels" better, i.e. when I fling it "pages" more items not just one, like GravityPagerSnapHelper

@rubensousa
Copy link
Owner

Are you using items with the same width as the google play ones? It should be identical.

@ursusursus
Copy link
Author

Yes same width. The logic seems fine, but its way to hard to fling it, so Im guessing adjusting som "friction" attribute?

@huangjim
Copy link

huangjim commented Jan 3, 2018

I also need disable flinging effect like google play,had you solved the problem?

@chnouman
Copy link

chnouman commented Feb 6, 2018

Hy friends, how to remove this error java.lang.IllegalStateException: An instance of OnFlingListener already set.

i'm adding snaps dynamicaly and this error occur.

@rubensousa
Copy link
Owner

Closing due to inactivity

@rubensousa rubensousa added this to the 2.2.0 milestone Aug 30, 2019
@rubensousa rubensousa reopened this Aug 30, 2019
@rubensousa
Copy link
Owner

@ursusursus, this will be added in 2.2.0

@rubensousa
Copy link
Owner

@mradzinski
Copy link

@rubensousa This isn't working as expected. Setting setMaxFlingSizeFraction(1.0F) on a full screen RecyclerView where each item occupies the entire viewport still allows to fling through more than 1 item at a time on vertical layouts (haven't tried with horizontal ones).

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

No branches or pull requests

5 participants