|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface AbsListView.OnScrollListener
Interface definition for a callback to be invoked when the list or grid has been scrolled.
| Field Summary | |
|---|---|
static int |
SCROLL_STATE_FLING
The user had previously been scrolling using touch and had performed a fling. |
static int |
SCROLL_STATE_IDLE
The view is not scrolling. |
static int |
SCROLL_STATE_TOUCH_SCROLL
The user is scrolling using touch, and their finger is still on the screen |
| Method Summary | |
|---|---|
void |
onScroll(AbsListView view,
int firstVisibleItem,
int visibleItemCount,
int totalItemCount)
Callback method to be invoked when the list or grid has been scrolled. |
void |
onScrollStateChanged(AbsListView view,
int scrollState)
Callback method to be invoked while the list view or grid view is being scrolled. |
| Field Detail |
|---|
static final int SCROLL_STATE_IDLE
static final int SCROLL_STATE_TOUCH_SCROLL
static final int SCROLL_STATE_FLING
| Method Detail |
|---|
void onScrollStateChanged(AbsListView view,
int scrollState)
Adapter.getView(int, View, ViewGroup).
view - The view whose scroll state is being reportedscrollState - The current scroll state. One of SCROLL_STATE_IDLE,
SCROLL_STATE_TOUCH_SCROLL or SCROLL_STATE_IDLE.
void onScroll(AbsListView view,
int firstVisibleItem,
int visibleItemCount,
int totalItemCount)
view - The view whose scroll state is being reportedfirstVisibleItem - the index of the first visible cell (ignore if
visibleItemCount == 0)visibleItemCount - the number of visible cellstotalItemCount - the number of items in the list adaptor
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||