给WebView设置自定义的WebViewClient即可
webview.setWebViewClient(new WebViewClient(){ @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { webview.loadUrl(url); return true; } });
给WebView设置自定义的WebViewClient即可
webview.setWebViewClient(new WebViewClient(){ @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { webview.loadUrl(url); return true; } });