关于ScrollView和WebView滑动事件冲突的解决办法

解决方式如下:

wView.setOnTouchListener(new OnTouchListener() {

      @Override
      public boolean onTouch(View v, MotionEvent event) {
        // TODO Auto-generated method stub
        if (event.getAction() == MotionEvent.ACTION_UP)
          scrollView.requestDisallowInterceptTouchEvent(false);
              else 
              scrollView.requestDisallowInterceptTouchEvent(true);

              return false;
      }


      });

你可能感兴趣的:(关于ScrollView和WebView滑动事件冲突的解决办法)