diff options
| author | Gilles Debunne <debunne@google.com> | 2010-12-10 14:36:17 -0800 |
|---|---|---|
| committer | Gilles Debunne <debunne@google.com> | 2010-12-10 16:04:06 -0800 |
| commit | c35a829b10946fe88b53fd3354b55218ecaff00e (patch) | |
| tree | 43c7bddbc61d6bb0971976d95f916f1d254ebeb4 /core/java/android/view/ViewConfiguration.java | |
| parent | b170954d84b3ca084f9d613d99633d2828912d74 (diff) | |
Modified OverScroller curves
When OverFlinged, the scroller goes back to the edge using a spline
instead of a parabolic curve. This ensures that the final velocity of
this movement is null, thus removing the visual discontinuity that can
be observed with the current version.
Bouncing coefficient is deprecated. Changed doc accordingly.
New more expressive spline tension tuning coefficients.
These were tuned to match the one used before the refactoring of CL 81532.
Change-Id: I80dbccebea11544595935077463ad7737c3392e9
Diffstat (limited to 'core/java/android/view/ViewConfiguration.java')
| -rw-r--r-- | core/java/android/view/ViewConfiguration.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/view/ViewConfiguration.java b/core/java/android/view/ViewConfiguration.java index 6b41ce5cf057..4017242e42f5 100644 --- a/core/java/android/view/ViewConfiguration.java +++ b/core/java/android/view/ViewConfiguration.java @@ -166,7 +166,7 @@ public class ViewConfiguration { /** * Max distance to overfling for edge effects */ - private static final int OVERFLING_DISTANCE = 12; + private static final int OVERFLING_DISTANCE = 20; private final int mEdgeSlop; private final int mFadingEdgeLength; |
