listView处理OnTouchListener GestureDetector

推荐安卓开发神器(里面有各种UI特效和android代码库实例)

gestureDetector = new GestureDetector(new MyGestureDetector()); 
        gestureListener = new View.OnTouchListener() { 
            public boolean onTouch(View v, MotionEvent event) { 
                if (gestureDetector.onTouchEvent(event)) { 
                    return true; 
                } 
                return false; 
            } 
        }; 

        mList.setOnTouchListener(gestureListener);

 

你可能感兴趣的:(java)