AbsListView notifies scroll events to the ViewTreeObserver.
ViewTreeObserver OnScrollChangedListener will then get notified. The scroll values are not specified, since they are passed to the base View.onScrollChanged method that simply sets the flags. No need to throw these from a Runnable (in case this happens during a relayout) since the listeners will be notified later from ViewRoot.draw(). Calling View.onScrollChanged in invokeOnItemScrollListener for normal scroll and in onOverScrolled to handle mScroller animation. Change-Id: Ib41434e5cd82e5a45ca6653db576746e89ef072d
Loading
Please register or sign in to comment