History log of /frameworks/support/dynamic-animation/src/android/support/animation/SpringAnimation.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5df257d2a2f330f8e4d37321a40431973fa9b0d1 05-May-2017 Doris Liu <tianliu@google.com> Support setting threshold for custom properties

This CL removes the (unreleased) APIs set/getVelocityThreshold,
as the velocity threshold is not a straight forward idea, and
it requires develoeprs to convert a per frame threshold to
per second.

Instead, set/getMinimumVisibleChange(float) is added. This expects
a minimum value change that is visible to end users. This value
is then used to calculate a reasonable velocity and value threshold
for animations.

BUG: 38001368
Test: Included
Change-Id: I22e46d9650be74fbcad638ab2e5c1cacde357149
/frameworks/support/dynamic-animation/src/android/support/animation/SpringAnimation.java
7a33db57c360aaabfa5c16dff109072925576b0b 22-Apr-2017 Doris Liu <tianliu@google.com> API change in the constructor of SpringAnimation and FlingAnimation

This CL adds a new class FloatValueHolder that wraps a float value
and exposes the access to it through getter and setter (i.e.
setValue(float) and getValue()).

The previous single argument constructor in SpringAnimation
and FlingAnimation have been changed to use a different type of
argument - FloatValueHolder. This change makes the constructor API
look much more straight forward.

Note this CL changes the API that hasn't been released yet.

Bug: 30999909
Test: Included in this CL

Change-Id: I1cf2793cc4594d7b3ff35b31bb242ea9bfa0c894
/frameworks/support/dynamic-animation/src/android/support/animation/SpringAnimation.java
bfd3aa4c1b99267c42066918cfe8347b132f4dc1 18-Apr-2017 Doris Liu <tianliu@google.com> resolve merge conflicts of f37aaad22d to oc-dev

Test: ./gradlew updateApi
Change-Id: I9050b7f02788f925762d9e9df23f13746fc2ab91
/frameworks/support/dynamic-animation/src/android/support/animation/SpringAnimation.java
b9b09be93068e05c010b8e67f1e4c3a839531fc6 05-Apr-2017 Doris Liu <tianliu@google.com> Update Sampe Code in JavaDoc

Test: ./gradlew generateDocs
Change-Id: I18f98f29ef8cfa73acf2de94d45d9a26a624020e
/frameworks/support/dynamic-animation/src/android/support/animation/SpringAnimation.java
a00ac0ab7a6db7d635fadac1de5eb1e172f1dd89 16-Mar-2017 Doris Liu <tianliu@google.com> Make sure the propety change happens at anim pulse

Also fixed flakey test and expanded it

BUG: 36076487
Test: this CL
Change-Id: Ie8fc140ab79c83c4d2eff12b5b444de544ef4f8b
/frameworks/support/dynamic-animation/src/android/support/animation/SpringAnimation.java
62f5f70f678299fb18d8b7855e7bc50d9e426641 15-Mar-2017 Doris Liu <tianliu@google.com> Add basic code samples to class level description

BUG: 36232324
Test: ./gradlew generateDocs
Change-Id: I7e7a10042fc64b2bce4c1faa6dbf105a491d3420
/frameworks/support/dynamic-animation/src/android/support/animation/SpringAnimation.java
d5206a7781d95cba12ca70a20f7ee742a2e9d807 24-Feb-2017 Doris Liu <tianliu@google.com> Physics-based animation - SpringAnimation

This CL introduced physics-based animation. Specifically,
SpringAnimation and its base class DynamicAnimation.

This new set of Animation APIs track velocity of the
animation, and they no longer assume a fixed duration.
As a result, interruptions to animations are now handled
much more smoothly, as the velocity change is always
continuous.

SpringAnimation is driven by a SpringForce that calculates
the update of the animation's value and velocity on each
animation pulse until the spring reaches equilibrium.

Test: 100% public API coverage in this CL
BUG: 30999909
Change-Id: Ic47a453d5134ab4092def57a303eb039a3cd95cc
/frameworks/support/dynamic-animation/src/android/support/animation/SpringAnimation.java