在做更新界面的时候,同时使用了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; 
       }


      });

 

这样就ok了。