@Override
 public void onViewReleased(View releasedChild, float xvel, float yvel) {
   mDrawer.mDragHelper.flingCapturedView(
       mDrawer.getPaddingLeft(),
       mDrawer.getHeaderTopMinimum(),
       mDrawer.getPaddingLeft(),
       mDrawer.getHeaderTopMaximum());
   ViewCompat.postInvalidateOnAnimation(mDrawer);
 }
 @Override
 public int clampViewPositionHorizontal(View child, int left, int dx) {
   mDx = dx;
   return mDrawer.getPaddingLeft();
 }