emilsjolander / android-FlipView

A small, easy to use android library for implementing flipping between views as seen in the popular Flipboard application
Apache License 2.0
923 stars 273 forks source link

Circular fliping #58

Open zongdongdong opened 9 years ago

zongdongdong commented 9 years ago

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 commented 9 years ago

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

?