public void smoothFlipTo(int page) {
        if (page < 0 || page > mPageCount - 1) {
            throw new IllegalArgumentException("That page does not exist");
        }
        final int start = (int) mFlipDistance;
        final int delta = page * FLIP_DISTANCE_PER_PAGE - start;

        endFlip();
        mScroller.startScroll(0, start, 0, delta, getFlipDuration(delta));
        invalidate();
    }
@param adapter a regular ListAdapter, not all methods if the list adapter are
               used by the flipview
app/src/main/java/home/smart/fly/animations/customview/flipview/FlipView.java