相当于android钛合金的NavigationWindow
我在iphone上创建了一个应用程序,现在客户端也希望在android平台上使用它。该导航由IOS中的导航窗口处理,但在android中找不到类似的导航。我已经尝试了解决方案,因为我正在使用钛合金框架来开发应用程序。 以下是适用于iphone的示例代码相当于android钛合金的NavigationWindow,android,iphone,titanium-mobile,titanium-alloy,Android,Iphone,Titanium Mobile,Titanium Alloy,我在iphone上创建了一个应用程序,现在客户端也希望在android平台上使用它。该导航由IOS中的导航窗口处理,但在android中找不到类似的导航。我已经尝试了解决方案,因为我正在使用钛合金框架来开发应用程序。 以下是适用于iphone的示例代码 AlloyView1.xml <Alloy> <NavigationWindow id="navParent"> <Window> <TextField id= "txtUse
AlloyView1.xml
<Alloy>
<NavigationWindow id="navParent">
<Window>
<TextField id= "txtUsername" width="120" height = "40"/>
<Button id="btnNext" width="100" height="40" onClick="goNext"/>
</Window>
</NavigationWindow>
</Alloy>
AlloyView1.js
$.AlloyView1.open();
var navParentWin = $.navParent;
function goNext(e){
var nav
var controllerView = Alloy.createController('Home').getView();
navParentWin.openWindow(controllerView);
}
Home.xml
<Alloy>
<Window>
<!-- Some View -->
</Window>
</Alloy>
home.js
可能会使用android的本地功能,
function xyz(){
//something here
}