public void setPageMargin(int marginPixels) {
        final int oldMargin = mPageMargin;
        mPageMargin = marginPixels;

        final int height = getHeight();
        recomputeScrollPosition(height, height, marginPixels, oldMargin);

        requestLayout();
    }
Set the margin between pages.

@param marginPixels Distance between adjacent pages in pixels
@see #getPageMargin()
@see #setPageMarginDrawable(Drawable)
@see #setPageMarginDrawable(int)
dkplayer-sample/src/main/java/xyz/doikki/dkplayer/widget/VerticalViewPager.java