Source: http://www.mamicode.com/info-detail-1129829.html
Now hybrid app is a very hot development model, the corresponding development tools in the country are also disorderly like clumps, there are WeX5, Crossapp, Exmobi, Appcan, Apicloud, Hbuilder and so on.
Which WeX5 just outside the phonegap shell, the internal UI is through a large number of CSS,JS implementation, page switching is also a large number of WebApp mode, similar to the framework in jquery mobile, too biased to WebApp, performance is not a better experience, And the lack of third-party functionality SDK encapsulation support.
Crossapp is a practical tool for developing cross-platform applications in C + +, because Android and iOS applications themselves can be developed in C + +, so this is a native-like development, but the C + + development of Android applications or development of iOS applications is rare, Will not many people, lack of communication platform, the development of their own plug-in is more difficult, can only rely entirely on official provision, the official third-party plug-in library resources are not enough, it is difficult to meet the needs of the developer perverted.
Exmobi is a beacon of science and technology research and development of an internal use of the development platform, of course, can also buy the use of rights, although there is free version, but in the free version of the push feature is not open, you will choose? A large number of features need to be purchased in different versions before they are available and impractical for small development teams.
Appcan is one of the earliest research and development hybrid app development model of a member, its existence time, is currently the most domestic hybrid app development platform, why it can continue to persist? That certainly has its merits. Appcan based on multi-webview to develop a single activity mode app, recently removed Activitygroup, using fragment to replace, optimize the performance and experience, while its partners widely, the third-party SDK has everything, Can well meet the needs of the developer's metamorphosis.
Apicloud is a technology from Appcan, although many of its developers are Appcan original technical staff, but this is two different design methods, it also has a large number of third-party SDK support, and its UI is very comfortable to look at (personally think).
Hbuilder WebView Treatment Method and Apicloud basically similar, in fact, the use of WebView loading Web pages of the same technology, can be found on the web, but only in the details of the processing of different points.
Appcan&apicloud&hbuiler
- Initially using the Appcan feel that it opened a new window response is slow, and its internal UI is completely black, rather ugly, the original to find the relevant technical staff, want to provide the interface to choose UI theme, but finally left out, after Apicloud out, found its UI effect is very good, So we went over it and found that its window responds faster than Appcan.
- Now that the Appcan engine is all open source, developers can completely design their own, the theme is not a problem, and I again test the window response speed, now has a significant improvement, and apicloud do not want to go up and down
- Hbuilder's WebView initially has not been optimistic, because there is no hardware accelerated rendering, rendering is slow, there will be blank, and they officially provide a way to preload, I asked them the technology, preload does not consume too much resources? Their technology blurted out, as long as they do not show the consumption of resources, do not worry. And it seems to have published an article about preloaded, I was thinking, I have been in the development of the years have been white, which program to create a variable will not consume resources? Preloaded do you always create WebView instances? Who is it that is being fooled? If you really don't consume resources why do you provide a way to build a template page on the right, and all level two pages just need to be preloaded with two nested webview.
- For the former paragraph ui,appcan a set of very comprehensive CSS and JS framework, it fully adopts adaptive mode. What the? Not aware of self-adaptation? Well, let's introduce the difference in a minute. Hbuilder also has a set of Ui,js and CSS comparison, Apicloud no dedicated UI, users need to DIY, for individuals, I instead tend to apicloud, because they provide a UI in the JS and CSS too much and miscellaneous, Appcan JS introduced Zepto,backbone, underscore library, appear unusually bloated, resulting in page loading JS efficiency affected; Hbuilder all CSS and JS in a file, a large number of unused styles can not be deleted, Even if you only need a button style for this page, then you need to introduce the entire CSS and JS
- About self-adaptation, there are many people say that my front-end is adaptive ah, in fact, that is not strictly self-adaptive, your layout can only be said to be based on the size of the device adaptive, rather than the resolution, Apicloud and Hbuilder's webview will be scaled up or down according to the resolution of the device (generally amplification), not the original form of the Web page, which is why clearly defined 1px border on Android appears to be 2px or 1.5px reasons. And Appcan in 1px is 1DP, the device size is modified to be equal to the resolution, which makes the Web page in the WebView retains the original form, not zoom out, its visual experience is very good, pictures, etc. will not be distorted. The essential reason is that Appcan is based on the Android 4.4.2 API, which is API19, which is set up with viewport support, set viewport in target-densitydpi= DEVICE-DPI can achieve high-definition results, and Apicloud is based on the development of API20 above, Android does not support the viewport property after 4.4, so setting the viewport property in Apicloud does not have any effect, in this hbuilder and Appcan similar, the Viewport property can be modified by the pixel point, so that a better visual experience, of course, can also To set the same situation as Apicloud, this has a good selectivity, but this layout requires a strong ability, appcan for different resolutions defined different font size, that is, the EM value corresponding to the pixel, in which the layout is best to use EM to achieve, do not use PX. The use of PX in Apicloud can achieve the same effect on different phones, which is the adaptation of different resolutions
Appcan, Apicloud, hbuilder differences in the analysis