CN102799421A - Multi-view switching system and method - Google Patents

Multi-view switching system and method Download PDF

Info

Publication number
CN102799421A
CN102799421A CN2011101373439A CN201110137343A CN102799421A CN 102799421 A CN102799421 A CN 102799421A CN 2011101373439 A CN2011101373439 A CN 2011101373439A CN 201110137343 A CN201110137343 A CN 201110137343A CN 102799421 A CN102799421 A CN 102799421A
Authority
CN
China
Prior art keywords
view
new
indication
interface
sign
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.)
Pending
Application number
CN2011101373439A
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN2011101373439A priority Critical patent/CN102799421A/en
Publication of CN102799421A publication Critical patent/CN102799421A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a multi-view switching method. The method comprises the following steps of: acquiring a switching indication, wherein the switching indication comprises an identifier of a new view to be switched; creating the corresponding new view according to the identifier of the new view, wherein new view data comprise interface data which are the newest currently; putting the newest interface data in the new view data into a specified buffer region to replace the original interface data; and drawing the data in the buffer region on a screen. By adoption of the method, views can be quickly switched, an animation effect during switching is achieved, development cost is reduced, and development efficiency is improved.

Description

The system and method that a kind of many views switch
Technical field
The present invention relates to the program development field, particularly relate to a kind of single-view framework and realize the system and method that many views switch down based on S60.
Background technology
The application of smart mobile phone in the market more and more widely because its liking of a lot of users that receive easy to carry and multiple functional.Because but the application program of smart mobile phone is many; And generally all contain a plurality of views (view) in each application program; And when application program is carried out, need under a plurality of views, constantly switch, like chat softwares such as application program QQ or MSN; The user can open data interface of different chat interfaces or good friend or the like in application program, at this moment just need in same application program, switch a plurality of views.At present; This switching mode is based on generally that system framework support realizes; Utilize many view frameworks to realize the switching of many views; Like the smart mobile phone S60 of Nokia (being the Series of Nokia 60), but it receives many view frameworks technology limitation, is difficult to satisfy the view switching requirement that many views switch and drive the picture effect.
Fig. 1 is the synoptic diagram that many views switch under many view frameworks of supporting of the smart mobile phone S60 of Nokia platform; Wherein AppUi comprises a plurality of view View; Like view View1 and view View2; And each view comprises a container C ontainer who is used to store said view content, as view View1 and view View2 respectively correspondence comprise container C ontainer1 and container C ontainer2.When two views switch; As when showing view View1; Then call the DoActivateL function that shows view View1 and create container C ontainer1, delete said container C ontainer1, discharge resource as when view View1 does not show, then calling the DoDeactivate function; Show view View2 simultaneously; Call the DoActivateL function that shows view View2 equally and create container C ontainer2, when not showing view View2, then call the DoDeactivate function and delete said container C ontainer2, discharge resource.So just, accomplished the switching between view View1 and the view View2.
There is drawback in the view switched system under this many view switching frameworks: the requirement to system when utilizing DoActivateL function creation container is very high, and promptly system overhead is big, and efficiency ratio is lower; Be difficult to meet the needs of the constantly application of switch view fast; And be difficult to realize need having in the view handoff procedure be fade-in fade-out, animation effect such as slip.
Therefore being necessary to propose a kind of new technical scheme solves the problems referred to above.
Summary of the invention
The purpose of this part is to summarize some aspects of embodiments of the invention and briefly introduces some preferred embodiments.In this part and the application's specification digest and denomination of invention, may do a little simplification or omit avoiding the making purpose of this part, specification digest and denomination of invention fuzzy, and this simplification or omit and can not be used to limit scope of the present invention.
The system and method that the object of the present invention is to provide a kind of many views to switch, it is realizing that under the single-view framework many views switch, and has added view switching animation, makes application program friendly more.
According to an aspect of the present invention, the system that the present invention provides a kind of many view to switch, it comprises: switch the indication acquisition module, obtain and switch indication, said switching indication comprise the sign of the new view that will switch to; New view is created module, creates corresponding new viewdata according to the sign of said new view, and said new viewdata comprises current up-to-date interface data; Data cache module is put into the interface data in the current said new viewdata in the buffer zone of appointment to replace original interface data; And drafting module, the data in the said buffer zone are plotted on the screen.
Further; Said system comprises that also redrawing the indication acquisition module creates module with new interface; Wherein: said redraw the indication acquisition module after receiving up-to-date switching indication to receive switch indication next time before; Obtain and redraw indication, said redraw indication comprise the sign at the new interface that will redraw; Said new interface is created module and is created corresponding new interface data based on the sign at said new interface and current viewdata.
Further, the said indication acquisition module that redraws specifically is used for: every whether receiving at a distance from preset time period detection redraws indication, if then carry out the said step that redraws indication of obtaining.
Further, said system also comprises switches the indication determination module, and its every whether receiving at a distance from the detection of preset time section is switched indication, if carry out that then the data in the said buffer zone are plotted to the step on the screen.
Further, said new interface is created module and specifically is used for: function is created at the corresponding interface of sign of calling new interface under the said view, to create corresponding new interface.
Further, said new view is created the corresponding lightweight view of sign of the said new view of module invokes and is created function, to create corresponding new view.
Further, said system also comprises switches the effect generation module, and it is used to create the switching effect of said new view, and when drawing this new view median surface for the first time, utilizes this switching effect to draw the new interface that comprises said switching effect.
According to a further aspect in the invention, the present invention also provides a kind of method that realizes that under the single-view framework many views switch, and it comprises: obtain and switch indication, said switching indication comprise the sign of the new view that will switch to; Sign according to said new view is created corresponding new viewdata, and said new viewdata comprises current up-to-date interface data; Interface data in the current said new viewdata is put in the buffer zone of appointment to replace original interface data; Data in the said buffer zone are plotted on the screen.
Further, said method also comprises: after receiving up-to-date switching indication to receive switch indication next time before, obtain and redraw indication, said redraw indication comprise the sign at the new interface that will redraw; Create corresponding new interface data according to the sign at said new interface and current viewdata.
Further, said obtaining redraws indication, specifically comprises: every whether receiving at a distance from preset time period detection redraws indication, if then carry out the said step that redraws indication of obtaining.
Further, said method also comprises: every whether receiving at a distance from preset time period detection switched indication, if carry out that then the data in the said buffer zone are plotted to the step on the screen.
Further, said sign based on said new view is created corresponding new viewdata, specifically comprises: the corresponding lightweight view of sign that calls said new view is created function, to create corresponding new viewdata.
Further; Said sign according to said new view is created after the corresponding new viewdata; Also comprise: create the switching effect of said new view, and when drawing this new view median surface for the first time, utilize this switching effect to draw the new interface that comprises said switching effect.
Compared with prior art; The present invention realizes that under the single-view framework many views switch; Its when needs carry out view update, utilize the lightweight view create the new viewdata of function creation with switch effect and with buffer zone in original viewdata median surface data replace; When drawing this view, call this switching effect and realized the animation switching, and the expense of system is reduced greatly; Carrying out to discharge last view loaded data when view switches, thereby reducing the occupancy volume of memory source.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention; The accompanying drawing of required use is done to introduce simply in will describing embodiment below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.Wherein:
Fig. 1 is the synoptic diagram that many views switch under many view frameworks of supporting of the smart mobile phone S60 of Nokia platform;
Fig. 2 is the system's structural representation in one embodiment among the present invention;
Fig. 3 is single-view framework synoptic diagram in one embodiment among the present invention;
Fig. 4 is the method process flow diagram in one embodiment among the present invention; With
The method flow diagram of correspondence when Fig. 5 is the clear screen among Fig. 3.
Embodiment
Detailed description of the present invention mainly explains directly or indirectly the running of technical scheme of the present invention through logical block or other recapitulative descriptions.Be the thorough the present invention that understands, in ensuing description, stated a lot of specific detail.And when not having these specific detail, the present invention then possibly still can realize.These descriptions here and statement mainly are the essence of effectively introducing technical scheme of the present invention for the others skilled in the art in affiliated field.In other words, be the object of the invention of avoiding confusion, because the understanding easily of method of knowing and program, so they are not described in detail.
Alleged here " embodiment " or " embodiment " are meant special characteristic, structure or the characteristic that can be contained at least one implementation of the present invention.Different in this manual local " in one embodiment " that occur not are all to refer to same embodiment, neither be independent or optionally mutually exclusive with other embodiment embodiment.In addition, represent that the sequence of modules and revocable in the functional block diagram of one or more embodiment refers to any particular order, also be not construed as limiting the invention.
A kind of switching in single-view provided by the invention realized the technology that many views switch under the framework; It utilizes the single-view framework to accomplish many views switchings; When creating new view, select for use the lightweight view to create function; Can reduce expense, switch speed is faster, and in the process of switching, can realize being fade-in fade-out effects such as slip.
Fig. 2 shows the structural representation of system in an embodiment 200 among the present invention; Wherein said system comprises switches indication acquisition module 210, new view establishment module 220, data cache module 230, drafting module 240; It carries out view when switching at needs, creates new view and it is plotted on the screen.
Said switching indication acquisition module 210 is used to obtain and switches indication, said switching indication comprise the sign of the new view that will switch to.In practical application, when the user carries out user's operation or the variation of program generation internal logic, all can produce one and switch indication.Such as, when the user when using the chat pattern, the user will produce one and switch indication when opening a new chat conversations frame.
When needs carried out the view switching, said switching indication also comprised the sign of the new view that switches to, and utilized this sign to be convenient to call corresponding new view.
In one embodiment; Can select for use a variable to come real-time judgement whether need carry out view switches; When variable is true (true); Can think that then need carry out view switches, produce said view and switch indication, the order of this moment through carrying out view and switch (as can select through button, touch-screen is selected or mode such as voice selecting produces) obtain the sign of the new view that switches to.
Said new view is created module 220 and is used for creating corresponding new viewdata according to the sign of said new view; Said new viewdata comprises current up-to-date interface data, and said current up-to-date interface data is new view generation need brush the interface data on the screen.Usually, said viewdata also comprises the logic state that some need not be drawn except comprising the interface data that need be plotted on the screen.When utilizing said switching indication acquisition module 210 to get access to the instruction that to carry out the view switching, then utilize the sign of the new view that need switch in the switching command to create corresponding new viewdata.In order to reduce system power dissipation, to accelerate switch speed, in native system, utilize the corresponding lightweight view of new view to create function and create corresponding new view.
It is the view establishment function under the view that said lightweight view is created function, and the establishment of under each view, carrying out view is fairly simple.In one embodiment; Said view is inherited the interface class; And the interface class can realize a function such as page drafting, button processing, resource loading and resource release that view is required having guaranteed that like this all a system view the inside realization, there is not the switching between the system view in each view through an interface; So it is few to take resource, switch speed is very fast.
It should be noted that; The module 220 of creating said new view must realize view establishment interface when creating new view; Utilize this view to create interface the object of the correspondence under the view is provided, create the establishment that function is realized new view thereby just can call said lightweight.
Said data cache module 230 is used for the interface data of said new viewdata is put in the buffer zone of appointment to replace original interface data.Said buffer zone can be used for the up-to-date interface data of buffer memory; Because interface data is bigger, possibly needs several seconds even longer time just can be plotted on the screen, and also scintillation can occur sometimes; Generation for fear of this situation; Can adopt double buffering technology, promptly in internal memory, create an extra CFbsBitmap object the same (being said buffer zone), the interface data that needs are drawn is put into said object with screen size; And then once the figure on this object is copied on the screen, can accelerate the speed of drawing so greatly and avoid dodging the screen phenomenon effectively.
Each above module has then realized: when the user assign carry out the view switching command after, be ready to need to draw the data of new view interface, next be exactly to draw the interface.Usually can be provided with a switching indication determination module this moment before drawing the interface, whether its every separated preset time section detects receives the switching indication.
When concrete the realization, can utilize a variable to demarcate and whether receive and switch indication, when this variable is that true time has then been received the switching indication.Whether this moment is every through a timer is true at a distance from this variable of preset time section detection, if this variable is true, then shows and can the interface data in the said buffering be plotted on the screen.
Said drafting module 240 is used for the interface data in the said buffer zone is plotted to screen.In one embodiment, the drafting function (like Draw () call back function) that can select system for use is plotted on the screen the interface data in the buffer zone is disposable.System is after obtaining to switch indication; When setting up viewdata, be the drafting function of the ready correspondence of this viewdata simultaneously, switch the data just utilize in this drafting function drafting buffer zone to screen up to need carry out view through the judgement of above-mentioned timer.
For the animation in realizing using switches effect, said system also comprises switches the effect generation module, and it is used to create the switching effect of said new view, and when drawing this new view, utilizes this switching effect to draw the new view that comprises said switching effect.Said switching effect can be for being fade-in fade-out, skidding off etc., thereby make application program have aesthetic feeling more, and hommization more.
In practical application; Realize that if desired view switches effect; When producing new viewdata, just can produce corresponding view and switch effect, when carrying out the view drafting, can directly call this view switching effect and draw this view like this according to view identification.
Further, when view is hidden, should discharge the shared resource of respective view.In practical application; Through an interface and interface that is used to discharge viewdata that is used to create view of definition in a view; When view is activated, call the said interface that is used to create view and create new view, the interface that when view need be hidden, then calls said release viewdata is to discharge resource.
In addition, in concrete the application, under same view, can constantly refresh the interface, like the chat record difference meeting corresponding generations different interface of chat conversations frame along with input.Therefore, under a constant view, need redraw identification and redraw, this just requires also need redraw in the system indication acquisition module 250 and creates module 260 with new interface.
Wherein, said redraw indication acquisition module 250 after receiving up-to-date switching indication to receive switch indication next time before, obtain and redraw indication, said redraw indication comprise the sign at the new interface that will redraw.It redraws indication every whether receiving at a distance from preset time period detection, if then carry out the said step that redraws indication of obtaining.
In one embodiment, can select for use a timer to set the said time period, when arriving the time that said timer sets, the said indication acquisition module 250 that redraws obtains and redraws indication; Usually in order to prevent the continuous clear screen of timer; Reduce the CPU power consumption; Its frequency setting is a close value of mobile phone screen hardware refresh rate, is 20 frame per seconds like the screen hardware refresh rate of a mobile phone, can be 10 frame per seconds, 20 frame per seconds, 21 frame per seconds etc. with the frequency setting of timer.
In one embodiment; Can select for use a variable to come real-time judgement whether need redraw, when variable is true (true), can think that then need carry out the interface redraws; Produce the said indication that redraws, this moment through before the interface obtain the sign at the interface that the need that switch to redraw; When variable is false (false), can not think that then need carry out the interface redraws, proceed regularly to judge.
It should be noted that; In the process of carrying out the view switching and redrawing, all carry out the true and false judgement of variable; Variable can be same variable under the both of these case; When the user carried out the switch view operation or on the interface, imported new data, said variable all became very, and said variable then becomes vacation after completing.
By on can know; When the user carries out the view switching; At first said variable becomes very, sets up the corresponding drafting function of data and this data of new view this moment, when timer then carries out the judgement of this variable during to certain hour; When judging that this variable is that true time then calls said drafting function data are plotted on the screen, this variable is set to vacation subsequently; As user during to the new data of the interface of this view input, said variable be true, and timer judges whether this variable is true, and when this variable of judgement is that true time then calls said drafting function up-to-date data are plotted on the screen, this variable is set to vacation subsequently.
In a concrete embodiment, as shown in Figure 3, it shows single-view framework synoptic diagram in one embodiment among the present invention, and this figure realizes the function of this system through each type.Wherein each view is referred to as Canvas, and the AppUi class is an Application Program Interface, and single-view AppView has a screen buffer iBufBmp, timer Timer and the CanvasManager that is used for view management.The function of its various piece in this system is specific as follows:
The Canvas class is represented view; It is each view in the application program; It has Activate () and two abstraction interfaces of Deactivate (); In switching indication, contain a certain view identification), mean that then said view is activated, call in the corresponding Canvas class of this view the lightweight view this moment and create function Activate () to create new viewdata; When view is hidden, call Deactivate () to discharge resource; Usually; Contain several different types of views in the application program, the Canvas class that the view of each kind is corresponding different is as in the QQ application program; The Canvasl class can for the conversation view class of all good friends dialogue, and Canvas2 is a view of checking all good friend's data;
CanvasManager is the Canvas administrative class; Be used to assign the establishment view command; In the present invention; Do not create all views during program start, but create corresponding view Canvas again when by the time needing to show some views, the view identification that said CanvasManager will obtain from switch indication is delivered in the corresponding Canvas class and creates function with the lightweight view of confirming to call in which type;
In addition, when using this Canvas framework, must realize that the MCanvasSupport interface is to provide Canvas object; Create concrete object to produce the data of concrete respective view according to each Canvas class;
At last, drawing function DrawNow () is plotted to the data in the buffer zone on the screen, switches thereby accomplish view.
When judging whether that need redraw the interface maybe need carry out the view switching; One variable i UpdateCavas need be set; When needs redraw the interface maybe need carry out view when switching iUpdateCanvas be changed to very (true); IUpdateCanvas is changed to vacation (false) in the time need not redrawing the interface, and timer Timer checks earlier that when reaching its predetermined moment whether iUpateCavas is true, need redraw the interface when then indicating for true time; Generation redraws indication, and redraw indication and can have the sign that need redraw the interface this moment.
Above-mentioned said each type or object all are that the those of ordinary skill in affiliated field can both be realized with calling between them, and not as technical essential of the present invention, so just do not detailing here.
By on can know; System provided by the invention utilizes the lightweight view to create the establishment and the switching of function Rapid Realization view, and only is suitable for the switching that just can realize a plurality of views under the single-view, and it is few and realize simply to take resource; Reduce cost of development, improve development efficiency.
The present invention also provides a kind of method that realizes that under the single-view framework many views switch, and it is every under the single-view framework then to produce a view when needing to upgrade a view, realizes simply, and saves resource, but and the switching effect of simple realization animation.
Fig. 4 is the method process flow diagram in one embodiment among the present invention, and this method comprises:
Step 410 is obtained and is switched indication, said switching indication comprise the sign of the new view that will switch to.
When needs carried out the view switching, said switching indication also comprised the sign of the new view that switches to, and utilized this sign to be convenient to call corresponding new view.
In one embodiment; Can select for use a variable to come real-time judgement whether need carry out view switches; When variable is true (true); Can think that then need carry out view switches, produce said view and switch indication, the order of this moment through carrying out view and switch (as can select through button, touch-screen is selected or mode such as voice selecting produces) obtain the sign of the new view that switches to.In practical application, when the user carries out user's operation or the variation of program generation internal logic, all can produce one and switch indication.Such as, when the user when using the chat pattern, the user will produce one and switch indication when opening a new chat conversations frame.
Step 420 is created corresponding new viewdata according to the sign of said new view.
Wherein said new viewdata comprises current up-to-date interface data, and said current up-to-date interface data is new view generation need brush the interface data on the screen.Usually, said viewdata also comprises the logic state that some need not be drawn except comprising the interface data that need be plotted on the screen.When getting access to the instruction that to carry out the view switching, then utilize the sign of the new view that need switch in the switching command to create corresponding new viewdata.In order to reduce system power dissipation, to accelerate switch speed, in native system, utilize the corresponding lightweight view of new view to create function and create corresponding new view.
It is the view establishment function under the view that said lightweight view is created function, and the establishment of under each view, carrying out view is fairly simple.In one embodiment; Said view is inherited the interface class; And the interface class can realize a function such as page drafting, button processing, resource loading and resource release that view is required having guaranteed that like this all a system view the inside realization, there is not the switching between the system view in each view through an interface; So it is few to take resource, switch speed is very fast.
It should be noted that said new view establishment module must realize view establishment interface when creating new view, utilize this view to create interface the object of the correspondence under the view is provided, create the establishment that function is realized new view thereby just can call said lightweight.
Step 430 is put into said new viewdata in the buffer area of appointment to replace original viewdata.
Said buffer zone can be used for the interface data in the up-to-date viewdata of buffer memory; Because interface data is bigger, possibly needs several seconds even longer time just can be plotted on the screen, and also scintillation can occur sometimes; Generation for fear of this situation; Can adopt double buffering technology, promptly in internal memory, create an extra CFbsBitmap object the same (being said buffer zone), the interface data that needs are drawn is put into said object with screen size; And then once the figure on this object is copied on the screen, can accelerate the speed of drawing so greatly.
Above step has realized: when the user assign carry out the view switching command after, be ready to need to draw the data of new view interface, next be exactly to draw the interface.Before drawing the interface, usually can whether receive and switch indication whenever in the preset time, detecting this moment.
When concrete the realization, can utilize a variable to demarcate and whether receive and switch indication, when this variable is that true time has then been received the switching indication.Whether this moment is every through a timer is true at a distance from this variable of preset time section detection, if this variable is true, then shows and can the interface data in the said buffering be plotted on the screen.Promptly begin the work of execution in step 440.
Step 440 is plotted to the data in the said buffer area on the screen.
In one embodiment, the Draw () call back function that can select system for use is plotted on the screen the viewdata in the buffer zone is disposable.System is after obtaining to switch indication; When setting up viewdata, be the drafting function of the ready correspondence of this viewdata simultaneously, switch the data just utilize in this drafting function drafting buffer zone to screen up to need carry out view through the judgement of above-mentioned timer.
For the animation in realizing using switches effect; After the corresponding new viewdata of the sign establishment of said new view; Said method also comprises: create the switching effect of said new view, and when drawing this new view, utilize this switching effect to draw the new view that comprises said switching effect.Said switching effect can be for being fade-in fade-out, skidding off etc., thereby make application program have aesthetic feeling more, and hommization more.
In practical application; Realize that if desired view switches effect; When producing new viewdata, just can produce corresponding view and switch effect, when carrying out the view drafting, can directly call this view switching effect and draw this view like this according to view identification.
In addition, in concrete the application, under same view, can constantly refresh the interface, like the chat record difference meeting corresponding generations different interface of chat conversations frame along with input.Therefore, under a constant view, need redraw identification and redraw, this just requires in the said method also needs:
Step 450, after receiving up-to-date switching indication to receive switch indication next time before, obtain and redraw indication, said redraw indication comprise the sign at the new interface that will redraw; Step 460 is created corresponding new interface data based on the sign at said new interface and current viewdata.
Wherein obtaining to redraw indicates step specifically to comprise: redraw indication every whether receiving at a distance from preset time period detection, if then carry out the said step that redraws indication of obtaining.
In one embodiment, can select for use a timer to set the said time period, when arriving the time of said timer setting, then obtain and redraw indication; Usually in order to prevent the continuous clear screen of timer; Reduce the CPU power consumption; Its frequency setting is a close value of mobile phone screen hardware refresh rate, is 20 frame per seconds like the screen hardware refresh rate of a mobile phone, can be 10 frame per seconds, 20 frame per seconds, 21 frame per seconds etc. with the frequency setting of timer.
In one embodiment; Can select for use a variable to come real-time judgement whether need redraw, when variable is true (true), can think that then need carry out the interface redraws; Produce the said indication that redraws, this moment through before the interface obtain the sign at the interface that the need that switch to redraw; When variable is false (false), can not think that then need carry out the interface redraws, proceed regularly to judge.
It should be noted that; In the process of carrying out the view switching and redrawing, all carry out the true and false judgement of variable; Variable can be same variable under the both of these case; When the user carried out the switch view operation or on the interface, imported new data, said variable all became very, and said variable then becomes vacation after completing.
By on can know; When the user carries out the view switching; At first said variable becomes very, sets up the corresponding drafting function of data and this data of new view this moment, when timer then carries out the judgement of this variable during to certain hour; When judging that this variable is that true time then calls said drafting function data are plotted on the screen, this variable is set to vacation subsequently; As user during to the new data of the interface of this view input, said variable be true, and timer judges whether this variable is true, and when this variable of judgement is that true time then calls said drafting function up-to-date data are plotted on the screen, this variable is set to vacation subsequently.
In a concrete embodiment, see also shown in Figure 5, corresponding method flow diagram when it shows clear screen among Fig. 3.Said method comprises:
Step 510, start-up routine also carries out initialization;
Step 520, beginning timer Timer;
Step 530, timer readjustment TimeOut is to confirm the moment of timer appointment;
Step 540, whether judgment variable iCanvasUpdate is true, if be judged as vacation, then returns step 520;
Step 550; If said variable i CanvasUpdate is true, then CanvasManager returns the view Canvas of current activation, and through the MCanvasSupport interface Canvas is provided object; Thereby produce the new interface data of this view, and these data are sent to buffer area;
Step 560 is called the drafting function DrawNow of the view Canvas of activation; With
Step 570, said drafting function DrawNow to screen, returns step 520 to the Refresh Data in the buffer area.
In sum; The method of switching at the many views of realization under the single-view framework provided by the present invention is just created a view when needs upgrade view, otherwise does not create, and when producing new viewdata, can the view resource of original establishment be discharged; Saved resource; And realize switching fast, and when switching, embedded the switching effect, make its application program friendly more.
Above-mentioned explanation has fully disclosed embodiment of the present invention.It is pointed out that any change that technician's specific embodiments of the invention of being familiar with this field is done does not all break away from the scope of claims of the present invention.Correspondingly, the scope of claim of the present invention also is not limited only to previous embodiment.
All or part of content in the technical scheme that above embodiment provides can realize that through software programming its software program is stored in the storage medium that can read, storage medium for example: the hard disk in the computing machine, CD or floppy disk.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (14)

1. the system switched of view more than a kind is characterized in that it comprises:
Switch the indication acquisition module, be used to obtain and switch indication, said switching indication comprise the sign of the new view that will switch to;
New view is created module, is used for creating corresponding new viewdata according to the sign of said new view, and said new viewdata comprises current up-to-date interface data;
Data cache module is used for said current up-to-date interface data is put in the buffer zone of appointment to replace original interface data; With
Drafting module is used for the data in the said buffer zone are plotted to screen.
2. system according to claim 1 is characterized in that, said system comprises that also redrawing the indication acquisition module creates module with new interface, wherein:
Said redraw the indication acquisition module after receiving up-to-date switching indication to receive switch indication next time before, obtain and redraw indication, said redraw indication comprise the sign at the new interface that will redraw;
Said new interface is created module and is created corresponding new interface data according to the sign at said new interface.
3. system according to claim 2 is characterized in that, the said indication acquisition module that redraws specifically is used for:
Every whether receiving at a distance from preset time period detection redraws indication, if then carry out the said step that redraws indication of obtaining.
4. system according to claim 2 is characterized in that, said new interface is created module and specifically is used for:
Call the corresponding interface of sign at new interface under the said view and create function, to create corresponding new interface.
5. system according to claim 1; It is characterized in that said system also comprises switches the indication determination module, its every whether receiving at a distance from the detection of preset time section is switched indication; If carry out that then the data in the said buffer zone are plotted to the step on the screen.
6. system according to claim 1 is characterized in that: said new view is created module and specifically is used for:
Call the corresponding lightweight view of sign of said new view and create function, to create corresponding new view.
7. system according to claim 1 is characterized in that, said system also comprises:
Switch the effect generation module, be used to create the switching effect of said new view, and when drawing this new view median surface for the first time, utilize this switching effect to draw the new interface that comprises said switching effect.
8. the method switched of view more than a kind is characterized in that it comprises:
Obtain and switch indication, said switching indication comprise the sign of the new view that will switch to;
Sign based on said new view is created corresponding new viewdata, and said new viewdata comprises current up-to-date interface data;
Said up-to-date interface data is put in the buffer zone of appointment to replace original interface data;
Data in the said buffer zone are plotted on the screen.
9. method according to claim 8 is characterized in that, said method also comprises:
After receiving up-to-date switching indication to receive switch indication next time before, obtain and redraw indication, said redraw indication comprise the sign at the new interface that will redraw;
Sign according to said new interface is created corresponding new interface data.
10. method according to claim 9 is characterized in that, said obtaining redraws indication, specifically comprises:
Every whether receiving at a distance from preset time period detection redraws indication, if then carry out the said step that redraws indication of obtaining.
11. method according to claim 9 is characterized in that: the said new interface data of creating correspondence according to the sign and the current viewdata at said new interface specifically comprises:
Call the corresponding interface of sign at new interface under the said view and create function, to create corresponding new interface.
12. method according to claim 8 is characterized in that, said method also comprises:
Every whether receiving at a distance from preset time period detection switched indication, if carry out that then the data in the said buffer zone are plotted to the step on the screen.
13. method according to claim 12, its spy is that said sign according to said new view is created corresponding new viewdata, specifically comprises:
Call the corresponding lightweight view of sign of said new view and create function, to create corresponding new viewdata.
14., it is characterized in that said sign based on said new view is created after the corresponding new viewdata, also comprises based on the described method of claim 8:
Create the switching effect of said new view, and when drawing this new view median surface for the first time, utilize this switching effect to draw the new interface that comprises said switching effect.
CN2011101373439A 2011-05-25 2011-05-25 Multi-view switching system and method Pending CN102799421A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011101373439A CN102799421A (en) 2011-05-25 2011-05-25 Multi-view switching system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011101373439A CN102799421A (en) 2011-05-25 2011-05-25 Multi-view switching system and method

Publications (1)

Publication Number Publication Date
CN102799421A true CN102799421A (en) 2012-11-28

Family

ID=47198538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011101373439A Pending CN102799421A (en) 2011-05-25 2011-05-25 Multi-view switching system and method

Country Status (1)

Country Link
CN (1) CN102799421A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103809864A (en) * 2012-11-07 2014-05-21 阿里巴巴集团控股有限公司 Method and device for switching interfaces dynamically
CN104423785A (en) * 2013-09-05 2015-03-18 腾讯科技(深圳)有限公司 View switching method and terminal
CN105022549A (en) * 2014-04-29 2015-11-04 腾讯科技(北京)有限公司 View display method and apparatus
CN105051695A (en) * 2013-01-04 2015-11-11 微软技术许可有限责任公司 Immutable shareable zero-copy data and streaming
CN105872711A (en) * 2016-04-21 2016-08-17 北京元心科技有限公司 Switching animation display method and device during multi-system switching
CN110020319A (en) * 2017-12-28 2019-07-16 北京京东尚科信息技术有限公司 View switching method and apparatus
CN110069313A (en) * 2019-04-29 2019-07-30 珠海豹好玩科技有限公司 Image switching method, device, electronic equipment and storage medium
CN111813296A (en) * 2019-04-10 2020-10-23 腾讯科技(深圳)有限公司 View component display method and device and terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1262748A (en) * 1996-04-04 2000-08-09 安尼索福特公司 Apparatus for and method of acquiring, processing and routing data contained in gui window
CN1325056A (en) * 2000-05-19 2001-12-05 英业达股份有限公司 Fast chang-over method between interfaces
CN1567206A (en) * 2003-06-25 2005-01-19 英业达股份有限公司 Method for dynamic query of application program configuration information
US20060129979A1 (en) * 2002-08-15 2006-06-15 Microsoft Corporation Dynamically extensible application program framework including message and notification routing
CN101650672A (en) * 2009-08-19 2010-02-17 中兴通讯股份有限公司 Switching method and device of display picture layers based on mobile phone terminal
CN101895634A (en) * 2010-07-15 2010-11-24 中兴通讯股份有限公司 Method and device for realizing dynamic switching of mobile terminal interface

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1262748A (en) * 1996-04-04 2000-08-09 安尼索福特公司 Apparatus for and method of acquiring, processing and routing data contained in gui window
CN1325056A (en) * 2000-05-19 2001-12-05 英业达股份有限公司 Fast chang-over method between interfaces
US20060129979A1 (en) * 2002-08-15 2006-06-15 Microsoft Corporation Dynamically extensible application program framework including message and notification routing
CN1567206A (en) * 2003-06-25 2005-01-19 英业达股份有限公司 Method for dynamic query of application program configuration information
CN101650672A (en) * 2009-08-19 2010-02-17 中兴通讯股份有限公司 Switching method and device of display picture layers based on mobile phone terminal
CN101895634A (en) * 2010-07-15 2010-11-24 中兴通讯股份有限公司 Method and device for realizing dynamic switching of mobile terminal interface

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103809864A (en) * 2012-11-07 2014-05-21 阿里巴巴集团控股有限公司 Method and device for switching interfaces dynamically
CN105051695A (en) * 2013-01-04 2015-11-11 微软技术许可有限责任公司 Immutable shareable zero-copy data and streaming
CN105051695B (en) * 2013-01-04 2019-07-02 微软技术许可有限责任公司 It is immutable to share zero replicate data and spread defeated
CN104423785B (en) * 2013-09-05 2019-06-14 腾讯科技(深圳)有限公司 A kind of view switching method and terminal
CN104423785A (en) * 2013-09-05 2015-03-18 腾讯科技(深圳)有限公司 View switching method and terminal
CN105022549B (en) * 2014-04-29 2019-06-11 腾讯科技(北京)有限公司 Show the method and device of view
CN105022549A (en) * 2014-04-29 2015-11-04 腾讯科技(北京)有限公司 View display method and apparatus
CN105872711A (en) * 2016-04-21 2016-08-17 北京元心科技有限公司 Switching animation display method and device during multi-system switching
CN105872711B (en) * 2016-04-21 2019-07-26 北京元心科技有限公司 Switching animation display method and device during multi-system switching
CN110020319A (en) * 2017-12-28 2019-07-16 北京京东尚科信息技术有限公司 View switching method and apparatus
CN111813296A (en) * 2019-04-10 2020-10-23 腾讯科技(深圳)有限公司 View component display method and device and terminal
CN111813296B (en) * 2019-04-10 2022-01-14 腾讯科技(深圳)有限公司 View component display method and device and terminal
CN110069313A (en) * 2019-04-29 2019-07-30 珠海豹好玩科技有限公司 Image switching method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102799421A (en) Multi-view switching system and method
RU2739586C1 (en) Screen translation method, device, terminal and storage medium
RU2642505C2 (en) Mobile device with user interface
JP6689561B2 (en) Method for managing application and device for managing application
US8819682B2 (en) Application switching in a single threaded architecture for devices
JP6273354B2 (en) User interface elements for multiple displays
CN110300328B (en) Video playing control method and device and readable storage medium
US20140033061A1 (en) Application programming interface for providing native and non-native display utility
CN105988860A (en) Method for executing application program and mobile device
US20240111473A1 (en) Distributed display method and terminal for application interface
WO2016023265A1 (en) Window display processing method in split-screen mode, electronic device and storage medium
WO2023098202A1 (en) Application starting method, electronic device, and readable storage medium
CN104123056A (en) Switching method, device and terminal of user interfaces
CN109756431B (en) Hybrid network configuration method and device, network structure and electronic equipment
CN103513977A (en) Display method and device for group member list
KR20160097415A (en) Application for operating multi-windows on android platform and the touch device equipped with the same
KR100695080B1 (en) Mobile Communication Terminal Having Screen Splitting Function
KR100560099B1 (en) Mobile terminal for multi-displayable contents information which is composed with independent channel, method thereof and computer readable record medium on which program for executing method is recorded
CN114237381A (en) Application processing method and device
CN101339497A (en) Method and device for displaying pattern produced when operating Java software
CN105487871A (en) Method and device for running application programs on intelligent terminal
CN111857902B (en) Application display method, device, equipment and readable storage medium
CN108549575A (en) Exit processing method, device, storage medium and the electronic equipment of split screen
CN113282181B (en) Method for supporting double-input method in vehicle-mounted entertainment system
EP2378755A1 (en) Method and apparatus for modifying notification settings on a mobile electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20121128

RJ01 Rejection of invention patent application after publication