Code example for AbsListView.OnScrollListener

Methods: onScrollStateChanged

0
     * @param scrollState - new scroll state. 
     */ 
    @Override 
    public void onScrollStateChanged(AbsListView view, int scrollState) {
        if (mListener != null) {
            mListener.onScrollStateChanged(view, scrollState);
        } 
    } 
 
    /** 
     * Scroll events listener 
     * 
     * @param view - the scrolled view 
     * @param firstVisibleItem - the index (in the list's adapter) of the top 
     *            visible item. 
     * @param visibleItemCount - the number of visible items in the list 
     * @param totalItemCount - the total number items in the list 
     */ 
    @Override 
    public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount,
            int totalItemCount) {