The multiwindow browing system based on mobile middleware of mobile phone or PDA
Technical field
Invention relates to intelligent movable equipment browse field, is specifically related to carry out the system that multiwindow is browsed at intelligent movable equipment.
Background technology
In the system of now common several intelligent movable equipment, as i Phone system, Android cell phone system, blueberry cell phone system and Google's cell phone system etc., browsing all is single window.The browsing area of intelligent movable equipment own is just little, and the processor processing speed is slow.Single window is browsed and has been caused switch slow more.
Summary of the invention
The present invention is directed to the drawback of prior art, provide a kind of multiwindow to browse the system of mobile phone or PDA (handheld digital device) screen.
It is a kind of on screen and deposit a plurality of windows that one object of the present invention is to provide, and can switch arbitrarily, carries out the system of life cycle management separately.
Another object of the present invention is that the switching between a plurality of windows has the animation transition, provides the user to experience.
Another purpose of the present invention is to provide floating frame at mobile phone screen.
For this reason, the invention provides the multiwindow browing system based on mobile middleware of a kind of mobile phone or PDA, wherein, comprising:
The mobile middleware layer, it is arranged on mobile phone or the PDA operating system layer, is used for finishing cross-platform mobile applications for the user in different operating system and makes up;
A plurality of windows, it is structured on the mobile middleware layer, is presented in the browsing area of mobile phone or PDA screen, and each window has independently network view, and the user interface of each window, internal memory and logic independently exist.
Preferably, in the multiwindow browing system based on mobile middleware of described mobile phone or PDA, the memory address of all windows all has in the window stack that the data structure that combines with doubly linked list and Hash table realizes to be quoted.
Preferably, in the multiwindow browing system based on mobile middleware of described mobile phone or PDA, each window all has title, position, size, default font, transparency, demonstration and hiding attribute.
Preferably, in the multiwindow browing system based on mobile middleware of described mobile phone or PDA, the life cycle of each window comprises with activation time correlation or operation response, standby, backstage and stops.
Preferably, in the multiwindow browing system based on mobile middleware of described mobile phone or PDA, in the mode identical with the mode of user interface element pop down among mobile phone or the PDA, the a plurality of windows that make up are pressed into described window stack, by window attribute is controlled, realize the life cycle of each window is managed separately.
Preferably, in the multiwindow browing system based on mobile middleware of described mobile phone or PDA, also be nested with floating frame in described a plurality of window, in window stack, set up the hash index table of floating frame, for each floating frame distributes unique identifier, and this identifier is stored in the corresponding floating frame hash index table, keep quoting floating frame.
Preferably, in the multiwindow browing system based on mobile middleware of described mobile phone or PDA, the life cycle of all floating frames of each window management on it, and the communication between bridge joint script and the floating frame.
Preferably, in the multiwindow browing system based on mobile middleware of described mobile phone or PDA, wherein, the Z order of all floating frames on the user interface level that makes up a window correspondence arranged linked list data structure, all floating frames are all preserved a in this chained list with the sign of unique index, more the unique index sign on upper strata is more little to be positioned at this window user interface.
Preferably, in the multiwindow browing system based on mobile middleware of described mobile phone or PDA, mode by expansion Javascript multiwindow mechanism object, the application programming interface of open Javascript is called to webpage, webpage is by calling the purpose that these application programming interface reach floating frame in control/scheduling window and the window, realize between window and window mutual in the window between floating frame and floating frame.
Preferably, in the multiwindow browing system based on mobile middleware of described mobile phone or PDA, the activation of each window, standby, backstage and stop between via the animation transition, and/or the transition between window and the window is also via the animation transition.
The multiwindow browing system based on mobile middleware of mobile phone of the present invention or PDA, the user can realize all that on the mobile phone of any operating system or PDA multiwindow browses, floating frame is browsed with the window animation and is switched.
Description of drawings
Fig. 1 arranges synoptic diagram for mobile phone of the present invention or PDA screen browsing area window;
Fig. 2 is window attribute synoptic diagram of the present invention;
Fig. 3 is multiwindow operation chart of the present invention;
Fig. 4 calls synoptic diagram for the floating frame under the window of the present invention;
Fig. 5 is synoptic diagram mutual between window of the present invention and between floating frame.
Embodiment
The present invention is described in further detail below in conjunction with accompanying drawing, can implement according to this with reference to the instructions literal to make those skilled in the art.
Ask for an interview Fig. 1~Fig. 5, describe the present invention.
The present invention relates to the browser engine technology, relate to second generation mobile middleware technology, relate to the W3C standard technique, also relate to IOS, Android, intelligent mobile device development technique such as Windows Phone.
Mobile middleware is to connect different mobile the application, and a kind of software of program and system can move in various operating systems.
The invention use in multiwindow, window is nested with the mechanism of floating frame, adopt the theory of Window to divide window, realized that each Window independently exists, UI (user interface), internal memory and logic are separate, support that simultaneously the Javascript (script) between the Window, within the Window between the floating frame is mutual, close hiding redirect etc. by opening of Javascript scheduling Window, and can specify the window performance transition cartoon of a correspondence.Solved in existing mobile middleware (the PhoneGap quick development platform of cross-platform mobile applications (mobile), AppMobi etc.) the single window mechanism, inefficiency, operation slowly, poor user experience can be expanded, but drawback such as the carry ability is low.More existing mobile middleware is compared under the environment for use of equal hardware device, and the present invention is as good as with the native application in user's experience, in operational efficiency very large raising is arranged.
The present invention is based on the window management mechanism of cell phone system, by the fractionation of control window, window turnover screen, technology such as maintenance window stack heap, window life cycle realize multi-window managing.
The present invention will be described below in conjunction with accompanying drawing.As shown in Figure 1, but the device screen operating area is converted to the concept of window, by splitting, device screen (window) has been divided into top window (Top), bottom windows (Bottom), main window (Main), PopOver (floating frame) zone, each zone is made up of WebView (network view) independently, and is separate, get around regulations mutually again, realize that UI (user interface) element in the window Window freely defines.Wherein, the existence of PopOver (floating frame namely click to eject view) is more flexible, can be present in any position among the Window with any size.
As shown in Figure 2, the data structure of using doubly linked list and Hash table to combine realizes the stack heap of Window, the memory address of all Window all has in this stack to be quoted, doubly linked list is conducive to accelerate the storage of Window, Hash table is conducive to accelerate reading of Window, and this stack heap is safeguarded the Window formation that last in, first out.Give name to Window, x, y, width, height, defaultFontSize, transparency shows, hides and waits attribute.The life cycle of strict difinition Window.The form of simulation system UI element pop down (as Activity (application program) stack of Android platform), the Window that creates is pressed into above-mentioned stack heap, by the control to each attribute of Window, realizes the life cycle of each Window is carried out independent management, the establishment of control Window, show, hide, the turnover screen, multiplexing, destroy, internal memory recovery etc., as shown in Figure 3.
As shown in Figure 4, realize a cover floating frame mechanism.Set up the hash index table of a floating frame (PopOver) for each Window in the stack, for each floating frame that is created distributes a unique identifier PopName, and this identifier is stored in the floating frame hash index table, keep quoting floating frame.Window is in charge of the life cycle of all floating frames that belong to this Window and carries out bridge joint for communicating by letter between Javascript and floating frame.Give x to floating frame, y, width, height, defaultFontSize, transparency shows, hides and waits attribute.Coupling system bottom API (application programming interface), realize the Z order arrangement linked list data structure on the floating frame UI level, all floating frames are all preserved a in this chained list with the sign of unique index, put into this unique index maximum of floating frame of this chained list at first, this unique index minimum of putting at last, minimum namely represents floating frame in the superiors of current Window UI.Window realizes the establishment of floating frame by every attribute and the order of floating frame in Z order chained list of control floating frame, size, position change, and the UI level alternates, and closes destruction etc.
As shown in Figure 5, realize the excessive animation effect that the window life cycle is interior.The present invention is on the basis of preceding step 1 to four, the ability of the UI transition cartoon that the coupling system bottom provides, be establishment, the switching of window, the cover animation mechanism of operation simulation such as having hidden, closed, and call to webpage by the Javascript opening API, the webpage development personnel can control speed, the duration of transition cartoon between this application inner window by Javascript, specify animation types etc.
As can be seen, the present invention has realized multiwindow and management multiwindow on the basis of single window mobile middleware from above step.Remedied PhoneGap, the common existence of institute in the middle of a series of single window mechanism such as AppMobi mobile: relative low on performance and the efficient, the page rolls slowly, card pauses, it is blunt to respond, the serious third party Javascript framework that relies on is difficult to satisfy most mobile defectives such as development requirement of using (App) in the exploitation.Can create out by Html+Javascript and use to experience consistently with Native, meet the outstanding application of system performance.
Although embodiment of the present invention are open as above, but it is not restricted to listed utilization in instructions and the embodiment, it can be applied to various suitable the field of the invention fully, for those skilled in the art, can easily realize other modification, therefore do not deviating under the universal that claim and equivalency range limit, the present invention is not limited to specific details and illustrates here and the legend of describing.