summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/AllAppsTabbed.java
diff options
context:
space:
mode:
authorChet Haase <chet@google.com>2010-09-07 13:35:00 -0700
committerChet Haase <chet@google.com>2010-09-08 08:51:12 -0700
commitb1254a6bdb11024042fb6c27e179210c1bbd6e1c (patch)
treeaae00dc3222e4686bbf00345b7fb9128d3f7c1b5 /src/com/android/launcher2/AllAppsTabbed.java
parent5539af7826ad6dd16202c56549d26dfdcbf977b1 (diff)
downloadandroid_packages_apps_Trebuchet-b1254a6bdb11024042fb6c27e179210c1bbd6e1c.tar.gz
android_packages_apps_Trebuchet-b1254a6bdb11024042fb6c27e179210c1bbd6e1c.tar.bz2
android_packages_apps_Trebuchet-b1254a6bdb11024042fb6c27e179210c1bbd6e1c.zip
Animation classes renamed
Change-Id: I96ecb77357a914a746a5989c909246620b977b10
Diffstat (limited to 'src/com/android/launcher2/AllAppsTabbed.java')
-rw-r--r--src/com/android/launcher2/AllAppsTabbed.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/com/android/launcher2/AllAppsTabbed.java b/src/com/android/launcher2/AllAppsTabbed.java
index 5df580cdf..368306f50 100644
--- a/src/com/android/launcher2/AllAppsTabbed.java
+++ b/src/com/android/launcher2/AllAppsTabbed.java
@@ -18,10 +18,10 @@ package com.android.launcher2;
import java.util.ArrayList;
-import android.animation.Animatable;
-import android.animation.AnimatableListenerAdapter;
import android.animation.Animator;
-import android.animation.PropertyAnimator;
+import android.animation.AnimatorListenerAdapter;
+import android.animation.ValueAnimator;
+import android.animation.ObjectAnimator;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Color;
@@ -103,9 +103,9 @@ public class AllAppsTabbed extends TabHost implements AllAppsView {
// animate the changing of the tab content by fading pages in and out
final int duration = 150;
final float alpha = mAllApps.getAlpha();
- Animator alphaAnim = new PropertyAnimator(duration, mAllApps, "alpha", alpha, 0.0f);
- alphaAnim.addListener(new AnimatableListenerAdapter() {
- public void onAnimationEnd(Animatable animation) {
+ ValueAnimator alphaAnim = new ObjectAnimator(duration, mAllApps, "alpha", alpha, 0.0f);
+ alphaAnim.addListener(new AnimatorListenerAdapter() {
+ public void onAnimationEnd(Animator animation) {
String tag = getCurrentTabTag();
if (tag == TAG_ALL) {
mAllApps.setAppFilter(AllAppsPagedView.ALL_APPS_FLAG);
@@ -118,8 +118,8 @@ public class AllAppsTabbed extends TabHost implements AllAppsView {
}
final float alpha = mAllApps.getAlpha();
- Animator alphaAnim =
- new PropertyAnimator(duration, mAllApps, "alpha", alpha, 1.0f);
+ ValueAnimator alphaAnim =
+ new ObjectAnimator(duration, mAllApps, "alpha", alpha, 1.0f);
alphaAnim.start();
}
});