您的位置:首页 > 移动开发

WebView适配手机界面问题

2016-05-16 10:55 302 查看
webView = (WebView) findViewById(R.id.webView_deal);
WebSettings webSettings= webView.getSettings();
webSettings.setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);
//找到Html文件,也可以用网络上的文件
webView.loadUrl("http://weixin.aixuepai.com.cn/axp-web/html/userprotocol.html");


只需添加如下代码即可
WebSettings webSettings= webView.getSettings();
webSettings.setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Web View 适配