Shrink-wrapped folders

Change-Id: Ida1b5d0bd4d39eabfde9f8a5bee0d4b6e9b33627
This commit is contained in:
Adam Cohen
2011-05-13 20:57:39 -07:00
parent b3715fe227
commit 2801cafe62
19 changed files with 448 additions and 174 deletions
+6 -3
View File
@@ -389,10 +389,13 @@ public class Workspace extends SmoothPagedView
if (!(child instanceof CellLayout)) {
throw new IllegalArgumentException("A Workspace can only have CellLayout children.");
}
((CellLayout) child).setOnInterceptTouchListener(this);
child.setOnClickListener(this);
child.setClickable(true);
CellLayout cl = ((CellLayout) child);
cl.setOnInterceptTouchListener(this);
cl.setOnClickListener(this);
cl.setClickable(true);
cl.enableHardwareLayers();
}
@Override
public void addView(View child, int index, LayoutParams params) {
onAddView(child);