时间:2021-07-01 10:21:17 帮助过:46人阅读
mWebView = (WebView) findViewById(R.id.webView); mWebView.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return true; } });发现点击宝贝详情链接页面后,无法返回.各种方法都试了,就是解决不了!
mWebView = (WebView) findViewById(R.id.webView); mWebView.setWebViewClient(new WebViewClient() { @Override public void onPageStarted(WebView view, String url, Bitmap favicon) { super.onPageStarted(view, url, favicon); } }); WebSettings webSettings = mWebView.getSettings(); //支持js webSettings.setJavaScriptEnabled(true); //支持对网页缩放 webSettings.setSupportZoom(true); //支持android4.0 webSettings.setBuiltInZoomControls(true); //默认缩放模式 webSettings.setDefaultZoom(ZoomDensity.CLOSE); mWebView.setInitialScale(100); //载入urlmWebView.loadUrl(" http://m.taobao.com/channel/chn/mobile/tejia_taoke.php?pid=mm_11443354_6190798_21526785");