Mobile app development technology too much, how to choose

Source: Internet
Author: User
Tags code tag

With the continuous rise of internet entrepreneurship, the market for mobile application development of the demand for developers, as well as a variety of mobile development tool technology, roughly divided into three categories, the first is pure native development, pure native app is very good, but its high learning costs, long development cycle, the number of dozen yards, Generally for the financing after the enterprise comparison trial, the other is the two-year comparison of the fire of the Web app, is generally through the development of HTML5 to encapsulate and realize, well-known web app over-reliance on the network, rendering performance is weak, too much code tag too many, web app can only be said to be a temporary solution, Today we are going to talk about the third scenario, and the choice is made in many development tools and platforms because there is no native way to develop and deliver a smooth native experience. The perfect combination of XML and JavaScript breaks the development of conventional native apps, which not only brings the advantage of a relatively small amount of code, but also edits once for Android and iOS, although the iOS side is not very mature in comparison to Android. But with the forthcoming release of 5.0, these questions are believed to be solved.

Let's take a look at the specific demo development process

Before and everyone to share the order, news and imitation of the application of the source code, I believe we all have some understanding, these apps are the demo is developed with Imag.js

As a result of the previous development of the booking of the demo, think can also try to book accommodation app, if you want to redesign very troublesome, but also just want to make a demo, not released on-line, in the App Store search for a very new application, modeled to do. Find our UI beauty to cut all the pictures to me, and then the development.

In Imag.js, the default unit of pixels is DP, and the size of the text can be as long as the number is written.

Because there are so many pictures in the app, the load is slow, so it doesn't put the picture directly into the resource, but it is written in JSON format and uploaded to the simulation data, which is easy to call. Using Imag.js to call the client information function $phone.info (), you can get the information parameters of the phone screen, convenient to adjust the pixel scale.

One of the pages uses the Slidingmenu of the Slide menu control to complete the information navigation (for example). Slidingmenu defines two item, the first item is hidden at first, and the Open () method is called when the upper-left button is clicked to show the side-slip menu, of course, the Slidingmenu itself has a sliding effect, and the right slide responds to the sidebar. If you use native, Android does provide Horizontalscrollview, although you do not have to deal with conflicts manually, but also to understand the distribution mechanism of events.

Using the pop-up menu control PopupMenu, the contents of a list of the fill part of the table, you can set the list of the background, margin, text color and other styles.

The product type selection in the Actionmenu is shown by the pull-up menu control, which is used to display the iOS Actionsheet-style pull-up menu, is fixed in style, cannot customize the background and style on its own, and can only be created dynamically through JavaScript scripts. As follows

The following are relatively simple, most layouts are implemented with the list control, and the jump page uses the onclick= "$page. Open (") method. Individual pages are added to the screen control to display multiple sets of pictures.

The following code is the source code of the last photo to invite a friend

<?xml version= "1.0" encoding= "Utf-8"?><imag> <page> <title style= "background: #ffffff; height : "> <left> <icon src=" back_gray.png "style=" margin-left:20 "onclick=" $page. Close () "/> <label style=" Font-size:18;color: #3a3a3a; margin-left:32 "> Invite friends </label> </le ft> </title> <content style= "background: #f5f6f5" > <list type= "Transparent" styl E= "padding:0 "> <item style=" padding:0;margin-top:27 "> <row><button style=" backgr Ound: #ff5a5f; Height:44;width:100%;font-size:15;color: #ffffff; align:center;padding-top:2 "> Invite contact </button                        ></row> <row style= "height:15" ></row> <row> <label style= "color: #c8cbc6; font-szie:15;align:center" > ———————— </label> <l Abel style= "COLOR: #727a7e; font-szie:15;align:center;margin:0 "> </label> <label style=" color: #c8cbc6; font-szie:15;align:center "> ———————— </la bel> </row> <row style= "Height:12" ></row> &L T;row><label style= "color: #4d5153; Font-size:13;align:center" > Share links </label></row> </i tem> <item style= "padding:15 0;col-width:*,3,50" > <col><row><but ton style= "background: #ffffff; Height:44;width:100%;font-size:15;color: #f474b4d; align:center;padding-top:2" > Share to </button></row></col> <col></col> <col><ro W style= "Height:44;background: #ffffff" ><icon src= "Share.png" style= "Align:center"/></row></col > </item> <item style= "margin-top:15;padding:0 0 "> <row style="Background: #c9ccc7; height:1" ></row> <row style= "height:30" ></row>                    <row><label style= "Font-size:15;color: #7a8286; Align:center" > You have a travel fund coming soon </label></row>                <row><label style= "Font-size:15;color: #ff4c51; align:center" > View past Invitations </label></row> </item> </list> </content> </page></imag>
More detailed source code

Mobile app development technology too much, how to choose

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.