禁用变焦按钮的PhoneGap的inappbrowser [英] Disable zoom buttons in Phonegap's inappbrowser

查看:260
本文介绍了禁用变焦按钮的PhoneGap的inappbrowser的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在搜索和尝试不同的东西的时间,我接近放弃。我想在现在包括到PhoneGap的生成的inAppBrowser打开外部URL。我删除与位置的地址栏=没有(也试过工具栏=没有,但它没有做任何事情)然而变焦(+和 - 按钮)每当你滚动页面不会消失出现。我无法找到一个方法来禁用它,但也许我忽略的东西吗?我只是用双指缩放,所以我看不出有在页面顶部这些丑陋的按钮(这是为这个应用程序专门设计)的原因。

After hours of searching and trying different things I'm close to give up. I want to open an external URL in the inAppBrowser that is now included to the Phonegap Build. I remove the address bar with location=no (also tried toolbar=no, but it didn't do anything), however the zoom (+ and - buttons) that appears whenever you scroll the page won't go away. I can't find a way to disable it, but maybe I overlook something? I'd just use the pinch zoom, so I don't see the reason to have these ugly buttons on top of the page (which is designed specifically for this app).

那么,有没有禁用内置变焦按钮的方式?

So is there a way to disable built-in zoom buttons?

我测试,在Android上,但计划也对iPhone版本。

I'm testing on Android, but planning to also work on the iPhone version.

推荐答案

我有同样的问题,但使用的,而不是建设的PhoneGap科尔多瓦。
这为我做的诀窍是行 InAppBrowser.java 575更改为 settings.setBuiltInZoomControls(假);

I had the same issue, but using Cordova instead of Phonegap Build. The trick that did it for me was to change line 575 of InAppBrowser.java to settings.setBuiltInZoomControls(false);.

这不会为当然iOS的工作,但据我所知,在通过PhoneGap的/科尔多瓦提供的方式没有其他版本。

That won't work for iOS of course, but as far as I know there is no other build in way provided by Phonegap/Cordova.

这篇关于禁用变焦按钮的PhoneGap的inappbrowser的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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