summaryrefslogtreecommitdiffstats
path: root/api/14.txt
diff options
context:
space:
mode:
authorChet Haase <chet@google.com>2011-05-24 14:36:40 -0700
committerChet Haase <chet@google.com>2011-06-08 09:42:37 -0700
commitb39f051631250c49936a475d0e64584afb7f1b93 (patch)
tree9ba0a78cbdf4997965d4bc1b40e0a68a428433e3 /api/14.txt
parent3932aa7ff887007f4ae1e28e47b6775c9ceca566 (diff)
downloadframeworks_base-b39f051631250c49936a475d0e64584afb7f1b93.zip
frameworks_base-b39f051631250c49936a475d0e64584afb7f1b93.tar.gz
frameworks_base-b39f051631250c49936a475d0e64584afb7f1b93.tar.bz2
Add 'Property' object
This change adds a generic Property facility to the SDK, which allows an easy way to reference fields (private or otherwise) in a general way. For example, animations can use this facility to animate 'properties' on target objects in a way that is more code- and compiler-friendly than the existing String-based approach (for objects which have implemented Properties, of course). The animator classes have been updated to use this new approach (in addition to Strings, which are still more generally useful for objects which have get/set functions but not Property objects). The change also includes new Property objects on View (which can now be used in creating animations on Views). There is an unrelated change on GLES20RecordingCanvas to change the way we cache bitmaps, which avoids spurious garbage by using an ArrayList instead of a HashSet. Change-Id: I167b43a3fca20e7695b1a23ca81274367539acda
Diffstat (limited to 'api/14.txt')
-rw-r--r--api/14.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/14.txt b/api/14.txt
index ac93afb..ea09dc9 100644
--- a/api/14.txt
+++ b/api/14.txt
@@ -1921,12 +1921,12 @@ package android.animation {
public class FloatEvaluator implements android.animation.TypeEvaluator {
ctor public FloatEvaluator();
- method public java.lang.Object evaluate(float, java.lang.Object, java.lang.Object);
+ method public java.lang.Float evaluate(float, java.lang.Number, java.lang.Number);
}
public class IntEvaluator implements android.animation.TypeEvaluator {
ctor public IntEvaluator();
- method public java.lang.Object evaluate(float, java.lang.Object, java.lang.Object);
+ method public java.lang.Integer evaluate(float, java.lang.Integer, java.lang.Integer);
}
public abstract class Keyframe implements java.lang.Cloneable {
@@ -2012,7 +2012,7 @@ package android.animation {
}
public abstract interface TypeEvaluator {
- method public abstract java.lang.Object evaluate(float, java.lang.Object, java.lang.Object);
+ method public abstract T evaluate(float, T, T);
}
public class ValueAnimator extends android.animation.Animator {