diff options
author | Adam Cohen <adamcohen@google.com> | 2011-07-07 16:38:18 -0700 |
---|---|---|
committer | Adam Cohen <adamcohen@google.com> | 2011-07-07 16:59:45 -0700 |
commit | 8dfcba4af7a7ece09e8c7d96053e54f3a383e905 (patch) | |
tree | ae4f19fca62ced61657c228ce5cc1325ff49d1a3 /src/com/android/launcher2/ButtonDropTarget.java | |
parent | eb99f1648c63ad35e1a528e566aa47df581864f8 (diff) | |
download | android_packages_apps_Trebuchet-8dfcba4af7a7ece09e8c7d96053e54f3a383e905.tar.gz android_packages_apps_Trebuchet-8dfcba4af7a7ece09e8c7d96053e54f3a383e905.tar.bz2 android_packages_apps_Trebuchet-8dfcba4af7a7ece09e8c7d96053e54f3a383e905.zip |
Substantially improved performance of dragging and drop animations
-> Took DragView drawing out of the window and put it into the DragLayer
-> Added fade-in/out animations to transition between the final view
and the DragView, after the view animates
-> Enabled hardware layers on Folder items which improves the
performance Folder reordering
Change-Id: I4d92ca9fba172d1bab9efc215a99abcaadcdf503
Diffstat (limited to 'src/com/android/launcher2/ButtonDropTarget.java')
-rw-r--r-- | src/com/android/launcher2/ButtonDropTarget.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/launcher2/ButtonDropTarget.java b/src/com/android/launcher2/ButtonDropTarget.java index e3da860cc..f87889cfb 100644 --- a/src/com/android/launcher2/ButtonDropTarget.java +++ b/src/com/android/launcher2/ButtonDropTarget.java @@ -90,4 +90,8 @@ public class ButtonDropTarget extends FrameLayout implements DropTarget, DragCon public DropTarget getDropTargetDelegate(DragObject d) { return null; } + + public void getLocationInDragLayer(int[] loc) { + mLauncher.getDragLayer().getLocationInDragLayer(this, loc); + } } |