Code example for VelocityTracker

Methods: clear

0
            mLastMotionY = mDownMotionY = ev.getY(newPointerIndex);
            mLastMotionXRemainder = 0;
            mLastMotionYRemainder = 0;
            mActivePointerId = ev.getPointerId(newPointerIndex);
            if (mVelocityTracker != null) {
                mVelocityTracker.clear();
            } 
        } 
    } 
 
    protected void onUnhandledTap(MotionEvent ev) {}
 
    @Override 
    public void requestChildFocus(View child, View focused) {
        super.requestChildFocus(child, focused);
        int page = indexToPage(indexOfChild(child));
        if (page >= 0 && page != getCurrentPage() && !isInTouchMode()) {
            snapToPage(page);
        } 
    } 
Connect your IDE to all the code out there  Get Codota for Java