1. 程式人生 > >webview防止跳轉到瀏覽器

webview防止跳轉到瀏覽器

web.setWebViewClient(new WebViewClient(){
@Override
public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {
return super.shouldOverrideUrlLoading(view, request);
}
});