Fix incorrect offset in drag feedback, and other minor stuff.

- moved some dimens to -xlarge
- enlarge AllApps so that it's not clipped
This commit is contained in:
Patrick Dubroy
2010-08-04 20:03:37 -07:00
parent ec1b932159
commit 976ebec9e3
5 changed files with 24 additions and 11 deletions

View File

@@ -764,7 +764,9 @@ public class CellLayout extends ViewGroup {
final int countX = mCountX;
final int countY = mCountY;
pointToCellRounded(originX, originY, result);
// originX and originY give the top left of the cell, but pointToCellRounded
// compares center-to-center, so pass in the middle coordinates
pointToCellRounded(originX + (mCellWidth / 2), originY + (mCellHeight / 2), result);
// If the item isn't fully on this screen, snap to the edges
int rightOverhang = result[0] + spanX - countX;