有时候两个webview点击一个会影响另一个
ublic class MyWebView extends WebView{ private MyActivity mActivity; //Call this on each webview in activity's onCreate after public setActivity(MyActivity activity){ mActivity = activity; } @Override public boolean onTouchEvent(MotionEvent event){ if (event.getAction()==ACTION_POINTER_DOWN && mActivity!=null){ mActivity.onWebviewTouched(self); } super.onTouchEvent(event); } } public void onWebviewTouched(MyWebView webView) { if (webView == mWebviewLeft){ } else if (webView == mWebviewRight) { } }
?