public class ListViewRequireScrollHelper extends AbstractRequireScrollHelper implements AbsListView.OnScrollListener
SCROLL_STATE_FLING, SCROLL_STATE_IDLE, SCROLL_STATE_TOUCH_SCROLL
Modifier and Type | Method and Description |
---|---|
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.
|
protected void |
pageScrollDown() |
protected void |
requireScroll() |
static void |
requireScroll(NavigationBar navigationBar,
ListView listView) |
notifyRequiresScroll, notifyScrolledToBottom, onClick
public static void requireScroll(NavigationBar navigationBar, ListView listView)
protected void requireScroll()
requireScroll
in class AbstractRequireScrollHelper
protected void pageScrollDown()
pageScrollDown
in class AbstractRequireScrollHelper
public void onScrollStateChanged(AbsListView view, int scrollState)
AbsListView.OnScrollListener
Adapter.getView(int, View, ViewGroup)
.onScrollStateChanged
in interface AbsListView.OnScrollListener
view
- The view whose scroll state is being reportedscrollState
- The current scroll state. One of
AbsListView.OnScrollListener.SCROLL_STATE_TOUCH_SCROLL
or AbsListView.OnScrollListener.SCROLL_STATE_IDLE
.public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount)
AbsListView.OnScrollListener
onScroll
in interface AbsListView.OnScrollListener
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