English | Site Directory

Android - An Open Handset Alliance Project

android.widget
public static interface

android.widget.ListView.OnListViewScrollListener

android.widget.ListView.OnListViewScrollListener

Interface definition for a callback to be invoked when either the number of visible elements change or the index of the first element changes.

Summary

Public Methods

        void  onListViewScroll(int firstCell, int cellCount, int itemCount)
Callback method to be invoked when either the number of visible elements change or the index of the first element changes.

Details

Public Methods

public void onListViewScroll(int firstCell, int cellCount, int itemCount)

Callback method to be invoked when either the number of visible elements change or the index of the first element changes. One use for this is to have a scroll indicator tracking the list.

Parameters

firstCell the index of the first visible cell (ignore if cellCount == 0)
cellCount the number of visible cells
itemCount the number of items in the list adaptor
Build m5-rc15i - 10 Jun 2008 13:54