Code example for ViewConfiguration

Methods: getScaledTouchSlop

0
 
	_currentX = (int)ev.getX();
	_currentY = (int)ev.getY();
 
	double abs = Math.hypot(_currentX - _startX, _currentY - _startY);
	return abs >= _vc.getScaledTouchSlop();
      case MotionEvent.ACTION_UP:
	if (_startX > _drawerWidth && _isOpen)
	  close(); 
 
	_isInGesture = false;
	_startX = -1;
	_startY = -1;
	_currentX = -1;
	_currentY = -1;
	return false; 
    } 
    return false; 
  } 
 
  @Override