哪个UI用于Cordova Android / iPhone应用程序开发 [英] Which UI to use for Cordova Android/iPhone app development

查看:150
本文介绍了哪个UI用于Cordova Android / iPhone应用程序开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始使用Cordova / PhoneGap进行Android / iPhone应用程序开发,并且非常混淆框架数量。我参加了Christophe Coenraets的教程(这里这里)作为起点,并设法得到一些工作,但我目前的问题是得到一个很好的用户界面。



上述教程使用 http://topcoat.io/ topcoat / http://goratchet.com/ ,但两者似乎都没有什么支持。但这些真正的吸引力是因为它们非常轻量,并且独立于代码的功能方面。



我看过 http://mobileangularui.com/ 这看起来不错,但我真的很困惑的在Bootstrap和Angular JS构建HTML5移动应用程序在首页 - 我可以只使用UI层或者它需要Angular JS和Bootstrap。这些基本上是不同的竞争框架?



最后,我用这些创建了测试应用程序,他们都在我的Android 4.2手机上正常工作,但所有的各种问题(通常不会滚动)在我的旧的Android 2.3手机 - 这些现代框架不支持那个年龄的手机?



提前感谢。

解决方案

首先,您的Cordova应用程序应采用 SPA(单页应用程序)设计。松散定义, SPA 是从网页的一个请求运行的客户端应用程序。用户加载一组初始资源( HTML,CSS和JavaScript ),并通过AJAX进行进一步更新(显示新视图,加载数据)。 SPA通常用于更复杂的客户端应用程序。 GMail 就是一个很好的例子。加载 GMail 后,邮件视图,编辑和整理都通过更新 DOM 完成,而不是实际离开当前页面以加载一个全新的。 更多.....



SPA库(UI)的示例可以在 Cordova / strong>应用程序包括:



1) AngularJS

2) jQuery Mobile



3) Kendo UI



4) Sencha Touch



5)主干


I’m getting started with using Cordova/PhoneGap for Android/iPhone app development and am very confused with the number of frameworks out there. I have taken tutorials by Christophe Coenraets (here and here) as a starting point and managed to get something working, but my current problem is getting a nice UI.

The tutorials mentioned above use http://topcoat.io/topcoat/ and http://goratchet.com/ but both of them seem to have very little support. But these really appeal to be because they are so lightweight and are independent of the functional aspects of the code.

I've looked at http://mobileangularui.com/ which looks great, but I'm really confused by "Build HTML5 Mobile Apps with Bootstrap and Angular JS" on the homepage - can I use just the UI "layer" or does it need both Angular JS and Bootstrap. And are these essentially different, competing frameworks?

Finally, I've created test apps with these and they all work fine on my Android 4.2 phone, but all of the have various issues (usually will not scroll) in my older Android 2.3 phone - do these modern frameworks not support a phone of that age?

Thank you in advance.

解决方案

First and foremost - your Cordova applications should adopt the SPA (Single Page Application) design. Loosely defined, a SPA is a client-side application that is run from one request of a web page. The user loads an initial set of resources (HTML, CSS, and JavaScript) and further updates (showing a new view, loading data) is done via AJAX. SPAs are commonly used for more complex client-side applications. GMail is a great example of this. After you load GMail, mail views, editing, and organization are all done by updating the DOM instead of actually leaving the current page to load a completely new one. More.....

Examples of SPA libraries(UI) you can use in your Cordova applications are:

1) AngularJS

2) jQuery Mobile

3) Kendo UI

4) Sencha Touch

5) Backbone

这篇关于哪个UI用于Cordova Android / iPhone应用程序开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆