Code example for AbsListView.OnScrollListener

Methods: onScroll

0
        @Override 
        public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount,
                int totalItemCount) {
            OnScrollListener l = mManaged.getOnScrollListener();
            if (l != null) {
                l.onScroll(view, firstVisibleItem, visibleItemCount, totalItemCount);
            } 
        } 
    } 
 
    private class FingerTracker implements OnTouchListener {
        @Override 
        public boolean onTouch(View view, MotionEvent event) {
            final int action = event.getAction();
 
            mFingerUp = (action == MotionEvent.ACTION_UP ||
                         action == MotionEvent.ACTION_CANCEL);
 
            // If finger is up and view is not flinging, trigger a new round 
            // of item updates. 
            if (mFingerUp && mScrollState != OnScrollListener.SCROLL_STATE_FLING) {