Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 要放大的WebView缩放_Android_Webview_Zooming_Scale - Fatal编程技术网

Android 要放大的WebView缩放

Android 要放大的WebView缩放,android,webview,zooming,scale,Android,Webview,Zooming,Scale,我使用一个简单的WebView加载单个站点。我希望内容更大一些。该站点响应迅速,因此没有扩展问题 有趣的是: webview.setInitialScale(50);工作 webview.setInitialScale(150);不起作用 我需要的是150:) 有什么原因吗? 谢谢。请简要解释您的答案,以便更实用。 // Try this way,hope this will help you to solve your problem... You can use this to fix

我使用一个简单的WebView加载单个站点。我希望内容更大一些。该站点响应迅速,因此没有扩展问题

有趣的是:

  • webview.setInitialScale(50);工作
  • webview.setInitialScale(150);不起作用
我需要的是150:)

有什么原因吗?
谢谢。

请简要解释您的答案,以便更实用。
// Try this way,hope this will help you to solve your problem...

You can use this to fixes size based on screen size.
webView.getSettings().setLoadWithOverviewMode(true);
webView.getSettings().setUseWideViewPort(true);