@Override
    public void computeScroll() {
        if (mDragHelper != null && mDragHelper.continueSettling(true)) {
            if (!isEnabled()) {
                mDragHelper.abort();
                return;
            }

            ViewCompat.postInvalidateOnAnimation(this);
        }
    }
Smoothly animate mDraggingPane to the target X position within its range.

@param slideOffset position to animate to
@param velocity    initial velocity in case of fling, or 0.
app/src/main/java/home/smart/fly/animations/widget/slidepanel/SlidingUpPanelLayout.java