public boolean onDragOver( DragSource source, int x, int y, int xOffset, int yOffset, DragView dragView, Object dragInfo) { Log.d(TAG, "onDragOver " + x + "," + y + "," + xOffset + "," + yOffset); // if (!mContent.mOverLeftRect.contains(x, y)) { // return false; // } CellLayout targetCelllayout = (CellLayout) getParent(); if (targetCelllayout == null) { return false; } CellLayout.LayoutParams targetLp = (CellLayout.LayoutParams) getLayoutParams(); final int tempTargetCellX = targetLp.cellX; final int tempTargetCellY = targetLp.cellY; boolean result = false; boolean needToShowAsFolderIcon = false; if (mContent.mOverLeftRect.contains(x, y)) { result = targetCelllayout.movePos(tempTargetCellX, tempTargetCellY, true); } else if (mContent.mOverRightrRect.contains(x, y)) { result = targetCelllayout.movePos(tempTargetCellX, tempTargetCellY, false); } else if (mContent.mCenterRect.contains(x, y)) { needToShowAsFolderIcon = true; } if (needToShowAsFolderIcon) { setFolderIcon(dragInfo); } else { setOrilIcon(dragInfo); } return result; // if (!targetCelllayout.movePos(tempTargetCellX, tempTargetCellY, // false)) { // return false; // } // final ShortcutInfo info = (ShortcutInfo) getTag(); // final Bitmap mFolderIcon = info.getIcon(mLauncher.getIconCache()); // mContent.setIphoneIcon(mFolderIcon); // if (getAnimation() != null && getAnimation().hasStarted()) // showUninstallBtn(true); // return true; }