Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a window switching method and device, which can improve the window switching efficiency. The following are detailed below.
To solve the problem of inefficient window switching, in one embodiment, a window switching method for a mobile terminal is proposed, the window switching method being executable by a computer program that can run on an operating system of von neumann architecture. The operating system can be operated on mobile terminals such as smart phones and tablet computers.
Referring to fig. 1, fig. 1 is a flowchart illustrating a window switching method according to an embodiment of the present invention. The window switching method is described from the perspective of a mobile terminal such as a smart phone and a tablet computer provided with a touch screen. As shown in fig. 1, the window switching method may include the following steps.
101. Displaying the stacked stereoscopic window.
In this embodiment, the stacked stereoscopic windows include at least two windows, the at least two windows belong to the same browser, and the display order of the at least two windows in the stacked stereoscopic windows is arranged according to the opening time of each window. For example, in an application scenario of window switching in a smartphone browser, as shown in fig. 2, fig. 2 shows an interface schematic diagram of a window switching method, in a multi-window interface of the browser, all open windows are displayed in a stacked stereoscopic manner, windows are stacked and staggered to display a part of content on each window, and windows are stacked in a three-dimensional stereoscopic manner, so that the content of the open windows can be displayed as much as possible within a limited screen range. The arrangement order of the windows displayed in the stacked stereoscopic display shown in fig. 2 may be arranged in sequence according to the opening time sequence of the windows, for example, generally according to the usage habit of the user, the window opened first may be arranged at the lowest of the stacked stereoscopic windows and arranged in sequence, and the window opened last is arranged in the stacked stereoscopic window and displayed first, that is, when entering the multi-window operation interface, the window displayed first is the window opened last.
In this embodiment, it should be noted that, when a user browses windows using a mobile terminal such as a smart phone, only one window is often displayed, and when a window needs to be switched, a multi-window operation instruction is issued, and then the multi-window operation interface can be entered.
In this embodiment, a cross button may be set on the left side of the title of each window page, and a user may close a corresponding window by clicking the cross button, or may set a new window button in another position, and a user may newly create a window by clicking the new window button.
In this embodiment, if the number of the opened windows is large, in order not to affect the window display effect, all windows may not be displayed simultaneously on the screen interface of the mobile terminal, only a part of the windows currently slid by the user is displayed, the other windows are hidden, and the hidden windows and the windows displayed on the current screen are still arranged according to the original sequence.
102. A sliding operation is detected.
In this embodiment, the sliding operation for switching the window mainly includes four sliding operations of up, down, left, and right. The detection of the sliding operation on the touch screen of the mobile terminal may take the detection of the touch operation as a starting position and the end of the touch operation as an ending position of the sliding operation. For example, when a touch operation is detected on the terminal touch screen, the touch point is captured in the mobile terminal, when the touch point is finished at another point on the touch screen, the sliding operation is finished, and the track length and the motion direction of the touch point on the touch screen in the sliding operation process are detected.
103. Each of the at least two windows is translated in a sliding direction of the sliding operation.
In this embodiment, each of the at least two windows may be translated by the detected sliding direction of the sliding operation. Specifically, when the sliding direction of the touch point on the touch screen is from top to bottom, each of the at least two windows is translated downwards. In addition, each of the at least two windows may be translated by an equal distance according to the detected trajectory length of the sliding operation.
In this embodiment, the direction of the sliding operation of the user is hardly parallel to or perpendicular to the bottom edge of the touch screen, so that a deviation angle can be preset, the deviation angle is within a preset range, corresponding window sliding can be performed, and the size of the deviation angle can be set as required.
In the window switching method described in fig. 1, stacked stereoscopic windows including at least two windows in the same browser are displayed, the display sequence of the at least two windows in the stacked stereoscopic windows is arranged according to the opening time of each window, a sliding operation is detected, each window in the at least two windows is translated along the sliding direction of the sliding operation, and thus, the information of the multiple windows can be simultaneously displayed on the screen of the mobile terminal by stacking the opened windows in a stereoscopic display on a multi-window interface, so that the window switching speed can be increased, and the window switching efficiency can be improved.
Referring to fig. 3, fig. 3 is a flowchart illustrating another window switching method according to an embodiment of the present invention. The window switching method is described from the perspective of a mobile terminal such as a smart phone and a tablet computer provided with a touch screen. As shown in fig. 3, the window switching method may include the following steps.
301. And acquiring a display mode set by the browser.
In this embodiment, a user can set a multi-window stacked stereoscopic display mode in a browser according to personal habits. Specifically, the stacked display direction and the window display pitch of the stacked stereoscopic display windows may be set. The stacking display direction can be set in the horizontal direction and the vertical direction, and the window display space can comprise three options of 'compact', 'normal' and 'loose', which are set by a user in a browser.
302. And displaying the laminated stereo window in the acquired display mode.
In this embodiment, the stacked stereoscopic windows include at least two windows, the at least two windows belong to the same browser, and the display order of the at least two windows in the stacked stereoscopic windows is arranged according to the opening time of each window. For example, in an application scenario of window switching in a smartphone browser, as shown in fig. 4, fig. 4 shows an interface schematic diagram of a window switching method, in a multi-window interface of the browser, all open windows are displayed in a stacked stereoscopic manner, windows are stacked and staggered to display a part of content on each window, and windows are stacked in a three-dimensional stereoscopic manner, so that the content of the open windows can be displayed as much as possible within a limited screen range. The arrangement order of the windows displayed in the stacked stereoscopic display shown in fig. 4 may be arranged in sequence according to the opening time sequence of the windows, for example, generally according to the usage habit of the user, the window opened first may be arranged at the lowest of the stacked stereoscopic windows and arranged in sequence, and the window opened last is arranged in the stacked stereoscopic window and displayed first, that is, when entering the multi-window operation interface, the window displayed first is the window opened last.
In this embodiment, it should be noted that, when a user browses windows using a mobile terminal such as a smart phone, only one window is often displayed, and when a window needs to be switched, a multi-window operation instruction is issued, and then the multi-window operation interface can be entered.
In this embodiment, a cross button may be set on the left side of the title of each window page, and a user may close a corresponding window by clicking the cross button, or may set a new window button in another position, and a user may newly create a window by clicking the new window button.
In this embodiment, if the number of the opened windows is large, in order not to affect the window display effect, all windows may not be displayed at the same time on the screen interface of the mobile terminal, only the window to which the user currently slides is displayed, and the other windows are hidden, and the hidden window and the windows displayed on the current screen are still arranged according to the original sequence.
In this embodiment, after entering the multi-window interface according to the set display direction, at least two windows are stacked in the set horizontal direction or vertical direction and three-dimensionally displayed, and according to the set display interval, the number of windows displayed on the intelligent terminal interface correspondingly decreases in sequence, and the information amount on each window increases in sequence.
303. And when the touch time of the touch operation aiming at the target window is detected to be larger than a preset threshold value, detecting a sliding track.
In this embodiment, the target window is any one of at least two windows, and the start point of the sliding track is a touch point of the touch operation. The preset threshold is used to determine whether the touch operation is a "long press" operation, as shown in fig. 4, when the user performs the "long press" operation on one of the stacked stereoscopic windows in the browser, the user keeps the touch point from leaving the touch screen, and the subsequent sliding operation is only performed on the window, that is, if the user wants to arrange the windows displayed in the stacked stereoscopic manner according to his own idea, the window to be moved can be long pressed, and in the case that the touch point does not leave, the window is moved, and the arrangement order of the other windows is kept unchanged in the process of moving the target window. The touch and slide operations are coherent, i.e. the user presses the window for a long time and makes a sliding action while the finger does not leave the touch screen.
304. And acquiring the position of the end point of the sliding track between the windows in the laminated stereo window.
In this embodiment, after the user presses a certain window that the user wants to move for a long time, the user keeps the contact point from leaving the touch screen and slides the contact point, and when the end point of the sliding track reaches the position between the windows that the user wants to move, the sliding operation can be ended.
305. The target window is inserted into the inter-window position.
In this embodiment, after the long-press operation, only the long-press window moves along with the sliding track, and the target window is inserted between windows where the end point of the touch track is located for stacked display, as shown in fig. 4, and the stacked stereoscopic display sequence of the other windows is not changed.
306. A sliding operation is detected.
In this embodiment, the sliding operation for switching the window mainly includes four sliding operations of up, down, left, and right. The detection of the sliding operation on the touch screen of the mobile terminal may take the detection of the touch operation as a starting position and the end of the touch operation as an ending position of the sliding operation. For example, when a touch operation is detected on the touch screen of the terminal, the inside of the terminal starts to capture a touch point, when the touch point is finished at another point on the touch screen, the sliding operation is finished, and the track length and the motion direction of the touch point on the touch screen in the sliding operation process are detected.
307. Each of the at least two windows is translated in a sliding direction of the sliding operation.
In this embodiment, each of the at least two windows may be translated by the detected sliding direction of the sliding operation. Specifically, when the sliding direction of the touch point on the touch screen is from left to right, each of the at least two windows is translated to the right. In addition, each of the at least two windows may be translated by an equal distance according to the detected trajectory length of the sliding operation.
In this embodiment, the direction of the sliding operation of the user is hardly parallel to or perpendicular to the bottom edge of the touch screen, so that a deviation angle can be preset, the deviation angle is within a preset range, corresponding window sliding can be performed, and the size of the deviation angle can be set as required.
308. When an operation instruction for the stacked stereoscopic window is detected, the stacked stereoscopic window is shifted by one window pitch.
In this embodiment, as in the application scenario shown in fig. 4, the operation instruction for the stacked stereoscopic window may be that the user clicks "shift left" and "shift right" buttons in an operation area below the touch screen, when the "shift left" button is clicked, the entire stacked stereoscopic window pushes one window to the left, and similarly, when the "shift right" button is clicked, the entire stacked stereoscopic window pushes one window to the right. If the stacked stereoscopic display direction of the windows is set to be the vertical stacked stereoscopic display direction, the left shift can realize that each window in the stacked stereoscopic windows is translated upwards by one window interval, and the right shift can realize that each window in the stacked stereoscopic windows is translated downwards by one window interval.
In this embodiment, the steps 303-305 may be performed after the step 307, or may be performed after the step 308, or the step 308 may be performed before the step 306.
In the window switching method described in fig. 3, stacked stereoscopic windows including at least two windows in the same browser are displayed, the display sequence of the at least two windows in the stacked stereoscopic windows is arranged according to the opening time of each window, a sliding operation is detected, each window in the at least two windows is translated along the sliding direction of the sliding operation, and thus, the information of the multiple windows can be simultaneously displayed on the screen of the mobile terminal by stacking the opened windows in a stereoscopic display on a multi-window interface, so that the window switching speed can be increased, and the window switching efficiency can be improved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a window switching device according to an embodiment of the present invention. The device can be a mobile terminal such as a smart phone and a tablet computer provided with a touch screen. As shown in fig. 5, the apparatus may include:
a display unit 501, configured to display a stacked stereo window, where the stacked stereo window includes at least two windows, the at least two windows belong to the same browser, and display orders of the at least two windows in the stacked stereo window are arranged according to opening time of each window;
a first detection unit 502 for detecting a slide operation;
a translation unit 503, configured to translate each of the at least two windows displayed by the display unit 501 along the sliding direction of the sliding operation detected by the first detection unit 502.
In the window switching apparatus described in fig. 5, a stacked stereoscopic window including at least two windows in the same browser is displayed, the display order of the at least two windows in the stacked stereoscopic window is arranged according to the opening time of each window, a sliding operation is detected, each window in the at least two windows is translated along the sliding direction of the sliding operation, and thus, the information of the plurality of windows can be simultaneously displayed on the screen of the mobile terminal by stacking the opened windows in a stereoscopic display on a multi-window interface, so that the window switching speed can be increased, and the window switching efficiency can be improved.
Referring to fig. 6, fig. 6 is a schematic structural diagram of another window switching device according to an embodiment of the present invention. The apparatus shown in fig. 6 is optimized from the apparatus shown in fig. 5, wherein the apparatus may further include:
a first obtaining unit 504, configured to obtain a display mode set by a browser;
the display unit 501 is specifically configured to display the stacked stereoscopic window in the display manner acquired by the first acquisition unit 504.
As a possible implementation, the apparatus may further include:
a second detecting unit 505, configured to detect a sliding trajectory when detecting that a touch time of a touch operation on a target window displayed by the display unit 501 is greater than a preset threshold, where the target window is any one of at least two windows, and a starting point of the sliding trajectory is a touch point of the touch operation;
a second acquiring unit 506 configured to acquire an inter-window position where the end point of the slide trajectory detected by the second detecting unit 505 is located in the stacked stereoscopic window displayed by the display unit 501;
an inserting unit 507, configured to insert the target window displayed by the display unit 501 into the inter-window position acquired by the second acquiring unit 506.
As a possible embodiment, the shifting unit 503 is further configured to shift the stacked stereoscopic windows by one window pitch when an operation instruction for the stacked stereoscopic windows displayed by the display unit 501 is detected.
In the window switching apparatus described in fig. 6, a stacked stereoscopic window including at least two windows in the same browser is displayed, the display order of the at least two windows in the stacked stereoscopic window is arranged according to the opening time of each window, a sliding operation is detected, each window in the at least two windows is translated along the sliding direction of the sliding operation, and thus, the information of the plurality of windows can be simultaneously displayed on the screen of the mobile terminal by stacking the opened windows in a stereoscopic display on a multi-window interface, so that the window switching speed can be increased, and the window switching efficiency can be improved.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a mobile terminal device (which may be a smart phone, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The window switching method and device provided by the embodiment of the present invention are described in detail above, and a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.