diff options
author | Gilles Debunne <debunne@google.com> | 2010-11-15 12:19:35 -0800 |
---|---|---|
committer | Gilles Debunne <debunne@google.com> | 2010-11-17 17:22:01 -0800 |
commit | 04cdb78c6a2ac66505d0b29033353cfd7e2c3d78 (patch) | |
tree | 9dec00d0edb2b6a3978371a132e3279eb57827e7 /core | |
parent | ae95eaeb432042c617e5d8667b2afa32edb47a68 (diff) | |
download | frameworks_base-04cdb78c6a2ac66505d0b29033353cfd7e2c3d78.zip frameworks_base-04cdb78c6a2ac66505d0b29033353cfd7e2c3d78.tar.gz frameworks_base-04cdb78c6a2ac66505d0b29033353cfd7e2c3d78.tar.bz2 |
New spline physics for list fling motion.
Change-Id: I72216acb29f1cd475682141701e1f2e56f52d527
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/widget/Scroller.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/java/android/widget/Scroller.java b/core/java/android/widget/Scroller.java index 3f2bd25..b1f50ba 100644 --- a/core/java/android/widget/Scroller.java +++ b/core/java/android/widget/Scroller.java @@ -67,13 +67,12 @@ public class Scroller { private static final int FLING_MODE = 1; private static float DECELERATION_RATE = (float) (Math.log(0.75) / Math.log(0.9)); - private static float ALPHA = 400; // pixels / seconds + private static float ALPHA = 800; // pixels / seconds private static float START_TENSION = 0.4f; // Tension at start: (0.4 * total T, 1.0 * Distance) private static float END_TENSION = 1.0f - START_TENSION; private static final int NB_SAMPLES = 100; private static final float[] SPLINE = new float[NB_SAMPLES + 1]; - private float mDeceleration; private final float mPpi; |