summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/CellLayout.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2015-08-03 19:23:16 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-08-03 19:23:16 +0000
commit4ac89e24447ec1306c38a99e9ae32476da83b9be (patch)
tree97a04b4d8ec1308904b9bb6ade2ba76de600518b /src/com/android/launcher3/CellLayout.java
parent90c438ed38527921626458e3b176be652b8a0abd (diff)
parent5d2fc32e6da66f877dfba4fe513fbabdcdae5f99 (diff)
downloadandroid_packages_apps_Trebuchet-4ac89e24447ec1306c38a99e9ae32476da83b9be.tar.gz
android_packages_apps_Trebuchet-4ac89e24447ec1306c38a99e9ae32476da83b9be.tar.bz2
android_packages_apps_Trebuchet-4ac89e24447ec1306c38a99e9ae32476da83b9be.zip
Merge "Several animation calls cleanup" into ub-launcher3-master
Diffstat (limited to 'src/com/android/launcher3/CellLayout.java')
-rw-r--r--src/com/android/launcher3/CellLayout.java20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/com/android/launcher3/CellLayout.java b/src/com/android/launcher3/CellLayout.java
index cad1a4fe9..882c93a91 100644
--- a/src/com/android/launcher3/CellLayout.java
+++ b/src/com/android/launcher3/CellLayout.java
@@ -18,7 +18,6 @@ package com.android.launcher3;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
-import android.animation.AnimatorSet;
import android.animation.TimeInterpolator;
import android.animation.ValueAnimator;
import android.animation.ValueAnimator.AnimatorUpdateListener;
@@ -2161,17 +2160,14 @@ public class CellLayout extends ViewGroup implements BubbleTextShadowHandler {
a.cancel();
}
- AnimatorSet s = LauncherAnimUtils.createAnimatorSet();
- a = s;
- s.playTogether(
- LauncherAnimUtils.ofFloat(child, "scaleX", getChildrenScale()),
- LauncherAnimUtils.ofFloat(child, "scaleY", getChildrenScale()),
- LauncherAnimUtils.ofFloat(child, "translationX", 0f),
- LauncherAnimUtils.ofFloat(child, "translationY", 0f)
- );
- s.setDuration(REORDER_ANIMATION_DURATION);
- s.setInterpolator(new android.view.animation.DecelerateInterpolator(1.5f));
- s.start();
+ a = new LauncherViewPropertyAnimator(child)
+ .scaleX(getChildrenScale())
+ .scaleY(getChildrenScale())
+ .translationX(0)
+ .translationY(0)
+ .setDuration(REORDER_ANIMATION_DURATION);
+ a.setInterpolator(new android.view.animation.DecelerateInterpolator(1.5f));
+ a.start();
}
}