Invention content
For the disadvantages described above or Improvement requirement of the prior art, the present invention provides a kind of Android application development system,Purpose is Android application and development upper layer module and lower layer's interface module by providing specification, thus solves Android application and developmentSize of code is big and lack of standardization, the technical issues of being difficult to safeguard.
To achieve the above object, according to one aspect of the present invention, a kind of Android application development system is provided, including withIn the upper-layer functionality module and lower layer's interface module of page development;
The upper-layer functionality module is used to interact with developer, including button module, gesture module and page animation mouldBlock;
Lower layer's interface module, for generation Android bottom code associated with the upper-layer functionality module, includingConfiguration interface passes ginseng interface, event interface, cloth station interface, associated interface, runnable interface and restarts interface.
Preferably, the Android application development system, button module and event interface, cloth station interface, associated interface, fortuneLine interface restarts interface and is connected, and for monitoring corresponding event to trigger corresponding trigger, the button module includes notableBeggar's module, the attention rate for promoting button when button is selected;Notable beggar's module includes:First notableization mouldBlock for detecting touch point of the user on the mobile device page, and records the coordinate of the touch point;Second notableization module,Background color for obtaining current page, and the background color is subjected to discoloration processing, and will discoloration treated background faceColor is used as the fill color of the page;Third significantly changes module, for counter i=1 to be arranged, using touch point as the center of circle, based on shiftingRadius r determined by the screen density L of dynamic equipment draws i-th of circle;4th notableization module, for judging whether user stopsThe page of mobile device is touched, if it is, into the 7th module, otherwise enters the 5th module;5th notableization module, is used forI=i+1 is set, i-th of concentric circles is drawn with Fixed Time Interval, and judge whether i-th of concentric circles has had been filled with entirelyOtherwise the page returns to the 4th module if yes then enter the 6th module;6th notableization module, for keeping full page to beOccupied state, until user stops touching the page of mobile device;7th notableization module, for judging that full page isIt is no to be already filled up, it is if it is transferred to the 8th module, otherwise with than full page required time will be filled more in the 5th moduleFew time fills up the full page of mobile device, subsequently into the 8th module;8th notableization module, for fixedTime interval reduces the transparency of page fill color, until it eventually becomes all-transparent.
Preferably, the Android application development system, gesture module, for detecting user gesture touch event and identifyingGesture operation, including generic gesture identification submodule and boundary gesture operation submodule, the boundary gesture operation submodule packetIt includes:Boundary gesture operation detection module, the sliding touch operation carried out on the touchscreen according to first direction for detecting user;Boundary gesture operation identification module, for identification initiation site of the sliding touch operation and displacement;Boundary gesture operationOne judgment module, for judging the initiation site whether in the boundary of display content.
Preferably, the Android application development system, page animation module, for generating and showing between page layout switchView animation, including view animation producing submodule and view animation display sub-module;The view animation producing submodule packetPage animation starting point assignment module is included, the attribute assignment for each view to animation starting point;Page animation terminal assignment module,Attribute assignment for each view to animation terminal;Page animation generation module, it is current for the animation in timer recordTime, the category of each view of the variation progress percentage, animation starting point that are calculated according to interpolation device and each view of animation terminalAttribute calculates the attribute of each view of current animation and generates present image.
Preferably, the Android application development system, configuration interface are used to carry out underlying parameter to the five application pageConfiguration.
Preferably, the Android application development system passes ginseng interface for receiving page data.
Preferably, the Android application development system, time interface is for creating event trigger.
Preferably, the Android application development system, cloth station interface from layout for extracting element.
Preferably, the Android application development system, associated interface are used to that trigger to be arranged for the element.
Preferably, the Android application development system, runnable interface is for informing that the page or subpage frame have begun to transportRow, can carry out the operations such as data access.
Preferably, the Android application development system restarts interface for refresh data and generates refreshing report notificationUser.In general, through the invention it is contemplated above technical scheme is compared with the prior art, can obtain it is following beneficial to effectFruit:
Android application development system provided by the invention, upper-layer functionality module can easily realize the interaction with developer,Visual development process further can be achieved, for developer close friend;The generation corresponding generation of lower layer's interface module energy specificationCode reduces loophole, convenient for maintenance.
The present invention can simplify application development by having write a large amount of function modules in advance with high degree in summaryProcess;And define a set of written in code specification so that developer can largely eliminate due to different coding stylesCaused programming conflict, greatly simplifies the process that developer calls these functions.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, rightThe present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, andIt is not used in the restriction present invention.As long as in addition, technical characteristic involved in the various embodiments of the present invention described belowIt does not constitute a conflict with each other and can be combined with each other.
Android application development system provided by the invention, as shown in Figure 1, including upper-layer functionality module and lower layer interface mouldBlock.
The upper-layer functionality module, for being interacted with developer, make the page that developer can be simply to a application andThe functional development of subpage frame, including but not limited to following module:
Button module, with event interface, cloth station interface, associated interface, runnable interface, restart interface and be connected, for monitoringDetection corresponding event is to trigger corresponding trigger, such as multiselect button clicks event, and the button module includes notable beggarModule, the attention rate for promoting button when button is selected.
Notable beggar's module includes:First notableization module, for detecting user's touching on the mobile device pageIt touches a little, and records the coordinate of the touch point;Second notableization module, the background color for obtaining current page, and by the back of the bodyScape color carries out discoloration processing, and will discoloration treated background color the is used as page fill color;Third significantly changes module, uses(it is initial by radius r determined by setting counter i=1, the screen density L using touch point as the center of circle, based on mobile deviceValue is equal to L) i-th of circle is drawn, wherein the screen density is referred to according to pixel resolution, the wide Gao Fan of physics is specified in screenThe pixel quantity that interior energy is shown is enclosed, in the high region of same width, the pixel that the display screen of low-density can be shown is less, and high densityDisplay screen can then show more pixels.4th notableization module, for judging whether user stops touching mobile deviceOtherwise the page enters the 5th notableization module if it is, into the 7th notableization module;5th notableization module, for settingI=i+1 is set, i-th of concentric circles is drawn with Fixed Time Interval, and judge whether i-th of concentric circles has had been filled with entire pageOtherwise face returns to the 4th notableization module if yes then enter the 6th notableization module;6th notableization module, for keepingFull page is occupied state, until user stops touching the page of mobile device;7th notableization module, for judgingWhether full page is already filled up, and is if it is transferred to the 8th notableization module, otherwise with than being incited somebody to action in the 5th notableization moduleThe less time fills up the full page of mobile device the time required to filling full page, subsequently into the 8th notableization mouldBlock;8th notableization module, the transparency for reducing page fill color at regular intervals, until it eventually becomes entirelyUntil transparent.The origin of coordinate system is the upper left corner of the page in the first notableization module.The discoloration processing includes pairThe intensification of background color handles and the processing that shoals, and can freely be changed according to the visual effect needed for user.Described 5thThe time interval that concentric circles is drawn in notableization module is 10 milliseconds to 33 milliseconds, and it is L that notableization draws a radius for the first timeCircle, after time interval, notableization draws the circle that a radius is 2L second, until the last one circle fills up full pageUntil.8th notableization mould time interval in the block is 10 milliseconds to 33 milliseconds.
Link block is connected with ginseng interface, event interface is passed, for after the triggering corresponding time detection device whether connectNetwork.
Gesture module, for detecting user gesture touch event and identify gesture operation, including generic gesture identifies submoduleBlock and boundary gesture operation submodule, the boundary gesture operation submodule include:Boundary gesture operation detection module, for examiningSurvey the sliding touch operation that user carries out according to first direction on the touchscreen;Boundary gesture operation identification module, for identificationThe initiation site of the sliding touch operation and displacement;The first judgment module of boundary gesture operation, for judging the start bitWhether point is in the boundary of display content.The first judgment module includes described in the boundary gesture operation:Touch screen boundary judgesSubmodule, for judging whether the initiation site is in the boundary of the touch screen and the second direction of first direction contrary;Content boundaries judging submodule is shown, for judging that the touch screen shows whether content is in a second direction in the displayThe boundary of appearance;Show content second when the initiation site is in the boundary of the touch screen second direction and the touch screenWhen being its boundary on direction, judge that the initiation site is in the boundary of display content.Second judges described in the gesture operationModule includes:First direction judging submodule, for judging whether the displacement of the sliding touch operation in a first direction fallsEnter preset first threshold range;Second direction judging submodule, for judge the sliding touch operation with first directionWhether the displacement on vertical third direction falls into preset second threshold range;When the sliding touch operation in a first directionOn displacement fall into preset first threshold range and the displacement of the sliding touch operation on third direction fall into it is presetWhen second threshold range, judge that the sliding touch operation falls into effective range.The boundary gesture operation identification module, may be used alsoIt is in the block one or more that submodule is generated including first to fourth order;First order generates submodule, for when describedWhen sliding touch operation is effective operation and first direction is downward, identify that the sliding touch operation is pulling operation, according toConcrete condition is generated shows content, mute, locking order as described in refreshing;Second order generates submodule, for working asWhen the sliding touch operation is effective operation and first direction is upward, identify that the sliding touch operation is upper pulling process,It generates as the case may be and shows content rest part as described in load, opens volume, unlock order.The third order lifeAt submodule, for when the sliding touch operation is effective operation and first direction is to the left, identifying that the sliding touchesOperation is that Zola operates, and generates such as skid off left-hand column, page up, rollback order as the case may be.The 4th order lifeAt submodule, for when the sliding touch operation is effective operation and first direction is to the right, identifying that the sliding touchesOperation is right pulling process, generates such as skid off right hand column, lower one page, F.F. order as the case may be.
Page starting module, for starting other pages.
Empty content module is retried for prompting user to refresh when the page does not have data.
Load-on module, for loading data from network.
Page animation module, for generating and showing the view animation between page layout switch, including view animation producing submoduleBlock and view animation display sub-module;The view animation producing submodule includes page animation starting point assignment module, for pairThe attribute assignment of each view of animation starting point;Page animation terminal assignment module, the attribute for each view to animation terminalAssignment;Page animation generation module, for the animation current time in timer record, the variation progress calculated according to interpolation devicePercentage, animation starting point each view category and animation terminal each view attribute calculate current animation each view attributeAnd generate present image.The starting point assignment module, the following attribute value for each view to animation starting point carry out assignment:GraduallyChange degree, rotation angle, zoom degree, center position, displacement, coordinate, background colour, size and/or text color;And it will assignStarting point of the attribute of each view after value as animation, the preferably described starting point assignment module acquiescence use the category of current each viewProperty its attribute value carry out assignment.The terminal assignment module, the following attribute value for each view to animation terminal are assignedValue:Gradual change degree, rotation angle, zoom degree, center position, displacement, coordinate, background colour, size and/or text color;And using the attribute of each view after assignment as the terminal of animation, the preferably described terminal assignment module acquiescence is respectively regarded using currentIts attribute value of the attribute of figure carries out assignment.The rule change of the interpolation device acquiescence is at the uniform velocity to change.
Toning plate module, for extracting the tone in a pictures.
Message notifying module, for showing a prompting message.
A module is acted, for operating the action item on device screen.
View handover module, display/hidden state for switching multiple elements on the page.
Lower layer's interface module, for generating Android bottom code, including configuration interface, pass ginseng interface, event interface,Cloth station interface, runnable interface, restarts interface at associated interface.
The configuration interface is used to carry out underlying parameter configuration to the five application page.
The biography ginseng interface is for receiving page data.
The time interface is for creating event trigger.
The cloth station interface from layout for extracting element.
The associated interface is used to that trigger to be arranged for the element.
The runnable interface can carry out the operations such as data access for informing that the page or subpage frame have begun to run.
It is described to restart interface for refresh data and generate refreshing report notification user.
Android application development system provided by the invention, interactive module is provided for developer, is adjusted in the interactive moduleWith corresponding function interface, to quickly generate a large amount of reputable codes, loophole is few, convenient for safeguarding and updating.
Android system provided by the invention works according to following flow:
Self-test and to operating system application memory source after system starts, opens upper layer module and is interacted with developer, successivelyExpanded configuration interface passes ginseng interface, event interface, cloth station interface, associated interface;Developer is required to extend operation after the completion of extensionInterface runs program;It is expansible to restart interface refreshing;It is recycled after completing extension and destroys the memory money applied in process of self-testSource.
As it will be easily appreciated by one skilled in the art that the foregoing is merely illustrative of the preferred embodiments of the present invention, not toThe limitation present invention, all within the spirits and principles of the present invention made by all any modification, equivalent and improvement etc., should all includeWithin protection scope of the present invention.