New folder visualization, renaming, staggering reorder

Change-Id: I62963d225e6ea5d2ec9d8ebc8a6d73099f5d6c7f
This commit is contained in:
Adam Cohen committed 2011-06-21 18:00:21 -07:00
1 parent b6c2a87511
commit 76fc085d28
24 files changed
+357 -140

No files matched your search

+8 -1
View File
@@ -298,6 +298,7 @@ public class CellLayout extends ViewGroup {
mCountX = x;
mCountY = y;
mOccupied = new boolean[mCountX][mCountY];
requestLayout();
}
private void invalidateBubbleTextView(BubbleTextView icon) {
@@ -971,7 +972,8 @@ public class CellLayout extends ViewGroup {
return mChildren.getChildAt(x, y);
}
public boolean animateChildToPosition(final View child, int cellX, int cellY, int duration) {
public boolean animateChildToPosition(final View child, int cellX, int cellY, int duration,
int delay) {
CellLayoutChildren clc = getChildrenLayout();
if (clc.indexOfChild(child) != -1 && !mOccupied[cellX][cellY]) {
final LayoutParams lp = (LayoutParams) child.getLayoutParams();
@@ -996,6 +998,10 @@ public class CellLayout extends ViewGroup {
int newX = lp.x;
int newY = lp.y;
lp.x = oldX;
lp.y = oldY;
child.requestLayout();
PropertyValuesHolder x = PropertyValuesHolder.ofInt("x", oldX, newX);
PropertyValuesHolder y = PropertyValuesHolder.ofInt("y", oldY, newY);
ObjectAnimator oa = ObjectAnimator.ofPropertyValuesHolder(lp, x, y);
@@ -1023,6 +1029,7 @@ public class CellLayout extends ViewGroup {
cancelled = true;
}
});
oa.setStartDelay(delay);
oa.start();
return true;
}