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 window includes at least two windows, and the at least two windows belong to the same browser. For example, in an application scenario of window switching in a smartphone browser, as shown in fig. 2. Fig. 2 is an interface diagram illustrating 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 contents on each window, and windows are stacked in a three-dimensional stereoscopic manner, so that the contents of the open windows can be displayed as much as possible within a limited screen range.
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 to enter a multi-window operation interface.
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, the arrangement order of the stacked stereoscopic windows may be according to the sequence of opening windows, and according to the usage habit of a general user, the windows that are opened first may be arranged at the lowest of the stacked stereoscopic windows and arranged in sequence, and the windows that are opened last are arranged at the uppermost of the stacked stereoscopic windows, that is, when entering the multi-window operation interface, the windows that are opened last are displayed first. If the number of the opened windows is large, in order not to influence the window display effect, all windows can be displayed on the screen interface of the mobile terminal at different times, only the window to which the user slides currently is displayed, 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.
102. Identifying windows of the at least two windows that belong to the same information type as the same skin.
In this embodiment, the mobile terminal classifies all the opened windows by different information types. Windows of the same information type are identified as the same skin. For example, the information type classification may include shopping, novels, news, movies, and others, and the skin of a window of an information type game may be set to a skin of one color containing game elements, and specifically, a window of an information type game may be represented by a skin of a window of a theme color red containing various game equipment cartoon pictures. Similarly, for the windows of the rest information types, the user can conveniently and quickly identify different window information types by setting the skin containing the related elements.
103. A sliding operation is detected.
In this embodiment, the sliding operation for switching the window mainly includes two sliding operations, i.e., upward sliding operation and downward sliding operation. 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.
104. 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 determining the sliding direction of the detected 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 the window switching method described in fig. 1, a stacked stereoscopic window including at least two windows in the same browser is displayed, a window belonging to the same information type in the at least two windows is identified as the same skin, a sliding operation is detected, each of the at least two windows is translated along an operation direction of the sliding operation, and thus, by identifying different skins for windows of different information types and stacking the opened windows in a stereoscopic manner, a window search range can be narrowed, a window switching speed can be increased, and thus, a window switching efficiency can be improved.
Referring to fig. 3, fig. 3 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. 3, the window switching method may include the following steps.
301. Displaying the stacked stereoscopic window.
In this embodiment, the stacked stereoscopic window includes at least two windows, and the at least two windows belong to the same browser. For example, in an application scenario of window switching in a smartphone browser, as shown in fig. 4. Fig. 4 is an interface diagram illustrating 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 contents on each window, and windows are stacked in a three-dimensional stereoscopic manner, so that the contents of the open windows can be displayed as much as possible within a limited screen range.
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 to enter a multi-window operation interface.
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 the window to which the user currently slides is displayed, and the other windows are hidden, and the multiple windows are still arranged according to the original sequence.
302. A window containing video content is selected from the at least two windows.
In this embodiment, if there is a window including video content among the plurality of open windows, the window including video content is selected.
303. Identifying windows of the at least two windows that belong to the same information type as the same skin.
In this embodiment, the mobile terminal classifies all the opened windows by different information types. Windows of the same information type are identified as the same skin. For example, the information type classification may include shopping, novels, news, movies, and others, and the skin of a window of an information type game may be set to a skin of one color containing game elements, and specifically, a window of an information type game may be represented by a skin of a window of a theme color red containing various game equipment cartoon pictures. Similarly, for the windows of the rest information types, the user can conveniently and quickly identify different window information types by setting the skin containing the related elements.
In this embodiment, step 302 and step 303 may be executed in parallel, or may be executed sequentially, or step 303 may be executed before step 302.
304. And displaying the video thumbnail of the selected window.
In this embodiment, the video thumbnail is a thumbnail of a video interface in a corresponding window, and a connection relationship is established between the video thumbnail and the corresponding window. The video thumbnail is displayed separately from the stacked stereoscopic window, as shown in fig. 4, the video thumbnail may be displayed on a side of the stacked stereoscopic window, or may be displayed in other blank areas of the multi-window interface. The connection relationship established between the video thumbnail and the corresponding window can be that the video thumbnail points to the corresponding video window so as to achieve one-to-one correspondence between the window and the corresponding thumbnail. If the window corresponding to a window thumbnail is not in the display range, the window can be pointed to the direction of the corresponding window by using a dotted line, as shown in fig. 4. The order of all the video thumbnails arranged from bottom to top may be in the order of the windows from front to back.
305. For each information type, the correspondence of the information type to the skin identifying the information type is displayed.
In this embodiment, the correspondence between the display information type and the skin identifying the information type may be displayed through a floating window, a label, or other display means.
306. And displaying windows belonging to the same information type in at least two windows adjacently.
In this embodiment, displaying windows belonging to the same information type in the at least two windows adjacent to each other requires after identifying windows belonging to the same information type in the at least two windows as the same skin and before detecting the sliding operation. The adjacent display means that when entering a multi-window operation interface, windows of the same information type are arranged together during stacked stereoscopic display, so that the windows are searched when the windows are switched, the stacked windows are not arranged according to the sequence of opening the windows any more, but the windows of the same information type are arranged together according to the window information type, and all the windows are still stacked and displayed together in a stereoscopic manner. The last opened window and the window of the same information type as the last opened window may be arranged at the forefront of the stacked stereoscopic window. For example, in a browser of a mobile terminal, the information types of a plurality of opened windows include news, games, shopping, novels, movies and the like, and the information type of the last opened window is novels, when the multi-window operation interface stacks and stereoscopically displays a plurality of windows, the windows of the information types including news, games, shopping, novels, movies and the like are respectively put together, the windows of each information type are still stacked and stereoscopically displayed together, and the window of the novels information type is displayed at the forefront of the stacked and stereoscopically displayed window.
In this embodiment, step 304, step 305, and step 306 may be executed concurrently, or may be executed sequentially, and the execution sequence of step 304, step 305, and step 306 may be arbitrarily arranged when the steps are executed sequentially.
307. And when the operation aiming at the target video thumbnail is detected, displaying a window corresponding to the target video thumbnail.
In this embodiment, the target video thumbnail is any one of the displayed video thumbnails. The operation for the target video thumbnail may be a touch, a slide, or the like. When the operation aiming at the target video thumbnail is detected, the multi-window display interface can be directly quitted, and the window corresponding to the target video thumbnail is switched.
308. And executing the hidden instruction when the hidden instruction for hiding the corresponding relation is detected.
In this embodiment, the hiding instruction may be a hiding button set under a floating window displaying the correspondence between the information type and the identification information type skin, and when the user clicks the hiding button, the floating window displaying the correspondence between the information type and the identification information type skin is hidden. Other hiding instructions, such as a sliding operation for a floating window displaying a correspondence between an information type and an identification information type skin, are also possible.
309. A sliding operation is detected.
In this embodiment, the sliding operation for switching the window mainly includes two sliding operations, i.e., upward sliding operation and downward sliding operation. 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 a touch screen of the mobile terminal, the touch point is captured inside 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, the motion direction and the like of the touch point on the touch screen in the sliding operation process are detected.
In this embodiment, step 307, step 308, and step 309 may be executed concurrently, or may be executed sequentially, and the execution sequence of step 307, step 308, and step 309 may be arbitrarily arranged when executed sequentially.
310. And acquiring the translation mode set by the browser.
In this embodiment, the window translation mode in the browser may be set in one of a plurality of window translation modes, for example, each of the at least two windows may be set to be an arc translation, that is, a translation trajectory of each of the at least two windows is three-dimensionally displayed as an arc, or may be set to be a straight translation, and in addition, the window may be set to be a circular translation or a general translation, and in the circular translation mode, the frontmost window and the rearmost window of the stacked stereoscopic display are connected end to end, and are circularly displayed.
311. According to the translation manner, each of the at least two windows is translated in a sliding direction of the sliding operation.
In this embodiment, the multi-window translation is performed according to the obtained translation mode set in the browser. Each of the at least two windows may be translated by determining a sliding direction of the detected 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 the window switching method described in fig. 3, a stacked stereoscopic window including at least two windows in the same browser is displayed, a window belonging to the same information type in the at least two windows is identified as the same skin, a sliding operation is detected, each of the at least two windows is translated along an operation direction of the sliding operation, and thus, by identifying different skins for windows of different information types and stacking the opened windows in a stereoscopic manner, a window search range can be narrowed, a window switching speed can be increased, and thus, a window switching efficiency can be increased.
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 first display unit 501, configured to display a stacked stereo window, where the stacked stereo window includes at least two windows, and the at least two windows belong to a same browser;
an identifying unit 502, configured to identify, as a same skin, windows belonging to a same information type in the at least two windows displayed by the first display unit 501;
a detection unit 503 for detecting a slide operation;
a shifting unit 504 for shifting each of the at least two windows displayed by the first display unit 501 in the sliding direction of the sliding operation detected by the detection unit 503.
In the window switching apparatus described in fig. 5, a stacked stereoscopic window including at least two windows in the same browser is displayed, a window belonging to the same information type in the at least two windows is identified as the same skin, a sliding operation is detected, and each of the at least two windows is translated along an operation direction of the sliding operation.
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 selecting unit 505 configured to select a window including video content from at least two windows displayed by the first display unit 501;
the first display unit 501 is further configured to display a video thumbnail of the window selected by the selecting unit 505, where the video thumbnail is a thumbnail of a video interface in the corresponding window, and the video thumbnail establishes a connection relationship with the corresponding window.
As a possible implementation, the apparatus may further include:
a second display unit 506 configured to display a window corresponding to a target video thumbnail, which is any one of the video thumbnails, when an operation for the target video thumbnail displayed by the first display unit 501 is detected.
As a possible implementation manner, the first display unit 501 is further configured to display, for each information type, a correspondence between the information type and the skin of the identification information type identified by the identification unit 502;
the apparatus may further include:
a hiding unit 507, configured to execute a hiding instruction for hiding the correspondence relationship displayed by the first display unit 501 when the hiding instruction is detected.
As a possible implementation, the apparatus may further include:
an obtaining unit 508, configured to obtain a translation mode set by the browser;
the translating unit 504 is specifically configured to translate each of the at least two windows displayed by the first display unit 501 along the sliding direction of the sliding operation according to the translation manner acquired by the acquiring unit 508.
As a possible implementation, the apparatus may further include:
a sorting unit 509, configured to adjacently display windows belonging to the same information type in the at least two windows displayed by the first display unit 501.
In the window switching apparatus described in fig. 6, a stacked stereoscopic window including at least two windows in the same browser is displayed, a window belonging to the same information type in the at least two windows is identified as the same skin, a sliding operation is detected, and each of the at least two windows is translated along an operation direction of the sliding operation.
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.