android-flip
android-flip copied to clipboard
Can I auto flip view?
A have a 5 page and i want to flip in order 5 page auto in 5s. (From last page to First Page, go to previos page on each animation) Possible to do this?
Add this code in FlipViewController.java: public void autoNextPage() { if (adapterIndex + 1 < adapterDataCount) { cards.nextPage(); } else { setSelection(0); } }
Add this code in FlipCards.java: void nextPage() { forward = true; setState(STATE_AUTO_ROTATE); controller.showFlipAnimation(); controller.getSurfaceView().requestRender(); }
Then you can create a thread an call the autoNextPage() method in every 5sec
And to previus page?