的WebView总结内容内容、WebView

2023-09-06 13:20:16 作者:弑魂

是否有可能加载一个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...