的WebView总结内容 [英] WebView wrap-content

查看:93
本文介绍了的WebView总结内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能加载一个URL在web视图,并调整其大小以适合屏幕?我的意思是我想使网页小,以使用户不需要进行滚动。这可能吗?

Is it possible to load a URL in a WebView and resize it to fit the screen? I mean I want to make the WebPage small so that the user doesn't need to scroll. Is this possible?

推荐答案

@ user289751,YALÇIN

@user289751, yalçın

还有朋友,克里斯托弗中提到,缩小太多是不是用户想怎么把它会降低显示的内容的可读性...

well friends as "Christopher" mentioned, zooming out too much is not something the user would like coz it'll reduce the legibility of the content shown...

而我想提出一个替代的......其更好ü尝试设置缩放控件...不要知道他们是否会工作在2.1或不...

rather i would like to suggest a alternate... its better u try setting the zoom controls... don know if they'll work in 2.1 or not...

webview.getSettings().setBuiltInZoomControls(true);

希望这能解决乌尔问题......堂妹现在乌尔给用户的控制来改变缩放级别...

hope this solves ur problem... coz now u r giving user the control to change the zoom level...

这篇关于的WebView总结内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆