首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

webview android有关设置

2013-07-09 
webviewandroid相关设置webview how to fit the webpage to the device screen size:mWebView.getSettings

webview android相关设置

webview how to fit the webpage to the device screen size:mWebView.getSettings().setLoadWithOverviewMode(true);mWebView.getSettings().setUseWideViewPort(true);//use BuiltInZoomControls & can zoommWebView.getSettings().setBuiltInZoomControls(true); mWebView.getSettings().setSupportZoom(true);//bollow code from WebView.javaWebSettings settings = getSettings();                        mInZoomOverview = settings.getUseWideViewPort() &&                                settings.getLoadWithOverviewMode();so, need add setLoadWithOverviewMode & setUseWideViewPort setting.

?

热点排行