1.  class ItemTouchEvent implements OnTouchListener {  

  2.   

  3.         @Override  

  4.         public boolean onTouch(View v, MotionEvent event) {  

  5.             // TODO Auto-generated method stub  

  6.             // System.out.println("触摸..");  

  7.             if (event.getAction() == MotionEvent.ACTION_MOVE) {  

  8.                 // System.out.println("MOVE");  //接触到ListView移动时  

  9.                 BtnCheck(0);  

  10.             } else if (event.getAction() == MotionEvent.ACTION_UP) {  

  11.                 // System.out.println("up");   //离开ListView时  

  12.                 BtnCheck(currentPage);  

  13.             } else if (event.getAction() == MotionEvent.ACTION_DOWN) {  

  14.                 // System.out.println("down");   //接触到ListView时  

  15.                 BtnCheck(0);  

  16.             }  

  17.   

  18.             return false;  

  19.         }  

  20.   

  21.     }  

  22.   

  23.     class LvScrollEvent implements OnScrollListener {  

  24.   

  25.         @Override  

  26.         public void onScroll(AbsListView view, int firstVisibleItem,  

  27.                 int visibleItemCount, int totalItemCount) {  

  28.             // TODO Auto-generated method stub  

  29.   

  30.         }  

  31.   

  32.         @Override  

  33.         public void onScrollStateChanged(AbsListView view, int scrollState) {  

  34.             // TODO Auto-generated method stub  

  35.             switch (scrollState) {  

  36.             case OnScrollListener.SCROLL_STATE_IDLE: //  

  37.                 BtnCheck(currentPage);  

  38.                 // mBusy = false;  

  39.                 System.out.println("停止...");  

  40.                 break;  

  41.             case OnScrollListener.SCROLL_STATE_TOUCH_SCROLL:  

  42.                 BtnCheck(0);  

  43.                 // mBusy = true;  

  44.                 System.out.println("正在滑动...");  

  45.                 break;  

  46.             case OnScrollListener.SCROLL_STATE_FLING:  

  47.                 BtnCheck(0);  

  48.                 // mBusy = true;  

  49.                 System.out.println("开始滚动...");  

  50.   

  51.                 break;  

  52.             }  

  53.         }  

  54.   

  55.     }