27
2017
09

WebView加载网页

WebView tuijian_webview = (WebView) view.findViewById(R.id.junshi_webview);
                    String display_url = (String) newData.getJSONObject(position-1).get("display_url");
                    WebSettings webSettings = tuijian_webview.getSettings();
                    webSettings.setJavaScriptEnabled(true);
                    tuijian_webview.loadUrl(display_url);
//本页跳转
 tuijian_webview.setWebViewClient(new WebViewClient(){
            @Override
            public boolean shouldOverrideKeyEvent(WebView view, KeyEvent event) {
                return true;
            }
        });
上一篇:[日推荐]『蹭导游服务平台』这里的导游颜值都好高呀! 下一篇:标签之border-image...