如何用Titanium隐藏Android上的软导航栏?[英] How to hide the soft navigation bar on Android with Titanium?

本文是小编为大家收集整理的关于如何用Titanium隐藏Android上的软导航栏?的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

请某人指出,使用Appcelerator将如何隐藏Android上的导航栏的示例.

不是动作栏,也不是标题栏.我可以制作这些隐藏. 我想制作一个完全全屏应用程序,并隐藏导航栏

感谢

推荐答案

您尝试实现的是称为沉浸式全屏模式,可以从Android 4.4开始,但似乎钛不支持旗帜;有一个模块

其他推荐答案

在tiapp.xml文件中:

<fullscreen>true</fullscreen>
<navbar-hidden>true</navbar-hidden>

在app.tss或index.ts中:

'Window':{
    navBarHidden:true,
    tabBarHidden:true,
    fullscreen:true
}

和index.js:

$.index.addEventListener("open",function() {

    if(OS_ANDROID) $.index.activity.actionBar.hide();
});

其他推荐答案

由于钛5.2在tiapp.xml中使用钛5.2.

见隐藏软导航栏在释放笔记.

本文地址:https://www.itbaoku.cn/post/1938225.html

问题描述

Please can someone point to an example of how to hide the navigation bar on android, using Appcelerator.

NOT the action bar, nor the title bar. I can make these hide. I want to make a completely fullscreen app, and hide the navigation bar

thanks

推荐答案

What you are trying to achieve is called immersive fullscreen mode, it is possible to do it from android 4.4, but it seems that Titanium don't support the flag; there is a module that does this thing, haven't personally tried it but probably will do what you need.

其他推荐答案

In the tiapp.xml file:

<fullscreen>true</fullscreen>
<navbar-hidden>true</navbar-hidden>

In the app.tss or index.tss:

'Window':{
    navBarHidden:true,
    tabBarHidden:true,
    fullscreen:true
}

And in the index.js:

$.index.addEventListener("open",function() {

    if(OS_ANDROID) $.index.activity.actionBar.hide();
});

其他推荐答案

What you want is possible since Titanium 5.2 by using <fullscreen>true</fullscreen> in tiapp.xml.

See Hide Soft Navigation Bar in the Release Notes.