OSDN Git Service

Invalidate for scrolling animations on the animation timer
authorAdam Powell <adamp@google.com>
Wed, 11 Apr 2012 01:55:22 +0000 (18:55 -0700)
committerAdam Powell <adamp@google.com>
Wed, 11 Apr 2012 20:01:24 +0000 (13:01 -0700)
commitdf3ae4f3aea3bdce6bb54133c8a07a26bf207c3c
tree8a44d20663830202b72f43b5730d545b0ebcbf18
parent54ae14749bc7f9e73cfda35a8b49f9efa80a77fb
Invalidate for scrolling animations on the animation timer

Change View methods awakenScrollBars and scrollTo to post their
invalidation on the animation timer. Since these are often used in
computeScroll or similar to continue scrolling or flinging it should
not prevent other posted events from being processed before the frame
is actually drawn. (All changes in scroll position, etc. are
immediately reflected after the calls and do not need a draw to
present correct data about scroll position to apps.)

Don't accumulate floating point error while dragging
ScrollView/HorizontalScrollView.

Change-Id: I05b57d75f89a806488e46a8fb79b85d80f56d45d
core/java/android/view/View.java
core/java/android/widget/HorizontalScrollView.java
core/java/android/widget/ScrollView.java