private void handleScroll() {
        mVelocityTracker.computeCurrentVelocity(1000);
        int initVelocity = (int) mVelocityTracker.getXVelocity();
        if (initVelocity > mMaxVelocity) {
            goPreviousPage();
        } else if (initVelocity < -mMaxVelocity) {
            goNextPage();
        } else {
            slowScrollToPage();
        }
    }
A banner view that can automatically or manually scroll in a loop
Created by Marksss on 2019/8/12.
imitate/src/main/java/com/engineer/imitate/ui/widget/opensource/InfiniteBannerView.java