I’m basically trying to disable the scroll on List View. Which can be done by
@Override
public boolean dispatchTouchEvent(MotionEvent ev){
if(ev.getAction()==MotionEvent.ACTION_MOVE){
ev.setAction(MotionEvent.ACTION_CANCEL);
}
super.dispatchTouchEvent(ev);
return true;
}
But I do not want to create a custom List View (widget) class for this.
Is there any way I could do it like myListView.dispatchTouchEvent(ev)???
Thanks in advance.
Give this a try: