尝试这个:
final GestureDetector gestureDetector = new GestureDetector(new GestureDetector.SimpleonGestureListener() { public void onLongPress(MotionEvent e) { Log.e("", "Longpress detected"); }});public boolean onTouchEvent(MotionEvent event) { return gestureDetector.onTouchEvent(event);};


