网站源码如何使用,租房网58同城网租房,国内大宗商品交易平台有哪些,重庆网站自己推广原文链接#xff1a;http://www.linuxidc.com/Linux/2014-03/98847.htm
-------------------------------------------------------------- 在做更新界面的时候#xff0c;同时使用了scrollview和webview两个组件。在模拟器中测试的时候没有问题#xff0c;但是在手机上测试…原文链接http://www.linuxidc.com/Linux/2014-03/98847.htm
-------------------------------------------------------------- 在做更新界面的时候同时使用了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; } });