Window switching method, electronic device and readable storage medium

By setting a hot zone on the screen of the electronic device and detecting user operations, a quick switching of window display mode is achieved, solving the problems of complex and inefficient operations in the prior art, and improving the user experience.

CN118642622BActive Publication Date: 2025-03-14HUAWEI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410823551.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-11-16
Filing Date
2022-10-28
Publication Date
2025-03-14
Estimated Expiration
2042-10-28

AI Technical Summary

Technical Problem

In the prior art, when a user switches the window display mode of the electronic device (such as between the full screen mode and the split screen mode or the small window mode), he or she needs to perform multiple consecutive operations, resulting in low operation efficiency and poor user experience.

Method used

By setting preset hot zones (such as split-screen hot zones and small window hot zones) on the screen of the electronic device, the user's touch operation and dragging actions are detected. If the user drags the application window into the hot zone, the electronic device will trigger the switch to the corresponding window display mode.

Benefits of technology

It realizes users to switch window display mode quickly and easily, improving operational efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118642622B_ABST
    Figure CN118642622B_ABST
Patent Text Reader

Abstract

The present application relates to the field of intelligent terminal technology, and specifically to a window switching method, an electronic device and a readable storage medium. The method includes: detecting a first touch operation of a user, displaying a first interface, wherein the first interface includes a first identifier and at least one application window; the first identifier is displayed in a first response area, the first response area is located in a display area corresponding to the first interface, at least one application window includes a first application window, and the first application window displays the interface of the first application; detecting a first drag operation, and displaying the first application window in a first mode; wherein the first drag operation includes an operation of dragging the first application window into the first response area; the first touch operation and the first drag operation are a continuous operation. The solution provided in the present application can realize one-step operation of split screen, or one-step operation of small window, simplifying the operation steps of the user switching window display mode, which is convenient and quick, and is conducive to improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the Chinese patent application with a priority date of November 16, 2021 and application number 202280007997.6. The entire content of the Chinese patent application is incorporated into this application by reference. Technical Field

[0002] The present application relates to the technical field of intelligent terminals, and in particular to a window switching method, an electronic device and a readable storage medium. Background Art

[0003] With the development of smart terminal technology, more and more terminal electronic devices can meet users' multi-window usage needs and provide users with various multi-mode windows such as split-screen mode and small window mode. The split-screen mode can make the screen of the electronic device display two windows for users to operate, and the small window mode can shrink the running application interface and display it in a smaller window to run it, so that users can operate other application interfaces first to deal with urgent matters.

[0004] However, when a user switches a window displayed on an electronic device from a full-screen mode window (a window that displays the interface of an application in full screen) to a split-screen mode window, or to a small window mode window, it is generally necessary for the user to perform multiple consecutive operations, such as first operating the application window displayed in full screen mode to enter the multitasking interface, and then clicking the application window in the multitasking interface to open the multi-mode window option button and select the split-screen mode from it. This results in the user being unable to quickly switch the interface window displayed on the electronic device between full-screen mode and split-screen mode, or between full-screen mode and small window mode. Summary of the invention

[0005] The embodiments of the present application provide a window switching method, an electronic device, and a readable storage medium, which improve the operational efficiency of user window switching and help improve user experience.

[0006] In a first aspect, an embodiment of the present application provides a window switching method, which is applied to an electronic device, and the method includes: detecting a first touch operation of a user, displaying a first interface, wherein the first interface includes a first identifier and at least one application window; the first identifier is displayed in a first response area, the first response area is located in a display area corresponding to the first interface, and the at least one application window includes a first application window, and the first application window displays the interface of the first application; detecting a first drag operation, and displaying the first application window in a first mode; wherein the first drag operation includes an operation of dragging the first application window into the first response area; the first touch operation and the first drag operation are a continuous operation.

[0007] That is, when a user touch operation to switch the window display mode is detected, a first mark indicating the location of the preset first mode hot zone can be displayed on the display interface of the electronic device. If the user's touch operation is further detected to drag the first application window on the display interface of the electronic device into the preset hot zone, the electronic device triggers the first application window to be displayed in the first mode. The first mark on the above-mentioned first interface can be, for example, a split-screen hot zone icon or a small window hot zone icon described in the following embodiments, or a hot zone mask corresponding to a preset hot zone described in the following embodiments, for example Figure 3c The small window hot zone 320 or split screen hot zone 330 shown in the figure; the above-mentioned first response area can be, for example, the split screen hot zone or small window hot zone described in the following embodiments, wherein the split screen hot zone icon is correspondingly displayed in the split screen hot zone, and the small window hot zone icon is correspondingly displayed in the small window hot zone. The first application window can be, for example, WeChat TM Windows and other application windows are also the object windows of the user's swiping up operation described in the following embodiments. The first mode can correspondingly be the above-mentioned split-screen hot zone or small window hot zone.

[0008] The above-mentioned first touch operation and the first drag operation continuous therewith are, for example, the operation of sliding up to the location of the split-screen hot zone icon, or sliding up to the location of the small window hot zone icon, or sliding right to the small window hot zone or the split-screen hot zone described in the embodiments below. It can be understood that the "continuous operation" in this application means that the user's finger does not leave the screen of the electronic device during the process of performing the first touch operation and the first drag operation. The finger can perform these two operations continuously. Of course, the finger pausing for a moment on the screen of the electronic device during the operation is also considered to be the meaning of the continuous operation. The operation objects of the first touch operation and the first drag operation are the same object, for example, both are the first application window.

[0009] In a possible implementation of the first aspect above, dragging the first application window into the first response area includes: making the entire display area of ​​the first application window located within the first response area; or making the size of the overlapping area between the display area of ​​the first application window and the first response area greater than a preset size threshold; or detecting that the touch position of the first drag operation is located within the first response area.

[0010] The first application window is the object window described in the following embodiments, and the first response area is the preset hot zone described in the following embodiments. Therefore, the above implementation describes that dragging the object window into the preset hot zone may include multiple situations, such as making all the contents displayed in the display area of ​​the object window and the border of the object window all located in the preset hot zone, which is considered to be the case that the object window has been dragged into the preset hot zone, or making part of the contents displayed by the object window and part of the border of the object window located in the preset hot zone and the size of the overlapping area between the object window and the preset hot zone greater than the preset size threshold, which is considered to be the case that the object window has been dragged into the preset hot zone; or when it is detected that the touch position of the first drag operation acting on the object window is located in the preset hot zone, it is considered that the object window has been dragged into the preset hot zone. The preset size threshold can be set to a reasonable value smaller than the display area size of the object window, for example, and is not limited here.

[0011] It can be understood that in the embodiment of the present application, as an example, the coordinate information of the touch position of the first drag operation can be detected to determine whether the height of the touch position meets the preset height threshold condition, and / or determine the position of the touch position on the screen of the electronic device to determine whether the touch position is located in the preset hot zone, etc. For details, please refer to the following embodiments. Figure 5 The specific implementation process description of the corresponding steps in the shown process will not be repeated here.

[0012] In a possible implementation of the first aspect above, the continuous operation includes: during the execution of the first touch operation and the first drag operation, the electronic device continuously detects touch points.

[0013] That is, the user's finger does not leave the screen of the electronic device during the process of performing the first touch operation and the first drag operation. For details, please refer to the above explanation about "continuous operation", which will not be repeated here.

[0014] In a possible implementation of the first aspect above, the method also includes: in response to the first drag operation, displaying a second interface, the second interface including a second window and a third window, the third window being a window after the first application window is displayed through the first mode; wherein the third window is displayed floating above the second window, the height of the third window is equal to the height of the second window, and the width of the third window is smaller than the width of the second window; or the third window is displayed floating above the second window, the width of the third window is equal to the width of the second window, and the height of the third window is smaller than the height of the second window; or the third window and the second window are displayed in split screen, the height of the third window is equal to the height of the second window or the width of the third window is equal to the width of the second window.

[0015] As shown above, the user's first drag operation drags the first application window (i.e., the object window) to the first response hot zone (i.e., the preset hot zone). Therefore, in response to the user's first drag operation, the electronic device can display the interface after the object window switches the display mode, i.e., the third interface mentioned above. For example, when the preset hot zone is a split-screen hot zone, after the user drags the object window to the split-screen hot zone, the electronic device can display the following Figure 3j or Figure 3k The split screen preparation interface shown in FIG. Figure 3j The virtual split-screen window 361 on the split-screen preparation interface 360 ​​is, for example, the third window, and the pending window 362 is the second window; or Figure 3k The left window 371 on the split-screen preparation interface 370 is, for example, the third window mentioned above, and the right window 372 is the second window mentioned above.

[0016] In a possible implementation of the first aspect above, the third window portion is displayed on a display screen of the electronic device.

[0017] For example, the third window mentioned above can refer to the following Figure 3j The virtual split-screen window 361 on the split-screen preparation interface 360 ​​shown is partially displayed on the screen of the electronic device. The user can drag the control bar 363 on the right edge of the virtual split-screen window 361 to slide to the right to display more of the virtual split-screen window 361.

[0018] In a possible implementation of the first aspect above, before displaying the second interface, the method further includes: displaying the third window in its entirety on a display screen of the electronic device; and automatically moving the third window so that a portion of the third window is displayed on the display screen.

[0019] That is, in response to the user's first drag operation, the electronic device can display a dynamic interface change process so that the user can perceive the switching process of the window display mode. Figure 3k and Figure 3j In the interface shown, the electronic device responds to the user dragging the object window into the split-screen hot zone, and can first display Figure 3k The split screen preparation interface 370 is shown, and then the left window 371 in the split screen preparation interface 370 automatically moves to the left, and finally the electronic device displays Figure 3j A split-screen preparation interface 360 ​​is shown.

[0020] In a possible implementation of the first aspect above, the second window displays a desktop including at least one application icon or task card. After displaying the second interface, the method further includes: in response to an operation on the icon or task card of the second application on the desktop, opening the second application and displaying the second application window, the second application window displays the interface of the second application; wherein the second application window and the third window are displayed in split screen; when the third window and the second application window are displayed in split screen, the third window is displayed entirely on the display screen.

[0021] It can be understood that the split-screen mode usually requires determining the display content of two or more windows. When the user drags the first object window (i.e., the first application window mentioned above) to the split-screen hot zone, the electronic device can first display the content of the object window (i.e., the interface of the first application mentioned above) through a window in the split-screen mode window. When the user selects the content to be displayed in another window in the split-screen mode window (i.e., the interface of the second application mentioned above), the split-screen mode window displayed by the electronic device will display the content selected by the user twice to be displayed, that is, the two windows in the split-screen mode window display the interface of the first application and the interface of the second application respectively, and the window displaying the interface of the first application is the third window mentioned above.

[0022] In a possible implementation of the first aspect above, the method also includes: in response to the first drag operation, displaying a third interface, the third interface including a second window and a fourth window, the fourth window being a window after the first application window is displayed through the first mode, wherein the second window is displayed in full screen by the electronic device, the fourth window floats above the second window, the height and width of the fourth window are both smaller than the second window, and the fourth window is displayed entirely on the display screen of the electronic device.

[0023] As shown above, the user's first drag operation drags the first application window (i.e., the object window) to the first response hot zone (i.e., the preset hot zone). Therefore, in response to the user's first drag operation, the electronic device can display the interface after the object window switches the display mode, i.e., the third interface mentioned above. For example, when the preset hot zone is the small window hot zone, after the user drags the object window to the small window hot zone, the electronic device can display the following Figure 3f The interface shown in Figure 3f The floating application window 310 is the fourth window, and the vacant window 340 is the second window.

[0024] In a possible implementation of the first aspect above, the second window displays a desktop including at least one application icon or task card.

[0025] See below Figure 3f In the interface shown, the empty window 340 (ie, the second window) may be the desktop of the electronic device, on which there are application icons or task cards.

[0026] In a possible implementation of the first aspect above, after the electronic device displays the first interface, the method further includes: during the execution of the first drag operation, if the distance between the touch position of the first drag operation and the display position of the first identifier gradually decreases, the size of the first identifier gradually increases.

[0027] The process of the user dragging the first application window (i.e., the object window) close to the location of the first mark is the process of the object window approaching the preset hot zone, during which the display size of the first mark can gradually increase. As above, the first mark can be a hot zone icon of the preset hot zone, for example, as follows Figure 3c The small window hot zone icon 321 or the split screen hot zone icon 331 shown; the first mark can also be a hot zone mask of a preset hot zone, such as the following Figure 3c The small window hot zone 320 or split screen hot zone 330 shown, or the first identification includes a hot zone icon and a hot zone mask of a preset hot zone. When the user drags the object window close to the preset hot zone, the display size of the hot zone icon and / or the hot zone mask of the preset hot zone can be correspondingly enlarged, wherein the size change range of the hot zone mask can be greater than the size change range of the corresponding hot zone icon.

[0028] In a possible implementation of the first aspect above, before detecting the user's first touch operation, the electronic device displays the fifth window in full screen, and the fifth window includes the target object of the first touch operation; and the above method includes: detecting the user's first touch operation, and displaying the target object or the interface corresponding to the target object in the first application window on the first interface.

[0029] That is, the object window operated by the user can be a window used to display all or part of the content of the fifth window (that is, the target object). The user's operation of switching the window display mode of the target object in the fifth window can trigger the electronic device to display the target object operated by the user or the interface corresponding to the target object through the target window (that is, the above-mentioned first application window).

[0030] In a possible implementation of the first aspect above, the target object includes: an application window, an application icon, a service card, a task window displayed on the application interface, a link displayed on the application interface, an attachment displayed on the application interface, or any one of the task windows of a multi-tasking interface.

[0031] For example, when the fifth window mentioned above is the desktop displayed by the electronic device, the target object may be an application icon, a service card or a task card in the desktop window; if the fifth window is an application window, the target object may be the application window, or a link, attachment, text, etc. displayed in the application window, without limitation.

[0032] In a possible implementation of the first aspect above, the first touch operation is an upward drag operation on the target object; and when the target object is the fifth window, the starting point of the first touch operation is the bottom of the screen of the electronic device.

[0033] That is, the result of the first touch operation (such as the swipe up operation mentioned below) is to drag the target object upward, for example, to a preset hot zone. If the fifth window is an application window, the user's swipe up operation can start from the bottom of the screen of the electronic device and slide upward to act on the application window, so that the application window is displayed through the display mode corresponding to the preset hot zone when it is dragged to the preset hot zone.

[0034] In a possible implementation of the first aspect above, a first touch operation of a user is detected and a first interface is displayed, including: during the process of dragging the target object upward by the first touch operation, when the height of the touch position of the first touch operation reaches a first preset height, the electronic device displays the first interface; or during the process of dragging the target object upward by the first touch operation, when the target object is the fifth window and the reduction ratio of the display size of the fifth window reaches a first ratio threshold, the electronic device displays the first interface.

[0035] That is, the electronic device can trigger the display of the above-mentioned first interface by detecting whether the height of the touch position of the target object operated by the user reaches a preset height threshold (that is, the above-mentioned first preset height); or the electronic device can trigger the display of the above-mentioned first interface by detecting whether the reduction ratio of the object window displaying the target object or the interface corresponding to the target object reaches a preset ratio threshold (for example, the above-mentioned first ratio threshold) during the movement of the target object operated by the user.

[0036] In a possible implementation of the first aspect above, the first logo is displayed in the upper left corner of the first interface, or the first logo is displayed in the upper right corner of the first interface.

[0037] That is, the position where the first mark is displayed may be the upper left corner or the upper right corner of the first interface displayed by the electronic device. In other embodiments, the first mark may also be displayed at other positions other than the upper left corner or the upper right corner of the first interface. Figure 3c As shown, the small window hot zone icon 321 or the small window hot zone 320 can be displayed Figure 3c In the upper right corner of the interface shown, the preset small window hot zone position is indicated; the split screen hot zone icon 331 or the split screen hot zone 330 can be displayed Figure 3c The upper left corner of the interface shown in the figure indicates the preset split screen hot zone position. Fig.17b As shown, the small window hot zone 1720 can also be displayed at the right edge of the electronic device screen to indicate the preset small window hot zone position, which is not limited here.

[0038] In a second aspect, an embodiment of the present application provides a window switching method, which is applied to an electronic device, comprising: detecting a first touch operation of a user, displaying a first interface, wherein the first interface includes a first identifier, a second identifier and at least one application window; the at least one application window includes a first application window, and the first application window displays the interface of the first application; when a first drag operation is detected, the first application window is displayed in a first mode, and the first drag operation includes dragging the first application window into a first response area corresponding to the first identifier, and the first response area is located in a display area corresponding to the first interface; when a second drag operation is detected, the first application window is displayed in a second mode, and the second drag operation includes dragging the first application window into a second response area corresponding to the second identifier, and the second response area is located in the display area corresponding to the first interface, and the second response area does not overlap with the first response area.

[0039] That is, two response areas can be preset on the screen of the electronic device, namely the first response area and the second response area, and each response area triggers a different display mode, namely, the first response area triggers the first mode, and the second response area triggers the second mode; when the user's first touch operation is detected, the electronic device can display the first mark and the second mark to indicate the positions of the two preset response areas. The first interface is, for example, the following Figure 3c In the interface shown in FIG. 1 , the first response area is, for example, a split screen hot zone, and the second response area is, for example, a small window hot zone. Accordingly, the first identifier is as follows: Figure 3c The split screen hot zone icon 331 and / or split screen hot zone 330 shown, the second mark is as follows Figure 3c The small window hot zone icon 321 and / or small window hot zone 320 shown, therefore the above-mentioned first dragging operation is the operation of dragging the first application window (ie, the object window) to the split-screen hot zone, and the second dragging operation is the operation of dragging the object window to the small window hot zone.

[0040] Among them, the above-mentioned first drag operation of dragging the first application window into the first response area corresponding to the first identifier includes making the display area of ​​the first application window entirely within the first response area; or making the size of the overlapping area between the display area of ​​the first application window and the first response area greater than a preset size threshold; or detecting that the touch position of the first drag operation acting on the first application window is within a preset hot zone. For example, the drag operation is an operation that makes all the contents displayed in the display area of ​​the object window and the border of the object window all within a preset split-screen hot zone, or makes part of the contents displayed by the object window and part of the border of the object window within a preset split-screen hot zone and the size of the overlapping area between the object window and the split-screen hot zone greater than a preset size threshold; or the touch position of the drag operation is within a preset hot zone, etc. No limitation is made here.

[0041] The second dragging operation of dragging the first application window into the second response area corresponding to the first identifier includes making the display area of ​​the first application window entirely within the second response area; or making the size of the overlapping area between the display area of ​​the first application window and the second response area greater than a preset size threshold. For example, the dragging operation is an operation that makes all the contents displayed in the display area of ​​the object window and the border of the object window all within a preset small window hot zone, or makes part of the contents displayed in the object window and part of the border of the object window within a preset small window hot zone and the size of the overlapping area between the object window and the small window hot zone greater than a preset size threshold; or the touch position of the dragging operation is within the preset hot zone, etc. No limitation is made here.

[0042] In the embodiment of the present application, as an example, the coordinate information of the touch position of the first drag operation can be detected to determine whether the height of the touch position meets the preset height threshold condition, and / or determine whether the touch position is located on the left side of the electronic device screen or the right side of the screen, so as to determine whether the touch position is located in the preset split screen hot zone or small window hot zone. For details, please refer to the following embodiments. Figure 5 The specific implementation process description of the corresponding steps in the shown process will not be repeated here.

[0043] In a possible implementation of the second aspect above, the method also includes: in response to the first drag operation, displaying a second interface, the second interface including a second window and a third window, the third window being a window after the first application window is displayed through the first mode; wherein the third window is displayed floating above the second window, the height of the third window is equal to the height of the second window, and the width of the third window is smaller than the width of the second window; or the third window is displayed floating above the second window, the width of the third window is equal to the width of the second window, and the height of the third window is smaller than the height of the second window; or the third window and the second window are displayed in split screen, the height of the third window is equal to the height of the second window or the width of the third window is equal to the width of the second window.

[0044] That is, in response to the user dragging the object window to the split-screen hot zone, the relevant interface corresponding to the split-screen mode is displayed, such as the following Figure 3j or Figure 3k The interface shown is shown. For details, please refer to the relevant description above and will not be repeated here.

[0045] In a possible implementation of the second aspect above, the third window portion is displayed on a display screen of the electronic device.

[0046] In a possible implementation of the second aspect, before displaying the second interface, the method further includes: displaying the entire third window on a display screen of the electronic device; and automatically moving the third window so that a portion of the third window is displayed on the display screen.

[0047] That is, in response to the user's first drag operation, the electronic device can display a dynamic interface change process so that the user can perceive the switching process of the window display mode. For example, the electronic device first displays the following Figure 3k The interface changes to display the following Figure 3j The process of the interface shown can be specifically described above and will not be repeated here.

[0048] In a possible implementation of the second aspect above, the second window displays a desktop including at least one application icon or task card. After displaying the second interface, the method also includes: in response to an operation on the icon or task card of the second application on the desktop, opening the second application and displaying the second application window, the second application window displays the interface of the second application; wherein the second application window and the third window are displayed in split screen; when the third window and the second application window are displayed in split screen, the third window is displayed entirely on the display screen.

[0049] As mentioned above, the split-screen mode usually requires determining the display content of two or more windows. When the display mode of the operating object window is switched to the split-screen mode, the user successively selects the content to be displayed in two or more windows of the split-screen mode window. For details, please refer to the relevant description above and will not be repeated here.

[0050] In a possible implementation of the second aspect above, the method also includes: in response to a second drag operation, displaying a third interface, the third interface including a second window and a fourth window, the fourth window being a window after the first application window is displayed through the second mode, wherein the second window is displayed in full screen by the electronic device, the fourth window floats above the second window, the height and width of the fourth window are both smaller than the second window, and the fourth window is displayed entirely on the display screen of the electronic device.

[0051] In a possible implementation of the second aspect above, the second window displays a desktop including at least one application icon or task card.

[0052] That is, in response to the user dragging the object window to the small window hot zone, the relevant interface corresponding to the split screen mode is displayed, such as the following Figure 3f The interface shown is shown. For details, please refer to the relevant description above and will not be repeated here.

[0053] In a possible implementation of the second aspect above, after the electronic device displays the first interface, the method also includes: during the execution of the first drag operation, if the distance between the touch position of the first drag operation and the display position of the first identifier gradually decreases, the size of the first identifier gradually increases; or during the execution of the second drag operation, if the distance between the touch position of the second drag operation and the display position of the second identifier gradually decreases, the size of the second identifier gradually increases.

[0054] That is, when the user drags the first application window (i.e., the object window) close to the location of the first mark or the location of the second mark, the object window is close to the preset hot zone, and during this process, the display size of the first mark or the second mark in the preset hot zone close to the object window can gradually increase. For details, please refer to the above description of the gradual increase in the display size of the first mark, which will not be repeated here.

[0055] In a possible implementation of the second aspect above, before detecting the user's first touch operation, the electronic device displays the fifth window in full screen, and the fifth window includes the target object of the first touch operation; and the above method includes: detecting the user's first touch operation, and displaying the target object or the interface corresponding to the target object in the first application window on the first interface.

[0056] In a possible implementation of the second aspect above, the target object includes: an application window, an application icon, a service card, a task window displayed on the application interface, a link displayed on the application interface, an attachment displayed on the application interface, or any one of the task windows of the multi-tasking interface.

[0057] That is, the object window operated by the user may be a window for displaying all or part of the content of the fifth window (i.e., the target object), and the operation of switching the window display mode performed by the user on the target object in the fifth window may trigger the electronic device to display the target object operated by the user or the interface corresponding to the target object through the target window (i.e., the first application window mentioned above). For details, please refer to the relevant description above, which will not be repeated here.

[0058] In a possible implementation of the second aspect, the first touch operation is an upward drag operation on the target object; and when the target object is the fifth window, the starting point of the first touch operation is the bottom of the screen of the electronic device.

[0059] In a possible implementation of the second aspect above, a first touch operation of a user is detected and a first interface is displayed, including: during the process of dragging the target object upward by the first touch operation, when the height of the touch position of the first touch operation reaches a first preset height, the electronic device displays the first interface; or during the process of dragging the target object upward by the first touch operation, when the target object is the fifth window and the reduction ratio of the display size of the fifth window reaches a first ratio threshold, the electronic device displays the first interface.

[0060] That is, the electronic device can trigger the display of the above-mentioned first interface by detecting whether the height of the touch position of the target object operated by the user reaches the first preset height; or by detecting whether the reduction ratio of the object window displaying the target object or the interface corresponding to the target object reaches the first ratio threshold during the movement of the target object operated by the user, to trigger the display of the above-mentioned first interface. For details, please refer to the relevant description above, which will not be repeated here.

[0061] It can be understood that in some embodiments, when the user continues to drag the target object toward a preset split-screen hot zone, the electronic device can further trigger the display of a split-screen effect simulation interface by determining whether the height of the touch position reaches a second preset height; wherein the second preset height is greater than the first preset height.

[0062] In other embodiments, while the user continues to drag the target object toward a preset split-screen hot zone, the electronic device may further trigger the display of a split-screen effect simulation interface by determining whether the reduction ratio of the object window displaying the target object or the interface corresponding to the target object reaches a second ratio threshold; wherein the second ratio threshold is greater than the first ratio threshold.

[0063] In a possible implementation of the second aspect, the first drag operation and the first touch operation are a continuous operation; or the second drag operation and the first touch operation are a continuous operation.

[0064] The above continuous operation means that the user does not leave the screen of the electronic device with his finger during the first touch operation and the first drag operation; or the user does not leave the screen of the electronic device with his finger during the first touch operation and the second drag operation.

[0065] In a possible implementation of the second aspect above, the first logo is displayed in the upper left corner of the first interface, and the second logo is displayed in the upper right corner of the first interface; or the first logo is displayed in the upper right corner of the first interface, and the second logo is displayed in the upper left corner of the first interface.

[0066] For example, the following Figure 3c The small window hot zone 320 and the small window hot zone icon 321 are shown in the upper right corner of the screen, and the split screen hot zone 330 and the split screen hot zone icon 331 are shown in the upper left corner of the screen. In other embodiments, the small window hot zone 320 and / or the small window hot zone icon 321 may also be displayed in the upper left corner of the electronic device screen, and the split screen hot zone 330 and / or the split screen hot zone icon 331 may be displayed in the upper right corner of the electronic device screen, which is not limited here.

[0067] In a third aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors; one or more memories; one or more memories storing one or more programs, and when one or more programs are executed by one or more processors, the electronic device executes the above-mentioned window switching method.

[0068] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which instructions are stored, and when the instructions are executed on a computer, the computer executes the above-mentioned window switching method.

[0069] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program / instruction, which implements the above-mentioned window switching method when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] Figure 1a to Figure 1d The figure shows a schematic diagram of an existing operation process interface for switching window display modes.

[0071] Figure 2a to Figure 2c Shown is another existing schematic diagram of the operation process interface for switching window display modes.

[0072] Figure 3a to Figure 3m Shown are some interface schematic diagrams of window switching processes provided in embodiments of the present application.

[0073] Figure 3n to Figure 3p Shown are some interface schematic diagrams for adjusting the split-screen mode window layout provided in embodiments of the present application.

[0074] Figure 4The figure is a schematic diagram of the hardware structure of an electronic device 300 provided in an embodiment of the present application.

[0075] Figure 5 The figure is a schematic diagram of an implementation flow of a window switching method provided in Example 1 of the present application.

[0076] Figures 6a to 6c Shown is a schematic diagram of touch positions corresponding to user operations provided in Example 1 of the present application.

[0077] Figures 7a to 7f Shown is an interface schematic diagram of some window switching processes provided in Example 1 of the present application.

[0078] Figures 8a to 8d Shown are interface schematic diagrams of other window switching processes provided in Example 1 of the present application.

[0079] Figure 9a to Figure 9b Shown are interface schematic diagrams of other window switching processes provided in Example 1 of the present application.

[0080] Figures 10a to 10d Shown are interface schematic diagrams of other window switching processes provided in Example 1 of the present application.

[0081] Figures 11a to 11d Shown are interface schematic diagrams of other window switching processes provided in Example 1 of the present application.

[0082] Figures 12a to 12d Shown is an interface diagram of another window switching process provided in Example 1 of the present application

[0083] Figures 13a to 13d Shown are interface schematic diagrams of other window switching processes provided in Example 1 of the present application.

[0084] Fig.14 Shown is a schematic diagram of an interface corresponding to a window switching operation provided in Example 1 of the present application.

[0085] Figure 15a to Figure 15b Shown are some split-screen window layout style interface schematics provided in Example 1 of the present application.

[0086] Fig.16 The figure is a schematic diagram of the implementation process of another window switching method provided in Example 2 of the present application.

[0087] Figures 17a to 17e Shown is an interface schematic diagram of some window switching processes provided in Example 2 of the present application.

[0088] Fig.18 The figure shows a software structure block diagram of an electronic device 300 provided in an embodiment of the present application.

[0089] Fig.19 The figure is a schematic diagram of the interaction process between a user behavior and a system behavior of an electronic device 300 provided in an embodiment of the present application. DETAILED DESCRIPTION

[0090] As an example, Figure 1a to Figure 1c A schematic diagram of an existing window switching operation process interface is shown.

[0091] like Figure 1a As shown, the foldable screen mobile phone 100 displays WeChat in full screen mode TM The interface of the application 101; when the user wants to watch a video while sending and receiving messages on WeChat, the foldable screen mobile phone 100 can be operated to switch to display Figure 1b The split-screen mode window shown in the figure shows that the foldable screen mobile phone 100 displays WeChat in two windows in the split-screen mode. TM The interface 101 of the application and the interface 102 of the video application. When the user wants to temporarily hide the interface 102 of the video application in order to process the WeChat TM When a message is displayed, the foldable screen mobile phone 100 can be operated to switch the interface 102 of the video application to Figure 1c The small window mode window display shown in the figure, that is, the folding screen mobile phone 100 displays the interface 102 of the video application in the small window mode window, WeChat TM The interface 101 of the application is displayed in full screen below the small window mode window. It can be understood that in the description of the embodiment of the present application, full screen display means that the screen display area of ​​the electronic device 300 is all used to display the content of the desktop or a certain application window, or in other words, the screen display area of ​​the electronic device is all the display area of ​​the desktop or a certain application window.

[0092] Specifically, the user operates the folding screen mobile phone 100 from Figure 1a The full screen mode window shown switches to Figure 1b In the split screen mode window shown, you need to first Figure 1a Swipe up from the bottom of the screen (see Figure 1a Operation ①) shown in the figure, enter Figure 1d After the multitasking interface 103 is displayed, click WeChat in the multitasking interface 103 TM The interface 101′ of the application opens the multi-mode window option button 104, and then clicks the split-screen mode button 105 from the multi-mode window option button 104 to make the foldable screen mobile phone 100 enter the split-screen mode, and finally selects the interface of the video application as the interface displayed in another window in the split-screen mode, and enters Figure 1b As shown in the split-screen mode window, it can be seen that the current operation process of switching the window display mode is relatively complicated, resulting in low efficiency and poor user experience when switching the window display mode.

[0093] Figures 2a to 2c Another existing operation process interface schematic diagram of switching window display modes is shown.

[0094] like Figure 2a As shown, the tablet computer 200 displays an application window, which may be WeChat TM Window 201, on WeChat TM The top of the window 201 displays a touch hotspot 202 for switching the window display mode. The user clicks the touch hotspot 202 to open the window display mode. Figure 2b Mode options 203 are shown.

[0095] like Figure 2b As shown, the mode options 203 include a full screen mode button 031, a split screen mode button 032, and a small window mode button 033. It can be understood that in other embodiments, the small window mode can also be called a floating window mode. Figure 2b Clicking the split screen mode button 032 in the mode options 203 shown in the figure can enter Figure 2c The split screen mode window shown is Figure 2c As shown, one window of the split-screen mode window displays WeChat TM The content in window 201 and another window may display the interface of another application that was recently opened, such as video application interface 204 .

[0096] However, the user operates the tablet computer 200 from Figure 2a The full screen mode window shown switches to Figure 2c The split-screen mode window shown also requires multiple operations, with low operating efficiency and poor user experience.

[0097] In order to solve the problem that the current operation steps for switching window display modes are complicated and result in low user operation efficiency, an embodiment of the present application proposes a window switching method, by setting a hot zone for triggering a small window mode (hereinafter referred to as a small window hot zone) and / or a hot zone for triggering a split screen mode (hereinafter referred to as a split screen hot zone) on an electronic device, when it is detected that a user drags an object window into a preset hot zone, the electronic device is triggered to switch the display mode of the object window to the display mode corresponding to the preset hot zone, for example, when it is detected that a user drags an object window into a preset split screen hot zone, the electronic device is triggered to switch the display mode of the object window to the split screen mode. Among them, the operation of the user dragging the object window into the preset hot zone can be, for example, a preset sliding operation gesture, such as long pressing + dragging on the screen of the electronic device or sliding upward from the bottom of the screen to drag the window upward. Through the window switching solution provided in the embodiment of the present application, it is possible to switch the display mode of the object window displayed by the electronic device to the split-screen mode (i.e., a one-step split-screen operation process) or to the small window mode (i.e., a one-step small window operation process) through a one-step operation, thereby simplifying the operation steps for users to switch the window display mode, being convenient and quick, improving the operation efficiency of users switching windows, and thus helping to improve the user experience.

[0098] It can be understood that the above-mentioned object window can be an application window that displays an application interface, or a video task window, access link, text, attachment, etc. displayed on the application interface, or an application icon displayed on the desktop of an electronic device, a service card, or a task card displayed in the multi-task interface of an electronic device, etc., and there is no limitation here. Among them, the operation of dragging the object window into the preset hot zone includes dragging the object window so that the entire display area and the border part of the object window are all within the preset hot zone, or the size of the overlapping area between the display area of ​​the object window and the preset hot zone is greater than a preset size threshold, for example, the area of ​​the overlapping area is greater than the preset area threshold, etc., or the touch position of the operation of dragging the object window into the preset hot zone is detected to be within the preset hot zone, etc., and there is no limitation here.

[0099] For example, Figure 3a to Figure 3m Some interface schematic diagrams during the window switching method implemented by the electronic device 300 provided in the embodiment of the present application are shown.

[0100] in, Figure 3a to Figure 3c Shown is a scenario that triggers the display of a small window hot zone position and / or a split screen hot zone position.

[0101] refer to Figure 3a In operation ② shown in FIG. 1 , the user can slide upward from the bottom of the screen of the electronic device 300 that displays a certain application interface in full screen (i.e., slide up operation), referring to FIG. Figure 3bAs shown, during the upward sliding operation of the user, the application window 310 of the electronic device 300 displaying the application interface will gradually become smaller. Figure 3c As shown, when the application window 310 is shrunk to a certain extent during the user's swiping up operation, the electronic device 300 can display a hot zone mask on the small window hot zone and / or split screen hot zone preset on the screen to indicate the position of the preset hot zone. It can be understood that the hot zone size set on the screen of the electronic device 300 can be fixed, while the hot zone mask size displayed on the hot zone can be variable in size, guiding the user to drag the application window 310 to the corresponding preset hot zone range, wherein the maximum size of the hot zone mask can be comparable to the preset hot zone size or slightly smaller than the preset hot zone size, which is not limited here. For ease of description, Figure 3c The small window hot zone 320 shown can be understood as a hot zone mask above the small window hot zone, and the split screen hot zone 330 can be understood as a hot zone mask above the split screen hot zone. In the following description, unless otherwise specified, the description of the small window hot zone or the split screen hot zone and the corresponding hot zone mask are generally not distinguished.

[0102] In other embodiments, the size of the hot zone may also be variable. For example, the hot zone size may be set to change synchronously and proportionally with the size of the corresponding hot zone mask, etc., which is not limited here.

[0103] It can be understood that in some embodiments, the above-mentioned operation of dragging the application window 310 (i.e., the object window) to the corresponding preset hot zone range can also be the operation of dragging the object window to the area covered by the hot zone mask displayed on the preset hot zone, including dragging the object window so that the entire display area of ​​the object window and the window border are all within the area covered by the hot zone mask displayed on the preset hot zone, or the size of the overlapping area between the display area of ​​the object window and the area covered by the hot zone mask displayed on the preset hot zone is greater than the preset size threshold, for example, the area of ​​the overlapping area is greater than the preset area threshold, or the touch position of the operation of dragging the object window to the preset hot zone is detected to be within the range covered by the hot zone mask displayed on the preset hot zone, etc., which is not limited here. Among them, in some embodiments of the present application, the coordinate information of the touch position of the dragged object window can be detected to determine whether the height of the touch position meets the preset height threshold condition, and / or the position of the touch position on the screen of the electronic device can be determined to determine whether the touch position is within the range covered by the hot zone mask displayed on the preset hot zone, etc. For details, please refer to the following embodiments. Figure 5 The specific implementation process description of the corresponding steps in the shown process will not be repeated here.

[0104] Continue to refer Figure 3cAs shown, the small window hot zone 320 and the split screen hot zone 330 are displayed. The user can continue to drag the application window 310 to the upper right to slide into the small window hot zone 320 and release it to trigger the small window mode; the user can also drag the application window 310 to the upper left to slide into the split screen hot zone 330 and release it to trigger the split screen mode. The details will be described in detail below and will not be repeated here. Figure 3c As shown, a small window hot zone icon 321 can be displayed in the small window hot zone 320, and a split screen hot zone icon 331 can be displayed in the split screen hot zone 330, so as to indicate the small window hot zone and the split screen hot zone. The display size corresponding to the small window hot zone 320 and the split screen hot zone 330 can be larger than the display size of the preset hot zone icon.

[0105] It can be understood that in other embodiments, only the small window hot zone 320 or the split screen hot zone 330 may be set on the screen of the electronic device 300. In this case, when the user performs the above-mentioned sliding operation on the application window 310 on the screen of the electronic device 300, Figure 3c The interface shown may correspondingly display only the small window hot zone icon 321 or the split screen hot zone icon 331. Figure 3c The positions of the small window hot zone icon 321 and the corresponding small window hot zone 320, the split screen hot zone icon 331 and the corresponding split screen hot zone 330 can also be interchanged, that is, the small window hot zone icon 321 is displayed in the upper left corner of the electronic device 300 screen to indicate the location of the small window hot zone 320, and the split screen hot zone icon 331 is displayed in the upper right corner of the electronic device 300 screen to indicate the location of the split screen hot zone 330. Figure 3c In the interface shown, other application windows on both sides of the application window 310 can be hidden, and there is no limitation here.

[0106] Figure 3d to Figure 3f The following is an operation scenario of switching to the small window mode window.

[0107] refer to Figure 3d In operation ③, when the user drags the application window 310 to slide into the small window hot zone 320 in the upper right corner of the electronic device 300 screen, the display size of the small window hot zone 320 can gradually increase. Optionally, the small window hot zone icon 321 in the small window hot zone 320 can also be correspondingly enlarged, wherein the change rate of the display size of the small window hot zone icon 321 can be smaller than the change rate of the display size of the small window hot zone 320. Figure 3d As shown, the size of the application window 310 can be further reduced. At this time, the split-screen hot zone and the split-screen hot zone icon in the upper left corner of the screen of the electronic device 300 can be hidden and not displayed, and no limitation is made here.

[0108] refer to Figure 3eIn operation ④ shown, the user can completely drag the application window 310 into the small window hot zone 320, for example, so that the entire display area of ​​the application window 310 is completely within the area covered by the small window hot zone 320 displayed on the electronic device 300. In the process of the application window 310 moving into the small window hot zone 320, the display size of the small window hot zone 320 (that is, the size of the area covered by the small window hot zone 320) can be further enlarged. At the same time, the application window 310 can also gradually cover the small window hot zone icon displayed in the small window hot zone 320. The border of the small window hot zone icon can also be displayed in bold or in other eye-catching changes. It can be understood that Figure 3e In the figure, the bold border display effect of the small window hot zone icon 321 is not shown due to the obstruction of the application window 310. When the user releases the finger in the small window hot zone 320 and releases the application window 310 located in the small window hot zone 320, the application window 310 can be triggered to be displayed as a small window mode window, that is, the electronic device 300 is triggered to display the small window mode window. Figure 3f The interface shown.

[0109] refer to Figure 3f As shown, after the user releases the application window 310 in the small window hot zone 320, the application window 310 in the small window mode can be displayed in the upper right corner of the electronic device 300. At this time, the desktop or the interface of another application can be displayed in the empty window 340 on the screen of the electronic device 300, that is, the application window 310 in the small window mode is suspended above the desktop or the interface of another application displayed in the empty window 340.

[0110] It is understandable that the above Figure 3a to Figure 3f The application window 310 shown may be a window that displays the interface of any application installed on the electronic device 300. For example, the application window 310 may be WeChat. TM Application windows, or video application windows, etc., are not limited here.

[0111] It is understandable that the above Figure 3d Operations ③ and Figure 3e The interface changes corresponding to operation ④ shown in the figure are all reversible, that is, the user can Figure 3d Operation ③ or Figure 3e After operation ④ shown in the figure, you can perform a sliding operation in the opposite direction corresponding to operation ③ or operation ④ to return to the interface before triggering the small window mode. For example, the user performs the operation corresponding to Figure 3d The reverse sliding operation of operation ③ shown in the figure, for example, sliding downward to return to the bottom of the screen of the electronic device 300, can make the electronic device 300 Figure 3d The interface shown gradually transforms to Figure 3c The interface shown, Figure 3b The interface shown until Figure 3aThe interface shown is not limited here.

[0112] Figure 3g to Figure 3j Shown is the scene switching to a split-screen mode window.

[0113] refer to Figure 3g In operation ⑤, when the user drags the application window 310 to slide into the split-screen hot zone 330 at the upper left of the screen of the electronic device 300, the display size of the split-screen hot zone 330 can gradually increase. Optionally, the split-screen hot zone icon 331 in the split-screen hot zone 330 can also increase accordingly, wherein the change rate of the display size of the split-screen hot zone icon 331 can be smaller than the change rate of the display size of the split-screen hot zone 330. Figure 3g As shown, the size of the application window 310 can be further reduced. At this time, the small window hot zone and the small window hot zone icon in the upper right corner of the screen of the electronic device 300 can be hidden and not displayed, and there is no limitation here.

[0114] refer to Figure 3h In operation ⑥ shown, the user can completely drag the application window 310 into the split-screen hot zone 330, for example, so that the entire display area of ​​the application window 310 is completely within the area covered by the split-screen hot zone 330 displayed on the electronic device 300. In the process of the application window 310 moving into the split-screen hot zone 330, the display size of the split-screen hot zone 330 (that is, the size of the area covered by the split-screen hot zone 330) can be further enlarged. At the same time, the application window 310 can also gradually cover the split-screen hot zone icon displayed in the split-screen hot zone 330. The border of the split-screen hot zone icon can also be displayed in bold or in other eye-catching changes. It can be understood that Figure 3h In the figure, the effect of boldly displaying the border of the split-screen hot zone icon 321 is not shown due to the obstruction of the application window 310.

[0115] In other embodiments, when the application window 310 is completely dragged into the split-screen hot zone 330, the electronic device 300 may also display Figure 3i The simulated split-screen interface shown.

[0116] refer to Figure 3iAs shown, in the simulated split-screen interface 350 displayed by the electronic device 300, the display content in the application window 310 can be displayed through the left window 351 of the simulated split-screen interface 350. At this time, the left window 351 can, for example, highlight the selected state of the content of the application window 310 corresponding to the left window 351 with a dark background; the right window 352 of the simulated split-screen interface 350 can be displayed as the window interface state of the display content to be added. It can be understood that when the electronic device 300 displays the simulated split-screen interface 350, the status bar at the top of the electronic device 300 can be covered by the displayed simulated split-screen interface 350, which is not limited here. In other embodiments, the style of the simulated split-screen window displayed by the electronic device 300 can also be other styles, which are not limited here.

[0117] Furthermore, when the user releases his finger in the split-screen hot zone 330 and releases the application window 310 located in the split-screen hot zone 330, it can trigger the application window 310 to be displayed as a split-screen mode window. It can be understood that the split-screen interface displayed by the electronic device 300 generally includes two or more split-screen windows that respectively display the application interface, wherein the application interface displayed in each split-screen window can be a different interface of the same application or can be an interface of different applications, which is not limited here. It can be understood that when the user first completes the operation of releasing the finger in the split-screen hot zone 330 to release the application window 310, the electronic device 300 can display the preparatory interface of the split-screen mode before displaying the final split-screen interface, for example Figure 3j The interface shown.

[0118] refer to Figure 3j As shown, when the user releases the finger in the split screen hot zone 330 for the first time to release the application window 310, the electronic device 300 can display the split screen preparation interface 360, which can be understood as a preparation interface before entering the split screen interface. Figure 3j As shown, the split screen preparation interface 360 ​​includes a virtual split screen window 361 on the left edge and a pending window 362, wherein the virtual split screen window 361 can be displayed floating above the pending window 362. The virtual split screen window 361 is used to display the content in the application window 310, for example, the WeChat displayed in the above example application window 310. TM The pending window 362 can be used to display the desktop or another application interface selected by the user, such as the WeChat application interface in the above example. TM The interface of the application forms a split-screen video playback interface, and there is no restriction here.

[0119] In other embodiments, Figure 3j The virtual split screen window 361 shown may also be displayed on the right edge of the split screen preparation interface 360, or on the top of the split screen preparation interface 360, for example, as shown below. Figure 9aThe style of the interface shown is not limited here.

[0120] Understandably, Figure 3j The virtual split screen window 361 shown can be retracted to the left side of the screen of the electronic device 300. For example, the user can drag the control bar 363 at the right edge of the virtual split screen window 361 to slide to the right to expand the virtual split screen window 361 to the right, thereby expanding the display size of the virtual split screen window 361. It can be understood that in other embodiments, the user can also drag the right edge of the control bar 363 to the right to stretch and expand the virtual split screen window 361 to the right, which is not limited here.

[0121] It is understandable that users can Figure 3i The finger is released in the left window 351 of the simulated split screen interface 350 to release the application window 310 to trigger the electronic device 300 to display the Figure 3j The split screen preparation interface 360 ​​shown in the figure; the user can also Figure 3h Release the finger in the split screen hot zone 330 to release the application window 310 to trigger the electronic device 300 to display Figure 3j The split-screen preparation interface 360 ​​shown is not limited here.

[0122] In other embodiments, the split screen preparation interface displayed by the electronic device 300 when the user releases the application window 310 may also be different from the above-mentioned Figure 3j Other interface forms shown may be, for example, Figure 3k and Figure 3l The form of the split-screen preparation interface shown is not limited here.

[0123] refer to Figure 3k As shown, in the split screen preparation interface 370 displayed by the electronic device 300, the left window 371 can be used to display the content in the application window 310, and the right window 372 can be used to display the desktop or another application interface selected by the user. Figure 3k The display content in the right window 372 shown is pending, and the right window 372 may also be referred to as the pending window 372 in the following description.

[0124] It is understood that in some embodiments, when the user can Figure 3h The split screen hotspot 330 shown or in Figure 3i When the application window 310 is released in the left window 351 of the simulated split screen interface 350, the electronic device 300 can display the Figure 3k The interface changes to Figure 3j The interface change process of the interface shown, that is, the electronic device 300 may also first display Figure 3kThe split screen preparation interface 370 is shown, and then the left window 371 in the split screen preparation interface 370 displayed on the electronic device 300 automatically moves to the left until the electronic device 300 displays Figure 3j The split-screen preparation interface 360 ​​shown is not limited here.

[0125] refer to Figure 3l As shown, in the split screen preparation interface 380 displayed by the electronic device 300, a split screen effect window 381 is displayed at the upper left position of the screen, and the split screen preparation interface 380 also includes a pending window 382 that can be used to display the desktop or another application interface, wherein the dark mode window 383 in the split screen effect window 381 is, for example, a window selected by the user to display the content of the application window 310, and the blank window 384 in the split screen effect window 381 can be used to display another application interface corresponding to the user's next operation to trigger the split screen mode. It can be understood that when the user performs the operation of triggering the split screen mode again, that is, the above-mentioned Figure 3a to Figure 3c ,as well as Figure 3g to Figure 3h or Figure 3i When another application interface is selected as the content displayed together with the content displayed in the application window 310 through the split-screen interface, the electronic device 300 can display the final split-screen interface, for example Figure 3m In the split-screen interface 390 shown, a left window 391 and a right window 392 are displayed in split screen.

[0126] In addition, in the above Figure 3l On the split-screen preparation interface 380 shown, the user can also slide in the split-screen effect window 381 displayed in the upper left corner of the screen to adjust the layout style of the split-screen window.

[0127] Figure 3n to Figure 3p According to the embodiment of the present application, several interface schematic diagrams are shown for adjusting the split-screen mode window layout by sliding operations in the split-screen effect window displayed by the electronic device 300. It can be understood that after the user performs a sliding operation in the split-screen effect window 381 to adjust the split-screen mode window layout, the split-screen interface finally displayed by the electronic device 300 after the user subsequently completes the corresponding multiple operations of triggering the split-screen mode is displayed in the above-adjusted split-screen mode window layout style.

[0128] refer to Figure 3n As shown, for example, the user can slide left and right in the split-screen effect window 381 to switch the left and right display positions of the dark mode window 383 and the blank window 384.

[0129] refer to Figure 3oAs shown, for example, the user can slide to the upper right in the dark mode window 383 on the left side of the split screen effect window 381, and the window layout of the dark mode window 383 and the blank window 384 in the left and right direction can be switched to the window layout in the up and down direction, for example, the dark mode window 383 is switched to be displayed above the blank window 384, and no limitation is made here. It can be understood that Figure 3n and Figure 3o The split screen effect window 381 with two windows shown in the figure can be called a two-split screen effect window. If there are three or more windows in the split screen effect window 381 displayed by the electronic device 300, it can be called a three-split screen effect window or a multi-split screen effect window. Figure 3p The interface shown.

[0130] refer to Figure 3p As shown, for example, the user can slide up in the dark mode window 383 on the left side of the split-screen effect window 381, and the dark mode window 383 can be moved up and a blank window 385 can be added to form a three-split screen effect window together with the blank window 384. In other embodiments, the user can also switch the split-screen effect window 381 to other forms of two-split screen effect windows, three-split screen effect windows, and multiple split screen effect windows by sliding in the split-screen effect window 381, which is not limited here.

[0131] It can be understood that when the user only completes the operation of switching the first application window to the split-screen mode window, Figure 3j to Figure 3l In the split-screen preparation interface shown, after the user completes the selection of the content to be displayed in another pending window 362, 372 or 382 in the split-screen mode window, for example, the user can select another application from the desktop application icon displayed in the pending window 382, ​​and the user selects, for example, a video application. When the user clicks the selected video application icon, the split-screen preparation interface displayed by the electronic device 300 automatically switches to the style of the split-screen interface, where the style of the split-screen interface can refer to Figure 3m The split screen interface 390 shown, wherein Figure 3m The left window 391 of the split screen interface 390 shows the content of the first application window operated by the user, for example, WeChat TM interface, Figure 3m The right window of the split screen interface 390 shows the interface of the video application selected by the user, showing WeChat TM The left window 391 of the interface is displayed in split screen with the right window 392 of the interface displaying the video application. In other embodiments, after the electronic device 300 displays the split screen preparation interface, when the user clicks another application on the desktop, the split screen interface displayed by the electronic device 300 may also be in other styles, which are not limited here.

[0132] It can be understood that the electronic device 300 that implements the window switching solution in the embodiment of the present application includes but is not limited to mobile phones (including foldable screen mobile phones), tablets, laptop computers, desktop computers, servers, wearable devices, head-mounted displays, mobile email devices, car devices, portable game consoles, portable music players, reader devices, televisions embedded or coupled with one or more processors, and other electronic devices.

[0133] For example, Figure 4 A schematic diagram of the hardware structure of an electronic device 300 is shown.

[0134] like Figure 4 As shown, the electronic device 300 may include a processor 110, an external memory interface 120, an internal memory 121, a sensor module 180, a display screen 190, etc. The sensor module 180 may include a pressure sensor 180A, an acceleration sensor 180E, a proximity light sensor 180G, a touch sensor 180K, an ambient light sensor 180L, etc.

[0135] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 300. In other embodiments of the present application, the electronic device 300 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0136] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural network processor (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors. The controller can generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions. A memory can also be set in the processor 110 for storing instructions and data. In an embodiment of the present application, the relevant instructions and data for executing the window switching method of the present application can be stored in the memory for the processor 110 to call, and the processor 110 can control the execution of each step of implementing the window switching method through the controller. The specific implementation process will be described in detail below and will not be repeated here.

[0137] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0138] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K and the like through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 300.

[0139] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 190. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. The processor 110 and the display screen 190 communicate through the DSI interface to realize the display function of the electronic device 300.

[0140] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110, the display screen 190, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, a MIPI interface, etc.

[0141] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 300. In other embodiments of the present application, the electronic device 300 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0142] The electronic device 300 implements the display function through a GPU, a display screen 190, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 190 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0143] The display screen 190 is used to display images, videos, etc. The display screen 190 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Mini-LED, Micro-LED, Micro-OLED, quantum dot light-emitting diodes (QLED), etc. In some embodiments, the electronic device 300 may include 1 or N display screens 190, where N is a positive integer greater than 1. In an embodiment of the present application, a split-screen hot zone and / or a small window hot zone may be set on the display screen 190 to respond to related operations of the user's finger sliding to the split-screen hot zone or the small window hot zone. For example, the split screen hot zone is set in the upper left area of ​​the display screen 190, and the small window hot zone is set in the upper right area of ​​the display screen 190; or, the split screen hot zone can be set in the upper right area of ​​the display screen 190, and the small window hot zone can be set in the upper left area of ​​the display screen 190. For details, please refer to the detailed description below, which will not be repeated here.

[0144] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 300. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0145] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 300 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 300 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.

[0146] In an embodiment of the present application, the internal memory 121 may store execution instructions for implementing the window switching method of the present application for the processor 110 to call and implement the window switching method of the present application, so that the electronic device 300 can realize the function of quickly switching the window display mode.

[0147] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 190. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 300 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 190, the electronic device 300 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 300 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

[0148] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 300 in all directions (generally three axes). When the electronic device 300 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

[0149] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 300 emits infrared light outward through the light emitting diode. The electronic device 300 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 300. When insufficient reflected light is detected, the electronic device 300 can determine that there is no object near the electronic device 300. The proximity light sensor 180G can also be used for automatic unlocking and locking of the holster mode and pocket mode.

[0150] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 300 can adaptively adjust the brightness of the display screen 190 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 300 is in a pocket to prevent accidental touch.

[0151] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 190, and the touch sensor 180K and the display screen 190 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 190. In an embodiment of the present application, for example, the touch screen composed of the touch sensor 180K and the display screen 190 can detect the user's upward sliding operation. With the upward sliding operation of the user, the touch screen can display corresponding interface changes, such as displaying the split-screen hot zone icon in the split-screen hot zone, and displaying the small window hot zone icon in the small window hot zone, etc. For example, if the user's upward sliding operation slides to the split-screen hot zone on the display screen 190 or releases the hand in the small window hot zone, the touch screen can display the object window of the user's upward sliding operation in a split-screen mode window or in a small window mode window. For details, please refer to the detailed description below, which will not be repeated here. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 300 , at a location different from that of the display screen 190 .

[0152] Based on the above Figure 4 The structure of the electronic device 300 shown in the figure is described in detail below in conjunction with the accompanying drawings. The following is a description of the specific process of the electronic device 300 implementing the window switching method of the embodiment of the present application when the split screen hot zone and the small window hot zone of the electronic device 300 are set at the upper left and upper right of the screen.

[0153] Embodiment 1

[0154] As described above, in other embodiments, the positions of the small window hot zone and / or split-screen hot zone set on the screen of the electronic device 300 may also be in any reasonable distribution form, which is not limited here. As an example, on the electronic device 300 provided in the embodiment of the present application, the split-screen hot zone for triggering the display of the split-screen mode window, and the small window hot zone for triggering the display of the small window mode window can be set at the upper left and upper right of the screen, respectively. The specific process of the electronic device 300 implementing the window switching method of the embodiment of the present application is described in detail below in conjunction with the flow chart and related interface schematic diagrams.

[0155] Figure 5 According to an embodiment of the present application, a schematic diagram of an implementation flow of a window switching method is shown. It can be understood that: Figure 5 The execution subject of each step of the illustrated process is the electronic device 300, and the execution subject will not be repeatedly described in the following steps.

[0156] like Figure 5 As shown, the process includes the following steps:

[0157] 501: A user operation for switching a window display mode is detected, and a target window of the operation is identified.

[0158] Exemplarily, the user can slide up and down or slide left and right on the screen of the electronic device 300, and the electronic device 300 can detect that the user drags the object window to the preset small window hot zone or split screen hot zone on the screen of the electronic device 300, and it can be considered that the user operation for switching the window display mode is detected. Among them, the electronic device 300 can collect the touch position coordinate data corresponding to the user's sliding operation on the screen and the object window information corresponding to the touch position, so as to determine whether the user drags the object window to the preset hot zone. It can be understood that the situation of determining that the user drags the object window to the preset hot zone can include the situation that the entire display area and the frame part of the object window are all in the preset hot zone, or the situation that the size of the overlapping area of ​​the display area of ​​the object window and the preset hot zone is greater than the preset size threshold, or the situation that the touch position of the drag operation acting on the object window is detected to be in the preset hot zone, etc., which is not limited here.

[0159] It is understood that the sliding operation performed by the user on the screen of the electronic device 300 may be, for example, the above Figure 3a Operation ② shown is the operation of sliding the currently displayed application window upward from the bottom of the screen of the electronic device 300. In other embodiments, the sliding operation performed by the user on the screen of the electronic device 300 may also be the operation of long pressing the desktop application icon displayed on the electronic device 300 and sliding upward, or the operation of long pressing a video task window or document in the application interface displayed by the electronic device 300 and sliding upward, etc., which are not limited here. Among them, the interface changes corresponding to the above-mentioned operation of long pressing the application icon on the desktop of the electronic device 300 and sliding upward, and the operation of long pressing a video task window or document on the application interface displayed by the electronic device 300 and sliding upward will be introduced in conjunction with the interface schematic diagram below, and will not be repeated here.

[0160] It is understandable that when the electronic device 300 detects a user operation for switching the window display mode, it can determine the corresponding operation object, that is, the above-mentioned object window, based on the touch position coordinate data of the user touching the screen of the electronic device 300. Figure 3a to Figure 3c The application window 310 in the interface shown is the object window of the upward sliding operation performed by the user on the screen of the electronic device 300. It can be understood that in the process of the user operating the object window to move upward, the window size of the object window can be gradually reduced. For details, please refer to the above Figures 3a to 3c The relevant description in will not be repeated here.

[0161] In other embodiments, the electronic device 300 may also detect the sliding path of the user's sliding operation on the screen, that is, detect the moving track of the touch position, and match it with the preset sliding path for switching the window display mode to determine whether the user operation for switching the window display mode is detected, which is not limited here. The sliding path of the user's sliding operation can be a straight line, an arc, or a curve.

[0162] 502: Determine whether the reduction ratio of the object window is less than or equal to a preset ratio threshold. If the determination result is yes, that is, the reduction ratio of the object window is ≤ the preset ratio threshold, then execute step 503 to display the hot zone mask and / or hot zone icon corresponding to the preset hot zone on the screen; if the determination result is no, that is, the reduction ratio of the object window is greater than the preset ratio threshold, then continue to execute the determination process of step 502.

[0163] Exemplarily, the reduction ratio of the object window can be determined by calculating the ratio between the real-time window size of the object window and the object window size under full-screen display. After the electronic device 300 recognizes that the user's sliding operation is an upward sliding operation and recognizes the object window of the user's sliding operation (i.e., upward sliding operation) in the above step 501, the electronic device 300 can calculate the reduction ratio of the object window based on the real-time window size of the object window, and compare it with the ratio threshold preset on the electronic device 300, wherein the preset ratio threshold can be set to 70%, 75% or other reasonable values, which are not limited here.

[0164] In other embodiments, when the electronic device 300 executes this step 502, it can also determine whether the change corresponding to the object window meets the conditions for triggering the display of the hot zone mask and / or hot zone icon corresponding to the preset hot zone by judging other threshold conditions. For example, by judging whether the real-time height of the user's touch position or the real-time height of the object window meets the preset height threshold conditions, etc., to determine whether the above-mentioned triggering display conditions are met. No limitation is made here.

[0165] 503: Displaying a hot zone mask and / or a hot zone icon corresponding to a preset hot zone.

[0166] Exemplarily, in the above step 502, if the electronic device 300 determines that the reduction ratio of the object window is less than or equal to the preset ratio threshold, the screen of the electronic device 300 may display a hot zone mask and / or a hot zone icon corresponding to the preset hot zone, wherein the preset hot zone on the screen of the electronic device 300 may be, for example, the above-mentioned split-screen hot zone and / or the small window hot zone. When the split-screen hot zone is preset on the screen of the electronic device 300, if the judgment result of the above step 502 is yes, the electronic device 300 may display the above-mentioned split-screen hot zone 330 and / or the split-screen hot zone icon 331; if the judgment result of the above step 502 is no, the electronic device 300 may display the above-mentioned small window hot zone 320 and / or the small window hot zone icon 321. In some embodiments, the split-screen hot zone and the small window hot zone may be set on the screen of the electronic device 300 at the same time. If the judgment result of the above step 502 is yes, the electronic device 300 may display the above-mentioned Figure 3c The interface shown is not limited here.

[0167] As an example, taking the case where the split screen hot zone and the small window hot zone are set on the screen of the electronic device 300 at the same time, the preset ratio threshold in the electronic device 300 is, for example, 75%. When the electronic device 300 determines that the reduction ratio of the object window (i.e., the application window 310) reaches 75%, the screen of the electronic device 300 displays the above Figure 3c The split screen hot zone icon 331 and the small window hot zone icon 321 are shown, wherein the split screen hot zone icon 331 can be displayed in the above Figure 3c In the split screen hot zone 330 shown, the small window hot zone icon 321 can be displayed in the above Figure 3c Within the small window thermal zone 320 shown.

[0168] Refer to the above Figure 3c As shown, in some embodiments, the split-screen hot zone 330 and / or the split-screen hot zone icon 331 may be displayed at the upper left of the screen of the electronic device 300, and the small window hot zone 320 and / or the small window hot zone icon 321 may be displayed at the upper right of the screen of the electronic device 300. In other embodiments, the small window hot zone 320 and / or the small window hot zone icon 321 may also be displayed at the upper left of the screen of the electronic device 300, and the split-screen hot zone 330 and / or the split-screen hot zone icon 331 may be displayed at the upper right of the screen of the electronic device 300. In other embodiments, the hot zone mask and / or the hot zone icon corresponding to the above-mentioned preset hot zone may also be displayed at other positions on the screen of the electronic device 300 that are convenient for user operation, which is not limited here.

[0169] It can also be understood that when the electronic device 300 is in landscape mode, the display positions of the small window hot zone, split screen hot zone, and the small window hot zone icons and split screen hot zone icons can be adjusted accordingly to the upper left or upper right area of ​​the screen in landscape mode, or other areas that are convenient for user operation, without any limitation here.

[0170] It can be understood that the display size of the hot zone mask and / or hot zone icon displayed by the electronic device 300 can be reasonably preset, and the change range of the display size can be preset, so that when the object window approaches the preset hot zone range, the change in the display size of the hot zone mask and / or the display size of the hot zone icon can be used to indicate the change in the approach distance of the object window. The details will be described in detail below and will not be repeated here.

[0171] 504: Determine whether the height of the touch position corresponding to the user operation reaches the first preset height. If the height of the touch position corresponding to the user operation object window reaches the first preset height, that is, when the judgment result is yes, then execute the following step 505 to further determine whether the touch position corresponding to the user operation object window is located on the left side of the screen of the electronic device 300 or on the right side of the screen of the electronic device 300; if the height of the touch position corresponding to the user operation object window does not reach the first preset height, that is, when the judgment result is no, then continue to execute this step 504 to continue to determine whether the height of the touch position corresponding to the user operation object window reaches the first preset height.

[0172] For example, when the electronic device 300 detects that the user operates the object window to continue to move upward, it can obtain the touch position coordinate data of the user's sliding operation in real time and determine whether the height of the touch position reaches the first preset height. Figure 6a As shown, for example, 1 / 2 of the screen height H of the electronic device 300 can be set as the first preset height, and the electronic device 300 can obtain the coordinate data corresponding to the touch position 601 of the user's operation object window 610 in real time, and then determine the height h of the touch position 601. Figure 6a As shown, the height h of the touch position 601 and the reference line of the height H of the screen of the electronic device 300 can be the same as the straight line 602 where the lower edge of the screen of the electronic device 300 is located. In this way, when the electronic device 300 determines that the height h of the touch position 601 is ≥ H / 2, it can be determined that the height of the touch position corresponding to the user operation object window 610 has reached the first preset height, that is, the judgment result is yes; when it is determined that the height h of the touch position 601 is < H / 2, it can be determined that the height of the touch position corresponding to the user operation object window 610 has not reached the first preset height, that is, the judgment result is no.

[0173] In other embodiments, the electronic device 300 may also determine whether the real-time height of the object window has reached the first preset height by detecting the real-time position of the object window, wherein the real-time height of the object window may be, for example, the height of the geometric center point of the object window, and the electronic device 300 may determine the position of the object window based on the touch position coordinate information detected by the user's swipe-up operation, and the relative position relationship between the object window and the touch position of the user's swipe-up operation, and then determine the real-time height of the object window. It is understood that in other embodiments, the height of the object window may also be determined by referring to the height of other position points in the object window, such as taking the height of the midpoint of the upper edge of the object window as the height of the object window, etc.; in addition, in other embodiments, the first preset height may also be set to other values, such as 2H / 3, or 30mm, etc., which are not limited here.

[0174] It can be understood that the judgment process performed in this step 504 and the judgment process performed in the following step 505 are both for determining whether the electronic device 300 needs to switch the currently displayed interface. In other embodiments, the electronic device 300 can also determine whether it is necessary to switch the currently displayed interface by judging other threshold conditions when executing this step 504. For example, the electronic device 300 can determine whether it is necessary to switch the currently displayed interface by judging whether the degree of overlap between the display area of ​​the object window and the preset hot zone area on the screen meets the preset overlap threshold, or by judging whether the display size reduction ratio of the object window during the user's swipe-up operation reaches another ratio threshold different from the preset ratio threshold in the above step 502. There is no limitation here.

[0175] 505: Determine whether the touch position corresponding to the user operation is located in the left area of ​​the screen or the right area of ​​the screen to determine the window display mode to be switched corresponding to the user operation. If it is determined that the touch position corresponding to the user operation object window is located in the left area of ​​the screen of the electronic device 300, it can be determined that the user operation is an operation to switch the display mode of the object window to the split-screen mode, and the electronic device 300 further executes the following step 506 to display the guide interface for switching to the split-screen mode window; if it is determined that the touch position corresponding to the user operation object window is located in the right area of ​​the screen of the electronic device 300, it can be determined that the user operation is an operation to switch the display mode of the object window to the small window mode window, and the following step 510 is executed to display the guide interface for switching to the small window mode window.

[0176] For example, the electronic device 300 can determine whether the touch position is located in the left area of ​​the screen or the right area of ​​the screen based on the touch position coordinate data of the user's operation object window. For the division of the left area of ​​the screen and the right area of ​​the screen of the electronic device 300, for example, the screen display area on the left side of the vertical symmetry axis of the screen of the electronic device 300 can be defined as the left area of ​​the screen; and the screen display area on the right side of the vertical symmetry axis of the screen of the electronic device 300 can be defined as the right area of ​​the screen. Figure 6b As shown, the screen display area on the left side of the vertical symmetry axis 603 of the screen of the electronic device 300 is the left screen area 620 of the screen of the electronic device 300; the screen display area on the right side of the vertical symmetry axis 603 of the screen of the electronic device 300 is the right screen area 630 of the electronic device 300. If the electronic device 300 determines that the touch position of the user operating the object window is located at Figure 6b If the touch position of the object window is within the left area 620 of the screen shown in FIG. 1 , it can be determined that the user operation is to switch the display mode of the object window to the split screen mode; if the electronic device 300 determines that the touch position of the object window operated by the user is located at Figure 6b In the right area 630 of the screen shown, it can be determined that the user operation is an operation to switch the display mode of the object window to the small window mode.

[0177] It is understandable that in other embodiments, the situation where the touch position of the user operating the object window is located in the left area 620 of the screen can also be determined as the operation of switching the display mode of the object window to the small window mode; and the situation where the touch position of the user operating the object window is located in the right area 630 of the screen can be determined as the operation of switching the display mode of the object window to the split screen mode, and no limitation is made here. Among them, the electronic device 300 determines the situation where the touch position is located in the left area of ​​the screen or the right area of ​​the screen as the operation of switching the display mode of the object window to the split screen mode or the small window mode, which should correspond to the hot zone mask and / or hot zone icon corresponding to the preset hot zone displayed in the above step 503.

[0178] In other embodiments, the electronic device 300 may also determine whether the object window is located in the left area or the right area of ​​the screen based on the touch position coordinate data of the object window operated by the user and the relative position relationship between the object window operated by the user and the touch position, and then determine whether to continue to execute the following step 506 or execute the following step 510, without limitation here.

[0179] 506: Displaying a guide interface for switching to the split-screen mode window.

[0180] For example, in the above step 505, if the electronic device 300 determines that the touch position corresponding to the user's operation object window is located in the left area of ​​the screen of the electronic device 300, the electronic device 300 can display a guide interface for switching to the split-screen mode window. Figure 3g As shown, when the user operates the object window (i.e. Figure 3g When the application window 310 shown in FIG. 1 is moved to the left area of ​​the screen of the electronic device 300 and the height h of the user's touch position is ≥ 1 / 2 of the height H of the screen of the electronic device 300, the display size of the split screen hot zone 330 can be enlarged to the above Figure 3g The display size of the split-screen hot zone icon 331 can also be increased to the above size. Figure 3g The size shown in the figure, the display size of the application window 310 operated by the user can be reduced to the above Figure 3g The size shown is the above Figure 3g The interface shown can be used to guide the user to operate the object window to move into the split screen hot zone 330. For details, please refer to the above Figure 3g The above and related descriptions will not be repeated here.

[0181] It can be understood that when the user operates the object window to move into the split screen hot zone 330, the above Figure 3g The display size of the split screen hot zone 330 can also be further enlarged to the above Figure 3h The display size of the split-screen hot zone 330 is shown. When the touch position corresponding to the user's operation object window is located within the split-screen hot zone 330, the entire display area or part of the display area of ​​the object window is located within the split-screen hot zone 330. At this time, the user can also be guided to select the display position of the object window in the split-screen interface to be displayed by switching the display style of the split-screen hot zone icon 331, which is not repeated here.

[0182] 507: Determine whether the height of the touch position corresponding to the user operation reaches the second preset height. If the height of the touch position corresponding to the user operation object window reaches the second preset height, that is, the judgment result is yes, then execute the following step 508 to display the simulated split screen interface corresponding to the split screen mode; if the height of the touch position corresponding to the user operation object window does not reach the second preset height, that is, the judgment result is no, then continue to execute this step 507 to continue to determine whether the height of the touch position corresponding to the user operation object window reaches the second preset height.

[0183] For example, when the user continues to operate the object window to move into the preset hot zone, the electronic device 300 can further determine whether the height of the touch position corresponding to the user's operation object window reaches a second preset height, where the second preset height can be, for example, 3 / 4 of the height H of the screen of the electronic device 300, and the second preset height is greater than the first preset height. Figure 6c As shown, in the process of the user operation object window 610 moving upward to the preset hot zone, the height h of the touch position 601 gradually increases accordingly. When h≥3H / 4, the electronic device 300 can determine that the height of the touch position corresponding to the user operation object window has reached the second preset height; if h<3H / 4, the electronic device 300 determines that the height of the touch position corresponding to the user operation object window has not reached the second preset height.

[0184] In other embodiments, the electronic device 300 may also determine whether the real-time height of the object window has reached a second preset height by detecting the real-time position of the object window, wherein the real-time height of the object window may be, for example, the height of the geometric center point of the object window, or the height of other position points on the object window, etc., which is not limited here; in addition, in other embodiments, the second preset height may also be set to other values ​​greater than the above-mentioned first preset height, for example, it may be set to 3H / 5, or to 60mm, etc., which is not limited here.

[0185] It can be understood that the judgment process performed in this step 507 and the judgment process performed in the following step 511 are both for determining whether the electronic device 300 switches the display mode of the object window to the display mode corresponding to the preset hot zone. In other embodiments, the electronic device 300 can also determine whether to switch the display mode of the object window to the display mode corresponding to the preset hot zone by judging other threshold conditions when executing this step 507 or the following step 511. For example, the electronic device 300 can determine whether to switch the display mode of the object window to the display mode corresponding to the preset hot zone by judging whether the overlap between the display area of ​​the object window and the preset hot zone area on the screen meets another preset overlap threshold, or by judging whether the display size reduction ratio of the object window during the user's swipe-up operation reaches another ratio threshold different from the preset ratio threshold in the above steps 502 and 504. There is no limitation here.

[0186] It can be understood that the regional position of the preset hot zone on the screen of the electronic device 300 is usually fixed after setting, so the height of the preset hot zone and the position coordinate information of the preset hot zone on the screen are fixed. Therefore, the second height threshold referenced in the judgment process of this step 507 can be reasonably set based on the height of the preset hot zone, and in the judgment process of the above step 505, the judgment conditions corresponding to the left side of the screen and the right side of the screen can also be reasonably set based on the position coordinate information of the preset hot zone on the screen, where the judgment conditions corresponding to the left side of the screen and the right side of the screen can be, for example, a preset coordinate data range, etc., which is not limited here. As an example, after reasonably setting the second height threshold and the judgment conditions corresponding to the left side and the right side of the screen based on the height and position coordinate information of the preset hot zone, when it is detected that the height of the touch position of the operation of dragging the object window reaches the second height threshold, and it is determined in the above step 505 that the touch position is located on the left side of the screen, it can be determined that the object window has been dragged into the preset hot zone, for example, the preset hot zone can be a split-screen hot zone; and when it is detected that the height of the touch position of the operation of dragging the object window reaches the second height threshold, and it is determined in the above step 505 that the touch position is located on the right side of the screen, it can be determined that the object window has been dragged into the preset hot zone, for example, the preset hot zone can be a small window hot zone.

[0187] In addition, it can be understood that the process involved in this step 507 to determine whether to drag the object window into the preset hot zone based on the preset height judgment condition and whether the touch position is located on the left side or the right side of the screen, does not constitute a specific limitation on "the object window has been dragged into the preset hot zone". In other embodiments, other preset conditions can also be used to determine whether the object window has been dragged into the preset hot zone.

[0188] 508: Displaying a simulated split-screen interface with a split-screen mode window effect.

[0189] For example, in the above step 507, when the electronic device 300 determines that the height of the touch position corresponding to the user operation object window has reached the second preset height, for example, when the height h of the touch position 601 corresponding to the user operation object window is ≥ 3H / 4, the electronic device 300 can display a simulated split-screen interface, which can refer to the above Figure 3i In the simulated split-screen interface 350 shown, the left window 351 can be highlighted, for example, through a dark mode interface to indicate that the left window 351 is the window selected by the user for displaying the object (ie, Figure 3i The object window may also be located within the display range of the left window 351. For details, please refer to the above Figure 3i The above and related descriptions will not be repeated here.

[0190] 509: It is detected that the user releases the object window in the split-screen hot zone, and the split-screen mode window is displayed.

[0191] For example, in the simulated split screen interface displayed by the electronic device 300, for example, Figure 3i In the simulated split screen interface 350 shown in FIG. 350 , if the electronic device 300 detects that the user releases the object window in the left window 351 of the simulated split screen interface 350, the electronic device 300 can display the object window through the split screen mode window, that is, complete the process of switching the display mode of the object window to the split screen mode. In other embodiments, the electronic device 300 can also detect that the user slides up the object window in the above Figure 3h When releasing the hand in the split-screen hot zone 330 to release the object window, the object window is displayed through the split-screen mode window, completing the process of switching the display mode of the object window to the split-screen mode, which is not limited here.

[0192] At this point, the user completes switching the object window to the split-screen mode window through one continuous upward swipe operation, and the user operation is simple and quick.

[0193] For example, the split-screen mode window displayed by the electronic device 300 can refer to the above Figure 3j to Figure 3l The following interface styles are shown, as well as the above Figure 3j to Figure 3l The relevant description will not be repeated here.

[0194] 510: Display a guide interface for switching to the small window mode window.

[0195] For example, in the above step 505, if the electronic device 300 determines that the touch position corresponding to the user's operation object window is located in the right area of ​​the screen of the electronic device 300, the electronic device 300 can display a guide interface for switching to the small window mode. Figure 3d As shown, when the user operates the object window (i.e. Figure 3d When the application window 310 shown in FIG. 1 is moved to the right area of ​​the screen of the electronic device 300 and the height h of the user's touch position is ≥ 1 / 2 of the height H of the screen of the electronic device 300, the display size of the small window hot zone 320 can be enlarged to the above Figure 3d The display size of the small window hot zone icon 321 can also be increased to the above size. Figure 3d The display size of the application window 310 operated by the user can be reduced to the above Figure 3d The size shown is the above Figure 3d The interface shown can be used to guide the user to operate the application window 310 to move into the small window hot zone 320. For details, please refer to the above Figure 3d The above and related descriptions will not be repeated here.

[0196] It can be understood that when the user operates the object window to move into the small window hot zone 320, the above Figure 3d The displayed small window hot zone 320 display size can also continue to increase to the above Figure 3e The display size of the small window hot zone 320 is shown. When the touch position corresponding to the user's operation of the object window is located in the small window hot zone 320, the entire display area or a part of the display area of ​​the object window is located within the small window hot zone 320. At this time, the display style of the small window hot zone icon 321 can be switched to prompt the user to release the object window at this position to switch the display mode of the object window to the small window mode. For details, please refer to the above Figure 3h The above and related descriptions will not be repeated here.

[0197] 511: Determine whether the height of the touch position corresponding to the user operation reaches the second preset height. If the height of the touch position corresponding to the user operation object window reaches the second preset height, that is, the judgment result is yes, then execute the following step 512 to continue to detect further user operations; if the height of the touch position corresponding to the user operation object window does not reach the second preset height, that is, the judgment result is no, then continue to execute this step 511 to continue to determine whether the height of the touch position corresponding to the user operation object window reaches the second preset height.

[0198] The specific process of the electronic device 300 determining whether the height of the touch position corresponding to the user's operation object window reaches the second preset height can refer to the relevant description in the above step 507, which will not be repeated here.

[0199] 512: Detecting that the user releases the object window in the small window hot zone, and displaying the small window mode window.

[0200] For example, in the above step 511, when the electronic device 300 determines that the height of the touch position corresponding to the user operation object window has reached a second preset height, for example, when the height of the touch position corresponding to the user operation object window is h≥3H / 4, the electronic device 300 may display the above Figure 3e As shown in the interface, if the electronic device 300 detects that the user is Figure 3e Release the hand in the small window hot zone 320 to release the object window (i.e. Figure 3e If the operation of the application window 310 shown in the figure is performed, the electronic device 300 can display the application window 310 through the small window mode window, that is, the process of switching the object window to the small window mode window is completed.

[0201] At this point, the user completes switching the object window to the small window mode window through one continuous upward swipe operation, and the user operation is simple and quick.

[0202] For example, the small window mode window displayed by the electronic device 300 can refer to the above Figure 3f The interface style shown, as well as the above Figure 3f The relevant description will not be repeated here.

[0203] In addition, it can be understood that the interface layout effects after the object windows displayed by different electronic devices 300 are switched to the small window mode window or switched to the split screen mode window may be different, and the interface layout effects after the application windows of different applications on the same electronic device 300 are switched to the small window mode window or switched to the split screen mode window may be different. Figure 5 The implementation process is shown, and several different types of electronic devices 300 are introduced below in conjunction with the accompanying drawings. The application windows of different applications are used as the object windows operated by the user to exemplarily introduce the switching effect achieved by the window switching solution of the present application.

[0204] Figures 7a to 7f According to an embodiment of the present application, a schematic diagram of an interface in which an electronic device 300 switches to a small window mode window or a split screen mode window to display a corresponding interface in response to a user operation is shown.

[0205] like Figure 7a As shown, the user operates the electronic device 300 through the above Figures 3a to 3e After the interface changes, you can display Figure 7a The small window mode interface 710 shown in the figure has a small window mode application window 711 displayed in the upper right corner of the small window mode interface 710. The small window mode interface 710 also includes a desktop window 712, that is, the above Figure 3f The desktop is displayed in the vacant window 340 shown in FIG. 7 ; wherein the small window mode application window 711 can be suspended and displayed above the desktop window 712. It can be understood that the user Figure 7a In the small window mode interface 710 shown, sliding operations can be performed in the small window mode application window 711 and the desktop window 712, such as sliding left and right to switch pages, etc.; for example, the small window mode application window 711 displays WeChat TM The user can slide up and down in the small window mode application window 711 to view information and slide left and right to switch WeChat. TM In the desktop window 712, the user can swipe left and right to switch pages, and the user can also click an application icon, such as Huawei TM The video icon 701 enables the electronic device 300 to run the video application, etc., so that the interface displayed by the desktop window 712 will switch to Huawei TM Video interface.

[0206] Understandably, Figure 7a On the small window mode interface 710 shown, the user can also drag the small window mode application window 711 to any position on the desktop window 712, or adjust the size of the small window mode application window 711, or click the full screen button on the small window mode application window 711 to make the electronic device 300 display the content in the small window mode application window 711 in full screen. In other embodiments, the user can also adjust the display position and display size of the small window mode application window 711 through other reasonable operation methods, which are not limited here.

[0207] like Figure 7b As shown, for example, the electronic device 300 is an electronic device, and the user operates the electronic device 300 through the above Figure 3a to Figure 3c ,as well as Figure 3g to Figure 3i After the interface changes, you can display Figure 7b The split screen preparation interface 720 shown in the figure, wherein the left edge of the split screen preparation interface 720 displays the split screen mode application window 721, and the split screen preparation interface 720 also includes a desktop window 722, that is, the above Figure 3j The pending window 362 shown shows a situation where the desktop is displayed; wherein the split-screen mode application window 721 can be displayed floating above the desktop window 722. In other embodiments, the relative positions of the split-screen mode application window 721 and the desktop window 722 can also be in other forms, which are not limited here.

[0208] like Figure 7b As shown, the display size of the split-screen mode application window 721 on the left edge of the split-screen preparation interface 720 is small, so that the split-screen mode application window 721 can interfere with the display of the desktop window 722 to a small extent. If the user wants to operate the content displayed in the split-screen mode application window 721, such as WeChat TM The interface of the application can be dragged to slide the right edge of the split-screen mode application window 721 to the right (refer to Figure 7b ⑦), or refer to the above Figure 3j The operation of dragging the control bar 363 to slide to the right increases the display size of the split-screen mode application window 721. At this time, the electronic device 300 can display Figure 7c In some embodiments, the user can also drag the right edge of the split-screen mode application window 721 to the right edge of the split-screen preparation interface 720 or the right edge of the desktop window 722 to make the electronic device 300 display WeChat in full screen. TM The application interface is not restricted here.

[0209] like Figure 7cAs shown, the content in the split-screen mode application window 721 can be displayed in the left window 731 of the split-screen preparation interface 730 displayed by the electronic device 300, and the desktop can be displayed in the right window 732 of the split-screen preparation interface 730.

[0210] In other embodiments, the split screen preparation interface 730 displayed by the electronic device 300 may also be Figure 7d The interface styles shown are not limited here. Figure 7c The difference is, Figure 7d The desktop displayed in the right window 732 of the split-screen preparation interface 730 shown can automatically arrange the positions of the application icons from top to bottom according to the first letters of the names of the installed applications. Above the area 733 where the application icons are displayed in the right window 732, a search box 734 can also be displayed. If there are many applications installed on the electronic device 300, the user can enter the name or keyword of the application they want to open in the search box 734 to quickly find the application icon and click to run the application. This will not be repeated here. In other embodiments, the desktop layout style displayed in the window displaying the desktop in the split-screen preparation interface displayed by the electronic device 300 can also be other styles, such as Figure 7e The desktop layout style displayed in the right window 732 is not limited here.

[0211] Understandably, Figure 7b On the split screen preparation interface 720 shown, the user can slide in the split screen mode application window 721 and the desktop window 722, or Figure 7c On the split-screen preparation interface 730 shown, the user can perform sliding operations in the left window 731 and the right window 732 respectively, such as sliding left and right to switch pages.

[0212] For example, in Figure 7b In the desktop window 722 shown, the user can slide left and right to switch pages, or click an application icon, such as Huawei TM The video icon 701 enables the electronic device 300 to run the video application, etc., so that the electronic device 300 can display the final split screen interface, for example, referring to the above Figure 3m The split screen interface 390 shown is not limited here.

[0213] In addition, in the above Figure 7b On the split-screen preparation interface 720 shown, the user can also drag the right edge of the split-screen mode application window 721 to slide to the left to make the electronic device 300 display the desktop in full screen; in addition, when the user displays the desktop in the electronic device 300 Figure 7bWhen the split screen preparation interface 720 is displayed, the screen of the electronic device 300 is folded up, and the electronic device 300 can exit the split screen preparation interface 720 and display the content in the split screen mode application window 721 in full screen. Figure 7f WeChat shown in full screen TM The interface of the application.

[0214] Figures 8a to 8d According to an embodiment of the present application, a schematic diagram of an interface of another electronic device 300 is shown in which a corresponding interface is displayed in a split-screen mode window in response to a user operation.

[0215] Figure 8a The interface shown is the same as above Figure 7b The only difference between the interfaces shown is that the aspect ratio of the screen of the electronic device 300 displaying the split-screen preparation interface is different, which will not be elaborated here.

[0216] Figure 8b The interface shown is the same as above Figure 7c The only difference between the interfaces shown is that the aspect ratio of the screen of the electronic device 300 displaying the split-screen preparation interface is different, which will not be elaborated here.

[0217] Figure 8c The interface shown is the same as above Figure 7d The only difference between the interfaces shown is that the aspect ratio of the screen of the electronic device 300 displaying the split-screen preparation interface is different, which will not be elaborated here.

[0218] Figure 8d The interface shown is the same as above Figure 7e The only difference between the interfaces shown is that the aspect ratio of the screen of the electronic device 300 displaying the split-screen preparation interface is different, which will not be elaborated here.

[0219] Figure 9a to Figure 9b According to an embodiment of the present application, a schematic diagram of an interface of another electronic device 300 is shown in which a corresponding interface is displayed in a split-screen mode window in response to a user operation.

[0220] Figure 9a The interface shown is the same as above Figure 7b The only difference between the interfaces shown is that the aspect ratio of the screen of the electronic device 300 displaying the split-screen preparation interface is different, resulting in a different display position of the split-screen mode application window, which will not be elaborated here.

[0221] Figure 9b The interface shown is the same as above Figure 7e The only difference between the interfaces shown is that the aspect ratio of the screen of the electronic device 300 displaying the split-screen preparation interface is different, resulting in a different display position of the split-screen mode application window, which will not be elaborated here.

[0222] In conjunction with the accompanying drawings, the following is an exemplary introduction to the process described in the above step 501, in which the user long presses the application icon on the desktop of the electronic device 300, or long presses the document, video, task card, link, attachment and other content on the interface displayed by the electronic device 300, swipes up, etc., to quickly switch to the split-screen mode window or the small window mode window to display the corresponding content.

[0223] Figures 10a to 10d According to an embodiment of the present application, a schematic interface diagram corresponding to the process of a user long pressing an application icon on the desktop of the electronic device 300 and swiping up to quickly switch to a split-screen mode window or a small window mode window to display the corresponding application interface is shown.

[0224] like Fig.10a As shown, the desktop 010 of the electronic device 300 may include application pictures. Optionally, the desktop 010 may also include folders and / or feature capability (FA) cards 011, etc. The folder 1011 may provide some functions that facilitate the user to manage applications or run applications. For example, the electronic device 300 may store and display multiple application icons 012 that the user has recently used frequently through the folder 1011 so that the user can quickly click to run the corresponding application, etc. The electronic device 300 may also display real-time detection data in a certain application through the FA card 1012, for example, display Huawei TM There is no restriction on the number of steps during exercise, etc.

[0225] exist Fig.10a On the desktop 010 shown, the user can long press the FA card 1013 (refer to Fig.10a Operation ⑧) or long press the application icon 012 (reference Fig.10a The operation shown in (9) makes the FA card 1013 or the application icon 012 transform into a FA card or application icon that can be moved with the hand, refer to Fig.10b The FA card 1013 shown, at this time, the FA card 1013 can be displayed in an enlarged manner.

[0226] like Fig.10b As shown, when the user presses and holds the FA card 1013 and slides upward (i.e., slides upward), when the electronic device 300 detects that the user's finger slides into the split-screen hot zone or the small window hot zone, the electronic device 300 can display the split-screen hot zone icon 020 in the upper left corner of the screen and the small window hot zone icon 030 in the upper right corner of the screen. When the user drags the FA card 1013 to the split-screen hot zone below the split-screen hot zone icon 020 and releases it, the electronic device 300 can run the application corresponding to the FA card 1013 and open the window selected by the user in the split-screen mode window (e.g., Fig.10cIt can be understood that when the user drags the FA card 1013 to the split-screen hot zone below the split-screen hot zone icon 020 and releases the card, the user may release the card when the entire coverage area of ​​the FA card 1013 (including the border of the card) is located in the split-screen hot zone below the split-screen hot zone icon 020, or when 75% of the coverage area of ​​the FA card 1013 is located in the split-screen hot zone below the split-screen hot zone icon 020, that is, when the size of the overlapping area between the coverage area of ​​the FA card 1013 and the split-screen hot zone reaches a preset size threshold, or when the user detects that the touch position of the FA card 1013 dragged by the user is located in the split-screen hot zone below the split-screen hot zone icon 020, etc., and no limitation is made here.

[0227] like Fig.10c As shown, in response to a one-step sliding operation of the user operating the FA card 1013 to switch to the split-screen mode window, the electronic device 300 can display a split-screen preparation interface 040, and a split-screen mode window 041 is displayed on the left side of the split-screen preparation interface 040, that is, the window selected by the user to display the content corresponding to the FA card 1013; the desktop 010 can continue to be displayed on the split-screen preparation interface 040, and the split-screen mode window 041 can be displayed on top of the desktop 010. When the user long presses another card in the FA card 011, or the user long presses an application icon in the application icons 012, repeats the upward sliding operation and drags the selected card or application icon to the split-screen hot zone below the split-screen hot zone icon and releases it, the electronic device 300 then displays the application window corresponding to the FA card 1013 and the two split-screen mode windows formed between the application window corresponding to the other card or application icon selected by the user. The display style of the two split-screen windows can refer to the above Figure 3i The above and related descriptions will not be repeated here.

[0228] For example Fig.10b As shown, when the user drags the FA card 1013 to the small window hot zone below the small window hot zone icon 030 and releases it, the electronic device 300 can run the application corresponding to the FA card 1013 and display it through the small window mode window, refer to Fig.10d As shown, the electronic device 300 displays the application window corresponding to the FA card 1013 through the small window mode window 050. At this time, the desktop 010 can continue to be displayed on the screen of the electronic device 300, wherein the small window mode window 050 can be displayed floating above the desktop 010.

[0229] It is understood that in other embodiments, when the electronic device 300 detects the user's long press operation of the application icon 012, it can also first convert the application icon operated by the user into a FA card that can be moved with the hand, and then continue to respond to the user's upward sliding operation to display the above Figures 10b to 10dThe display interface change process shown is not limited here.

[0230] Figures 11a to 11d According to an embodiment of the present application, a schematic interface diagram corresponding to the process of a user long pressing the video task window on the interface displayed by the electronic device 300 and swiping up to quickly switch to a split-screen mode window or a small window mode window to display the corresponding video content is shown.

[0231] like Fig.11a As shown, the electronic device 300 displays a video application interface 111, and a recommended video task window 112 can be displayed on the video application interface 111. The video task window 112 can display an image of a corresponding video, and an introduction to the corresponding video can also be displayed below the video task window 112, etc., without limitation here.

[0232] like Fig.11b As shown, when the user long presses the video task window 112 (refer to Fig.11b During the operation (10) shown in the figure, the video task window 112 can be converted into a floating window 112' that moves with the hand, and is displayed above the video application interface 111 in a floating manner, and the image of the video task window 112 displayed through the floating window 112' can also be enlarged and displayed accordingly; at this time, the split-screen hot zone icon 113 and the small-window hot zone icon 114 can be displayed above the screen of the electronic device 300, for example, the split-screen hot zone icon 113 can be displayed in the upper left corner of the screen of the electronic device 300, and the small-window hot zone icon 114 can be displayed in the upper right corner of the screen of the electronic device 300, and there is no limitation here.

[0233] Continue to refer Fig.11b When the user slides up the floating window 112' to the split screen hot zone below the split screen hot zone icon 113 and releases the finger, the electronic device 300 can display Fig.11c The split-screen preparation interface 115 is shown.

[0234] like Fig.11c As shown, a split-screen mode window 116 is displayed on the left side of the split-screen preparation interface 115 displayed by the electronic device 300. The split-screen mode window 116 displays the video playback interface corresponding to the above-mentioned video task window 112. The video application interface 111 can continue to be displayed on the split-screen preparation interface 115. At this time, the split-screen mode window 116 can be displayed floating above the video application interface 111. When the user long presses another video task window on the video application interface 111, repeats the above-mentioned operation of sliding to the split-screen hot zone below the split-screen hot zone icon 113 and releasing the video task window, the electronic device 300 can display two split-screen windows to play the videos corresponding to the two selected video task windows respectively. The display style of the two split-screen windows can refer to the above-mentioned Figure 3i The above and related descriptions will not be repeated here.

[0235] For example Fig.11b As shown, when the user slides up to move the floating window 112' to the small window hot zone below the small window hot zone icon 114 and releases the hand, the electronic device 300 can display the video playback interface corresponding to the video task window 112 through the small window mode window. Fig.11d As shown, the electronic device 300 can display the video playback interface corresponding to the video task window 112 through the small window mode window 117. At this time, the video application interface 111 can continue to be displayed on the screen of the electronic device 300, wherein the small window mode window 117 can be suspended and displayed above the video application interface 111.

[0236] Figures 12a to 12d According to an embodiment of the present application, a schematic diagram of the interface corresponding to the process in which a user long presses a document on the interface displayed by the electronic device 300 and slides up to quickly switch to a split-screen mode window or a small window mode window to display the document content is shown.

[0237] like Fig.12a As shown, the electronic device 300 displays a document application interface 122, on which a plurality of documents 123 are displayed, wherein the type of the document 123 may be a presentation document format (Power Point, PPT), a document format (Document, DOC), or a portable document format (Portable Document Format, PDF), etc., without limitation herein.

[0238] like Figure 12b As shown, when the user long presses the document 123, the electronic device 300 can display a floating window 124 corresponding to the document 123, and the floating window 124 can move with the hand. The name of the document 123 and part of the document content can be displayed in the floating window 124, and there is no limitation here; at this time, the split-screen hot zone icon 125 and the small window hot zone icon 126 can be displayed on the top of the screen of the electronic device 300, for example, the split-screen hot zone icon 125 can be displayed in the upper left corner of the screen of the electronic device 300, and the small window hot zone icon 126 can be displayed in the upper right corner of the screen of the electronic device 300, and there is no limitation here.

[0239] Continue as Figure 12b As shown, when the user slides up to move the floating window 124 to the split-screen hot zone below the split-screen hot zone icon 125 and releases the finger, the electronic device 300 can display the split-screen interface 127 shown in 12c.

[0240] like Fig.12cAs shown, the left window of the split screen interface 127 displayed by the electronic device 300 displays the content of the document 123, and the right window of the split screen interface 127 displays the document application interface 122. Fig.12c If another document is clicked on in the right window of the split-screen interface 127, the right window of the split-screen interface 127 can display the content of the other document, which is not limited here.

[0241] For example Figure 12b As shown, when the user slides up the floating window 124 to move it to the small window hot zone below the small window hot zone icon 126 and releases the hand, the electronic device 300 can display the content of the document 123 through the small window mode window. Fig.12d As shown, the electronic device 300 now displays the content of the document 123 through the small window mode window 128. At this time, the document application interface 122 can continue to be displayed on the screen of the electronic device 300, wherein the small window mode window 128 can be displayed floating above the document application interface 122.

[0242] Refer to the above Figures 11a to 11d ,or Figures 12a to 12d It can be understood that in other embodiments, the user can also long press the access link or the attachment on the interface displayed by the electronic device 300 to trigger the electronic device 300 to display the split-screen hot zone icon and the small window hot zone icon. The user then follows the guidance of the icons displayed by the electronic device 300 to complete the process of switching the access link or the attachment to the split-screen mode window or the small window mode window through a one-step swipe up operation, which will not be repeated here.

[0243] It is understandable that when the electronic device 300 displays the multitasking interface, the user can also long press the task card on the multitasking interface and slide up to move the task card to the split-screen hot zone or the small window hot zone, completing the process of switching the corresponding content in the task card to the split-screen mode window or the small window mode window for display. Among them, the task card on the multitasking interface displayed by the electronic device 300 can be a single-screen task card displaying one window or a split-screen task card displaying two or more windows, which is not limited here.

[0244] Figures 13a to 13d According to an embodiment of the present application, a schematic interface diagram corresponding to the process of a user swiping up on a task card on a multi-tasking interface displayed on an electronic device 300 to quickly switch to a split-screen mode window or a small window mode window to display the corresponding content of the corresponding task card is shown.

[0245] like Fig.13aAs shown, when the user long presses the single-screen task card 132 and slides up in the multitasking interface 131 displayed by the electronic device 300, the split-screen hot zone icon 133 can be displayed in the upper left corner of the screen of the electronic device 300, and the small window hot zone icon 134 can be displayed in the upper right corner of the screen. When the user drags the single-screen task card 132 to the split-screen hot zone indicated by the split-screen hot zone icon 133 and releases it, the electronic device 300 can display the above Fig.10c The split-screen preparation interface 040 shown in FIG. 10A can be specifically referred to as shown in FIG. 10C and the related description, which will not be repeated here.

[0246] Continue as Fig.13a As shown, if the user drags the single-screen task card 132 to slide to the corresponding small window hot zone below the small window hot zone icon 134 and then releases it, the electronic device 300 can display the above Fig.10d The small window mode window 050 shown in the figure can be displayed floating above the desktop 010. For details, please refer to the above 10d and related descriptions, which will not be repeated here.

[0247] like Fig.13b As shown, in the multitasking interface 131 displayed by the electronic device 300, when the user long presses the split-screen task card 135 to slide up, the split-screen hot zone icon 133 can still be displayed in the upper left corner of the screen of the electronic device 300, and the small window hot zone icon 134 can be displayed in the upper right corner of the screen. When the user drags the single-screen task card 135 to the split-screen hot zone corresponding to the position of the split-screen hot zone icon 133 and releases it, the electronic device 300 can display Fig.13c The interface shown.

[0248] like Fig.13c As shown, a three-part screen effect window 136 can be displayed in the upper left corner of the screen of the electronic device 300, and the left side of the three-part screen effect window 136 can display two split-screen windows in the split-screen task card 135. At this time, the two split-screen windows in the split-screen task card 135 can be distributed up and down, and the right side of the three-part screen effect window 136 is used to display another application window that the user is about to select, etc. It can be understood that in other embodiments, the three-part screen effect window 136 can also be displayed as other forms of window distribution styles, which are not limited here.

[0249] For example Fig.13b As shown, when the user drags the single-screen task card 135 to the corresponding small window hot zone below the small window hot zone icon 134 and releases it, the electronic device 300 can display Fig.13d The small window mode split screen window 137 is shown.

[0250] like Fig.13dAs shown, in the small window mode split screen window 137 displayed in the upper right corner of the electronic device 300 screen, the window distribution of the two split screen windows in the split screen task card 135 can remain unchanged, and the two split screen windows in the split screen task card 135 are proportionally reduced to be displayed in the small window mode split screen window 137. In addition, it can be understood that the reference Fig.13d As shown, the small window mode split screen window 137 can be displayed floating above the desktop of the electronic device 300 or the interface of other applications, for example.

[0251] It is understood that in other embodiments, if the user Fig.13b On the multitasking interface 131 shown, long press a split-screen window in the split-screen task card 135 to slide up. For example, if the user long presses the right window in the split-screen task card 135 to slide up and moves to the split-screen hot zone indicated by the split-screen hot zone icon 133 and releases the hand, the electronic device 300 can display Fig.14 The interface shown.

[0252] like Fig.14 As shown, the upper left corner of the screen of the electronic device 300 displays the two-split screen effect window 143. For example, when the user moves the right window in the split screen task card 135 to the split screen hot zone indicated by the split screen hot zone icon 133 and releases the hand, the user chooses to display it in the left split screen window. Fig.14 The left window of the two-split screen effect window 143 shown in the figure may correspond to the content of the right window of the split screen task card 135 operated by the user. It can be understood that in other embodiments, Fig.14 The right window in the two-split-screen effect window 143 shown can also display the content in any window in the split-screen task card 135 operated by the user, and there is no limitation here.

[0253] It can be understood that in other embodiments, the user can swipe up from the bottom of the electronic device 300 on the split-screen interface displayed on the electronic device 300, so that the electronic device 300 implements the window switching method described in the above steps 501 to 512, so that the two-split screen window displayed on the electronic device 300 is switched to a three-split screen window, the three-split screen window is switched to a four-split screen window, etc., or the electronic device 300 displays a two-split screen window or a three-split screen window in a small window mode, etc., and there is no limitation here.

[0254] The window layout style of the three-part screen window displayed by the electronic device 300 can refer to Fig.15a or Fig.15b As shown, in other embodiments, the window layout style of the three-split screen window or the multi-split screen window displayed by the electronic device 300 may also be other reasonable layout styles, which are not limited here.

[0255] It can be understood that on the electronic device 300 that implements the window switching method in the embodiment of the present application, the user can quickly switch the window display mode through a one-step sliding operation, so that the window / interface currently displayed on the electronic device 300 or the window / interface selected by the user can be quickly switched to a split-screen mode window or a small window mode window for display. The operation is simple and convenient, and the user experience is good.

[0256] Another second embodiment is used below to introduce the specific process of implementing the window switching method of the present application by the electronic device 300 when the split-screen hot zone and the small window hot zone of the electronic device 300 are set on the left edge and the right edge of the screen.

[0257] Embodiment 2

[0258] As an example, on the electronic device 300 of the embodiment of the present application, the split screen hot zone and / or the small window hot zone can also be set at the left edge and / or the right edge of the screen. During operation, the user needs to drag the object window to the preset split screen hot zone or small window hot zone at the left edge or the right edge of the screen of the electronic device 300 to complete a one-step split screen operation process or a one-step small window operation process. Among them, dragging the object window to the preset split screen hot zone or small window hot zone at the left edge or the right edge of the screen of the electronic device 300 includes making the entire display area and the frame part of the object window all within the preset split screen hot zone or small window hot zone at the left edge or the right edge of the screen of the electronic device 300, or making the size of the overlapping area between the display area of ​​the object window and the preset split screen hot zone or small window hot zone at the left edge or the right edge of the screen of the electronic device 300 greater than the preset size threshold, or detecting that the touch position of the operation of dragging the object window is within the preset split screen hot zone or small window hot zone at the left edge or the right edge of the screen of the electronic device 300, etc., and no limitation is made here.

[0259] The specific process of implementing the window switching method of the present application by the electronic device 300 is described in detail below in conjunction with the flow chart and related interface schematic diagrams.

[0260] Fig.16 Another flowchart of the window switching method of the present application is shown in FIG. 300 . It can be understood that: Fig.16 The execution subject of each step of the illustrated process is the electronic device 300, and the execution subject will not be repeatedly described in the following steps.

[0261] like Fig.16 As shown, the process includes the following steps:

[0262] 1601: Detecting a user operation for switching a window display mode, and identifying a target window for the operation. The specific implementation process of step 1601 is the same as step 501 in the above-mentioned embodiment 1, and will not be described in detail here.

[0263] 1602: Determine whether the reduction ratio of the object window is less than or equal to the preset ratio threshold. If the judgment result is yes, that is, the reduction ratio of the object window is ≤ the preset ratio threshold, then execute step 1603 to display the small window hot zone icon and the split screen hot zone icon on the screen; if the judgment result is no, that is, the reduction ratio of the object window is greater than the preset ratio threshold, then continue to execute the judgment process of this step 1602.

[0264] The specific implementation process of step 1602 is the same as step 502 in the above-mentioned embodiment 1, and will not be repeated here.

[0265] 1603: Displaying a hot zone mask and / or a hot zone icon corresponding to a preset hot zone.

[0266] The specific implementation process of step 1603 is the same as step 503 in the above-mentioned embodiment 1, and will not be repeated here.

[0267] Exemplarily, in the above step 1602, if the electronic device 300 determines that the reduction ratio of the object window is less than or equal to the preset ratio threshold, for example, when the electronic device 300 determines that the reduction ratio of the object window reaches 75%, the electronic device 300 can display the split-screen hot zone in a more eye-catching manner on the left edge of the screen, or display the small window hot zone in a more eye-catching manner on the right edge of the screen, or display the split-screen hot zone and the small window hot zone on the left and right edges of the screen respectively. Among them, the more eye-catching manner may, for example, display the position and size of the hot zone mask on the split-screen hot zone or the small window hot zone in a color different from the screen background color, or display the corresponding hot zone icon, etc., which are not limited here.

[0268] As an example, Figures 17a to 17d According to the embodiments of the present application, some interface schematic diagrams related to the window switching process are shown.

[0269] like Fig.17a As shown, the electronic device 300 displays the application window 1710 in full screen, and the user slides up the application window 1710 from the bottom of the screen of the electronic device 300 to move the application window 1710 upward. At this time, the application window 1710 is the object window of the user's sliding operation.

[0270] Continue to refer Fig.17b As shown, when the application window 1710 is reduced to Fig.17a When the size of the application window 1710 is within 75%, the right edge of the screen of the electronic device 300 may display a small window hotspot 1720. It can be understood that the small window hotspot 1720 is a hotspot mask corresponding to the preset small window hotspot on the screen of the electronic device 300, which will not be described in detail. Fig.17bAs shown, the small window hot zone 1720 displayed by the electronic device 300 at this time can be highlighted with a background color different from the background color of the interface 1730 of the electronic device 300 displaying multiple application task windows, so as to show the user the position and size of the small window hot zone 1720. In this way, the user continues to operate the application window 1710 to slide into the small window hot zone 1720, and the electronic device 300 can further display Figures 17c to 17e The related interface shown in the figure realizes the one-step small window operation process. Figures 17c to 17e The related interfaces shown will be described in the corresponding steps below.

[0271] It can be understood that in other embodiments, the above Fig.17b The location of the small window hot zone 1720 shown can also be used to display the split-screen hot zone (i.e., the hot zone mask corresponding to the preset split-screen hot zone on the screen) so that the user can implement a one-step split-screen operation process on the electronic device 300, without any limitation here.

[0272] 1604: Determine whether the user operation drags the object window to the preset hot zone indicated by the hot zone mask and / or the hot zone icon. If the determination result is yes, indicating that the user operation is an operation of switching the window display mode, then step 1605 is executed to display the window display mode switching guide interface corresponding to the preset hot zone; if the determination result is no, then step 1604 can be repeatedly executed to continue detecting the user operation.

[0273] Exemplarily, the electronic device 300 continues to detect user operations. If the user operation is to drag the object window to the preset hot zone indicated by the displayed hot zone mask and / or the hot zone icon, the electronic device 300 can determine the direction of the user's sliding operation based on the detected touch position coordinate information, for example, determine whether the user drags the object window to slide toward the hot zone mask displayed on the right edge. The electronic device 300 can further display the window display mode switching guide interface corresponding to the preset hot zone, that is, continue to execute the following step 1605.

[0274] As an example, the user in the above Fig.17b In the interface shown, when the application window 1710 is dragged and slid toward the position of the small window hot zone 1720 displayed on the screen of the electronic device 300, the electronic device 300 may further display the following Fig.17c The shown figure shows the guidance interface for switching to the small window mode window.

[0275] It can be understood that in other embodiments, a plurality of hot zones are preset on the screen of the electronic device 300, and the user can operate the object window to move to the position indicated by the hot zone mask or hot zone icon corresponding to any hot zone in the plurality of preset hot zones, so as to trigger the electronic device 300 to display the window display mode switching guide interface corresponding to the preset hot zone. No further details will be given here.

[0276] 1605: Display the window display mode switching guide interface corresponding to the preset hot zone.

[0277] Exemplarily, for example, if the preset hot zone on the screen of the electronic device 300 is a small window hot zone, when the electronic device 300 detects that the user drags the object window to the small window hot zone displayed on the screen, the electronic device 300 can display a guide interface for switching to the small window mode window. For example, in the guide interface displayed by the electronic device 300, other application task windows on the left side of the object window are moved to the left of the electronic device 300 screen, that is, the electronic device 300 does not display other application task windows on the left side of the object window. In addition, the size of the object window can be further reduced, for example, to within 35% of the initial size.

[0278] As an example, refer to Fig.17c In the guidance interface for switching to the small window mode window shown in FIG. 1 , when the user slides the application window 1710 to the right to enter the small window hot zone 1720, for example, the user presses and holds the touch position of the application window 1710 and moves it to the small window hot zone 1720 to confirm that the application window 1710 has moved to the small window hot zone 1720. At this time, the user lets go of the electronic device 300 and can display Fig.17d In the interface shown in FIG. 17 , another task window 1740 on the left side of the application window 1710 can be moved to the left and no longer displayed, and the application window 1710 can be further reduced, for example, reduced to Fig.17a The size of the application window 1710 is 35% of that shown. In this process, the display area of ​​the small window hot zone 1720 can also be further enlarged. Fig.17d On the interface shown, if the user further operates to release the application window 1710, the electronic device 300 can continue to execute the following step 1606 to display the application window 1710 switched to the small window mode window. Please refer to the corresponding steps and accompanying drawings for details, which will not be repeated here.

[0279] In other embodiments, the guidance interface displayed by the electronic device 300 may also guide the user's further operations through other interface forms, which is not limited here.

[0280] 1606: It is detected that the user releases the object window in the preset hot zone, and a small window mode window is displayed.

[0281] Exemplarily, when the electronic device 300 detects that the user releases the object window in the preset hot zone, it can display the interface after the object window switches to the window display mode corresponding to the preset hot zone, thereby completing the process of switching the object window to the mode window corresponding to the preset hot zone.

[0282] As an example, in the above Fig.17dIn the guidance interface for switching to the small window mode window shown in FIG. 1 , when the electronic device 300 detects that the user releases the application window 1710 in the small window hot zone 1720, the application window 1710 can be displayed through the small window mode window, that is, Fig.17e The small window mode interface shown.

[0283] like Fig.17e As shown, the screen of the electronic device 300 can display the desktop 1750 or the interface of other applications, and the application window 1710 is displayed in the upper right corner of the desktop 1750 in a small window mode.

[0284] It is understandable that the above Figures 17a to 17d During the interface change process shown in the figure, if the user takes his finger off the screen (i.e. lets go), he can reverse the operation to make the electronic device display the following information in succession: Fig.17d → Fig.17c → Fig.17b → Fig.17a The interface shown, that is, the user's sliding operation direction and Figures 17a to 17d The corresponding operation direction is opposite to the one that can cancel the operation of switching the window display mode. Figures 17a to 17d The interface change process shown is reversible.

[0285] It can be understood that, on the electronic device 300 implementing the window switching method in the embodiment of the present application, the user can quickly switch the window display mode through a one-step sliding operation, so that the window / interface currently displayed by the electronic device 300 or the window / interface selected by the user is quickly switched to a split-screen mode window or a small window mode window for display. At the same time, the position of the small window hot zone or the split-screen hot zone illustrated in the embodiment of the present application can facilitate the user to operate the electronic device with one hand, that is, the user can Figures 17a to 17e The electronic device 300 shown in the figure can switch the window display mode by sliding in one step with one hand, which is simple and convenient to operate and provides a good user experience.

[0286] Fig.18 According to an embodiment of the present application, a software structure block diagram of an electronic device 300 is shown.

[0287] The software system of the electronic device 300 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 300.

[0288] Fig.18 It is a software structure block diagram of the electronic device 300 according to an embodiment of the present application.

[0289] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.

[0290] The application layer can include a series of application packages.

[0291] like Fig.18 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

[0292] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0293] like Fig.18 As shown, the application framework layer may include a window manager, a task manager, a phone manager, a resource manager, a notification manager, a view system, and the like.

[0294] The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc. In an embodiment of the present application, the window manager can obtain the sliding event corresponding to the user's sliding operation gesture, as well as the position and size of the preset split-screen hot zone and / or small window hot zone, etc., to match the corresponding display task and display the corresponding interface, such as displaying the small window hot zone icon and split-screen task icon described in step 503 above, or displaying the guide interface for switching to the split-screen mode window described in step 506 above, etc., please refer to the relevant description in step 503 or step 506 above for details, which will not be repeated here.

[0295] The task manager is used to cooperate with the window manager to retrieve the task content corresponding to the user's sliding operation, such as the display task that needs to be controlled and executed by the window manager. The task manager retrieves the content of the corresponding display task and sends it to the window manager for execution, thereby realizing the process of the electronic device 300 displaying the corresponding interface.

[0296] Content providers are used to store and retrieve data and make it accessible to applications. The above data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0297] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0298] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0299] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0300] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0301] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0302] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0303] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0304] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0305] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0306] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0307] A 2D graphics engine is a drawing engine for 2D drawings.

[0308] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, touch driver, and sensor driver.

[0309] The following is an example of the workflow of the software and hardware of the electronic device 300, combined with the scenario of capturing a swipe-up operation to switch to a split-screen mode window.

[0310] When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into an original input event (including touch coordinates, timestamp of the touch operation, and other information). The original input event is stored in the kernel layer. The application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. For example, if the touch operation is a touch swipe operation and the object window corresponding to the swipe operation is a video application window, the video application calls the interface of the application framework layer to start the video application, and then starts the display driver by calling the kernel layer, and displays the video application window in the split-screen mode through the display screen 190.

[0311] based on Fig.18 The system structure shown in Fig.19 According to an embodiment of the present application, a schematic diagram of the interaction process between a user behavior and a system behavior of an electronic device 300 is shown.

[0312] like Fig.19 As shown, user behaviors include: the user performs specific operation gestures on the electronic device 300, such as the sliding operation from the bottom of the screen of the electronic device 300 upward (i.e., the sliding up operation) described in the above embodiment 1, etc.; and the user drags the object window and releases it within the split-screen hot zone or the small window hot zone, etc.

[0313] The system behavior of the electronic device 300 is performed in response to the user behavior. Fig.19 As shown, for example, the touch screen of the electronic device 300 can detect the characteristic gesture operation performed by the user and generate a corresponding touch operation event. The window manager of the electronic device 300 can obtain the event corresponding to the user behavior and obtain the hot zone position, size and other information on the touch screen to match the display task corresponding to the user's swipe up operation. For example, when the window manager determines that the event corresponding to the user behavior meets the conditions for triggering the display of the hot zone icon and / or the hot zone bottom plate, it can control the display of the hot zone icon, including the split-screen hot zone icon and / or the small window hot zone icon; or control the display of the hot zone bottom plate, such as the above Fig.17b The small window hot zone base plate is highlighted in the figure.

[0314] Continue as Fig.19As shown, for example, the touch screen of the electronic device 300 detects the operation of releasing the object window in the hot zone performed by the user and generates a corresponding touch operation event. The window manager of the electronic device 300 can obtain the event corresponding to the user behavior and obtain the hot zone position, size and other information on the touch screen, match the display task corresponding to the user's release operation, and notify the task manager of the matched display task; the task manager retrieves the corresponding display task content and sends it to the window manager, and the window manager controls the display of the small window mode window or the split screen mode window corresponding to the interface.

[0315] Understandably, Fig.19 The interaction process between the user behavior and the system of the electronic device 300 shown is only an example. In other embodiments, the process of the electronic device 300 performing a corresponding task in response to the user operation may be carried out through a process such as Fig.19 More or less than, or different from Fig.19 Another process is shown, which is not limited here.

[0316] References to "one embodiment" or "an embodiment" in the specification mean that the specific features, structures, or characteristics described in conjunction with the embodiment are included in at least one exemplary implementation or technology disclosed in the present application. The appearance of the phrase "in one embodiment" in various places in the specification does not necessarily all refer to the same embodiment.

[0317] The present application also discloses a device for performing the operations in the text. The device can be constructed specifically for the required purpose or it can include a general-purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program can be stored in a computer-readable medium, such as, but not limited to, any type of disk, including a floppy disk, an optical disk, a CD-ROM, a magneto-optical disk, a read-only memory (ROM), a random access memory (RAM), an EPROM, an EEPROM, a magnetic or optical card, an application-specific integrated circuit (ASIC) or any type of medium suitable for storing electronic instructions, and each can be coupled to a computer system bus. In addition, the computer mentioned in the specification may include a single processor or may be an architecture involving multiple processors for increased computing power.

[0318] Additionally, the language used in this specification has been primarily selected for readability and instructional purposes and may not have been selected to delineate or limit the disclosed subject matter.Accordingly, this disclosure is intended to illustrate but not to limit the scope of the concepts discussed herein.

Claims

1. A window switching method, applied to an electronic device, characterized in that: include: Displaying a first application window in full screen, wherein the first application window includes an interface of the first application; A first touch operation is detected, and a first interface is displayed, wherein the first touch operation includes: sliding upward from the bottom of the screen of the electronic device to drag the first application window upward; the first interface includes a first identifier, a second identifier, and a reduced first application window; After the first interface is displayed, in the case where a first drag operation is detected, the first application window is displayed in a first mode, the first drag operation includes an operation of dragging the first application window to a first response area corresponding to the first identifier, the first response area is located in the display area corresponding to the first interface; the first touch operation and the first drag operation are a continuous operation, and the touch point does not leave the screen of the electronic device during the execution of the first touch operation and the first drag operation; After the first interface is displayed, in the case where a second drag operation is detected, the first application window is displayed in a second mode, the second drag operation includes an operation of dragging the first application window to a second response area corresponding to the second identifier, the second response area being located within the display area corresponding to the first interface; the first touch operation and the second drag operation are a continuous operation, and the touch point does not leave the screen of the electronic device during the execution of the first touch operation and the second drag operation; The first mode and the second mode are different.

2. The method according to claim 1, characterized in that The operation of dragging the first application window to the first response area corresponding to the first identifier includes: Drag the touch position of the first application window to move into the first response area; or Drag the entire first application window into the first response area; or The first application window is dragged until the size of the overlapping area between the display area of ​​the first application window and the first response area is larger than a preset size threshold; The operation of dragging the first application window to the second response area corresponding to the second identifier includes: Drag the touch position of the first application window to move into the second response area; or Drag the entire first application window into the second response area; or The first application window is dragged to a point where the size of an overlapping area between a display area of ​​the first application window and a second response area is greater than a preset size threshold.

3. The method according to claim 1, characterized in that The first dragging operation further includes: dragging the first application window to the first response area and then leaving the touch point on the screen of the electronic device; The second dragging operation also includes: after dragging the first application window to the second response area, the touch point leaves the screen of the electronic device.

4. The method according to claim 1, characterized in that: The second response area does not overlap with the first response area.

5. The method according to claim 1, characterized in that After the electronic device displays the first interface, the method further includes: During the execution of the first drag operation, if the distance between the touch position of the first drag operation and the display position of the first marker gradually decreases, the size of the first marker gradually increases; or, During the execution of the first drag operation, if the touch position of the first drag operation gradually approaches the first response area, the size of the first mark gradually increases; or, During the execution of the second drag operation, if the distance between the touch position of the second drag operation and the display position of the second marker gradually decreases, the size of the second marker gradually increases; or, During the execution of the second drag operation, if the touch position of the second drag operation gradually approaches the second response area, the size of the second mark gradually increases.

6. The method according to claim 1, characterized in that The detecting the first touch operation and displaying the first interface includes: During the process of dragging the first application window upward by the first touch operation, when the height of the touch position of the first touch operation reaches a first preset height, the electronic device displays the first interface; or, During the process of dragging the first application window upward by the first touch operation, when the reduction ratio of the display size of the first application window reaches a first ratio threshold, the electronic device displays the first interface.

7. The method according to any one of claims 1 to 6, characterized in that The first logo is displayed in the upper left corner of the first interface, and the second logo is displayed in the upper right corner of the first interface; or, The first logo is displayed in the upper right corner of the first interface, and the second logo is displayed in the upper left corner of the first interface.

8. The method according to any one of claims 1 to 6, characterized in that The first identifier is a split-screen hot zone icon, and the second identifier is a small-window hot zone icon.

9. The method according to any one of claims 1 to 6, characterized in that The method further comprises: In response to the first drag operation, a second interface is displayed, the second interface includes a second window and a third window, the third window is a window of the first application window displayed in the first mode; wherein, The third window is displayed floating above the second window, the height of the third window is equal to the height of the second window, and the width of the third window is smaller than the width of the second window; or, The third window is displayed floating above the second window, the width of the third window is equal to the width of the second window, and the height of the third window is less than the height of the second window; or, The third window is displayed in a split screen with the second window, and the height of the third window is equal to the height of the second window or the width of the third window is equal to the width of the second window.

10. The method according to claim 9, characterized in that The third window portion is displayed on the display screen of the electronic device.

11. The method according to claim 10, characterized in that Before displaying the second interface, the method further includes: The third window is displayed entirely on the display screen of the electronic device; The third window is automatically moved so that the third window is partially displayed in the display screen.

12. The method according to claim 9, characterized in that The second window displays a desktop including at least one application icon or task card. After displaying the second interface, the method further includes: In response to an operation on an icon or a task card of a second application on the desktop, the second application is opened and a second application window is displayed, wherein the second application window displays an interface of the second application; The second application window and the third window are displayed in split screen; when the third window and the second application window are displayed in split screen, the third window is displayed entirely on the display screen.

13. The method according to claim 12, characterized in that: The second application window and the third window are displayed in a left-right split screen or in an up-down split screen.

14. The method according to any one of claims 1 to 6, characterized in that The method further comprises: In response to the second drag operation, a third interface is displayed, the third interface including a second window and a fourth window, the fourth window being a window of the first application window displayed in the second mode, wherein: The second window is displayed in full screen by the electronic device, the fourth window is suspended above the second window, the height and width of the fourth window are both smaller than the second window, and the fourth window is fully displayed on the display screen of the electronic device.

15. The method according to claim 14, characterized in that The second window displays a desktop including at least one application icon or a task card.

16. An electronic device, characterized in that: include: one or more processors; One or more memories; the one or more memories store one or more programs, and when the one or more programs are executed by the one or more processors, the electronic device executes the window switching method according to any one of claims 1 to 15.

17. A computer-readable storage medium, characterized in that: The storage medium stores instructions, which, when executed on a computer, enable the computer to execute the window switching method according to any one of claims 1 to 15.

Citation Information

Patent Citations

  • Application program managing method and device and mobile terminal

    CN108170333A