Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/212.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
相当于android钛合金的NavigationWindow_Android_Iphone_Titanium Mobile_Titanium Alloy - Fatal编程技术网

相当于android钛合金的NavigationWindow

相当于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

我在iphone上创建了一个应用程序,现在客户端也希望在android平台上使用它。该导航由IOS中的导航窗口处理,但在android中找不到类似的导航。我已经尝试了解决方案,因为我正在使用钛合金框架来开发应用程序。 以下是适用于iphone的示例代码

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
  }