I have implemented this with the help of gesture detection:
gestureDetector = new GestureDetector(context, new MyGestureDetector());
gestureListener = new View.OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {
return gestureDetector.onTouchEvent(event);
}
};
mList.setOnTouchListener(gestureListener);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…