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

Circular fliping #58

Open
zongdongdong opened this issue Jun 17, 2015 · 1 comment
Open

Circular fliping #58

zongdongdong opened this issue Jun 17, 2015 · 1 comment

Comments

@zongdongdong
Copy link

I want to back first page in the last page,if you flip next continue.I add event “OnOverFlipListener”.
flipViews.setOnOverFlipListener(new FlipView.OnOverFlipListener() {
@OverRide
public void onOverFlip(FlipView flipView, OverFlipMode overFlipMode, boolean overFlippingPrevious, float overFlipDistance, float flipDistancePerPage) {
if(!overFlippingPrevious&&overFlipDistance>90){
flipViews.flipTo(0);
}

        }
    });

then,go to first page,but it have a issue,you can flip previous,then it goes to last page.i need it can't flip previous in the first page.

@radekstasiak
Copy link

Have you tried to check if current page is not a first page, inside onOverFlip
i.e.
if(flipView.getCurrentPage()!=0)

?

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