CN103809864A - Method and device for switching interfaces dynamically - Google Patents

Method and device for switching interfaces dynamically Download PDF

Info

Publication number
CN103809864A
CN103809864A CN201210442067.1A CN201210442067A CN103809864A CN 103809864 A CN103809864 A CN 103809864A CN 201210442067 A CN201210442067 A CN 201210442067A CN 103809864 A CN103809864 A CN 103809864A
Authority
CN
China
Prior art keywords
display interface
configuration file
attribute
control
shows
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201210442067.1A
Other languages
Chinese (zh)
Other versions
CN103809864B (en
Inventor
汤竞雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201210442067.1A priority Critical patent/CN103809864B/en
Publication of CN103809864A publication Critical patent/CN103809864A/en
Application granted granted Critical
Publication of CN103809864B publication Critical patent/CN103809864B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a method and device for switching interfaces dynamically. The method includes the steps that a first attribute configuration file of the first display interface and a second attribute configuration file of the second display interface are pre-configured, and when a switching instruction of switching the first display interface displayed currently to the second display interface is received, the second attribute configuration file of the second display interface is acquired; the second display interface is loaded according to the difference between the display attribute of the second attribute configuration file and the display attribute of the first attribute configuration file; the first display interface displayed currently is switched to the second display interface to display the second display interface. By the adoption of the method or device for switching the interfaces dynamically, the performance of a computer system will not be affected, the sense of pausing existing in interface switching is avoided, so that user experience is improved. Meanwhile, interface codes are not needed for achieving interface switching, so that high cost caused by maintenance of the codes with complex structures is avoided.

Description

A kind of method and apparatus of dynamic interface switching
Technical field
The application relates to the data processing field of computer system, particularly a kind of method and apparatus of dynamic interface switching.
Background technology
Computer software (Computer Software) refers to that the program in computer system, program are the descriptions of handling object and the processing rule of calculation task.Some computer software has a lot of display interfaces, and in the different phase of software startup or operation, the shown interface of computer software is also different.When the display interface of computer software, for a certain reason, need to be switched to another interface from an interface time, need to adjust the control on showing interface, for example, the control layout adjustment that Chinese and English switching causes etc., wherein, control is the encapsulation to data and method.
In prior art, in the time that the control on the interface of computer software shows that need to do some adjusts, for example displacement, whether hide or change size etc., generally there are two kinds of implementations, in the first implementation, if it is larger that the layout at interface is changed, generally the interface before changing directly will be destroyed, the interface then re-creating after change is shown.And in the second implementation, smaller if change at interface, so just can adopt the code of contact bed come specific implementation control displacement, change size and the object such as hiding.These two kinds of implementations all need Developmental Engineer on interface development, to write corresponding code to realize.
Inventor finds in research process, existing the first scheme, because adopting the interface re-creating after change to realize interface switches, just need in the time switching, one of quick closedown open again another interface re-creating, this will cause resource occupation large, and first close one while switching and create again another interface and will affect because of repeatable operation the performance of computer system, further also can switch and have the sense and reduce user and experience of pausing because of interface.And existing first scheme need to be realized by interface code, although can not there is the problem of the first scheme, just need to develop a large amount of interfaces code and realize the switching displaying at interface, and these code structure complexity cause the result that maintenance cost is high.
In a word, need at present the urgent technical matters solving of those skilled in the art to be exactly: the method for a kind of dynamic interface switching of proposition how can innovate, the problem that can affect the performance of computer system with interface switching in solution prior art can not improve maintenance cost in promoting user's experience yet.
Summary of the invention
The application's technical matters to be solved is to provide a kind of method of dynamic interface switching, affects the problem of the performance of computer system in order to solve interface switching in prior art, also can not improve maintenance cost promoting in user experiences.
The application also provides a kind of device of dynamic interface switching, in order to guarantee said method implementation and application in practice.
In order to address the above problem, the application discloses a kind of method of dynamic interface switching, comprising:
The first attribute configuration file of pre-configured the first display interface, and the second attribute configuration file of the second display interface, described attribute configuration file is for representing the display properties of display interface;
When receiving while switching to the switching command of the second display interface from the first display interface of current displaying, obtain the second attribute configuration file of described the second display interface;
According to the difference between described the second attribute configuration file and the display properties of described the first attribute configuration file, load described the second display interface;
The first display interface of current displaying is switched to described the second display interface to be shown.
Preferably, the difference between described the second attribute configuration file of described foundation and the display properties of described the first attribute configuration file, loads described the second display interface, comprising:
Obtain all demonstration controls of the second display interface configuring in described the second attribute configuration file as the second demonstration control queue, and all demonstration controls that obtain the first display interface are as the first demonstration control queue;
Show that according to described first control queue and second shows the attribute difference that shows control in control queue, generates described the second display interface.
Preferably, show that according to described first control queue and second shows the attribute difference that shows control in control queue, generate described the second display interface, comprising:
Judge that successively described second shows whether the demonstration control in control queue exists in described first shows control queue, if, replace the attribute of demonstration control corresponding in described the first demonstration control queue with the attribute of the demonstration control in this second demonstration control queue, if not, directly load the attribute of described current demonstration control;
If first shows that the demonstration control in control queue does not exist in described second shows control queue, unloads this first demonstration control and attribute thereof showing in control queue;
Show that the diversity ratio of display properties that control queue and first shows control queue is when complete when described second, the required demonstration control of combination the second display interface is to generate the second display interface.
Preferably, described in obtain the second attribute configuration file of described the second display interface, comprising:
Obtain the store path of described the second attribute configuration file according to described switching command;
From the storage space of described store path indication, read described the second attribute configuration file.
Preferably, described the first display interface and the second display interface are arranged in same window.
The application discloses a kind of device of dynamic interface switching, comprising:
Configuration module, for the first attribute configuration file of pre-configured the first display interface, and the second attribute configuration file of the second display interface, described attribute configuration file is for representing the display properties of display interface;
Acquisition module, for when receiving while switching to the switching command of the second display interface from the first display interface of current displaying, obtains the second attribute configuration file of described the second display interface;
Load-on module, for the difference according between described the second attribute configuration file and the display properties of described the first attribute configuration file, loads described the second display interface;
Handover module, shows for the first display interface of current displaying is switched to described the second display interface.
Preferably, described load-on module comprises:
First obtains submodule, and for all demonstration controls of obtaining the second display interface that described the second attribute configuration file configures, as the second demonstration control queue, and all demonstration controls that obtain the first display interface are as the first demonstration control queue;
Generate submodule, for showing that according to described first control queue and second shows that control queue shows the attribute difference of control, generates described the second display interface.
Preferably, described generation submodule comprises:
Judge submodule, for judging that successively described second shows whether the demonstration control of control queue exists in described first shows control queue;
Replace submodule, in the described result that judges submodule be, replace the described first attribute that shows the demonstration control of correspondence in control queue with this second attribute that shows the demonstration control in control queue;
Load submodule, in the described result that judges submodule be no, directly load the attribute of described current demonstration control;
Unloading submodule, shows that the demonstration control in control queue does not exist in described second shows control queue, unloads this first demonstration control and attribute thereof showing in control queue if be applied to first;
Combination submodule, in the time that described second shows that control queue and first shows that the comparison of control queue is complete, combines the required demonstration control of the second display interface to generate the second display interface.
Preferably, described acquisition module comprises:
Second obtains submodule, for obtain the store path of described the second attribute configuration file according to described switching command;
Reading submodule, for reading described the second attribute configuration file from the storage space of described store path indication.
Preferably, described the first display interface and the second display interface are arranged in same window.
Compared with prior art, the application comprises following advantage:
In this application, when in the computer software of front opening, user may switch to the second display interface from current the first display interface of browsing, and switching to the spent resource for computer system of the second display interface from the first display interface in order to reduce, need to be the first display interface before and after switching and the attribute configuration file of the second display interface in advance, when needs switch to the second display interface from the first display interface, directly call the attribute configuration file of the second display interface, the attribute configuration file of the first display interface carries out the comparison of display properties, thereby in realizing dynamic interface switching, do not affect resource for computer system yet, can also promote the experience of user for interface switching.Meanwhile, also no longer need interface code to realize interface and switch, avoided safeguarding these baroque codes and cause the result that cost is high.
Further, the realization that switch at interface, is in fact done in same window by bottom widget library to switch, thus less for the resource occupation of computer system, and interface performance of handoffs is also more superior than prior art.
Certainly, arbitrary product of enforcement the application might not need to reach above-described all advantages simultaneously.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present application, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiment of the application, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the process flow diagram of the embodiment of the method for a kind of dynamic interface switching of the application;
Fig. 2 is the process flow diagram of step 102 in the application's embodiment of the method;
Fig. 3 is the process flow diagram of step 103 in the application's embodiment of the method;
Fig. 4 is the process flow diagram of step 302 in the application's embodiment of the method;
Fig. 5 is the schematic diagram that is related to of the exploitation of display interface in the application and bottom widget library;
Fig. 6 is the structured flowchart of the device embodiment of a kind of dynamic interface switching of the application;
Fig. 7 is the structured flowchart of acquisition module 601 in the application's device embodiment;
Fig. 8 is the structured flowchart of load-on module 602 in the application's device embodiment;
Fig. 9 is the structured flowchart that generates submodule 702 in the application's device embodiment.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only the application's part embodiment, rather than whole embodiment.Based on the embodiment in the application, those of ordinary skills are not making the every other embodiment obtaining under creative work prerequisite, all belong to the scope of the application's protection.
The application can be used in numerous general or special purpose calculation element environment or configuration.For example: personal computer, server computer, handheld device or portable set, plate equipment, multi-processor device, comprise distributed computing environment of above any device or equipment etc.
The application can describe in the general context of the computer executable instructions of being carried out by computing machine, for example program module.Usually, program module comprises and carries out particular task or realize routine, program, object, assembly, data structure of particular abstract data type etc.Also can in distributed computing environment, put into practice the application, in these distributed computing environment, be executed the task by the teleprocessing equipment being connected by communication network.In distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium including memory device.
One of main thought of the application can comprise, when in the computer software of front opening, user may switch to the second display interface from current the first display interface of browsing, and switching to the spent resource for computer system of the second display interface from the first display interface in order to reduce, need to be the first display interface before and after switching and the attribute configuration file of the second display interface in advance, when needs switch to the second display interface from the first display interface, directly call the attribute configuration file of the second display interface, the attribute configuration file of the first display interface carries out the comparison of display properties, thereby in realizing dynamic interface switching, do not affect resource for computer system yet, can also promote the experience of user for interface switching.
With reference to figure 1, show the process flow diagram of the embodiment of the method for a kind of dynamic interface switching of the application, the present embodiment can comprise the following steps:
Step 101: the first attribute configuration file of pre-configured the first display interface, and the second attribute configuration file of the second display interface, described attribute configuration file is for representing the display properties of display interface.
In the embodiment of the present application, the first display interface and the second display interface before and after corresponding switching, only need the attribute configuration file of pre-configured these two display interfaces can realize dynamic switching.Wherein, the first display interface and the second display interface are in same computer software, different display pages under the different running statuses of software, for example, for the prosperous software of Ali, after user logins successfully, if clicking login user is buyer user, corresponding one " buyer's version page ", if and user is seller user, corresponding one " seller's version page ", if same user need to switch to " seller's version page " from " buyer's version page ", " buyer's version page " is exactly the first display interface in the embodiment of the present application so, and " seller's version page " is exactly the second display interface in the embodiment of the present application.
In the time of the blocked operation of carrying out from the first display interface to the second display interface, all pre-configured completing of the first attribute configuration file of the first display interface and the second attribute configuration file of the second display interface, but it should be noted that, after the first attribute configuration file and the second attribute configuration file configuration complete, because user not necessarily just switches to the second display interface from the first display interface immediately, so also without performing step 102 and follow-up switching flow at once.
Wherein, attribute configuration file is used for representing the display properties of corresponding display interface, is the attribute of all controls in display interface, for example, and the length of a button control and elevation information, and this button control is in positional information of display interface etc.This attribute configuration file can adopt XML (extend markup language, Extensible Markup Language) file to realize, and concrete operation of drawing display interface according to attribute configuration file can be realized by bottom widget library.After configuration completes the first attribute configuration file and the second attribute configuration file, the store path of these two attribute configuration files can be registered in bottom widget library so, follow-uply in the time that needs call, can find attribute configuration file according to store path.When specific implementation, the mark of display interface and store path can be preserved one to one, so just can in the time switching, determine and the unique corresponding store path of target display interface.
Step 102: when receiving while switching to the switching command of the second display interface from the first display interface of current displaying, obtain the second attribute configuration file of described the second display interface.
Wherein, the first display interface and the second display interface in the embodiment of the present application, mentioned are arranged in same window, are under the current window in the time that user opens some computer softwares, to realize the dynamic switching of the first display interface to the second display interface.This step in actual applications, need in the time that switching to the switching command of the second display interface, carry out the first display interface from current displaying that receives user's triggering, this switching command can be understood as, when user's current display interface is " buyer's version page ", click link or the button etc. of " seller's version page ", sent and need to switch to the order that " seller's version page " shows from " buyer's version page " of current demonstration to bottom widget library.Certainly,, in practical application scene, also can adopt other modes to trigger the switching command that switches to the second display interface from the first display interface of current displaying.
With reference to figure 2, be the process flow diagram of step 102, wherein, obtain the step of the second attribute configuration file of described the second display interface, specifically can comprise:
Step 201: the store path that obtains described the second attribute configuration file according to described switching command;
Because switching command has comprised target display interface is the second display interface, so, in practical application, bottom widget library just can get according to the mark of the second display interface the store path of the second attribute configuration file of having registered;
Step 202: read described the second attribute configuration file from the storage space of described store path indication.
Bottom widget library reads the second attribute configuration file again from the storage space of store path indication.
Then return to Fig. 1, in step 103: according to the difference between described the second attribute configuration file and the display properties of described the first attribute configuration file, load described the second display interface.
Wherein, what the second attribute configuration file reflected is the demonstration control property of the second display interface, what the first attribute configuration file reflected is the demonstration control property of the first display interface, so just the demonstration control configuring in these two files can be compared one by one, thereby record the second display interface according to comparison result.
Shown in figure 3, be the process flow diagram of step 103, in the time implementing, specifically can comprise:
Step 301: obtain all demonstration controls of the second display interface configuring in described the second attribute configuration file as the second demonstration control queue, and all demonstration controls that obtain the first display interface are as the first demonstration control queue;
Because all configured the attribute that should comprise which control in the second display interface and write control in the second attribute configuration file, for example, the information such as the display position of control and size, so in the time of the difference of comparison the second attribute configuration file and the first attribute configuration file, need to first get all demonstration controls of the second display interface configuring in the second attribute configuration file as the second demonstration control queue, and all demonstration controls of the first display interface are as the first demonstration control queue.
Step 302: show that according to described first control queue and second shows the attribute difference that shows control in control queue, generates described the second display interface.
Because the first display interface and the second display interface are different display interfaces, so first shows that control queue and second shows that the demonstration control in control queue necessarily exists attribute difference, for example, first shows that the demonstration control in control queue does not exist in the second demonstration control queue, although or first show that the demonstration control in control queue exists in the second demonstration control queue, but there is variation in attribute, etc., be to generate the second display interface according to the difference of the demonstration control in two queues in this step.
With reference to figure 4, be the process flow diagram of step 302, step 302 specifically can comprise in the time implementing:
Step 401: judge that successively described second shows that whether the demonstration control in control queue exists in described first shows control queue, if so, enters step 402; If not, enter step 403;
In the present embodiment, whether the demonstration control of first comparing in the second demonstration control exists in the first demonstration control queue, if existed, illustrate that this demonstration control may variation occur the display properties in the second attribute configuration file, certainly, also may not change, now can reload this demonstration control to realize switching no matter whether change;
Step 402: the attribute of replacing demonstration control corresponding in described the first demonstration control queue with the attribute of the demonstration control in this second demonstration control queue;
If a control all exists in two display interfaces that switch front and back, the attribute so it being configured in the second attribute configuration file is replaced the attribute configuring in the first attribute configuration file, is to realize showing the display update of control from the first display interface to the second display interface;
Step 403: the attribute that directly loads described demonstration control;
If one shows that control does not have and has in the second display interface in the first display interface, explanation is the control newly increasing in the second display interface so, can directly load the attribute of this demonstration control;
Step 404: if the demonstration control in the first demonstration control queue does not exist in described second shows control queue, unload this first demonstration control and attribute thereof showing in control queue;
Judge again in this step whether the demonstration control in the first demonstration control queue exists in described second shows control queue, if there is no, illustrate in the second display interface and do not have this control, need to unload this first demonstration control and attribute thereof showing in control queue.
It should be noted that, in showing control queue, the first demonstration control queue and second shows in the comparison process of control, first compare all demonstration controls in the first demonstration control queue, compare again the demonstration control in the second demonstration control queue, or, first compare the demonstration control in the second demonstration control queue, compare again all demonstration controls in the first demonstration control queue, or, demonstration control in two queues is compared at random, can the mode of choosing any one kind of them carry out in the specific implementation, only need be before step 405, demonstration control in two queues has all been compared, the order that is step 401~step 404 can independently be adjusted, be not limited to the description order in the present embodiment.
Step 405: show that control queue and first shows that the demonstration control of control queue compares when complete when described second, the required demonstration control of combination the second display interface is to generate the second display interface.
When: show that control queue and first shows that the demonstration control of control queue compares when complete when described second, combine the required demonstration control of those the second display interfaces, concrete can be drawn for the required demonstration control of the second display interface by bottom widget library, to generate the second display interface after switching.
Then return to the embodiment of Fig. 1, in step 104: the first display interface of current displaying is switched to described the second display interface and show.
After the second display interface is completed, in the current window of opening user, show the second display interface, to realize, the first display interface of current displaying is switched to the object that described the second display interface is shown.
Adopt the embodiment of the present application, because attribute configuration file is pre-configured, so directly load attribute configuration file while switching again, just create again another interface without first closing one, also just can not affect because of the repeatable operation for interface the performance of computer system, thereby the further pause sense that has also improved interface switching existence has promoted user's experience.Meanwhile, also no longer need interface code to realize interface and switch, avoided safeguarding these baroque codes and cause the result that cost is high.
Further, the realization that switch at interface, is in fact done in same window by bottom widget library to switch, thus less for the resource occupation of computer system, and interface performance of handoffs is also more superior than prior art.
In the embodiment of the present application, display interface is positioned at the visible upper strata of user showing interface layer, and the bottom widget library of implementing technical scheme is that user is sightless, with reference to figure 5, shows the exploitation of display interface and the relation of bottom widget library.
For aforesaid embodiment of the method, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the application is not subject to the restriction of described sequence of movement, because according to the application, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and related action and module might not be that the application is necessary.
Corresponding with the method that the embodiment of the method for a kind of dynamic interface switching of above-mentioned the application provides, referring to Fig. 6, the application also provides a kind of device embodiment of dynamic interface switching, and in the present embodiment, this device can comprise:
Configuration module 600, for the first attribute configuration file of pre-configured the first display interface, and the second attribute configuration file of the second display interface, described attribute configuration file is for representing the display properties of display interface.
Acquisition module 601, for when receiving while switching to the switching command of the second display interface from the first display interface of current displaying, obtains the second attribute configuration file of described the second display interface.
Wherein, described the first display interface and the second display interface are arranged in same window.
With reference to figure 7, Fig. 7 is the structured flowchart of acquisition module 601, specifically can comprise:
Second obtains submodule 701, for obtain the store path of described the second attribute configuration file according to described switching command;
Reading submodule 702, for reading described the second attribute configuration file from the storage space of described store path indication.
Load-on module 602, for the difference according between described the second attribute configuration file and the demonstration control of described the first attribute configuration file, loads described the second display interface.
With reference to figure 8, Fig. 8 is the structured flowchart of load-on module 602, specifically can comprise:
First obtains submodule 801, and for all demonstration controls of obtaining the second display interface that described the second attribute configuration file configures, as the second demonstration control queue, and all demonstration controls that obtain the first display interface are as the first demonstration control queue;
Generate submodule 802, for showing that according to described first control queue and second shows that control queue shows the difference comparative result of control, generates described the second display interface.
With reference to figure 9, for generating the structured flowchart of submodule 702, specifically can comprise:
Judge submodule 901, for judging that successively described second shows whether the demonstration control of control queue exists in described first shows control queue;
Replace submodule 902, in the described result that judges submodule be, this second attribute that shows the demonstration control in control queue is replaced to the described first attribute that shows demonstration control corresponding in control queue;
Load submodule 903, in the described result that judges submodule be no, directly load the attribute of described current demonstration control;
Unloading submodule 904, shows that the demonstration control in control queue does not exist in described second shows control queue, unloads this first demonstration control and attribute thereof showing in control queue if be applied to first;
Combination submodule 905, in the time that described second shows that control queue and first shows that the comparison of control queue is complete, combines the required demonstration control of the second display interface to generate the second display interface.
Handover module 603, shows for the first display interface of current displaying is switched to described the second display interface.
Adopt the embodiment of the present application, because attribute configuration file is pre-configured, so directly load attribute configuration file while switching again, just create again another interface without first closing one, also just can not affect because of the repeatable operation for interface the performance of computer system, thereby the further pause sense that has also improved interface switching existence has promoted user's experience.Meanwhile, also no longer need interface code to realize interface and switch, avoided safeguarding these baroque codes and cause the result that cost is high.
Further, the realization that switch at interface, is in fact done in same window by bottom widget library to switch, thus less for the resource occupation of computer system, and interface performance of handoffs is also more superior than prior art.
It should be noted that, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment, between each embodiment identical similar part mutually referring to.For device class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
Finally, also it should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
The method and apparatus of a kind of dynamic interface switching above the application being provided is described in detail, applied principle and the embodiment of specific case to the application herein and set forth, the explanation of above embodiment is just for helping to understand the application's method and core concept thereof; , for one of ordinary skill in the art, according to the application's thought, all will change in specific embodiments and applications, in sum, this description should not be construed as the restriction to the application meanwhile.

Claims (10)

1. a method for dynamic interface switching, is characterized in that, the first attribute configuration file of pre-configured the first display interface, and the second attribute configuration file of the second display interface, and described attribute configuration file is for representing the display properties of display interface; The method comprises:
When receiving while switching to the switching command of the second display interface from the first display interface of current displaying, obtain the second attribute configuration file of described the second display interface;
According to the difference between described the second attribute configuration file and the display properties of described the first attribute configuration file, load described the second display interface;
The first display interface of current displaying is switched to described the second display interface to be shown.
2. method according to claim 1, is characterized in that, the difference between described the second attribute configuration file of described foundation and the display properties of described the first attribute configuration file, loads described the second display interface, comprising:
Obtain all demonstration controls of the second display interface configuring in described the second attribute configuration file as the second demonstration control queue, and all demonstration controls that obtain the first display interface are as the first demonstration control queue;
Show that according to described first control queue and second shows the attribute difference that shows control in control queue, generates described the second display interface.
3. method according to claim 2, is characterized in that, shows that according to described first control queue and second shows the attribute difference that shows control in control queue, generates described the second display interface, comprising:
Judge that successively described second shows whether the demonstration control in control queue exists in described first shows control queue, if, replace the attribute of demonstration control corresponding in described the first demonstration control queue with the attribute of the demonstration control in this second demonstration control queue, if not, directly load the attribute of described current demonstration control;
If first shows that the demonstration control in control queue does not exist in described second shows control queue, unloads this first demonstration control and attribute thereof showing in control queue;
Show that the diversity ratio of display properties that control queue and first shows control queue is when complete when described second, the required demonstration control of combination the second display interface is to generate the second display interface.
4. method according to claim 1, is characterized in that, described in obtain the second attribute configuration file of described the second display interface, comprising:
Obtain the store path of described the second attribute configuration file according to described switching command;
From the storage space of described store path indication, read described the second attribute configuration file.
5. according to the method described in claim 1~4 any one, it is characterized in that, described the first display interface and the second display interface are arranged in same window.
6. a device for dynamic interface switching, is characterized in that, this device comprises:
Configuration module, for the first attribute configuration file of pre-configured the first display interface, and the second attribute configuration file of the second display interface, described attribute configuration file is for representing the display properties of display interface;
Acquisition module, for when receiving while switching to the switching command of the second display interface from the first display interface of current displaying, obtains the second attribute configuration file of described the second display interface;
Load-on module, for the difference according between described the second attribute configuration file and the display properties of described the first attribute configuration file, loads described the second display interface;
Handover module, shows for the first display interface of current displaying is switched to described the second display interface.
7. device according to claim 6, is characterized in that, described load-on module comprises:
First obtains submodule, and for all demonstration controls of obtaining the second display interface that described the second attribute configuration file configures, as the second demonstration control queue, and all demonstration controls that obtain the first display interface are as the first demonstration control queue;
Generate submodule, for showing that according to described first control queue and second shows that control queue shows the attribute difference of control, generates described the second display interface.
8. device according to claim 7, is characterized in that, described generation submodule comprises:
Judge submodule, for judging that successively described second shows whether the demonstration control of control queue exists in described first shows control queue;
Replace submodule, in the described result that judges submodule be, replace the described first attribute that shows the demonstration control of correspondence in control queue with this second attribute that shows the demonstration control in control queue;
Load submodule, in the described result that judges submodule be no, directly load the attribute of described current demonstration control;
Unloading submodule, shows that the demonstration control in control queue does not exist in described second shows control queue, unloads this first demonstration control and attribute thereof showing in control queue if be applied to first;
Combination submodule, in the time that described second shows that control queue and first shows that the comparison of control queue is complete, combines the required demonstration control of the second display interface to generate the second display interface.
9. device according to claim 6, is characterized in that, described acquisition module comprises:
Second obtains submodule, for obtain the store path of described the second attribute configuration file according to described switching command;
Reading submodule, for reading described the second attribute configuration file from the storage space of described store path indication.
10. according to the device described in claim 6~9 any one, it is characterized in that, described the first display interface and the second display interface are arranged in same window.
CN201210442067.1A 2012-11-07 2012-11-07 A kind of method and apparatus at switching at runtime interface Active CN103809864B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210442067.1A CN103809864B (en) 2012-11-07 2012-11-07 A kind of method and apparatus at switching at runtime interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210442067.1A CN103809864B (en) 2012-11-07 2012-11-07 A kind of method and apparatus at switching at runtime interface

Publications (2)

Publication Number Publication Date
CN103809864A true CN103809864A (en) 2014-05-21
CN103809864B CN103809864B (en) 2016-12-21

Family

ID=50706725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210442067.1A Active CN103809864B (en) 2012-11-07 2012-11-07 A kind of method and apparatus at switching at runtime interface

Country Status (1)

Country Link
CN (1) CN103809864B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648715A (en) * 2015-10-29 2017-05-10 阿里巴巴集团控股有限公司 Method and system for loading pop-up window control
CN106843784A (en) * 2017-01-19 2017-06-13 沃民高新科技(北京)股份有限公司 The method and apparatus of display data
CN106874312A (en) * 2015-12-14 2017-06-20 北京奇虎科技有限公司 The acquisition methods and device of user interface
CN107193844A (en) * 2016-03-15 2017-09-22 阿里巴巴集团控股有限公司 A kind of interface Activiation method and device
CN108037969A (en) * 2017-12-07 2018-05-15 深圳乐信软件技术有限公司 A kind of interface jump method, device, terminal and storage medium
CN108845774A (en) * 2018-05-29 2018-11-20 努比亚技术有限公司 A kind of interface display method, terminal and computer readable storage medium
CN109144507A (en) * 2018-07-17 2019-01-04 北京奇艺世纪科技有限公司 A kind of page switching method and device
CN109426532A (en) * 2017-08-22 2019-03-05 腾讯科技(深圳)有限公司 It is connected the method, apparatus and electronic equipment of the page in Android system
CN109614136A (en) * 2018-11-26 2019-04-12 郑州云海信息技术有限公司 The management method and device of webpage configuration information
CN109783176A (en) * 2019-01-17 2019-05-21 广州酷狗计算机科技有限公司 Switch the method and apparatus of the page
WO2019205018A1 (en) * 2018-04-25 2019-10-31 深圳市元征软件开发有限公司 Method, system, device, computer readable storage medium for switching interface
CN113687904A (en) * 2021-10-26 2021-11-23 成都中科合迅科技有限公司 Interface dynamic generation method based on configuration file
CN114090125A (en) * 2021-11-23 2022-02-25 金蝶软件(中国)有限公司 Interface configuration method and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070130536A1 (en) * 2005-12-05 2007-06-07 Inventec Corporation Interface display system and method
CN101533350A (en) * 2009-04-03 2009-09-16 深圳市宝捷信科技有限公司 Quick switching method for pages
CN102426517A (en) * 2010-12-17 2012-04-25 百度在线网络技术(北京)有限公司 Method and device for executing tool module in first page container
CN102799421A (en) * 2011-05-25 2012-11-28 腾讯科技(深圳)有限公司 Multi-view switching system and method
CN103473086A (en) * 2013-08-29 2013-12-25 上海斐讯数据通信技术有限公司 ADSL modem web interface switching method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070130536A1 (en) * 2005-12-05 2007-06-07 Inventec Corporation Interface display system and method
CN101533350A (en) * 2009-04-03 2009-09-16 深圳市宝捷信科技有限公司 Quick switching method for pages
CN102426517A (en) * 2010-12-17 2012-04-25 百度在线网络技术(北京)有限公司 Method and device for executing tool module in first page container
CN102799421A (en) * 2011-05-25 2012-11-28 腾讯科技(深圳)有限公司 Multi-view switching system and method
CN103473086A (en) * 2013-08-29 2013-12-25 上海斐讯数据通信技术有限公司 ADSL modem web interface switching method

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648715A (en) * 2015-10-29 2017-05-10 阿里巴巴集团控股有限公司 Method and system for loading pop-up window control
CN106874312A (en) * 2015-12-14 2017-06-20 北京奇虎科技有限公司 The acquisition methods and device of user interface
CN106874312B (en) * 2015-12-14 2020-04-10 北京奇虎科技有限公司 User interface acquisition method and device
CN107193844A (en) * 2016-03-15 2017-09-22 阿里巴巴集团控股有限公司 A kind of interface Activiation method and device
CN106843784A (en) * 2017-01-19 2017-06-13 沃民高新科技(北京)股份有限公司 The method and apparatus of display data
CN109426532A (en) * 2017-08-22 2019-03-05 腾讯科技(深圳)有限公司 It is connected the method, apparatus and electronic equipment of the page in Android system
CN108037969A (en) * 2017-12-07 2018-05-15 深圳乐信软件技术有限公司 A kind of interface jump method, device, terminal and storage medium
WO2019205018A1 (en) * 2018-04-25 2019-10-31 深圳市元征软件开发有限公司 Method, system, device, computer readable storage medium for switching interface
CN108845774A (en) * 2018-05-29 2018-11-20 努比亚技术有限公司 A kind of interface display method, terminal and computer readable storage medium
CN109144507A (en) * 2018-07-17 2019-01-04 北京奇艺世纪科技有限公司 A kind of page switching method and device
CN109144507B (en) * 2018-07-17 2022-02-08 北京奇艺世纪科技有限公司 Page switching method and device
CN109614136A (en) * 2018-11-26 2019-04-12 郑州云海信息技术有限公司 The management method and device of webpage configuration information
CN109783176A (en) * 2019-01-17 2019-05-21 广州酷狗计算机科技有限公司 Switch the method and apparatus of the page
CN113687904A (en) * 2021-10-26 2021-11-23 成都中科合迅科技有限公司 Interface dynamic generation method based on configuration file
CN114090125A (en) * 2021-11-23 2022-02-25 金蝶软件(中国)有限公司 Interface configuration method and related equipment

Also Published As

Publication number Publication date
CN103809864B (en) 2016-12-21

Similar Documents

Publication Publication Date Title
CN103809864A (en) Method and device for switching interfaces dynamically
CN107038042B (en) Service execution method and device
CN110333918B (en) Method and equipment for managing boarder programs
CN105677315B (en) Interface display method of multiple operating systems and intelligent terminal
US10831331B2 (en) Window control for simultaneously running applications
US20140298245A1 (en) Display Instance Management
US10452231B2 (en) Usability improvements for visual interfaces
CN103530160A (en) Page loading method and device
CN111125562B (en) Method and equipment for switching display tag pages
CN102722358A (en) Electronic equipment and method for presenting widgets
CN104063071A (en) Content input method and device
CN114527897B (en) Tracking and restoring pointer locations between applications
CN109803166A (en) For showing the method and apparatus of small video in the locking screen interface of user equipment
WO2015172562A1 (en) Shortcut operation method and apparatus for touch-screen digital terminal
CN115357156A (en) Display method, display device, electronic equipment and readable storage medium
CN110430253B (en) Method and equipment for providing novel update notification information
CN109902003B (en) Test script generation method and device
CN105808313B (en) Intelligent terminal data interactive system and method
CN105279164A (en) File processing method and device based on IOS system
CN111371950A (en) Split screen response method and device, terminal and storage medium
US9146720B1 (en) Binary file application processing
CN114153535B (en) Method, apparatus, medium and program product for jumping pages on an open page
CN114253644B (en) Method and device for outputting attribute parameters of lower computer equipment
CN112256991B (en) Method and equipment for native rendering of information flow fusing multiple link addresses
CN104808895A (en) Icon arranging method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant