setUseWideViewPort() 和 setLoadWithOverviewMode() 究竟是做什么的? [英] What do setUseWideViewPort() and setLoadWithOverviewMode() precisely do?

查看:156
本文介绍了setUseWideViewPort() 和 setLoadWithOverviewMode() 究竟是做什么的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对缺乏 WebView 和相关内容的文档感到失望.

I am disappointed at the lack of documentation of WebView and related stuff.

(除非你认为以下是财产文件)

(unless you think the following is propert documetation)

public void setLoadWithOverviewMode(布尔概述)

public void setLoadWithOverviewMode (boolean overview)

设置是否WebView 加载带有概览的页面模式

Set whether the WebView loads a page with overview mode

和:

public synchronized void setUseWideViewPort (boolean use)

public synchronized void setUseWideViewPort (boolean use)

告诉 WebView 使用宽视口

Tell the WebView to use the wide viewport

所以:什么是概览模式"?什么是宽视口"?

ps:我试图寻找与 webkit 相关的文档,但找不到.

ps: I tried to look for webkit related docs but could not find it.

推荐答案

显然:

setLoadWithOverviewMode(true) 加载完全缩小的 WebView

setLoadWithOverviewMode(true) loads the WebView completely zoomed out

setUseWideViewPort(true) 使 Webview 有一个正常的视口(例如一个普通的桌面浏览器),而当为 false 时,webview 将有一个限制在它自己尺寸上的视口(所以如果 webview 是50px*50px 视口大小相同)

setUseWideViewPort(true) makes the Webview have a normal viewport (such as a normal desktop browser), while when false the webview will have a viewport constrained to its own dimensions (so if the webview is 50px*50px the viewport will be the same size)

这篇关于setUseWideViewPort() 和 setLoadWithOverviewMode() 究竟是做什么的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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