标签:return nap pre webview int ldo new class loading
webView.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { HitTestResult hit = webView.getHitTestResult(); int hitType = hit.getType();
if (hitType != WebView.HitTestResult.UNKNOWN_TYPE) {
//这里执行自定义的操作
return true;
} else{
//重定向时hitType为0 ,执行默认的操作
return false;
}
标签:return nap pre webview int ldo new class loading
原文地址:http://www.cnblogs.com/lianghui66/p/6121489.html