diff options
author | Chet Haase <chet@google.com> | 2010-10-07 11:13:10 -0700 |
---|---|---|
committer | Chet Haase <chet@google.com> | 2010-10-07 11:13:36 -0700 |
commit | 00397b1d9233409d9d6b233b077ae12d09768ce8 (patch) | |
tree | 74b755ae9d6a35f27771f6126b1f55885e35d77c /src | |
parent | 37265ef6a76155354e39c37a41de2cda893bfb71 (diff) | |
download | android_packages_apps_Trebuchet-00397b1d9233409d9d6b233b077ae12d09768ce8.tar.gz android_packages_apps_Trebuchet-00397b1d9233409d9d6b233b077ae12d09768ce8.tar.bz2 android_packages_apps_Trebuchet-00397b1d9233409d9d6b233b077ae12d09768ce8.zip |
Use new TimeInterpolator interface for interpolation
Change-Id: I53e8fcbabfdb4cb69bec309aeceeddc63e1715ed
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher2/CellLayout.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher2/CellLayout.java b/src/com/android/launcher2/CellLayout.java index d26b2f932..164d7c5dd 100644 --- a/src/com/android/launcher2/CellLayout.java +++ b/src/com/android/launcher2/CellLayout.java @@ -18,6 +18,7 @@ package com.android.launcher2; import com.android.launcher.R; +import android.animation.TimeInterpolator; import android.animation.ValueAnimator; import android.animation.ValueAnimator.AnimatorUpdateListener; import android.app.WallpaperManager; @@ -38,7 +39,6 @@ import android.view.ViewDebug; import android.view.ViewGroup; import android.view.animation.Animation; import android.view.animation.DecelerateInterpolator; -import android.view.animation.Interpolator; import android.view.animation.LayoutAnimationController; public class CellLayout extends ViewGroup implements Dimmable { @@ -161,7 +161,7 @@ public class CellLayout extends ViewGroup implements Dimmable { mDragRectDrawable = res.getDrawable(R.drawable.rounded_rect_green); mCrosshairsDrawable = res.getDrawable(R.drawable.gardening_crosshairs); - Interpolator interp = new DecelerateInterpolator(2.5f); // Quint ease out + TimeInterpolator interp = new DecelerateInterpolator(2.5f); // Quint ease out // Set up the animation for fading the crosshairs in and out int animDuration = res.getInteger(R.integer.config_crosshairsFadeInTime); |