隐藏在android系统的PhoneGap应用程序的屏幕按钮 [英] Hide on screen buttons in android phonegap app
问题描述
我已使用的PhoneGap为Android应用程序,我想使它真正全屏和隐藏/在屏幕的底部移除按钮(后退按钮,home键和应用程序切换键)我知道这是可能的,因为BBC的iPlayer应用程序做它,当你观看视频,但我不知道是否有可能与PhoneGap的,有谁知道,如果是这样,如果是的话,你可以点我在正确的方向。
I've made an app for Android using phonegap and i wanted to make it really full screen and hide/remove the buttons at the bottom of the screen (The back button, the home button and the app switcher button) I know this is possible because the BBC iPlayer app does it when you're viewing a video, but i dont know if it's possible with phonegap, Does anyone know if it is, and if so, could you point me in the right direction
推荐答案
不可能的 - 我没有使用过BBC体育的应用程序正常,但妄自猜测它使用设备的默认播放器(这是一个Android播放器),从而这是你想要全屏模式唯一可取的时间。
Not possible - I haven't used the BBC Sport app properly, but hazard a guess it uses the device's default player (which is an Android player) and thus this is the only desirable time you want full-screen mode.
Android的依赖于这些按钮 - 否则,你怎么可以退出应用程序?这就像在iOS home键 - 你需要它来操作设备
Android relies on those buttons - otherwise, how can you exit the app? It's like the home button on iOS - you need it to operate the device.
有是的你可以使用背面键和菜单键,您可以覆盖默认行为,事件监听器:
There are event listeners you can use for the back button and menu button which you can override the default behaviour for:
document.addEventListener('backbutton', function () {
// do something when back is pressed
}, false);
document.addEventListener('menubutton', function () {
// do something when menu is pressed
}, false);
这就是它虽然。觉得在三星Galaxy手机方面 - 这些都是硬按键,所以你不能隐藏他们像你可以在普通的Android
That's about it though. Think in terms of the Samsung Galaxy phones - these are hard buttons and so you can't 'hide' them like you can on stock Android.
这篇关于隐藏在android系统的PhoneGap应用程序的屏幕按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!