public interface OnScrollListener
OnScrollListener that can be used to listen for scroll and scroll state changes of the
data view (which is a ListView) of a TableView.| Modifier and Type | Interface and Description |
|---|---|
static class |
OnScrollListener.ScrollState
Collection of the existing scroll states.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onScroll(android.widget.ListView tableDataView,
int firstVisibleItem,
int visibleItemCount,
int totalItemCount)
Callback method to be invoked when the list or grid has been scrolled.
|
void |
onScrollStateChanged(android.widget.ListView tableDateView,
OnScrollListener.ScrollState scrollState)
Callback method to be invoked while the table data view is being scrolled.
|
void onScroll(android.widget.ListView tableDataView,
int firstVisibleItem,
int visibleItemCount,
int totalItemCount)
tableDataView - The view whose scroll state is being reported.firstVisibleItem - The index of the first visible row (ignore if visibleItemCount == 0).visibleItemCount - The number of visible rows.totalItemCount - The number of items in the TableDataAdapter.void onScrollStateChanged(android.widget.ListView tableDateView,
OnScrollListener.ScrollState scrollState)
tableDateView - The view whose scroll state is being reported.scrollState - he current scroll state. One of OnScrollListener.ScrollState.TOUCH_SCROLL or OnScrollListener.ScrollState.IDLE.