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:
1 parent
ec1b932159
commit
976ebec9e3
5 files changed
+24
-11
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user