Another option without creating a new custom ListView would be to attach an onTouchListener
to your ListView and return true in the onTouch()
callback if the motion event action is ACTION_MOVE
.
listView.setOnTouchListener(new OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {
return (event.getAction() == MotionEvent.ACTION_MOVE);
}
});
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…