diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2015-07-06 22:52:49 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2015-07-31 13:07:14 -0700 |
commit | 5d2fc32e6da66f877dfba4fe513fbabdcdae5f99 (patch) | |
tree | 317109f395b3fe4871eb8e023b5316fbf036206e /src/com/android/launcher3/LauncherClings.java | |
parent | c1729a4d154f28c32175823e0cb9448a9c58a4e4 (diff) | |
download | android_packages_apps_Trebuchet-5d2fc32e6da66f877dfba4fe513fbabdcdae5f99.tar.gz android_packages_apps_Trebuchet-5d2fc32e6da66f877dfba4fe513fbabdcdae5f99.tar.bz2 android_packages_apps_Trebuchet-5d2fc32e6da66f877dfba4fe513fbabdcdae5f99.zip |
Several animation calls cleanup
> Using View property instead of strings to avoid extra reflection step
> Using ViewPropertyAnimator when several properties are being animated
Change-Id: I41625643b38b70bac11e2c81d18058ec878d73bd
Diffstat (limited to 'src/com/android/launcher3/LauncherClings.java')
-rw-r--r-- | src/com/android/launcher3/LauncherClings.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/launcher3/LauncherClings.java b/src/com/android/launcher3/LauncherClings.java index c13752cb1..6eb3ac875 100644 --- a/src/com/android/launcher3/LauncherClings.java +++ b/src/com/android/launcher3/LauncherClings.java @@ -161,12 +161,12 @@ class LauncherClings implements OnClickListener { ObjectAnimator anim; if (TAG_CROP_TOP_AND_SIDES.equals(content.getTag())) { content.setTranslationY(-content.getMeasuredHeight()); - anim = LauncherAnimUtils.ofFloat(content, "translationY", 0); + anim = LauncherAnimUtils.ofFloat(content, View.TRANSLATION_Y, 0); } else { content.setScaleX(0); content.setScaleY(0); - PropertyValuesHolder scaleX = PropertyValuesHolder.ofFloat("scaleX", 1); - PropertyValuesHolder scaleY = PropertyValuesHolder.ofFloat("scaleY", 1); + PropertyValuesHolder scaleX = PropertyValuesHolder.ofFloat(View.SCALE_X, 1); + PropertyValuesHolder scaleY = PropertyValuesHolder.ofFloat(View.SCALE_Y, 1); anim = LauncherAnimUtils.ofPropertyValuesHolder(content, scaleX, scaleY); } |