diff options
author | John Reck <jreck@google.com> | 2014-06-02 11:00:09 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2014-06-02 11:00:09 -0700 |
commit | c6b3264e16f1d2b72e7f9508559981ce9970157c (patch) | |
tree | 4b9b4d78d238e04cdd5c0394b757d88276856d0a /core/java | |
parent | 58136d02113ae768dc2cdf871a773bd34cc71583 (diff) | |
download | frameworks_base-c6b3264e16f1d2b72e7f9508559981ce9970157c.zip frameworks_base-c6b3264e16f1d2b72e7f9508559981ce9970157c.tar.gz frameworks_base-c6b3264e16f1d2b72e7f9508559981ce9970157c.tar.bz2 |
Add setStartValue to RNA
Bug: 15198607
Should be good-enough for Ripples to use for pseudo-chaining
support.
Change-Id: Ia8666928ccb69ae401cb583751632a52bd928b63
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/android/view/RenderNodeAnimator.java | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/core/java/android/view/RenderNodeAnimator.java b/core/java/android/view/RenderNodeAnimator.java index e918119..4979059 100644 --- a/core/java/android/view/RenderNodeAnimator.java +++ b/core/java/android/view/RenderNodeAnimator.java @@ -219,6 +219,15 @@ public final class RenderNodeAnimator extends Animator { return mTarget; } + /** + * WARNING: May only be called once!!! + * TODO: Fix above -_- + */ + public void setStartValue(float startValue) { + checkMutable(); + nSetStartValue(mNativePtr.get(), startValue); + } + @Override public void setStartDelay(long startDelay) { checkMutable(); @@ -282,11 +291,12 @@ public final class RenderNodeAnimator extends Animator { } private static native long nCreateAnimator(WeakReference<RenderNodeAnimator> weakThis, - int property, float deltaValue); + int property, float finalValue); private static native long nCreateCanvasPropertyFloatAnimator(WeakReference<RenderNodeAnimator> weakThis, - long canvasProperty, float deltaValue); + long canvasProperty, float finalValue); private static native long nCreateCanvasPropertyPaintAnimator(WeakReference<RenderNodeAnimator> weakThis, - long canvasProperty, int paintField, float deltaValue); + long canvasProperty, int paintField, float finalValue); + private static native void nSetStartValue(long nativePtr, float startValue); private static native void nSetDuration(long nativePtr, long duration); private static native long nGetDuration(long nativePtr); private static native void nSetStartDelay(long nativePtr, long startDelay); |