在网上不少关于该bug的处理都众说纷纭,我在这里再也不详述该bug产生的缘由,下面给出一种在4.1的机子上测试经过的方案:java
1.让你的view(多是ScrollView,WebView,MapView等),建立一个子view继承于它们中的某一个;测试
2.重写onInterceptTouchEvent 和onTouchEvent方法spa
3.try catch 该两个方法,形以下面:blog
try{继承
super.onInterceptTouchEvent(MotionEvent ev)get
} catch(ILLegalArgumentException ex) {it
}io
return false;bug
try{方法
super.onTouchEvent(MotionEvent ev)
} catch(ILLegalArgumentException ex) {
}
return false;