完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/AbsListView.OnScrollListener.html
AbsListView.OnScrollListener
public static interface AbsListView.OnScrollListener
android.widget.AbsListView.OnScrollListener |
Interface definition for a callback to be invoked when the list or grid has been scrolled.
回调的接口定义,当列表或网格已被滚动时调用。
摘要
常量 | |
---|---|
int | SCROLL_STATE_FLING The user had previously been scrolling using touch and had performed a fling. |
int | SCROLL_STATE_IDLE The view is not scrolling. |
int | SCROLL_STATE_TOUCH_SCROLL The user is scrolling using touch, and their finger is still on the screen |
Public方法 | |
---|---|
abstract void | onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) Callback method to be invoked when the list or grid has been scrolled. |
abstract void | onScrollStateChanged(AbsListView view, int scrollState) Callback method to be invoked while the list view or grid view is being scrolled. |
常量
SCROLL_STATE_FLING
int SCROLL_STATE_FLING
The user had previously been scrolling using touch and had performed a fling. The animation is now coasting to a stop
用户之前在用触摸来滚动,并进行了一次fling操作。动画现在已经停止
Constant Value: 2 (0x00000002)
值:2 (0x00000002)