CN108153455A - A kind of interface switching method and device - Google Patents

A kind of interface switching method and device Download PDF

Info

Publication number
CN108153455A
CN108153455A CN201611102412.1A CN201611102412A CN108153455A CN 108153455 A CN108153455 A CN 108153455A CN 201611102412 A CN201611102412 A CN 201611102412A CN 108153455 A CN108153455 A CN 108153455A
Authority
CN
China
Prior art keywords
interface
visible area
height
current interface
page visible
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
CN201611102412.1A
Other languages
Chinese (zh)
Other versions
CN108153455B (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.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile Technology Co Ltd
Guangzhou Jinshan Mobile Technology Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Jinshan Mobile Technology 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 Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Guangzhou Jinshan Mobile Technology Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201611102412.1A priority Critical patent/CN108153455B/en
Publication of CN108153455A publication Critical patent/CN108153455A/en
Application granted granted Critical
Publication of CN108153455B publication Critical patent/CN108153455B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

An embodiment of the present invention provides a kind of interface switching method and device, applied to technical field of mobile terminals, wherein, the method includes:Obtain the whole height of page visible area and the height of the vacant page visible area of the first current interface;According to the whole height of page visible area and the height of the vacant page visible area of the first current interface, the present level of the first current interface display layout is obtained, and using present level as the interfacial level of changing interface;Obtain to be switched first current interface;With interfacial level, the first current interface is switched over, and shows first object interface.So that the interfacial level at first object interface is equal with the interfacial level of the first current interface, so as to carry out changing interface glibly.

Description

A kind of interface switching method and device
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of interface switching method and device.
Background technology
With the development of mobile terminal and universal, mobile terminal generally use touch screen provides a user touch input work( Can, user completes the operation to mobile terminal by the corresponding position of point touching screen.
Mobile terminal can provide a user information editing's function by interface operation.Specifically, when user is in touch screen During the corresponding operation button of upper touch information editor, the lower half portion of current interface can be set as dummy keyboard by mobile terminal The first interface.In addition, mobile terminal can also provide a user acquisition of information function by application program.Specifically, when with Family on the touchscreen touching application program corresponding operation button when, which can also be set as applying by mobile terminal The second contact surface of program.For having both the mobile terminal of dummy keyboard and application program, how by the first interface and second contact surface It switches over, is a problem to be solved.Existing interface switching method, by the way of directly switching carrying out interface cuts It changes.Specifically, when the first changing interface is second contact surface, mobile terminal can first hide the first interface;Then second is shown Interface.When second contact surface is switched to the first interface, mobile terminal can first show the first interface;Then second contact surface is hidden.
Existing interface switching method, the height of the corresponding second contact surface of application program corresponding not equal to dummy keyboard the The height at one interface, Fig. 1 are pair of the interface schematic diagram interface schematic diagram corresponding with application program of prior art dummy keyboard Than figure, as can be seen from Figure 1, the corresponding interfacial level of dummy keyboard and the corresponding interfacial level of application program differ, the In the handoff procedure of one interface and second contact surface, when being switched over by existing interface switching method, dummy keyboard is corresponding Interfacial level and the different part of the corresponding interfacial level of application program can suddenly disappear, and handoff procedure is stiff without smoothness.
Invention content
The embodiment of the present invention is designed to provide a kind of interface switching method and device, so that the first interface and second The height at interface is identical, so as to carry out changing interface glibly.Specific technical solution is as follows:
On the one hand, an embodiment of the present invention provides a kind of interface switching method, including:
Obtain the whole height of page visible area and the height of the vacant page visible area of the first current interface;
According to the whole height of the page visible area and the vacant page visible area of first current interface The height in domain obtains the present level of the first current interface display layout, and using the present level as the boundary of changing interface Face height;
Obtain to be switched first current interface;
With the interfacial level, first current interface is switched over, and shows the first object interface.
It optionally, can in the whole height and the vacant page of the first current interface of the acquisition page visible area The height of viewed area, before, the method further includes:
Detect the first changing interface request that user sends;
It is the display interface that request first current interface is dummy keyboard in first changing interface request, switches During to the display interface that first object interface is application program, display interface of first current interface for dummy keyboard is judged;
It is described to be switched over first current interface, and show the first object interface with the interfacial level, Including:
With the interfacial level, the display interface of the dummy keyboard is switched over, and shows the application program Display interface.
Optionally, first current interface is switched over, and show described first with the interfacial level described Target interface, later, the method further include:
Detect the second contact surface handover request that user sends;
In the display interface that the second contact surface handover request is request applications, it is switched to display circle of dummy keyboard During face, the display interface of the application program is switched to the display interface of the dummy keyboard, wherein, the application program The height of display interface is the interfacial level.
Optionally, the whole height for obtaining page visible area and the vacant page of the first current interface are visual The height in region, including:
When first current interface is the first hiding current interface, the whole height of page visible area is obtained, And the present level of the vacant page visible area of the first current interface.
Optionally, the whole height for obtaining page visible area and the vacant page of the first current interface are visual The height in region, including:
When first current interface is the first current interface opened, the whole height of page visible area is obtained, And the present level of the vacant page visible area of the first current interface.
Optionally, it is described according to the whole height of the page visible area and first current interface are vacant The height of page visible area obtains the present level of the first current interface display layout, including:
According to the present level of the vacant page visible area of first current interface and the page visible area The absolute value of the difference of the whole height in domain obtains the present level of the first current interface display layout.
Optionally, the whole height for obtaining page visible area and the vacant page of the first current interface are visual The height in region, including:
When the first screen state and roller blind state that mobile terminal is in roller blind state do not change, page visible area is obtained The whole height in domain and the height of the vacant page visible area of the first current interface, wherein, the first screen state packet It includes:Transverse screen state or vertical screen state.
In addition, the embodiment of the present invention additionally provides a kind of changing interface device, including:First acquisition module, computing module, Second acquisition module and the first handover module;
First acquisition module, for obtaining the whole height of page visible area and the vacant institute of the first current interface State the height of page visible area;
The computing module does not account for for the whole height according to the page visible area and first current interface With the height of the page visible area, the present level of the first current interface display layout is obtained, and by the present level Interfacial level as changing interface;
Second acquisition module, for obtaining to be switched first current interface;
First handover module, for the interfacial level, first current interface to be switched over, and show The first object interface.
Optionally, changing interface of embodiment of the present invention device further includes:
First detection module, for detecting the first changing interface request of user's transmission;
Judgment module is dummy keyboard for being request first current interface in first changing interface request Display interface when being switched to the display interface that first object interface is application program, judges the first current interface for dummy keyboard Display interface;
First handover module is further used for the interfacial level, by the display interface of the dummy keyboard into Row switching, and show the display interface of the application program.
Optionally, changing interface of embodiment of the present invention device further includes:
Second detection module, for detecting the second contact surface handover request of user's transmission;
Second handover module, in the display interface that the second contact surface handover request is request applications, switching To dummy keyboard display interface when, the display interface of the application program is switched to the display interface of the dummy keyboard, Wherein, the height of the display interface of the application program is the interfacial level.
Optionally, first acquisition module, it is the first hiding current interface to be additionally operable in first current interface When, obtain the whole height of page visible area and the height of the vacant page visible area of first current interface Degree.
Optionally, first acquisition module is additionally operable in the first current interface that first current interface is opening When, obtain the whole height of page visible area and the height of the vacant page visible area of first current interface Degree.
Optionally, the computing module is additionally operable to according to the vacant page visible area of first current interface Height and the page visible area whole height absolute value of the difference, obtain the current of the first current interface display layout Highly.
Optionally, first acquisition module, be additionally operable to mobile terminal be in the first screen state in roller blind state and When roller blind state does not change, the whole height and the vacant page visible area of the first current interface of page visible area are obtained The height in domain, wherein, the first screen state includes:Transverse screen state or vertical screen state.
The boundary of the first current interface can be obtained by calculation in interface switching method and device provided in an embodiment of the present invention Face height, using the interfacial level of first current interface as the interfacial level at first object interface, i.e., by first object interface Interfacial level and the interfacial level of the first current interface be set as identical so that first object interface and the first current interface In handoff procedure, the visual effect at the corresponding interface of dummy keyboard covering application program is generated, so as to fulfill boundary is carried out glibly Face switches.Certainly, it implements any of the products of the present invention or method must be not necessarily required to reach all the above advantage simultaneously.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the comparison diagram of the interface schematic diagram interface schematic diagram corresponding with application program of prior art dummy keyboard;
Fig. 2 is the flow chart of interface switching method of the embodiment of the present invention;
Fig. 3 is the structure diagram of changing interface device of the embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work Embodiment shall fall within the protection scope of the present invention.
Mobile terminal can provide a user information editing's function by interface operation, in the client of mobile terminal device In, by the corresponding interface of application program, provide some specific operations to the user, for example, the singlehanded pattern of setting, addition expression with And video calling etc., in actual application, can the corresponding interface of application program be referred to as half screen panel.Due to application program Corresponding interface occupies same space with dummy keyboard, for having both the client of half screen panel and dummy keyboard operation, how It is a problem to be solved that the two is allowed, which to carry out smooth switching,.
In order to achieve the above object, an embodiment of the present invention provides a kind of interface switching method, Fig. 2 is the embodiment of the present invention The flow chart of interface switching method is described in detail interface switching method of the embodiment of the present invention with reference to Fig. 2, including:
Step 201, the whole height of page visible area and the vacant page visible area of the first current interface are obtained Highly.
When mobile terminal is operated by the corresponding interface of application program and dummy keyboard, existing interface switching method Both for the corresponding interface of mutually independent application program and dummy keyboard, the corresponding interface of application program and dummy keyboard it Between height be all it is individually designed, between each other it is not related.The embodiment of the present invention by by the corresponding interface of application program and Dummy keyboard establishes contact between the two, and the height of the two is set as identical.But the operating system of mobile terminal does not have The interface of dummy keyboard height can be directly obtained, so the height of dummy keyboard is obtained by calculation in the embodiment of the present invention, into And the height at the corresponding interface of application program is set as the height of dummy keyboard so that on the corresponding boundary of application program During face is switched over dummy keyboard, the visual effect at the corresponding interface of dummy keyboard covering application program is generated, i.e., Dummy keyboard covers the corresponding interface of application program just as tablecloth, and in actual application, application program is corresponding Interface is generally referred to as half screen panel, so as to fulfill the switching between interface is carried out glibly.
First current interface can be dummy keyboard, when dummy keyboard is shown or dummy keyboard is not shown, interface layout It is different, so when being shown by dummy keyboard, the height of the vacant page visible area of the first current interface and virtual The whole height of page visible area when keyboard is not shown, i.e., when not shown by dummy keyboard, the height of entire screen and When dummy keyboard is shown, the height of the vacant page visible area of dummy keyboard of the entire screen in addition to dummy keyboard height, It can obtain the height of dummy keyboard.
In actual application, the height of interface layout is set by different controls, for example, in Android system, generation It, can be with by these methods comprising the basic skills for setting and obtaining height value in the class android.view.View of surface and interface The height at interface is set and obtains, the basic skills of setting and acquisition height value is existing skill in class android.view.View Art just repeats no more here.
Step 202, according to the whole height of page visible area and the vacant page visible area of the first current interface Highly, the present level of the first current interface display layout is obtained, and using present level as the interfacial level of changing interface.
Because obtaining the height of the first current interface, in embodiments of the present invention to obtain the height of dummy keyboard, only need When obtaining dummy keyboard display, the page when height and dummy keyboard of the vacant page visible area of the first current interface are not shown The whole height of face visible area, so be open first to dummy keyboard, followed by hide or dummy keyboard first Hiding, be then open there is no limit.
After obtaining the whole height of page visible area and the height of the vacant page visible area of the first current interface, Then according to the whole height of the acquisition page visible area and the height of the vacant page visible area of the first current interface, obtain The interfacial level of first current interface, wherein, when the whole height of page visible area is not shown for dummy keyboard, corresponding screen Curtain height;After the height of the vacant page visible area of first current interface is opened for dummy keyboard, first is removed in entire screen Height except the height of current interface, that is, dummy keyboard.By the interfacial level of first current interface, as first object circle The interfacial level of face display layout, i.e., the interfacial level being laid out first object interface display are set as first working as prezone with this The interfacial level in face is equal, wherein, first object interface is the corresponding interface to be switched to of the first current interface.
Step 203, to be switched first current interface is obtained.
Step 204, with interfacial level, the first current interface is switched over, and shows first object interface.
According to the interfacial level at first object interface obtained above, the first current interface is switched over, and shows the First current interface is switched to first object interface, completes switching by one target interface.Display first object circle mentioned here Face is by the dynamic control layout interface in application code, by first object interface in practical application process Layout is dynamically added in the interface layout of application program or optionally, is set by View.setVisibility (int) method The layout for putting first object interface is visible state.
In practical application process, the interface that mobile terminal carries out high speed with the frequency of human eye None- identified is drawn, hidden Hide and display interface, in embodiments of the present invention, that is, hide and display half screen panel or dummy keyboard so that half screen panel with In the handoff procedure of dummy keyboard, the visual effect of dummy keyboard covering half screen panel is generated, i.e., dummy keyboard is just as tablecloth one Sample covers half screen panel, avoids handoff procedure stiff, so that changing interface process is very smooth, will not cause interface The adverse consequences such as shake.
Interface switching method of the embodiment of the present invention so that the interfacial level phase at dummy keyboard interface corresponding with application program Together, in the handoff procedure at dummy keyboard interface corresponding with application program, the corresponding boundary of dummy keyboard covering application program is generated The visual effect in face, i.e. dummy keyboard cover the corresponding interface of application program just as tablecloth, in actual application, The corresponding interface of application program is generally referred to as half screen panel, certainly, referred to herein so as to fulfill changing interface is carried out glibly The corresponding interface of dummy keyboard covering application program, the effect only visually seen is not to say that practical handoff procedure In, it is the corresponding interface of dummy keyboard covering application program.
In a kind of achievable mode of interface switching method of the embodiment of the present invention, working as current interface display layout is being obtained Preceding height before, further includes:
First, the first changing interface request that detection user sends.
Then, it is the display interface that the first current interface of request is dummy keyboard in the request of the first changing interface, is switched to When first object interface is the display interface of application program, display interface of first current interface for dummy keyboard is judged.
Finally, with interfacial level, the first current interface is switched over, and shows first object interface, including:
With interfacial level, the display interface of dummy keyboard is switched over, and shows the display interface of application program.
Carrying out changing interface needs according to specific instruction, under normal circumstances, the instruction can by user's button press, Mobile terminal receives the instruction that user sent by button or user sends to mobile terminal and asks, and mobile terminal is connecing Changing interface process is carried out during the request for receiving user's transmission.In embodiments of the present invention, whether selection detection user, which sends, is asked It asks, decides whether to carry out changing interface.
It should be noted that interface switching method of the embodiment of the present invention, when the first changing interface for detecting user's transmission During request, wherein, the request of the first changing interface is the display interface that the first current interface is asked to be dummy keyboard, is switched to first Target interface is the display interface of application program, needs to calculate the interfacial level that the first current interface is dummy keyboard first, will The interfacial level conduct of the dummy keyboard, first changing interface ask the interfacial level at corresponding first object interface;In reality In the application process on border, i.e., the interfacial level as the corresponding half screen panel of application program.Then interface to be calculated Highly, it is drawn by interface, dummy keyboard is switched over, and show the interface of application program, completed with this current by first Interface is dummy keyboard, switches to the process that first object interface is the corresponding interface of application program.
In mode can be achieved in the another kind of interface switching method of the embodiment of the present invention, with interfacial level, first is worked as Front interface switches over, and shows first object interface, further includes later:
First, the second contact surface handover request that detection user sends.
Then, in the display interface that second contact surface handover request is request applications, it is switched to the display of dummy keyboard During interface, the display interface of application program is switched to the display interface of dummy keyboard, wherein, the display interface of application program Highly it is interfacial level.
When the second contact surface handover request for receiving user's transmission, wherein, second contact surface handover request is request second Current interface is the display interface of application program, the display interface that the second target interface is dummy keyboard is switched to, in execution After the first changing interface request stated, the corresponding interfacial level of application program is the above-mentioned interfacial level being calculated.At this point, The height of the corresponding interfacial level of application program and dummy keyboard is identical, is no longer needed at this time according to above-mentioned step calculating Second current interface directly according to second contact surface handover request, is switched to second contact surface by the interfacial level of the second target interface Corresponding second target interface of handover request, i.e., by the corresponding changing interface of application program to dummy keyboard.
Above-described embodiment has been described above, it is only necessary to which the whole height and the first current interface for obtaining page visible area do not account for With the height of page visible area, it is possible to the interfacial level of the first current interface be calculated.So to the first current interface Be open first, followed by hide or the first current interface be hiding first, be then open there is no limit. Here the first current interface is open first respectively, followed by hide;Be first with the first current interface it is hiding, so After be open, both of these case calculate the first current interface interfacial level be described in detail.
In a kind of achievable mode of the embodiment of the present invention, the present level of the first current interface display layout is obtained, Including:
When the first current interface is the first hiding current interface, obtain page visible area whole height and The present level of the vacant page visible area of first current interface.
It is mentioned here when the first current interface is the first hiding current interface, i.e., just started corresponding to dummy keyboard It is hiding, then opens dummy keyboard, and then the whole height of the acquisition page and the vacant page of the first current interface can The present level of viewed area.
In mode can be achieved in the another kind of the present invention, the present level of the first current interface display layout is obtained, including:
When the first current interface is the first current interface opened, obtain page visible area whole height and The present level of the vacant page visible area of first current interface.
It is mentioned here the first current interface be open the first current interface when, i.e., just started corresponding to dummy keyboard It shows, then hides dummy keyboard, and then the whole height of acquisition page visible area and the first current interface do not account for With the present level of page visible area.
Because the client of terminal device cannot directly obtain the interfacial level of dummy keyboard by interface, when needing to use It during the height of dummy keyboard, then needs through certain calculating, dummy keyboard can be obtained by above-mentioned two methods Highly.The corresponding interfacial level of client itself application program is set as identical with the interfacial level of dummy keyboard, the present invention The interfacial level of the corresponding half screen panel of application program and dummy keyboard is set as identical in embodiment.In half screen panel In the case of the same height of dummy keyboard, when dummy keyboard switches to half screen panel, calling packs up keyboard, is performed simultaneously display half screen Panel, the visual effect of generation is just as the half screen panel for removing dummy keyboard so as to show originally covered.Half screen panel is cut Then it is to perform expansion dummy keyboard, while hide half screen panel, the visual effect of generation is dummy keyboard exhibition when changing dummy keyboard Half screen panel is covered after opening.
Although interface switching method of the embodiment of the present invention for mobile terminal, needs to calculate the height of dummy keyboard, and then The interfacial level that application program is corresponded to interface is set as contour with dummy keyboard, but for a user, user is for boundary In the handoff procedure of face, the display at dummy keyboard or the corresponding interface of application program is not perceived with hiding, and user perceives To be the visual effect at the corresponding interface of dummy keyboard covering application program, and then can realize that carrying out interface glibly cuts It changes.
On the other hand, during changing interface of the embodiment of the present invention, the code that interface is drawn can be performed by machine in due course, And then showing that either hiding dummy keyboard show or hiding half screen panel, specific opportune moment is in the application process of reality In, it is selected by investigating repeatedly with verification, the effect of perfect dummy keyboard covering half screen panel is provided by the appropriate opportunity Fruit, meanwhile, changing interface process only comprising One step development or can pack up animation so that changing interface process is highly efficient.
In a kind of optional embodiment of interface switching method of the present invention, the first current interface mentioned here can be void Intend keyboard, height when being opened by calculating dummy keyboard and hiding, you can the interfacial level of dummy keyboard is calculated.Tool Body, according to the whole height of page visible area and the height of the vacant page visible area of the first current interface, obtain The present level of one current interface display layout, including:
According to the present level of the vacant page visible area of the first current interface and the whole height of page visible area Absolute value of the difference, obtain the first current interface display layout present level.
It, can according to the whole height of the page visible area and the height of the vacant page visible area of the first current interface Obtain the interfacial level of the first current interface.By the interfacial level of the interfacial level of first current interface, i.e. dummy keyboard, make Interfacial level for first object interface display layout.The interfacial level that first object interface display is laid out, be set as with The interfacial level of first current interface is equal, and first object interface is to ask the first current interface pair according to the first changing interface The interface being switched to answered can be the corresponding interface of application program in the present embodiment.
In a kind of achievable mode of the present invention, the client and void of the mobile terminal there are dummy keyboard can be set Plan keyboard is extruding relationship, i.e., when dummy keyboard is shown, will squeeze the window of client so that the window height of client becomes Change;When dummy keyboard is not shown, client will not be squeezed, is not shown with dummy keyboard so being shown by dummy keyboard When, the different height of client window obtains the interfacial level of dummy keyboard.A kind of simple mode calculates dummy keyboard and shows Show the absolute value of the difference of client window height when not shown with dummy keyboard, you can the interface for obtaining dummy keyboard is high Degree.
The influence that screen change is avoided to calculate interfacial level obtains the first current interface in the embodiment of the present invention and shows cloth The present level of office, including:
When the first screen state and roller blind state that mobile terminal is in roller blind state do not change, page visible area is obtained The whole height in domain and the height of the vacant page visible area of the first current interface, wherein, the first screen state includes:Transverse screen shape State or vertical screen state.
It is understood that when roller blind occurs for mobile terminal, interface layout can also change, i.e., current interface starts It is transverse screen state, after change, it is initially vertical screen state to change as vertical screen state or current interface, after change, changes and is Transverse screen state, interface layout can occur to change accordingly.But the interfacial level for calculating current interface cannot but pass through the situation Change height after lower change calculates, so in practical application process, in order to avoid roller blind works as the embodiment of the present invention The influence that the interfacial level of front interface calculates, the first screen state and roller blind state being in roller blind state in mobile terminal do not change During change, the whole height of page visible area and the height of the vacant page visible area of the first current interface are obtained.It can lead to Overwriting current interface before changing after screen state, i.e. current interface is transverse screen state or vertical screen state, after before changing Screen state when changing, then ignore the change height that change at this time generates.In practical application process, work as prezone The screen state in face can be obtained by the interface width of current interface, i.e. when the interface width of current interface changes, then The screen state of current interface changes.
Corresponding to embodiments of the present invention interface switching method, the embodiment of the present invention additionally provides a kind of changing interface dress It puts, Fig. 3 is the structure diagram of changing interface device of the embodiment of the present invention, and changing interface of the embodiment of the present invention is filled with reference to Fig. 3 It puts and is described in detail, including:First acquisition module 301, computing module 302, the second acquisition module 303 and the first handover module 304。
First acquisition module 301, for obtaining the whole height of page visible area and the vacant page of the first current interface The height of face visible area.
Computing module 302, can for the whole height according to page visible area and the vacant page of the first current interface The height of viewed area obtains the present level of the first current interface display layout, and using present level as the boundary of changing interface Face height.
Second acquisition module 303, for obtaining to be switched first current interface.
First handover module 304, for interfacial level, the first current interface being switched over, and show first object Interface.
Changing interface device of the embodiment of the present invention so that the interfacial level phase at dummy keyboard interface corresponding with application program Together, in the handoff procedure at dummy keyboard interface corresponding with application program, the corresponding boundary of dummy keyboard covering application program is generated The visual effect in face, i.e. dummy keyboard cover the corresponding interface of application program just as tablecloth, in actual application, The corresponding interface of application program is generally referred to as half screen panel, so as to fulfill changing interface is carried out glibly.
Optionally, changing interface of embodiment of the present invention device further includes:
First detection module, for detecting the first changing interface request of user's transmission.
Judgment module, for being display circle that the first current interface is asked to be dummy keyboard in the request of the first changing interface Face when being switched to the display interface that first object interface is application program, judges display of first current interface for dummy keyboard Interface.
First handover module 304, is further used for interfacial level, and the display interface of dummy keyboard is switched over, and Show the display interface of application program.
Optionally, changing interface of embodiment of the present invention device further includes:
Second detection module, for detecting the second contact surface handover request of user's transmission.
Second handover module, for second contact surface handover request be request applications display interface, be switched to void When intending the display interface of keyboard, the display interface of application program is switched to the display interface of dummy keyboard, wherein, application program Display interface height be interfacial level.
Optionally, in changing interface of embodiment of the present invention device, the first acquisition module 301 is additionally operable to work as prezone first When face is the first hiding current interface, the whole height and the vacant page of the first current interface of page visible area are obtained The height of face visible area.
Optionally, in changing interface of embodiment of the present invention device, the first acquisition module 301 is additionally operable to work as prezone first When face is the first current interface opened, the whole height and the vacant page of the first current interface of page visible area are obtained The height of face visible area.
Optionally, in changing interface of embodiment of the present invention device, computing module 302 is additionally operable to according to the first current interface The height of vacant page visible area and the absolute value of the difference of the whole height of page visible area, obtain the first current interface Show the present level of layout.
Optionally, in changing interface of embodiment of the present invention device, the first acquisition module 301, the first acquisition module is additionally operable to When the first screen state and roller blind state that mobile terminal is in roller blind state do not change, the entirety of page visible area is obtained Height and the height of the vacant page visible area of the first current interface, wherein, the first screen state includes:Transverse screen state or vertical screen State.
It should be noted that the device of the embodiment of the present invention is the device using above-mentioned interface switching method, then above-mentioned boundary All embodiments of face switching method are suitable for the device, and can reach the same or similar advantageous effect.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any this practical relationship or sequence.Moreover, term " comprising ", "comprising" or its any other variant are intended to Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those Element, but also including other elements that are not explicitly listed or further include as this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that Also there are other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is described using relevant mode, identical similar portion between each embodiment Point just to refer each other, and the highlights of each of the examples are difference from other examples.Especially for system reality For applying example, since it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (14)

1. a kind of interface switching method, which is characterized in that including:
Obtain the whole height of page visible area and the height of the vacant page visible area of the first current interface;
According to the whole height of the page visible area and the vacant page visible area of first current interface Highly, the present level of the first current interface display layout is obtained, and the present level is high as the interface of changing interface Degree;
Obtain to be switched first current interface;
With the interfacial level, first current interface is switched over, and shows the first object interface.
2. interface switching method according to claim 1, which is characterized in that the entirety in the acquisition page visible area Height and the height of the vacant page visible area of the first current interface, before, the method further includes:
Detect the first changing interface request that user sends;
Be the display interface that first current interface is asked to be dummy keyboard in first changing interface request, be switched to the When one target interface is the display interface of application program, display interface of first current interface for dummy keyboard is judged;
It is described to be switched over first current interface, and show the first object interface with the interfacial level, it wraps It includes:
With the interfacial level, the display interface of the dummy keyboard is switched over, and shows the display of the application program Interface.
3. interface switching method according to claim 1, which is characterized in that described with the interfacial level, by described in First current interface switches over, and shows the first object interface, and later, the method further includes:
Detect the second contact surface handover request that user sends;
In the display interface that the second contact surface handover request is request applications, it is switched to the display interface of dummy keyboard When, the display interface of the application program is switched to the display interface of the dummy keyboard, wherein, the application program it is aobvious The height for showing interface is the interfacial level.
4. interface switching method according to claim 1 or 2, which is characterized in that described to obtain the whole of page visible area Body height and the height of the vacant page visible area of the first current interface, including:
When first current interface is the first hiding current interface, obtain page visible area whole height and The present level of the vacant page visible area of first current interface.
5. interface switching method according to claim 1 or 2, which is characterized in that described to obtain the whole of page visible area Body height and the height of the vacant page visible area of the first current interface, including:
When first current interface is the first current interface opened, obtain page visible area whole height and The present level of the vacant page visible area of first current interface.
6. interface switching method according to claim 1 or 2, which is characterized in that described according to the page visible area Whole height and the vacant page visible area of first current interface height, obtain the first current interface and show The present level of layout, including:
According to the present level of the vacant page visible area of first current interface and the page visible area The absolute value of the difference of whole height obtains the present level of the first current interface display layout.
7. interface switching method according to claim 1, which is characterized in that described to obtain the whole high of page visible area Degree and the height of the vacant page visible area of the first current interface, including:
When the first screen state and roller blind state that mobile terminal is in roller blind state do not change, page visible area is obtained Whole height and the height of the vacant page visible area of the first current interface, wherein, the first screen state includes:It is horizontal Screen state or vertical screen state.
8. a kind of changing interface device, which is characterized in that including:First acquisition module, computing module, the second acquisition module and One handover module;
First acquisition module, for obtaining the whole height of page visible area and the vacant page of the first current interface The height of face visible area;
The computing module, for the whole height according to the page visible area and the vacant institute of first current interface State the height of page visible area, obtain the first current interface display layout present level, and using the present level as The interfacial level of changing interface;
Second acquisition module, for obtaining to be switched first current interface;
First handover module, for the interfacial level, first current interface being switched over, and described in display First object interface.
9. changing interface device according to claim 8, which is characterized in that further include:
First detection module, for detecting the first changing interface request of user's transmission;
Judgment module, for being the display that request first current interface is dummy keyboard in first changing interface request Interface when being switched to the display interface that first object interface is application program, judges the first current interface for the aobvious of dummy keyboard Show interface;
First handover module is further used for, with the interfacial level, the display interface of the dummy keyboard being cut It changes, and shows the display interface of the application program.
10. changing interface device according to claim 8, which is characterized in that described device further includes:
Second detection module, for detecting the second contact surface handover request of user's transmission;
Second handover module, for the second contact surface handover request be request applications display interface, be switched to void When intending the display interface of keyboard, the display interface of the application program is switched to the display interface of the dummy keyboard, wherein, The height of the display interface of the application program is the interfacial level.
11. changing interface device according to claim 8 or claim 9, which is characterized in that first acquisition module is additionally operable to When first current interface is the first hiding current interface, the whole height of page visible area and described is obtained The height of the vacant page visible area of first current interface.
12. changing interface device according to claim 8 or claim 9, which is characterized in that first acquisition module is additionally operable to When first current interface is the first current interface opened, the whole height of page visible area and described is obtained The height of the vacant page visible area of first current interface.
13. changing interface device according to claim 8 or claim 9, which is characterized in that the computing module is additionally operable to basis The difference of the height of the vacant page visible area of first current interface and the whole height of the page visible area Absolute value, obtain the first current interface display layout present level.
14. changing interface device according to claim 8 or claim 9, which is characterized in that first acquisition module is additionally operable to When the first screen state and roller blind state that mobile terminal is in roller blind state do not change, the entirety of page visible area is obtained Height and the height of the vacant page visible area of the first current interface, wherein, the first screen state includes:Transverse screen shape State or vertical screen state.
CN201611102412.1A 2016-12-05 2016-12-05 Interface switching method and device Active CN108153455B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611102412.1A CN108153455B (en) 2016-12-05 2016-12-05 Interface switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611102412.1A CN108153455B (en) 2016-12-05 2016-12-05 Interface switching method and device

Publications (2)

Publication Number Publication Date
CN108153455A true CN108153455A (en) 2018-06-12
CN108153455B CN108153455B (en) 2021-02-05

Family

ID=62470837

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611102412.1A Active CN108153455B (en) 2016-12-05 2016-12-05 Interface switching method and device

Country Status (1)

Country Link
CN (1) CN108153455B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102893250A (en) * 2012-07-13 2013-01-23 华为技术有限公司 Method and terminal of determining operation object
CN102999294A (en) * 2012-11-16 2013-03-27 广东欧珀移动通信有限公司 Terminal equipment as well as operation keyboard switching method and device thereof
CN103390053A (en) * 2013-07-26 2013-11-13 贝壳网际(北京)安全技术有限公司 Page switching control method and device of browser and client
CN103577104A (en) * 2013-09-27 2014-02-12 苏州佳世达电通有限公司 Display method of virtual keyboard, control device and touch equipment
CN103616979A (en) * 2013-11-26 2014-03-05 深圳钱盒信息技术有限公司 Input interactive method, device and payment terminal
CN103885692A (en) * 2012-12-19 2014-06-25 华为技术有限公司 Page changing method, device and terminal
CN104272240A (en) * 2012-03-07 2015-01-07 摩托罗拉移动有限责任公司 Systems and methods for modifying virtual keyboards on a user interface
CN105183420A (en) * 2015-09-11 2015-12-23 联想(北京)有限公司 Information processing method and electronic equipment
CN105278910A (en) * 2015-11-24 2016-01-27 努比亚技术有限公司 Display method and apparatus
US20160062636A1 (en) * 2014-09-02 2016-03-03 Lg Electronics Inc. Mobile terminal and control method thereof
CN105578294A (en) * 2014-10-15 2016-05-11 优视科技有限公司 Browsing switching processing method, apparatus, and system
CN105867795A (en) * 2015-11-18 2016-08-17 乐视致新电子科技(天津)有限公司 Display method and device of virtual keyboard, and electronic equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104272240A (en) * 2012-03-07 2015-01-07 摩托罗拉移动有限责任公司 Systems and methods for modifying virtual keyboards on a user interface
CN102893250A (en) * 2012-07-13 2013-01-23 华为技术有限公司 Method and terminal of determining operation object
CN102999294A (en) * 2012-11-16 2013-03-27 广东欧珀移动通信有限公司 Terminal equipment as well as operation keyboard switching method and device thereof
CN103885692A (en) * 2012-12-19 2014-06-25 华为技术有限公司 Page changing method, device and terminal
CN103390053A (en) * 2013-07-26 2013-11-13 贝壳网际(北京)安全技术有限公司 Page switching control method and device of browser and client
CN103577104A (en) * 2013-09-27 2014-02-12 苏州佳世达电通有限公司 Display method of virtual keyboard, control device and touch equipment
CN103616979A (en) * 2013-11-26 2014-03-05 深圳钱盒信息技术有限公司 Input interactive method, device and payment terminal
US20160062636A1 (en) * 2014-09-02 2016-03-03 Lg Electronics Inc. Mobile terminal and control method thereof
CN105578294A (en) * 2014-10-15 2016-05-11 优视科技有限公司 Browsing switching processing method, apparatus, and system
CN105183420A (en) * 2015-09-11 2015-12-23 联想(北京)有限公司 Information processing method and electronic equipment
CN105867795A (en) * 2015-11-18 2016-08-17 乐视致新电子科技(天津)有限公司 Display method and device of virtual keyboard, and electronic equipment
CN105278910A (en) * 2015-11-24 2016-01-27 努比亚技术有限公司 Display method and apparatus

Also Published As

Publication number Publication date
CN108153455B (en) 2021-02-05

Similar Documents

Publication Publication Date Title
CN103809853B (en) A kind of information processing method and electronic equipment
US9766719B2 (en) Display control method for generating virtual keys to supplement physical keys
CN106406848A (en) Terminal horizontal/vertical screen switching method and device
CN105549777A (en) Electronic equipment and control method
EP3190506A1 (en) Interface display method and device
CN105491452A (en) Multi-video-window hierarchy switching method and device
CN108170354A (en) A kind of display methods and device, mobile terminal
CN104423777B (en) The method and device that a kind of window is shown
CN106371718A (en) Screen capture method and device
CN105630390A (en) Method and device for processing virtual key of mobile terminal
CN106095227A (en) Desktop wallpaper changing method and device
CN105824502A (en) Information processing method and electronic equipment
CN103927083A (en) Interaction method for adding desktop menu icons to preview screen
CN108519848A (en) A kind of display control method and electronic equipment
CN104808906A (en) Electronic equipment with touch display screen and touch display screen control method
CN107423011A (en) A kind of multi-screen display method and display screen
CN105224227A (en) A kind of display control method and mobile terminal taking interface
CN105630294A (en) Adjusting method and device of mobile terminal virtual key and mobile terminal
CN106354246A (en) Control method, device and terminal of terminal display
CN106598467A (en) Mobile terminal and screen control method and system thereof
CN108153455A (en) A kind of interface switching method and device
CN103870042B (en) The method and electronic equipment of display image
CN107817927B (en) Application icon management method and device
CN106919335A (en) A kind of target switching method and device
CN106997271A (en) Single-hand control method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant