什么setUseWideViewPort()和setLoadWithOverviewMode()precisely吗? [英] What do setUseWideViewPort() and setLoadWithOverviewMode() precisely do?

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

问题描述

我感到失望的是,缺乏的WebView和相关的东西的文档。

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

(除非你认为以下是PROPERT documetation)

(unless you think the following is propert documetation)

公共无效setLoadWithOverviewMode   (布尔概述)

public void setLoadWithOverviewMode (boolean overview)

设置是否对   的WebView加载与概述页面   模式

Set whether the WebView loads a page with overview mode

市民同步无效setUseWideViewPort(布尔使用)

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(真)加载的WebView完全缩小

setLoadWithOverviewMode(true) loads the WebView completely zoomed out

setUseWideViewPort(真)使web视图有一个正常的视区(如一个正常的桌面浏览器),而当假的WebView将有一个视受限于自身的尺寸(所以如果web视图是50像素* 50像素的视口将是相同的大小)

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()precisely吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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