Android 如何在Viewpager中显示webview
在viewpager中显示webview时出现问题。我确实使用了AwesomeViewPager示例并添加了webview,但如果有人有任何示例的话,它不会呈现 谢谢你的帮助Android 如何在Viewpager中显示webview,android,webview,android-viewpager,Android,Webview,Android Viewpager,在viewpager中显示webview时出现问题。我确实使用了AwesomeViewPager示例并添加了webview,但如果有人有任何示例的话,它不会呈现 谢谢你的帮助 谢谢给它添加一些参数 info_view = (WebView) findViewById(R.id.webView1); info_view.getSettings().setJavaScriptEnabled(true); info_view.getSettings().setBuiltInZ
谢谢给它添加一些参数
info_view = (WebView) findViewById(R.id.webView1);
info_view.getSettings().setJavaScriptEnabled(true);
info_view.getSettings().setBuiltInZoomControls(true);
info_view.getSettings().setSaveFormData(true);
info_view.getSettings().setLoadsImagesAutomatically(true);
info_view.getSettings().setSupportMultipleWindows(true);
// info_view.getSettings().setLightTouchEnabled(true);
info_view.getSettings().setAllowFileAccess(true);
info_view.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
info_view.getSettings().setSupportZoom(true);
// info_view.getSettings().setSavePassword(true);
info_view.getSettings().setPluginState(PluginState.ON);
info_view.getSettings().setAppCacheEnabled(true);
info_view.getSettings().setDatabaseEnabled(true);
info_view.getSettings().setDomStorageEnabled(true);
info_view.setWebChromeClient(new WebChromeClient());
info_view.loadUrl(url);
谢谢阿里,但它仍然不起作用,我使用的是简单的url info_view.loadUrl(“);但webview显示网页不可用。url确实包含http,但不知何故它没有显示在我的第一条评论中。如果你能给我发个例子的话