Trying to resolve this issue : How to disable pullToRefreshScrollView from listening to touch I am wondering it there is a solution, to block ScrollView from handling onTouchEvents without creating customizable class for it ? Why all the methos like
gridView.getParent().requestDisallowInterceptTouchEvent(true);
mScrollView.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
return false;
}
});
doesn't work ? what's the problem with them ? why Google implements methods which doesn't work ?
Try and see:
// Get the ScrollView
// Disable Scrolling by setting up an OnTouchListener to do nothing
// Enable Scrolling by removing the OnTouchListner
Create a custom ScrollView and use it wherever you wants.
This can be use in layout
Then invoke