void estimateDropCell(int originX,int originY,int spanX,int spanY,int[] result){
  final int countX=mCountX;
  final int countY=mCountY;
  pointToCellRounded(originX,originY,result);
  int rightOverhang=result[0] + spanX - countX;
  if (rightOverhang > 0) {
    result[0]-=rightOverhang;
  }
  result[0]=Math.max(0,result[0]);
  int bottomOverhang=result[1] + spanY - countY;
  if (bottomOverhang > 0) {
    result[1]-=bottomOverhang;
  }
  result[1]=Math.max(0,result[1]);
}

void estimateDropCell ( int originX , int originY , int spanX , int spanY , int [ ] result ) { final int countX = mCountX ; final int countY = mCountY ; pointToCellRounded ( originX , originY , result ) ; int rightOverhang = result [ 0 ] + spanX - countX ; if ( rightOverhang > 0 ) { result [ 0 ] -= rightOverhang ; } result [ 0 ] = Math . max ( 0 , result [ 0 ] ) ; int bottomOverhang = result [ 1 ] + spanY - countY ; if ( bottomOverhang > 0 ) { result [ 1 ] -= bottomOverhang ; } result [ 1 ] = Math . max ( 0 , result [ 1 ] ) ; }
estimate where the top left cell of the dragged item will land if it is dropped .
