我想要浏览器实现强制新开窗口功能,即每点击一个链接总是强制创建一个webview去加载,请问如何实现?
欢迎选择我的课程,让我们一起见证您的进步~~
//The code is as follows
webView.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { view.stopLoading(); //停止加载url Intent intent = new Intent(XXX.this, WebActivity.class); startActivity(intent); return true; } });
Hope it’s useful to you, the above
Link description
This is okay
//The code is as follows
Hope it’s useful to you, the above
Link description
This is okay