在Android的.iOS.createNavigationWindow等效? [英] Equivalent of .iOS.createNavigationWindow in Android?
问题描述
我开发了一个应用程序使用钛
的iOS。现在,我的想法是把它试图移植到Android设备。
I am developed an app for iOS using Titanium
. Now my idea is to try to port it to android devices.
我发现很多这我解决,我去的错误,但我似乎还没有找到解决这一个。
I am finding lots of errors which I am solving as I go, but I don't seem to find the solution to this one.
我对iOS应用使用 createNavigationWindow
通过整个应用程序进行导航。因为它告诉我的Android不喜欢这样的命令,它是不确定的。
My app for iOS uses createNavigationWindow
to navigate through the whole app. Android don't like that command as it tells me it is undefined.
我一直在寻找 createNavigationWindow
的Android版本,但无法找到它。
I been looking for an Android version of createNavigationWindow
but can't find it.
在正确的方向任何提示将非常AP preciated。
Any tip in the right direction will be really appreciated.
Titanium SDK : 3.1.3
Android: 4.4
谢谢!
推荐答案
Android不具备导航窗口的概念,但它确实有操作栏只适用于3.0+ Android版本,所以你必须记住这一点使用之前。其他比你可以伪造导航窗口中加入一个视图窗口为Android 3.0 -
Android does not have concept of navigational Window but it do have action Bar which only works for 3.0+ android version so you have to keep that in mind before using that.Other than that you can fake the navigation-window by adding a view to window for android 3.0-
var win=Ti.UI.createWindow();
if(Ti.Platform.osname==='android'){
var view=Ti.UI.createView({
backgroundColor:'black',
height:'40dp',
top:'0dp',
width:Ti.UI.FILL
})
}
win.add(view);
win.open();
感谢
这篇关于在Android的.iOS.createNavigationWindow等效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!