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

infinite roation disable #54

Open
SumitMarwha opened this issue Feb 23, 2018 · 1 comment
Open

infinite roation disable #54

SumitMarwha opened this issue Feb 23, 2018 · 1 comment

Comments

@SumitMarwha
Copy link

I want to disable infinite rotation in wheelView android

app:repeatItems="true"

I have disabled repeat items android but infinite scrolling is working even now

@vivekbdc
Copy link

vivekbdc commented Sep 5, 2020

Hi, actually I had the same issue but there is no option for disabled infinite scroll. so make jugadu idea as below.

binding.wheelview.setOnWheelAngleChangeListener(new WheelView.OnWheelAngleChangeListener() { @Override public void onWheelAngleChange(float angle) { if (((int) angle) > 360 || ((int) angle) < -360) binding.wheelview.setAngle(0); } });

So after this my wheel rotate limit is between -360 to 360

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

2 participants