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/SpringForce.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/SpringForce.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/SpringForce.java
|