How to disable ScrollView scrolling?

后端 未结 3 1093
南方客
南方客 2020-12-06 06:10

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 onTouc

3条回答
  •  抹茶落季
    2020-12-06 06:43

    Try and see:

            scrollView.setOnTouchListener(new View.OnTouchListener() {
    
            @Override
            public boolean onTouch(View v, MotionEvent event) {
                // TODO Auto-generated method stub
                return isBlockedScrollView;
            }
        });
    

提交回复
热议问题