Initial implementation of Shrink-wrap

Change-Id: If73c7f7ca19ca62ff43134f515584354afef8507
This commit is contained in:
Adam Cohen
2013-06-18 13:13:40 -07:00
parent 211667e4c2
commit dcd297f05a
14 changed files with 609 additions and 266 deletions
+5 -2
View File
@@ -709,7 +709,10 @@ public class CellLayout extends ViewGroup {
@Override
protected void onAttachedToWindow() {
super.onAttachedToWindow();
mCellInfo.screen = ((ViewGroup) getParent()).indexOfChild(this);
if (getParent() instanceof Workspace) {
Workspace workspace = (Workspace) getParent();
mCellInfo.screenId = workspace.getIdForScreen(this);
}
}
public void setTagToCellInfoForPoint(int touchX, int touchY) {
@@ -3334,7 +3337,7 @@ out: for (int i = x; i < x + spanX - 1 && x < xCount; i++) {
int cellY = -1;
int spanX;
int spanY;
int screen;
long screenId;
long container;
@Override