Application window display method and electronic equipment

By detecting sliding gestures in the application window of electronic devices, the rapid switching of application window status is solved, and the problems of low interaction efficiency and scattered gesture interaction methods in the prior art are solved, and the convenience and accuracy of user operations are improved.

CN119937849APending Publication Date: 2025-05-06HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411796888.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-04-28
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

The display state switching interaction efficiency applied in existing electronic devices is low, and the gesture interaction methods are scattered and separated, making it difficult for users to learn and remember.

Method used

By detecting the user's sliding gesture on the floating window state of the application window, the application window can be quickly switched from the floating window state to the full screen state, the minimized state or the closed state. The specific method includes responding to the sliding trajectory of different sliding operations, moving the application window along the sliding direction, and triggering a state switch under certain conditions.

Benefits of technology

It improves the convenience and interaction efficiency of user operations, reduces the probability of false touch, and has a large hot zone for sliding operation, which is convenient for user operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119937849A_ABST
    Figure CN119937849A_ABST
Patent Text Reader

Abstract

The invention discloses a display method of an application window and electronic equipment, relates to the technical field of electronics, and aims to realize quick switching among different display states of the application window and increase the operation convenience of a user. In the scheme, the electronic equipment displays the application window in a floating window state, the application window comprises a first control used for moving the application window, the electronic equipment can respond to a first sliding operation starting from the first control and move the application window along with a sliding track of the first sliding operation, the first sliding operation is first movement in a first direction, and the first movement is second movement in a second direction. The application window can be displayed in a full-screen state in response to the first lifting operation after the first movement; wherein before the application window is displayed in the full-screen state, the electronic device further responds to the first lifting operation after the first movement, the application window continues to be moved in the first direction, and the window size of the application window is gradually increased in the movement process till the application window is in the full-screen state.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The application number of the original application is 202210462965.7, and the original application date is April 28, 2022. The entire contents of the original application are incorporated into this application by reference. Technical Field

[0002] The embodiments of the present application relate to the field of electronic technology, and more particularly to a method for displaying an application window and an electronic device. Background Art

[0003] With the continuous development of electronic devices, various applications (APPs) can be installed in electronic devices to meet people's daily life and work needs, such as instant messaging applications, web browsing applications, music player applications, etc. And as the screens of electronic devices continue to increase, the display states that applications on electronic devices can support are gradually diversified, such as full screen state, floating window state, minimized state, etc., to provide users with richer information and bring users a better user experience.

[0004] However, these display states of the application are currently triggered by relatively scattered and separate gesture interactions, and these gesture interactions are often different on different types of electronic devices, resulting in low interaction efficiency and being difficult for users to learn and remember. Summary of the invention

[0005] The present application provides a method for displaying an application window and an electronic device, which can realize fast switching between different display states of the application window, thereby increasing the convenience of user operation.

[0006] In order to achieve the above objectives, this application adopts the following technical solutions:

[0007] In a first aspect, the present application provides a method for displaying an application window, which can be applied to an electronic device. The method for displaying the application window includes: displaying the application window in a floating window state, the application window including a first control for moving the application window; responding to a first sliding operation starting from the first control, moving the application window following the sliding track of the first sliding operation, wherein the first sliding operation is a first movement in a first direction; responding to a first lifting operation after the first movement, displaying the application window in a full-screen state; wherein, before displaying the application window in a full-screen state, the method further includes: responding to the first lifting operation after the first movement, continuing to move the application window along the first direction, wherein the window size of the application window gradually increases during the movement until the application window is in a full-screen state.

[0008] In the solution provided by the first aspect above, when the electronic device displays the application window in the floating window state, it can trigger the rapid switching of the application window from the floating window state to the full screen state by detecting the first sliding gesture of the user acting on the first control on the application window. In this way, the user can directly switch the application window from the floating window state to the full screen state by only applying a sliding operation on the application window in the floating window state, which is very convenient to operate. Since the hot zone corresponding to the sliding operation is relatively large, it is not easy to make a false touch, which greatly improves the interaction efficiency. And when the first sliding gesture is detected to end, the electronic device can move the application window along the sliding direction of the first sliding gesture. In this way, when the user's finger ends the sliding, that is, the finger leaves the screen, the application window can move in the direction of the user's intention, which reflects the inertial movement effect of the application window under the control of the user's operation, and improves the operational flexibility and skeuomorphic effect of the application window. At the same time, the user can also judge whether the electronic device is ready to identify the sliding direction of the sliding operation by observing whether the moving direction of the application window is the direction of his true intention. So that when the subsequent user observes that the application window does not move in the direction of his true intention, he can optimize his own sliding operation or optimize the electronic device's recognition method of the sliding direction.

[0009] In a possible implementation, the method for displaying an application window may further include: responding to a second sliding operation starting from a first control, moving the application window following the sliding track of the second sliding operation, wherein the second sliding operation is a second movement in a second direction; responding to a first lifting operation after the second movement, displaying the application window in a minimized state; wherein, before displaying the application window in a minimized state, the method further includes: responding to the first lifting operation after the second movement, continuing to move the application window along the second direction, wherein the window size of the application window gradually decreases during the movement until the application window is in a minimized state. In this way, the electronic device can trigger a quick switch between the application window from a floating window state to a minimized state by detecting a second sliding gesture of the user acting on the first control on the application window.

[0010] In a possible implementation, the display method of the application window may further include: responding to a third sliding operation starting from the first control, moving the application window following the sliding track of the third sliding operation, wherein the third sliding operation is a third movement in a third direction; responding to a first lifting operation after the third movement, closing the application window; wherein, before closing the application window, the method further includes: responding to the first lifting operation after the third movement, continuing to move the application window along the third direction, wherein the window size of the application window gradually decreases during the movement until the application window is closed. In this way, the electronic device can trigger a quick switch between the application window from the floating window state to the application closed state by detecting the third sliding gesture of the user acting on the first control on the application window.

[0011] In a possible implementation, the display method of the application window may further include: determining that the sliding direction of the first sliding operation is the first direction according to the sliding angle of the first sliding operation and the angle range corresponding to the preset sliding direction; or determining that the sliding direction of the second sliding operation is the second direction according to the sliding angle of the second sliding operation and the angle range corresponding to the preset sliding direction; or determining that the sliding direction of the third sliding operation is the third direction according to the sliding angle of the third sliding operation and the angle range corresponding to the preset sliding direction. In this way, by setting the angle range of each sliding direction, the accuracy of the electronic device in identifying the sliding direction can be improved, and the identified sliding direction is closer to the user's true intention.

[0012] In a possible implementation, before continuing to move the application window in the first direction, the method further includes: detecting that the sliding parameters of the first sliding operation meet the first target condition, wherein the sliding parameters include at least one of the sliding speed, sliding acceleration, sliding distance, and sliding time; before continuing to move the application window in the second direction, the method further includes: detecting that the sliding parameters of the second sliding operation meet the second target condition, wherein the sliding parameters include at least one of the sliding speed, sliding acceleration, sliding distance, and sliding time; before continuing to move the application window in the third direction, the method further includes: detecting that the sliding parameters of the third sliding operation meet the third target condition, wherein the sliding parameters include at least one of the sliding speed, sliding acceleration, sliding distance, and sliding time. In this way, the electronic device can determine whether the detected sliding operation can successfully trigger the display state switching of the application window by the target condition that the sliding parameters need to meet, thereby improving the accuracy of the electronic device in identifying the sliding operation and reducing the probability of false response of the electronic device.

[0013] In one possible implementation, the screen of the electronic device can be divided into at least two areas, each area is assigned a corresponding target condition, and detecting that the sliding parameters of the first sliding operation meet the first target condition includes: detecting that the sliding parameters of the first sliding operation meet the first target condition corresponding to the first area, wherein the first area is the area where the first sliding operation is located in at least two areas; detecting that the sliding parameters of the second sliding operation meet the second target condition includes: detecting that the sliding parameters of the second sliding operation meet the second target condition corresponding to the second area, wherein the second area is the area where the second sliding operation is located in at least two areas; detecting that the sliding parameters of the third sliding operation meet the third target condition includes: detecting that the sliding parameters of the third sliding operation meet the third target condition corresponding to the third area, wherein the third area is the area where the third sliding operation is located in at least two areas.

[0014] Since the sliding difficulty at different positions of the electronic device is different, this method sets different target conditions for different positions of the electronic device, so that sliding operations in different areas can use adapted target conditions to judge successful triggering, thereby ensuring that the triggering experience of each position of the electronic device is consistent, avoiding the situation where the triggering experience of different positions is inconsistent due to the use of the same target condition for successful triggering judgment, and improving the user operation experience.

[0015] In a possible implementation, the method may further include: determining a first area from at least two areas according to the contact point position of the first sliding operation; or determining a second area from at least two areas according to the contact point position of the second sliding operation; or determining a third area from at least two areas according to the contact point position of the third sliding operation. In this way, the electronic device can accurately and directly identify the screen area where the sliding operation is located through the contact point coordinates when the finger slides.

[0016] In a possible implementation, the method may further include: determining the area where the sliding operation is located from at least two areas according to the display position of the application window. Since when the user's finger touches the application window, the coordinates of the finger contact point must fall within the display range of the application window, the electronic device can also indirectly determine the screen area where the sliding operation is located according to the display position of the application window, without having to determine the operation area in real time when the user operates, thereby improving the response speed of the electronic device.

[0017] In a possible implementation, the method may further include: determining at least two areas into which the screen is divided, and target conditions corresponding to each area, according to the screen state of the electronic device. Since the distribution of areas where finger sliding is difficult in the screen of electronic devices in different screen states is also different, the method performs different screen partitions for different screen states of the electronic device, so that the correspondence between the area and the target condition can be adapted to the different screen states, ensuring that the triggering experience of each position in the screen of the electronic device in different screen states can remain consistent, thereby improving the user operation experience.

[0018] In a possible implementation, the screen state may include a horizontal screen state or a vertical screen state. In this way, the method can make the triggering experience of each position on the screen of an electronic device in a horizontal screen state and an electronic device in a vertical screen state consistent, thereby improving the user operation experience.

[0019] In a possible implementation, the electronic device may include a foldable screen, and the screen state may include a folded state or an unfolded state. In this way, the method can ensure that the triggering experience of each position on the screen of the electronic device in the folded state and the electronic device in the unfolded state are consistent, thereby improving the user operation experience.

[0020] In a possible implementation, the method may further include: in response to a second lifting operation after the first movement, displaying the application window in a floating window state at the position after the first movement; or in response to a second lifting operation after the second movement, displaying the application window in a floating window state at the position after the second movement; or in response to a second lifting operation after the third movement, displaying the application window in a floating window state at the position after the third movement. In this way, in the case of not a fast sliding operation, only the movement of the window position is realized.

[0021] In a possible implementation, the first lifting operation is used to indicate that the lifting operation detected after the sliding operation is completed occurs within a first time period, and the second lifting operation is used to indicate that the lifting operation detected after the sliding operation is completed occurs within a second time period, wherein the first time period is smaller than the second time period. Thus, it can be determined whether the sliding operation is a fast sliding or a drag sliding according to the speed of the lifting operation.

[0022] In a possible implementation, continuing to move the application window along the first direction includes: if the sliding track of the sliding operation does not point to the first direction, moving the application window along a first designated route, wherein the first designated route points to the first direction. In this way, when the application window cannot move in the direction intended by the user along the sliding track of the user's finger, the electronic device can set a designated route that can move in the direction intended by the user, so that the application window can move along the designated route, so that the user can observe the effect of the application window being adsorbed and moved in the direction intended by the user, thereby improving the operational flexibility and skeuomorphic effect of the application window.

[0023] In another possible implementation, continuing to move the application window along the first direction includes: if the sliding track of the sliding operation points to the first direction, moving the application window along the extension line of the sliding track. In this way, when the application window can move in the direction intended by the user along the sliding track of the user's finger, the electronic device can directly move the application window by inertia along the extension line of the sliding track, so that the user can observe the effect of the application window moving inertialy in the direction intended by the user, thereby improving the operational flexibility and skeuomorphic effect of the application window.

[0024] In one possible implementation, before continuing to move the application window along the third direction, the method further includes: displaying a close icon at the edge of the screen corresponding to the third direction; continuing to move the application window along the third direction includes: moving the application window along a second specified route, wherein the second specified route points to the close icon. In this way, when the user intends to switch the display state of the application window to the application closed state, the electronic device can display the close icon at the edge of the target screen. At the same time, when the application window cannot move toward the close icon along the sliding trajectory of the user's finger, the electronic device can set a specified route that can move toward the close icon, so that the application window can move along the specified route, so that the user can observe the effect of the application window being sucked toward the close icon, thereby improving the operational flexibility and skeuomorphic effect of the application window.

[0025] In a possible implementation, displaying the application window in a minimized state may include: displaying the application window in a mini floating window state; or displaying a floating icon of the application window, so that minimization in various styles can be achieved.

[0026] In a possible implementation, the method may also include: displaying an application window in a split-screen state, wherein a second application window is displayed in a first area, and a third application window is displayed in a second area, and the second application window includes a second control; in response to a sliding operation starting from the second control, moving the second application window following the sliding track of the sliding operation, wherein the sliding operation is a target movement in a target direction; in response to a first lifting operation after the above target movement, displaying the second application window in a second display state corresponding to the target direction. Before the mobile phone displays the second application window in the second display state, the mobile phone responds to the first lifting operation after the above target movement, continues to move the second application window along the above target direction, and displays the second application window in a transitional display state during the movement. In this way, the method can also achieve rapid switching of applications from a split-screen state to other display states.

[0027] In a possible implementation, the method may further include: displaying an application window in a multi-task window state, the application window including a third control for moving the application window; responding to a sliding operation starting from the third control, moving the application window following the sliding track of the sliding operation, wherein the sliding operation is a target movement in a target direction; responding to a first lifting operation after the target movement, displaying the application window in a second display state corresponding to the target direction. Before the mobile phone displays the application window in the second display state, the mobile phone responds to the first lifting operation after the target movement, continues to move the application window in the target direction, and displays the application window in a transitional display state during the movement. In this way, the method can also achieve rapid switching of the application from a multi-task window state to other display states.

[0028] In a second aspect, the present application provides an electronic device, including a display unit. The display unit is used to: display an application window in a floating window state, and the application window includes a first control for moving the application window; the display unit is also used to: respond to a first sliding operation starting from the first control, and move the application window following the sliding track of the first sliding operation, wherein the first sliding operation is a first movement in a first direction; respond to a first lifting operation after the first movement, and display the application window in a full-screen state; the display unit is also used to: respond to the first lifting operation after the first movement, and continue to move the application window along the first direction, wherein the window size of the application window gradually increases during the movement until the application window is in a full-screen state.

[0029] In a possible implementation, the display unit is further used to: respond to a second sliding operation starting from the first control, move the application window following the sliding track of the second sliding operation, wherein the second sliding operation is a second movement in the second direction; respond to a first lifting operation after the second movement, display the application window in a minimized state; respond to the first lifting operation after the second movement, continue to move the application window along the second direction, wherein the window size of the application window gradually decreases during the movement until the application window is in a minimized state. In this way, the electronic device can trigger a quick switch between the application window from the floating window state to the minimized state by detecting the second sliding gesture of the user acting on the first control on the application window.

[0030] In a possible implementation, the display unit is further used to: respond to a third sliding operation starting from the first control, move the application window following the sliding track of the third sliding operation, wherein the third sliding operation is a third movement in a third direction; respond to a first lifting operation after the third movement, close the displayed application window; respond to the first lifting operation after the third movement, continue to move the application window along the third direction, wherein the window size of the application window gradually decreases during the movement until the application window is closed. In this way, the electronic device can trigger a quick switch between the application window from the floating window state to the application closed state by detecting the third sliding gesture of the user acting on the first control on the application window.

[0031] In a possible implementation, the electronic device includes a processing unit, which is used to: determine that the sliding direction of the first sliding operation is the first direction according to the sliding angle of the first sliding operation and the angle range corresponding to the preset sliding direction; or determine that the sliding direction of the second sliding operation is the second direction according to the sliding angle of the second sliding operation and the angle range corresponding to the preset sliding direction; or determine that the sliding direction of the third sliding operation is the third direction according to the sliding angle of the third sliding operation and the angle range corresponding to the preset sliding direction. In this way, by setting the angle range of each sliding direction, the accuracy of the electronic device in identifying the sliding direction can be improved, and the identified sliding direction is also closer to the user's true intention.

[0032] In a possible implementation, the electronic device may further include a detection unit. The detection unit may be used to: detect that the sliding parameters of the first sliding operation meet the first target condition, wherein the sliding parameters include at least one of the sliding speed, sliding acceleration, sliding distance, and sliding time; the detection unit may also be used to: detect that the sliding parameters of the second sliding operation meet the second target condition, wherein the sliding parameters include at least one of the sliding speed, sliding acceleration, sliding distance, and sliding time; the detection unit may also be used to: detect that the sliding parameters of the third sliding operation meet the target condition, wherein the sliding parameters include at least one of the sliding speed, sliding acceleration, sliding distance, and sliding time. In this way, the electronic device can determine whether the detected sliding operation can successfully trigger the display state switch of the application window through the third target condition that the sliding parameters need to meet, thereby improving the accuracy of the electronic device in identifying the sliding operation while reducing the probability of false response of the electronic device.

[0033] In one possible implementation, the screen of the electronic device can be divided into at least two areas, each area is assigned a corresponding target condition, and the above-mentioned detection unit can be further used to: detect that the sliding parameters of the first sliding operation meet the first target condition corresponding to the first area, wherein the first area is the area where the first sliding operation is located in at least two areas; the above-mentioned detection unit can also be further used to: detect that the sliding parameters of the second sliding operation meet the second target condition corresponding to the second area, wherein the second area is the area where the second sliding operation is located in at least two areas; the above-mentioned detection unit can also be further used to: detect that the sliding parameters of the third sliding operation meet the third target condition corresponding to the third area, wherein the third area is the area where the third sliding operation is located in at least two areas.

[0034] Since the sliding difficulty at different positions of the electronic device is different, this method sets different target conditions for different positions of the electronic device, so that sliding operations in different areas can use adapted target conditions to judge successful triggering, thereby ensuring that the triggering experience of each position of the electronic device is consistent, avoiding the situation where the triggering experience of different positions is inconsistent due to the use of the same target condition for successful triggering judgment, and improving the user operation experience.

[0035] In a possible implementation, the electronic device may further include a positioning unit. The positioning unit may be used to: determine a first area from at least two areas according to the contact point position of the first sliding operation; or determine a second area from at least two areas according to the contact point position of the second sliding operation; or determine a third area from at least two areas according to the contact point position of the third sliding operation. In this way, the electronic device can accurately and directly identify the screen area where the sliding operation is located through the contact point coordinates when the finger slides.

[0036] In a possible implementation, the positioning unit may also be used to determine the area where the sliding operation is located from at least two areas according to the display position of the application window. Since when the user's finger touches the application window, the coordinates of the finger contact point must fall within the display range of the application window, the electronic device can also indirectly determine the screen area where the sliding operation is located according to the display position of the application window, without having to determine the operation area in real time when the user operates, thereby improving the response speed of the electronic device.

[0037] In a possible implementation, the electronic device may further include a determination unit. The determination unit may be used to determine at least two areas into which the screen is divided, and the target conditions corresponding to each area, according to the screen state of the electronic device. Since the distribution of areas where finger sliding is difficult in electronic devices in different screen states is also different, this method performs different screen partitions for different screen states of the electronic device, so that the correspondence between the area and the target condition can be adapted to different screen states, thereby ensuring that the trigger experience of each position in the screen of the electronic device in different screen states can remain consistent, thereby improving the user operation experience.

[0038] In a possible implementation, the screen state in the above-mentioned determination unit may include a horizontal screen state or a vertical screen state. In this way, the method can make the triggering experience of each position on the screen of an electronic device in a horizontal screen state and an electronic device in a vertical screen state consistent, thereby improving the user operation experience.

[0039] In a possible implementation, the electronic device may include a foldable screen, and the screen state in the above-mentioned determination unit may include a folded state or an unfolded state. In this way, the method can make the triggering experience of each position on the screen of the electronic device in the folded state and the electronic device in the unfolded state consistent, thereby improving the user operation experience.

[0040] In a possible implementation, the display unit may also be used to: in response to a second lifting operation after the first movement, display the application window in a floating window state at the position after the first movement; or in response to a second lifting operation after the second movement, display the application window in a floating window state at the position after the second movement; or in response to a second lifting operation after the third movement, display the application window in a floating window state at the position after the third movement. In this way, in the case of not a fast sliding operation, only the movement of the window position is realized.

[0041] In a possible implementation, the first lifting operation is used to indicate that the lifting operation detected after the sliding operation is completed occurs within a first time period, and the second lifting operation is used to indicate that the lifting operation detected after the sliding operation is completed occurs within a second time period, wherein the first time period is smaller than the second time period. Thus, it can be determined whether the sliding operation is a fast sliding or a drag sliding according to the speed of the lifting operation.

[0042] In a possible implementation, the display unit may be further used to: if the sliding track of the sliding operation does not point to the first direction, move the application window along a first specified route, wherein the first specified route points to the first direction. In this way, when the application window cannot move in the direction intended by the user along the sliding track of the user's finger, the electronic device may set a specified route that can move in the direction intended by the user, so that the application window can move along the specified route, so that the user can observe the effect of the application window being adsorbed and moved in the direction intended by the user, thereby improving the operational flexibility and skeuomorphic effect of the application window.

[0043] In another possible implementation, the display unit may be further used to: if the sliding track of the sliding operation points to the first direction, move the application window along the extension line of the sliding track. In this way, when the application window can move in the direction intended by the user along the sliding track of the user's finger, the electronic device can directly move the application window by inertia along the extension line of the sliding track, so that the user can observe the effect of the application window moving inertialy in the direction intended by the user, thereby improving the operational flexibility and skeuomorphic effect of the application window.

[0044] In a possible implementation, the display unit may also be used to: display a close icon at the edge of the screen corresponding to a third direction. The display unit may further be used to: move the application window along a second specified route, wherein the second specified route points to the close icon. In this way, when the user intends to switch the display state of the application window to the application closed state, the electronic device may display the close icon at the edge of the target screen. At the same time, when the application window cannot move toward the close icon along the sliding trajectory of the user's finger, the electronic device may set a specified route that can move toward the close icon, so that the application window can move along the specified route, so that the user can observe the effect of the application window being sucked toward the close icon, thereby improving the operational flexibility and skeuomorphic effect of the application window.

[0045] In a possible implementation, the display unit may also be used to: move the application window along a second specified route, wherein the second specified route points to the close icon. In this way, when the user intends to switch the display state of the application window to the application closed state, the electronic device may display the close icon at the edge of the target screen. At the same time, when the application window cannot move toward the close icon along the sliding trajectory of the user's finger, the electronic device may set a specified route that can move toward the close icon, so that the application window can move along the specified route, so that the user can observe the effect of the application window being sucked toward the close icon, thereby improving the operational flexibility and skeuomorphic effect of the application window.

[0046] In a possible implementation, the display unit may also be used to: display the application window in a mini floating window state; or display a floating icon of the application window, so that minimization in various styles can be achieved.

[0047] In a third aspect, the present application provides an electronic device, comprising one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the display method of the application window in any possible implementation of the first aspect.

[0048] In a fourth aspect, the present application provides a display device for an application window, the device being included in an electronic device, and the device having the function of implementing the electronic device behavior in any of the above-mentioned first aspect and the possible implementation methods of the first aspect. The function can be implemented by hardware, or by hardware executing corresponding software implementation. The hardware or software includes one or more modules or units corresponding to the above-mentioned functions.

[0049] In a fifth aspect, the present application provides a chip system, which is applied to an electronic device. The chip system includes one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected by a line. The interface circuit is used to receive a signal from a memory of the electronic device and send the signal to the processor, where the signal includes a computer instruction stored in the memory. When the processor executes the computer instruction, the electronic device executes the display method of the application window in any possible implementation of the first aspect above.

[0050] In a sixth aspect, the present application provides a computer storage medium, including computer instructions, which, when executed on an electronic device, enables the electronic device to execute a method for displaying an application window in any possible implementation of the first aspect.

[0051] In a seventh aspect, the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method for displaying an application window in any possible implementation of the first aspect.

[0052] It can be understood that the beneficial effects that can be achieved by the electronic device of the second aspect and any possible implementation thereof, the electronic device of the third aspect, the device of the fourth aspect, the chip system of the fifth aspect, the computer storage medium of the sixth aspect, and the computer program product of the seventh aspect provided above can be referred to the beneficial effects in the first aspect and any possible implementation thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 A schematic diagram of a folding screen provided in an embodiment of the present application;

[0054] Figure 2 A schematic diagram of another folding screen provided in an embodiment of the present application;

[0055] Figure 3 A schematic diagram of a non-folding screen provided in an embodiment of the present application;

[0056] Figure 4 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0057] Figure 5 A schematic diagram of an example of software architecture of an electronic device provided in an embodiment of the present application;

[0058] Figure 6 A schematic diagram of an example of a mobile phone displaying an application window provided in an embodiment of the present application;

[0059] Figure 7 An example of a mobile phone displaying an application window provided in an embodiment of the present application Figure 1 ;

[0060] Figure 8 An example of a mobile phone displaying an application window provided in an embodiment of the present application Figure 2 ;

[0061] Fig. 9 An example of a mobile phone displaying an application window provided in an embodiment of the present application Figure 3 ;

[0062] Fig.10 An example of a mobile phone displaying an application window provided in an embodiment of the present application Figure 4 ;

[0063] Fig.11 A method flow chart of a method for displaying an application window provided in an embodiment of the present application;

[0064] Fig.12 An example of a mobile phone displaying an application window provided in an embodiment of the present application Figure 5 ;

[0065] Fig.13 An example of a mobile phone displaying an application window provided in an embodiment of the present application Figure 6 ;

[0066] Fig.14 An example of a mobile phone displaying an application window provided in an embodiment of the present application Figure 7 ;

[0067] Fig.15 An example of a mobile phone displaying an application window provided in an embodiment of the present application Figure 8 ;

[0068] Fig.16 An example of a mobile phone displaying an application window provided in an embodiment of the present application Figure 9 ;

[0069] Fig.17 An example of a mobile phone displaying an application window provided in an embodiment of the present application Figure 10 ;

[0070] Fig.18 A schematic diagram of an example of a sliding direction provided in an embodiment of the present application;

[0071] Fig.19 A schematic diagram of another example of sliding direction provided in an embodiment of the present application;

[0072] Fig. 20 An example of a mobile phone displaying an application window provided in an embodiment of the present application Figure 10 one;

[0073] Fig.21A schematic diagram of another example of sliding direction provided in an embodiment of the present application;

[0074] Fig. 22 A schematic diagram of another example of sliding direction provided in an embodiment of the present application;

[0075] Fig.23 An example of a mobile phone displaying an application window provided in an embodiment of the present application Figure 10 two;

[0076] Fig.24 A method flow chart of another method for displaying an application window provided in an embodiment of the present application;

[0077] Fig.25 An example of a mobile phone displaying an application window provided in an embodiment of the present application Figure 10 three;

[0078] Fig.26 An example of a mobile phone displaying an application window provided in an embodiment of the present application Figure 10 Four;

[0079] Fig. 27 A method flow chart of another method for displaying an application window provided in an embodiment of the present application;

[0080] Fig.28 An example of a mobile phone displaying an application window provided in an embodiment of the present application Figure 10 five;

[0081] Fig.29 An example of a mobile phone displaying an application window provided in an embodiment of the present application Figure 10 six;

[0082] Fig.30 A schematic diagram of trigger settings for a display state provided in an embodiment of the present application;

[0083] Fig.31 An example of a mobile phone displaying an application window provided in an embodiment of the present application Figure 10 seven;

[0084] Fig.32 An example of a mobile phone displaying an application window provided in an embodiment of the present application Figure 10 eight;

[0085] Fig.33 An example of a mobile phone displaying an application window provided in an embodiment of the present application Figure 10 Nine;

[0086] Fig.34 An example of a mobile phone displaying an application window provided in an embodiment of the present application Figure 2 ten;

[0087] Fig.35 A method flow chart of another method for displaying an application window provided in an embodiment of the present application;

[0088] Fig.36 An example of a mobile phone displaying an application window provided in an embodiment of the present application Figure 2 eleven;

[0089] Fig.37 An example of a mobile phone displaying an application window provided in an embodiment of the present application Figure 2 twelve;

[0090] Fig.38 A schematic diagram of another trigger setting of a display state provided in an embodiment of the present application;

[0091] Fig.39 A schematic diagram of another trigger setting of a display state provided in an embodiment of the present application;

[0092] Fig.40 A method flow chart of another method for displaying an application window provided in an embodiment of the present application;

[0093] Fig.41 A schematic diagram of an example of dividing the screen area of ​​a mobile phone provided in an embodiment of the present application;

[0094] Fig.42 A schematic diagram of another example of dividing the mobile phone screen area provided in an embodiment of the present application;

[0095] Fig.43 An example of a mobile phone displaying an application window provided in an embodiment of the present application Figure 2 twelve;

[0096] Fig.44 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0097] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application. In the following, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present embodiment, unless otherwise specified, "multiple" means two or more.

[0098] The embodiment of the present application provides a method for displaying an application window, which can be applied to an electronic device. The electronic device can be a folding screen electronic device or a non-folding screen electronic device.

[0099] The foldable screen electronic device may refer to an electronic device having a foldable screen. The foldable screen may be folded to form at least two screens. For example, the foldable screen may be folded along a folding edge or a folding axis to form a first screen and a second screen. That is, the at least two screens include the first screen and the second screen.

[0100] The folding screens in the embodiments of the present application can be divided into two categories. One is a folding screen that folds outward (referred to as an outward-folding folding screen), and the other is a folding screen that folds inward (referred to as an inward-folding folding screen). Among them, take the folding screen that can be folded to form a first screen and a second screen as an example. After the outward-folding folding screen is folded, the first screen and the second screen are opposite to each other. After the inward-folding folding screen is folded, the first screen and the second screen are opposite to each other.

[0101] For example, see Figure 1 , which shows a schematic diagram of the product form of an electronic device 100 with an outward folding screen provided in an embodiment of the present application. Figure 1 (a) is a schematic diagram of the shape of the outward folding screen when it is fully unfolded. The outward folding screen can be folded along the folding edge according to Figure 1 Folding the directions 101a and 101b shown in (a) can form Figure 1 The A screen (i.e., the first screen) and the B screen (i.e., the second screen) shown in (b) of FIG. 1 can be folded along the folding edge according to Figure 1 The direction 102a and 102b shown in (b) are further folded to form Figure 1 The folded screen is shown in (c) of FIG. Figure 1 As shown in (c), after the folding screen of the electronic device 100 is completely folded, screen A and screen B face each other and are visible to the user.

[0102] It can be understood that for an electronic device with an outward folding screen, when the folding screen is in a folded state, the application window can be displayed on the first screen or the second screen; when the folding screen is in an unfolded state, the application window can be displayed on the first screen and the second screen. The description of the unfolded state and the folded state of the folding screen can refer to the description in the following embodiments, which will not be repeated here.

[0103] For another example, please refer to Figure 2 , which shows a schematic diagram of the product form of an electronic device 100 with an inward folding screen provided by an embodiment of the present application. Figure 2 (a) is a schematic diagram of the inward folding screen when it is fully unfolded. The inward folding screen can be folded along the folding edge according to Figure 2 The direction 201a and 201b shown in (a) are folded to form Figure 2 The A screen (i.e., the first screen) and the B screen (i.e., the second screen) shown in (b) of FIG. 1 can be folded along the folding edge according to Figure 2The direction 202a and 202b shown in (b) are further folded to form Figure 2 The folded screen is shown in (c) of FIG. Figure 2 As shown in (c), after the folding screen of the electronic device 100 is completely folded, screen A and screen B are opposite to each other and are invisible to the user. Figure 2 The black line 203 shown in (c) is a line on the contact surface between the A screen and the B screen.

[0104] It should be noted that a display screen may be provided on the back of the first screen or the second screen of the inward folding screen provided in the embodiment of the present application, which may be referred to as a third screen. Figure 2 As shown in (b) in FIG. 1 , a C screen (i.e., the third screen) can be set on the back of the A screen (i.e., the first screen). Figure 2 As shown in (c), after the inner folding screen is completely folded, the C screens are opposite to each other and visible to the user. It can be understood that for an electronic device with such an inner folding screen, when the folding screen is in a folded state, the application window can be displayed on the third screen; when the folding screen is in an unfolded state, the application window can be displayed on the first screen and the second screen.

[0105] Generally speaking, the angle α between the first screen and the second screen of the folding screen (including the inward-folding folding screen and the outward-folding folding screen) has a value range of [0°, 180°]. In an embodiment of the present application, if α∈[0°, P], the electronic device can determine that the folding screen is in a folded state; if α∈(P, 180°], the electronic device can determine that the folding screen is in an unfolded state. Alternatively, if α∈[0°, P), the electronic device can determine that the folding screen is in a folded state; if α∈[P, 180°], the electronic device can determine that the folding screen is in an unfolded state. Among them, P is a preset angle threshold. P can be determined based on the usage habits of a large number of users using folding screens; or, P can be set by the user in the electronic device.

[0106] In some embodiments, according to the usage habits of most users, when the angle α between the first screen and the second screen is greater than 90°, the user is more likely to use the first screen and the second screen as a whole (i.e., as a complete display screen). Therefore, the preset angle threshold P in the embodiment of the present application may be greater than 90°. The value range of the preset angle threshold P may be (90°, 180°). For example, the preset angle threshold P may be 100°, 120°, 135°, 140°, 145°, or 150°, etc.

[0107] It should be noted that the at least two screens formed after the folding screen (including the inward-folding folding screen and the outward-folding folding screen) in the embodiment of the present application is folded can be multiple independent screens, or a complete screen with an integrated structure, which is just folded into at least two parts.

[0108] For example, the folding screen may be a flexible folding screen. The flexible folding screen includes a folding edge made of a flexible material. Part or all of the flexible folding screen is made of a flexible material. The at least two screens formed after the flexible folding screen is folded are a complete screen of an integrated structure, but are folded to form at least two parts.

[0109] For another example, the folding screen may be a multi-screen folding screen. The multi-screen folding screen may include multiple (two or more) screens. The multiple screens are multiple separate display screens. The multiple screens may be connected in sequence through folding axes. Each screen may rotate around the folding axis connected thereto to achieve folding of the multi-screen folding screen.

[0110] in, Figure 1 and Figure 2 In the embodiment of the present application, the folding screen is described by taking the folding screen being a flexible folding screen as an example. In addition, in the subsequent embodiments of the present application, the folding screen is also described by taking the folding screen being a flexible folding screen as an example to describe the display method of the application window provided in the embodiment of the present application.

[0111] Among them, non-folding screen electronic devices may refer to electronic devices with non-folding screens. The non-folding screen may refer to a non-foldable display screen, which may be a flat screen or a curved screen.

[0112] In the embodiment of the present application, the non-folding screen electronic device may include one display screen, or may include N independent display screens, where N is a positive integer greater than 1. It is understood that for a non-folding screen electronic device with only one display screen, an application window may be displayed on the display screen. For a non-folding screen electronic device with N display screens, an application window may be displayed on at least one of the N display screens.

[0113] For example, see Figure 3 , which shows a schematic diagram of a product form of a non-folding screen electronic device 100 provided in an embodiment of the present application. Figure 3 As shown in FIG, the non-folding screen electronic device 100 includes only one A screen, which is a non-foldable flat screen. The non-folding screen electronic device 100 can display an application window on the A screen.

[0114] Exemplarily, the electronic device in the embodiments of the present application may be a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) / virtual reality (VR) device, and other devices including a display screen. The embodiments of the present application do not impose any special restrictions on the specific form of the electronic device.

[0115] Please refer to Figure 4 , is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of the present application. Figure 4 As shown, the electronic device 100 may include a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (USB) interface 430, a charging management module 440, a power management module 441, a battery 442, an antenna 1, an antenna 2, a mobile communication module 450, a wireless communication module 460, an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, an earphone interface 470D, a sensor module 480, a button 490, a motor 491, an indicator 492, a camera 493, a display screen 494, and a subscriber identification module (SIM) card interface 495, etc. Among them, the sensor module 480 may include a pressure sensor 480A, a gyroscope sensor 480B, an air pressure sensor 480C, a magnetic sensor 480D, an acceleration sensor 480E, a distance sensor 480F, a proximity light sensor 480G, a fingerprint sensor 480H, a temperature sensor 480J, a touch sensor 480K, an ambient light sensor 480L, a bone conduction sensor 480M, etc.

[0116] It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100. In other embodiments, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate 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.

[0117] The processor 410 may include one or more processing units, for example, the processor 410 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0118] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0119] The processor 410 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 410 is a cache memory. The memory may store instructions or data that the processor 410 has just used or cyclically used. If the processor 410 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 410, and thus improves the efficiency of the system.

[0120] In some embodiments, the processor 410 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) 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.

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

[0122] The charging management module 440 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 440 may receive charging input from a wired charger through the USB interface 430. In some wireless charging embodiments, the charging management module 440 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 440 is charging the battery 442, it may also power the electronic device through the power management module 441.

[0123] The power management module 441 is used to connect the battery 442, the charging management module 440 and the processor 410. The power management module 441 receives input from the battery 442 and / or the charging management module 440, and supplies power to the processor 410, the internal memory 421, the external memory, the display screen 494, the camera 493, and the wireless communication module 460. The power management module 441 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 441 can also be set in the processor 410. In other embodiments, the power management module 441 and the charging management module 440 can also be set in the same device.

[0124] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 450, the wireless communication module 460, the modem processor and the baseband processor.

[0125] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0126] The mobile communication module 450 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 450 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 450 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 450 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 450 can be set in the processor 410. In some embodiments, at least some of the functional modules of the mobile communication module 450 can be set in the same device as at least some of the modules of the processor 410.

[0127] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 470A, a receiver 470B, etc.), or displays an image or video through a display screen 494. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 410 and be set in the same device as the mobile communication module 450 or other functional modules.

[0128] The wireless communication module 460 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 460 can be one or more devices integrating at least one communication processing module. The wireless communication module 460 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 410. The wireless communication module 460 can also receive the signal to be sent from the processor 410, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0129] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 450, and the antenna 2 is coupled to the wireless communication module 460, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. GNSS may include the global positioning system (GPS), the global navigation satellite system (GLONASS), the Beidou navigation satellite system (BDS), the quasi-zenith satellite system (QZSS) and / or the satellite based augmentation system (SBAS).

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

[0131] The display screen 494 is used to display images, videos, etc. The display screen 494 is the above-mentioned outward folding screen. Alternatively, the display screen 494 may include the above-mentioned foldable first screen (for example, Figure 2 A screen shown in (b) in FIG. 1 ) and a second screen (eg, Figure 2 The inner folding screen of the B screen shown in (b) of FIG. 1 ), and the third screen (for example, Figure 2 494 is the non-folding screen (e.g., Figure 3 In some embodiments, the electronic device 100 may include 1 or N display screens 494, where N is a positive integer greater than 1. In the embodiment of the present application, the display screen 494 may be used to display an application window in a full screen state, an application window in a floating window state, or an application window in a floating ball state.

[0132] The display screen 494 includes a display panel. The display panel may 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), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc.

[0133] The electronic device 100 can realize the shooting function through ISP, camera 493, video codec, GPU, display screen 494 and application processor.

[0134] ISP is used to process the data fed back by camera 493. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 493.

[0135] The camera 493 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 493, where N is a positive integer greater than 1.

[0136] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0137] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0138] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

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

[0140] The internal memory 421 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 410 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 421. For example, in an embodiment of the present application, the processor 410 can display the corresponding display content on the display screen 494 in response to the user's sliding operation on the display screen 494 by executing the instructions stored in the internal memory 421. The internal memory 421 may include a storage program area and a storage data area. Among them, the storage program 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 storage data area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 421 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.

[0141] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 470, the speaker 470A, the receiver 470B, the microphone 470C, the headphone jack 470D, and the application processor.

[0142] The audio module 470 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 470 can also be used to encode and decode audio signals. In some embodiments, the audio module 470 can be set in the processor 410, or some functional modules of the audio module 470 are set in the processor 410. The speaker 470A, also known as the "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker 470A. The receiver 470B, also known as the "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or voice message, the voice can be answered by placing the receiver 470B close to the human ear. The microphone 470C, also known as the "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message or when the electronic device 100 needs to be triggered to perform certain functions through a voice assistant, the user can speak near the microphone 470C with the human mouth to input the sound signal into the microphone 470C. The electronic device 100 may be provided with at least one microphone 470C. In other embodiments, the electronic device 100 may be provided with two microphones 470C, which may not only collect sound signals but also realize noise reduction. In other embodiments, the electronic device 100 may be provided with three, four or more microphones 470C, which may collect sound signals, reduce noise, identify sound sources, realize directional recording functions, etc.

[0143] The earphone interface 470D is used to connect a wired earphone and can be a USB interface 430 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0144] The pressure sensor 480A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 480A can be set on the display screen 494. There are many types of pressure sensors 480A, 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 480A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 494, the electronic device 100 detects the touch operation intensity according to the pressure sensor 480A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 480A. 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 application window, an instruction to slide the window content is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the application window, an instruction to move the application window is executed.

[0145] In an embodiment of the present application, the pressure sensor 480A can be used to detect the user's operation on the application window in the floating window state, and can also be used to detect the user's operation on the application window in the split screen state, and can also be used to detect the user's operation on the application window in the multi-tasking window state, etc.

[0146] The gyroscope sensor 480B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., the x, y, and z axes) can be determined by the gyroscope sensor 480B. The gyroscope sensor 480B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 480B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse motion to achieve anti-shake. The gyroscope sensor 480B can also be used for navigation and somatosensory game scenes. In some embodiments, the display screen 494 of the electronic device 100 can be folded to form multiple screens. Each screen may include a gyroscope sensor 480B for measuring the orientation of the corresponding screen (i.e., the direction vector of the orientation). The electronic device 100 can determine the angle between adjacent screens based on the angle change of the orientation of each screen measured.

[0147] For example, combining the above Figure 1 , the display screen 494 of the electronic device 100 can be folded to form screen A and screen B, then the screen A and the screen B both include a gyroscope sensor 480B, which is respectively used to measure the orientation of screen A and screen B. The electronic device 100 can determine the angle between adjacent screens based on the measured angular change of the orientation of each screen.

[0148] In some embodiments, one or more other sensors may be used to measure the angle between adjacent screens. For example, an acceleration sensor may be provided in each screen of the folding screen. The electronic device 100 (such as the processor 410) may use an acceleration sensor to measure the motion acceleration of each screen when it is rotated; and then calculate the angle of rotation of one screen relative to another screen, that is, the angle between adjacent screens, based on the measured motion acceleration.

[0149] In other embodiments, the gyroscope sensor may be a virtual gyroscope sensor formed by the cooperation of other multiple sensors. The virtual gyroscope sensor may be used to calculate the angle between adjacent screens of the folding screen.

[0150] The acceleration sensor 480E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 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, pedometers, etc. In some embodiments, the display screen 494 of the electronic device 100 can be folded to form multiple screens. Each screen may include an acceleration sensor 480E for measuring the orientation of the corresponding screen (i.e., the direction vector of the orientation).

[0151] The distance sensor 480F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 480F to measure the distance to achieve fast focusing.

[0152] The fingerprint sensor 480H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

[0153] The temperature sensor 480J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 480J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 480J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 480J to reduce power consumption and implement thermal protection.

[0154] The touch sensor 480K is also called a "touch panel". The touch sensor 480K can be arranged on the display screen 494, and the touch sensor 480K and the display screen 494 form a touch screen, also called a "touch screen". The touch sensor 480K is used to detect touch operations (such as long press, swipe up, swipe left, single click, double click, etc.) 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 494. In other embodiments, the touch sensor 480K can also be arranged on the surface of the electronic device 100, which is different from the position of the display screen 494. In an embodiment of the present application, the touch sensor 480K can be used to detect the touch operation of the drag bar control acting on the top of the application window.

[0155] The key 490 includes a power key, a volume key, etc. The key 490 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.

[0156] Motor 491 can generate vibration prompts. Motor 491 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 494, motor 491 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization. In an embodiment of the present application, motor 491 can generate a vibration prompt when a sliding operation acting on the application window is detected.

[0157] Indicator 492 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0158] The SIM card interface 495 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 495 or pulling it out from the SIM card interface 495. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 495 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 495 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 495 can also be compatible with different types of SIM cards. The SIM card interface 495 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0159] The methods in the following embodiments can all be implemented in the electronic device 100 having the above hardware structure.

[0160] The software system of the electronic device 100 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 100.

[0161] Figure 5 1 is a software structure diagram of the electronic device 100 provided in an embodiment of the present application. The layered architecture can divide the software into several layers, each layer has a clear role 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, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer.

[0162] The application layer can include a series of application packages. Figure 5 As shown, the application package can be an application such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, short message and desktop launcher. For the convenience of description, the application is referred to as application below. The application on the electronic device can be a native application or a third-party application, which is not limited in the embodiments of the present application.

[0163] The application framework layer provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Figure 5As shown, the application framework layer may include a window manager service (VMS), an activity manager service (AMS), an input event management server (IMS), a view system, a resource manager, a notification manager, etc. Optionally, the application framework layer may also include a content provider, a phone manager, etc. (not shown in the drawings).

[0164] The window management server is used to manage window programs. The window management server can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0165] The activity manager service (AMS) is responsible for managing activities, starting, switching, and scheduling components in the system, and managing and scheduling applications.

[0166] The input manager service (IMS) can be used to translate and encapsulate the original input events to obtain input events containing more information and send them to the window management server, which stores the clickable area (such as controls) of each application, the location information of the focus window, etc. Therefore, the window management server can correctly distribute the input events to the specified controls or focus windows.

[0167] 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.

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

[0169] 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.

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

[0171] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).

[0172] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system. Among them, the core library contains two parts: one is the function that needs to be called by the Java language, and the other is the core library of Android. The application layer and the application framework layer run in the 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 object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.

[0173] The system library can include multiple functional modules. For example: surface manager, media library, 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc. The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications. 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. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc. The 2D graphics engine is a drawing engine for 2D drawing.

[0174] The kernel layer is the layer between hardware and software. The kernel layer may include display drivers, input / output device drivers (e.g., keyboard, touch screen, headset, speaker, microphone, etc.), camera drivers, audio drivers, and sensor drivers, etc.

[0175] Among them, when the user performs an input operation on the electronic device 100 (such as the user's finger touches the drag bar control at the top of the floating window and slides upward quickly), the kernel layer can generate a corresponding input event (such as a fast slide-up event of the floating window) according to the input operation, and report the event to the application framework layer. The activity management server AMS of the application framework layer sets the window state of the application (such as full-screen state) as well as the window position and size. The window management server WMS of the application framework layer draws the window according to the settings of AMS, and then sends the window data to the display driver of the kernel layer, and the display driver displays the corresponding application window on the display screen. As an example, when the electronic device 100 displays an application window in a floating window state, if a fast slide-up operation acting on the application window is detected, the electronic device 100 can display the application window in full screen state. For example, if Fig.23 As shown in (a) and (b) of FIG. 1 , when the mobile phone displays the application window of the video playback application in the floating window state, if a quick upward swipe operation on the application window is detected, the mobile phone displays the application window of the video playback application in the full screen state. As another example, when the electronic device 100 displays the application window in the floating window state, if a quick left swipe operation on the application window is detected, the electronic device 100 displays the application window in the floating ball state. For example, Fig.24 As shown in (a) and (b) in the figure, when the mobile phone displays the application window of the music player application in a floating window state, if a quick left swipe operation on the application window is detected, the mobile phone displays the application window of the music player application in a floating ball state.

[0176] The methods in the following embodiments can all be implemented in the electronic device 100 having the above software structure.

[0177] At present, as the screens of electronic devices continue to grow, floating windows are gradually being used in applications on electronic devices (such as mobile phones, tablets, and other touch-based interactive devices) due to their convenience and efficiency. It is not difficult to find that when users use applications on electronic devices, compared with previous applications that can only be displayed in full screen on the screen, the characteristic of floating windows is that applications can be "floated" in the form of windows on other applications or the main interface (i.e., desktop) of electronic devices, and the floating window can be dragged to any position on the screen.

[0178] In addition to the above-mentioned full screen and floating window display states, in some application scenarios, the application on the electronic device may also include display states such as minimized floating window (i.e., mini floating window) and minimized to floating ball to meet the diverse needs of users. It is understandable that the embodiments of the present application do not limit the display state types supported by the application on the electronic device, and the application on the electronic device may also include other display states, such as the display state of the application being closed, the display state of the application being split screen, the display state of entering the multi-task management interface, etc.

[0179] Usually, the triggering methods of the various display states of the above-mentioned applications (such as full screen, floating window, floating ball, closed, etc.) are often different on electronic devices of different device manufacturers. Although most of them are completed through gesture interaction, these interaction methods are relatively scattered and separated, and have not formed a set of interaction systems, which makes the interaction efficiency low and not easy for users to learn and remember.

[0180] In order to improve the above problems, in some solutions, the electronic device provides multiple buttons on the floating window of the application to trigger the three display states of the application: full screen, floating ball, and closed. Figure 6 The display mode shown shows a floating window 601 of the note application. Figure 6 As shown, a plurality of button controls are arranged at the top of the floating window 601, namely, a full screen button 602 for triggering the full screen display state of the sticky note application, a minimize button 603 for triggering the floating ball display state of the sticky note application, and a close button 604 for triggering the display state of closing the sticky note application. Thus, the user can trigger the conversion of the corresponding display state of the sticky note application by clicking these button controls on the floating window.

[0181] However, electronic devices use Figure 6 When the floating window of the sticky note application is displayed in the display mode shown, although the triggering operations of the three display states of the sticky note application, namely, the click gesture operations of the full screen button 602, the minimize button 603, and the close button 604 on the floating window 601, are concentrated on the floating window, the fragmentation and separation of the interaction methods are avoided. However, because the display area of ​​the floating window is relatively small, the hot areas corresponding to these button controls on the floating window are also relatively small, which is not convenient for users to operate, resulting in reduced user operation accuracy. Moreover, if the button controls are close to each other, it is easy to touch by mistake, affecting the user experience. Figure 6 As shown, Figure 6 The hot zones corresponding to the full screen button 602, minimize button 603 and close button 604 are relatively small, which is inconvenient for users to operate. In addition, the full screen button 602 and the minimize button 603 are relatively close, and when users click on these two buttons, it is easy to accidentally touch them, resulting in a poor user experience.

[0182] In order to improve the above problems, the embodiment of the present application provides a display method for application windows, whereby the user can complete the conversion of the application from a floating window to other different display states in one step by simply applying a sliding gesture on the floating window of the application, which not only avoids the fragmentation and separation of gesture interactions, but also makes the interaction more systematic and easier for users to learn and remember because the triggering gesture is simple and concentrated on the application window, greatly improving the interaction efficiency. At the same time, since the hot zone corresponding to the sliding operation (usually the entire screen) is relatively large, it is convenient for users to operate and is not prone to accidental touches, greatly improving the user's operation accuracy.

[0183] The following will take the above-mentioned electronic device as a mobile phone as an example to specifically explain the technical solution provided in the embodiment of the present application.

[0184] As an exemplary embodiment, Figure 7 (a) to (e) show that the mobile phone responds to the user's quick upward sliding operation on the application floating window, and changes the application from the floating window state display to the full screen state display.

[0185] Figure 7 (a) in FIG. 1 shows the floating window status display of the video playback application. Figure 7 As shown in (a) of FIG. 7 , a video playback application 701 is displayed in a "floating" window on a mobile phone desktop 702, and the video playback interface of the video playback application 701 covers part of the mobile phone desktop. The top of the floating window of the video playback application 701 may include a drag button 7011 for moving the window position.

[0186] Figure 7 (b) to (e) in the figure show that the user quickly slides up the drag button at the top of the floating window of the application, triggering the mobile phone to change the application from the floating window state to the full screen state. The user's quick slide up operation on the drag button may include three processes: finger pressing, finger sliding, and finger lifting.

[0187] like Figure 7 As shown in (b) of FIG. 7 , after the user presses the drag button 7011 at the top of the floating window of the video playback application 701 (pressing position 7012-a), the user does not lift the finger immediately, but continues to slide the finger from the drag button 7011 in a direction 7013. During the finger sliding process, the floating window can slide on the mobile phone screen following the sliding track of the finger. Figure 7 As shown in (b) to (d) in the figure, the mobile phone can follow the user's finger from Figure 7 From the position 7012-a shown in (b) to Figure 7 The position 7012-b shown in (c) of FIG. 1 and then Figure 7The sliding track of position 7012-c shown in (d) moves the floating window of the video playback application 701 on the screen.

[0188] Optionally, when the user's finger touches the drag button 7011 at the top of the floating window of the video playback application 701, the mobile phone can display the following Figure 7 The spherical touch prompt shown in (b) is used to prompt the user that the finger has successfully acted on the drag button 7011. Of course, the mobile phone may not display the touch prompt, and this embodiment of the application is not limited thereto.

[0189] like Figure 7 As shown in (b), when the user's finger starts to slide from the drag button 7011 to a direction 7013, the mobile phone can respond to the sliding event, detect the sliding angle of the user's finger (i.e., the angle of the direction 7013), and based on the sliding angle and the preset angle ranges corresponding to the four directions of up, down, left, and right, the mobile phone can recognize that the sliding direction of the user's finger is upward. In this embodiment, when the mobile phone detects that the sliding direction of the finger sliding operation is upward, it can recognize that the window display state corresponding to the upward slide is full screen state.

[0190] Further, after identifying that the window display state corresponding to the swipe up is in full screen state, whether the mobile phone executes the full screen state display of the video playback application 701 depends on whether the sliding parameters of the user's quick swipe up operation meet the preset successful triggering conditions.

[0191] like Figure 7 As shown in (b) to (d) in FIG. Figure 7 After the position 7012-a shown in (b) starts to slide along the direction 7013 for a distance, such as after Figure 7 The position 7012-b shown in (c) in FIG. 1 is continuously slid to Figure 7 After the user's finger is at position 7012-c shown in (d) in the figure, if the user's finger is lifted immediately, the mobile phone can respond to the lifting event and detect whether the sliding speed of the user's finger is greater than the preset speed threshold and whether the sliding distance is greater than the preset distance threshold, so as to determine whether the sliding parameters during the sliding of the user's finger meet the preset successful trigger conditions. When the detected sliding speed is greater than the preset speed threshold and the sliding distance is greater than the preset distance threshold, the mobile phone can determine that the sliding parameters during the sliding of the user's finger meet the successful trigger conditions, and the mobile phone can execute the full-screen state display identified above. Figure 7 As shown in (e) in FIG. 7 , the mobile phone displays the video playing application 701 in full screen, and the video playing interface of the video playing application 701 fills the entire mobile phone screen.

[0192] Optionally, the sliding parameter used by the mobile phone to determine whether the preset successful trigger condition is met may also be other sliding parameters such as sliding acceleration and sliding time, which is not limited in the embodiment of the present application.

[0193] As an example, the user's finger moves from Figure 7 After the position 7012-a shown in (b) starts to slide along the direction 7013 for a distance, such as via Figure 7 The position 7012-b shown in (c) in FIG. 1 is continuously slid to Figure 7 If the user's finger is at position 7012-c shown in (d) Figure 7 If the user pauses at position 7012-c shown in (d) for a preset time before lifting the finger, the mobile phone can determine that the sliding operation performed by the user on the screen this time is a drag operation, and the drag operation is only used to move the floating window of the video playback application 701 on the screen, rather than the fast swipe up operation used in this application to trigger the full-screen state switch. At this time, the mobile phone can respond to the drag operation and display the floating window of the video playback application 701 at the current position (such as Figure 7 (f) in the figure), and no longer returns Figure 7 The display is displayed at the display position shown in (a).

[0194] As another example, the user's finger moves from Figure 7 After the position 7012-a shown in (b) starts to slide in a direction 7013 for a certain distance, such as via Figure 7 The position 7012-b shown in (c) in FIG. 1 is continuously slid to Figure 7 After the user's finger is at position 7012-c shown in (d) in the figure, if the user lifts his finger immediately, the mobile phone can determine that the sliding operation performed by the user on the screen this time is a quick upward sliding operation. However, if the mobile phone responds to the lifting event and the sliding speed detected is not greater than the preset speed threshold or the sliding distance is not greater than the preset distance threshold (in this case, it may be a quick upward sliding caused by the user's accidental touch), the mobile phone can determine that the sliding parameters during the sliding of the user's finger do not meet the successful triggering conditions. At this time, the mobile phone does not execute the full-screen state display identified above, and directly returns the floating window of the video playback application 701 to the state shown in FIG. Figure 7 The display is displayed at the display position shown in (a).

[0195] After determining that the sliding parameters during the sliding of the user's finger meet the successful triggering conditions, before the mobile phone executes the above-identified full-screen state display, the mobile phone can display the intermediate transition state of the application from the floating window state to the full-screen state. Since the sliding direction of the user's finger identified by the mobile phone is an upward slide, in this embodiment, the mobile phone can move the floating window of the video playback application 701 to the upper screen edge, and display the intermediate transition state of the application from the floating window state to the full-screen state during the movement.

[0196] like Figure 7 As shown in (g) and (h) in Figure 7 The position 7012-a shown in (b) starts to slide along the direction 7013 to Figure 7 After the user's finger is lifted immediately after reaching position 7012-c shown in (d) in FIG. Figure 7 Starting from the position 7012-c shown in (d) in FIG. 7 , the floating window of the video playback application 701 is moved upward along the curved track 704 to the upper edge of the screen. Meanwhile, during the movement of the floating window, the intermediate transition state of the video playback application 701 from the floating window state to the full screen state is displayed. Figure 7 The size of the floating window of the video playback application 701 shown in (g) and (h) increases as the moving distance increases until it fills the entire screen, as shown in FIG. Figure 7 The full screen state shown in (e) is displayed.

[0197] In one example, a mobile phone Figure 7 Starting from the position 7012-c shown in (d) in FIG. 7 , when the floating window of the video playback application 701 is moved upward along the curved track 704 to a first distance, the display position and window size of the floating window after the movement can be as follows: Figure 7 As shown in the video playback application 701-a in (g), when the floating window of the video playback application 701 continues to move upward along the curved track 704 to a second distance (greater than the first distance), the display position and window size of the floating window after the movement can be as follows Figure 7 As shown in the video playback application 701-b in (h), the window size of the video playback application 701-b is larger than the window size of the video playback application 701-a.

[0198] Optionally, whether the mobile phone moves the floating window of the video playback application 701 upward along the curved track 704 to the upper edge of the screen depends on whether the sliding track of the user's finger can point to the upper edge of the screen. Figure 7 As shown in (d), the extension line 703 of the sliding track of the user's finger points to the right edge of the screen, indicating that when the floating window moves along the extension line 703 of the sliding track of the user's finger by inertia, the screen edge reached by the floating window is the right side of the screen, and it cannot reach the upper edge of the screen. At this time, the mobile phone can move the floating window of the video playback application 701 upward along the curved track 704 to the upper edge of the screen.

[0199] like Figure 8As shown in , the extension line 801 of the sliding track of the user's finger points to the upper edge of the screen, indicating that when the floating window moves along the extension line 801 of the sliding track of the user's finger by inertia, the floating window can reach the upper edge of the screen. At this time, the mobile phone can directly move the floating window of the video playback application upward along the extension line 801 of the sliding track (rather than the above-mentioned curved track) to the upper edge of the screen, and at the same time display the intermediate transition state of the video playback application from the floating window state to the full screen state, as shown in FIG. Figure 8 The size of the floating window of the video playback application shown in FIG. 1 increases as the moving distance increases until it fills the entire screen, as shown in FIG. 1 . Figure 7 The full screen state shown in (e) is displayed.

[0200] As another exemplary embodiment, Fig. 9 (a) to (c) show that the mobile phone responds to the user's quick right swipe operation on the application floating window, and changes the application from the floating window state display to the floating ball state display.

[0201] Fig. 9 (a) in FIG. 1 shows the floating window status display of the video playback application. Fig. 9 As shown in (a) of FIG. 1 , a video player application 901 is displayed as a window "floating" on the mobile phone desktop. The top of the floating window of the video player application 901 may include a drag button 9011 for moving the window position. Fig. 9 (a) to (c) in the figure show that the user quickly swipes right on the drag button at the top of the floating window of the application, triggering the mobile phone to change the application from the floating window state to the floating ball state. The user's quick right swipe operation on the drag button may include three processes: finger pressing, finger sliding, and finger lifting.

[0202] like Fig. 9 As shown in (a) of FIG. 1 , after the user performs a finger pressing operation (pressing position 9012-a) on the drag button 9011 at the top of the floating window of the video playback application 901, the user does not immediately lift the finger, but continues to slide the finger from the drag button 9011 in a direction 9013. During the finger sliding process, the floating window can slide on the finger screen following the sliding track of the finger. Fig. 9 As shown in (a) and (b) in the figure, the mobile phone can follow the user's finger from Fig. 9 The position 9012-a shown in (a) is Fig. 9 The sliding track of position 9012-b shown in (b) moves the floating window of the video playback application 901 on the screen.

[0203] like Fig. 9As shown in (a), when the user's finger starts to slide from the drag button 9011 to a direction 9013, the mobile phone can respond to the sliding event, detect the sliding angle of the user's finger (i.e., the angle of direction 9013), and based on the sliding angle and the preset angle ranges corresponding to the four directions of up, down, left, and right, the mobile phone can identify that the sliding direction of the user's finger is to the right. In this embodiment, when the mobile phone detects that the sliding direction of the finger sliding operation is to the right, it can be identified that the window display state corresponding to the right slide is a floating ball state. Optionally, the window display state corresponding to the right slide can also be other minimized states such as a mini floating window and a floating icon.

[0204] Further, after identifying that the window display state corresponding to the right swipe is the floating ball state, whether the mobile phone executes the floating ball state display of the video playback application 901 depends on whether the sliding parameters of the user's quick right swipe operation meet the preset successful trigger conditions.

[0205] like Fig. 9 As shown in (a) and (b) in the figure, the user's finger moves from Fig. 9 After the position 9012-a shown in (a) starts to slide along the direction 9013 for a distance, such as sliding to Fig. 9 After the user's finger is at position 9012-b shown in (b) in the figure, if the user's finger is lifted immediately, the mobile phone can respond to the lifting event and detect whether the sliding speed of the user's finger is greater than the preset speed threshold and whether the sliding distance is greater than the preset distance threshold, so as to determine whether the sliding parameters during the sliding of the user's finger meet the preset successful trigger conditions. When the detected sliding speed is greater than the preset speed threshold and the sliding distance is greater than the preset distance threshold, the mobile phone can determine that the sliding parameters during the sliding of the user's finger meet the preset successful trigger conditions, and the mobile phone can then execute the above-identified floating ball state display. Fig. 9 As shown in (c) in the figure, the mobile phone displays the video playing application in the state of a floating ball 902, that is, the video playing application is "floating" on the mobile phone desktop in the form of a smaller ball.

[0206] Optionally, the sliding parameter used by the mobile phone to determine whether the preset successful trigger condition is met may also be other sliding parameters such as sliding acceleration and sliding time, which is not limited in the embodiment of the present application.

[0207] As an example, the user's finger moves from Fig. 9 After the position 9012-a shown in (a) starts to slide along the direction 9013 for a distance, such as sliding to Fig. 9 After the user's finger is at position 9012-b shown in (b) Fig. 9If the user pauses at position 9012-b shown in (b) for a preset time before lifting the finger, the mobile phone can determine that the sliding operation performed by the user on the screen this time is a drag operation, and the drag operation is only used to move the floating window of the video playback application 901 on the screen, rather than the quick right swipe operation used in this application to trigger the floating ball state switch. At this time, the mobile phone can respond to the drag operation and display the floating window of the video playback application 901 at the current position (such as Fig. 9 (d) in the figure), and no longer returns Fig. 9 The display is displayed at the display position shown in (a).

[0208] As another example, the user's finger moves from Fig. 9 After the position 9012-a shown in (a) starts to slide along the direction 9013 for a distance, such as sliding to Fig. 9 After the user's finger moves to position 9012-b shown in (b) in the figure, if the user lifts his finger immediately, the mobile phone can determine that the sliding operation performed by the user on the screen this time is a quick right sliding operation. However, if the mobile phone responds to the lifting event and the detected sliding speed is not greater than the preset speed threshold or the sliding distance is not greater than the preset distance threshold (in this case, it may be a quick right sliding caused by the user's accidental touch), the mobile phone can determine that the sliding parameters during the sliding of the user's finger do not meet the preset successful triggering conditions. At this time, the mobile phone does not execute the above-identified floating ball state display, and directly returns the floating window of the video playback application 901 to the state shown in FIG. Fig. 9 The display is displayed at the display position shown in (a).

[0209] After determining that the sliding parameters during the sliding of the user's finger meet the successful triggering conditions, before the mobile phone executes the above-identified floating ball state display, the mobile phone can display the intermediate transition state of the application from the floating window state to the floating ball state. Since the sliding direction of the user's finger identified by the mobile phone is sliding to the right, in this embodiment, the mobile phone can move the floating window of the video playback application 901 to the right edge of the screen, and display the intermediate transition state of the application from the floating window state to the floating ball state during the movement.

[0210] like Fig. 9 As shown in (e) and (f) in Fig. 9 After the position 9012-a shown in (a) starts to slide along the direction 9013 for a distance, such as sliding to Fig. 9 After the user's finger is lifted immediately after the position 9012-b shown in (b) in FIG. 1 , the mobile phone can be Fig. 9Starting from the position 9012-b shown in (b) of FIG. 1 , the floating window of the video playback application 901 is moved rightward along the extension line 903 of the sliding track of the user's finger to the right edge of the screen. At the same time, during the movement of the floating window, the video playback application 901 is displayed in an intermediate transition state from the floating window state to the floating ball state, as shown in FIG. Fig. 9 The size of the floating window of the video playback application 901 shown in (e) and (f) decreases as the moving distance increases until a floating ball is formed and adsorbed to the right edge of the screen, as shown in FIG. Fig. 9 The suspended ball state shown in (c) is displayed.

[0211] In one example, a mobile phone Fig. 9 Starting from the position 9012-b shown in (b) of FIG. 1 , when the floating window of the video playback application 901 is moved to the right along the extension line 903 of the finger sliding track to a third distance, the display position and window size of the floating window after the movement can be as follows: Fig. 9 As shown in the video player application 901-a in (e), when the floating window of the video player application 901 continues to move rightward along the extension line 903 of the finger sliding track to a fourth distance (greater than the third distance), the display position and window size of the floating window after the movement can be as follows Fig. 9 As shown in the video playback application 901-b in (f) of FIG. , the window size of the video playback application 901-b is smaller than the window size of the video playback application 901-a, and the window shape of the video playback application 901-b is closer to a sphere.

[0212] Similarly, the mobile phone can also respond to the user's quick left swipe operation on the application floating window to change the application from the floating window state to the floating ball state. Among them, the floating ball of the application can be correspondingly adsorbed to the left edge of the screen.

[0213] As yet another exemplary embodiment, Fig.10 (a) to (c) in the figure show that in response to a user's quick sliding operation on the application floating window, the mobile phone changes the application from the floating window state display to the application closed state display.

[0214] Fig.10 (a) in FIG. 1 shows the floating window status display of the video playback application. Fig.10 As shown in (a) in FIG. 1 , the video playback application 1001 is displayed "floating" on the mobile phone desktop in the form of a window, and the top of the floating window of the video playback application 1001 may include a drag button 1002 for moving the window position. Fig.10(a) to (c) in the figure show that the user performs a quick sliding operation on the drag button at the top of the floating window of the application, triggering the mobile phone to perform an operation of changing the display of the application from the floating window state to the application closed state. Among them, the user performs a quick sliding operation on the drag button, which may include three processes: finger pressing, finger sliding, and finger lifting.

[0215] like Fig.10 As shown in (a) of FIG. 1 , after the user performs a finger pressing operation (pressing position 1003-a) on the drag button 1002 at the top of the floating window of the video playback application 1001, the user does not immediately lift the finger, but continues to slide the finger from the drag button 1002 in a direction 1004. During the finger sliding process, the floating window can slide on the finger screen following the sliding track of the finger. Fig.10 As shown in (a) and (b) in the figure, the mobile phone can follow the user's finger from Fig.10 From the position 1003-a shown in (a) in FIG. Fig.10 The sliding track of position 1003-b shown in (b) moves the floating window of the video playback application 1001 on the screen.

[0216] like Fig.10 As shown in (a), when the user's finger starts to slide from the drag button 1002 to a direction 1004, the mobile phone can respond to the sliding event, detect the sliding angle of the user's finger (i.e., the angle of the direction 1004), and based on the sliding angle and the preset angle ranges corresponding to the four directions of up, down, left, and right, the mobile phone can identify that the sliding direction of the user's finger is downward. In this embodiment, when the mobile phone detects that the sliding direction of the finger sliding operation is downward, it can identify that the window display state corresponding to the downward slide is the application closed state.

[0217] Further, after identifying that the window display state corresponding to the swipe down is the application closed state, whether the mobile phone executes the application closed state display of the video playback application 1001 depends on whether the sliding parameters of the user's fast swipe down operation meet the preset successful trigger conditions.

[0218] like Fig.10 As shown in (a) and (b) in the figure, the user's finger moves from Fig.10 After the position 1003-a shown in (a) starts to slide along the direction 1004 for a distance, such as sliding to Fig.10After the user's finger is at position 1003-b shown in (b) in the figure, if the user's finger is lifted immediately, the mobile phone can respond to the lifting event and detect whether the sliding speed of the user's finger is greater than the preset speed threshold and whether the sliding distance is greater than the preset distance threshold, so as to determine whether the sliding parameters during the sliding of the user's finger meet the preset successful trigger conditions. When the detected sliding speed is greater than the preset speed threshold and the sliding distance is greater than the preset distance threshold, the mobile phone can determine that the sliding parameters during the sliding of the user's finger meet the preset successful trigger conditions, and at this time the mobile phone can execute the above-identified application closing status display. Fig.10 As shown in (c) in FIG. 8 , the mobile phone stops displaying or does not display the video playback application on the screen.

[0219] Optionally, the sliding parameter used by the mobile phone to determine whether the preset successful trigger condition is met may also be other sliding parameters such as sliding acceleration and sliding time, which is not limited in the embodiment of the present application.

[0220] As an example, the user's finger moves from Fig.10 After the position 1003-a shown in (a) starts to slide along the direction 1004 for a distance, such as sliding to Fig.10 After the user's finger is at position 1003-b shown in (b) Fig.10 If the user stops at position 1003-b shown in (b) for a preset time before lifting the finger, the mobile phone can determine that the sliding operation performed by the user on the screen is a drag operation, which is only used to move the floating window of the video playback application 1001 on the screen, rather than the fast sliding operation used in this application to trigger the application to close the state. At this time, the mobile phone can respond to the drag operation and display the floating window of the video playback application 1001 at the current position (such as Fig.10 (d) in the figure), and no longer returns Fig.10 The display is displayed at the display position shown in (a).

[0221] As another example, the user's finger moves from Fig.10 After the position 1003-a shown in (a) starts to slide along the direction 1004 for a distance, such as sliding to Fig.10 After the user's finger is at position 1003-b shown in (b) in the figure, if the user lifts his finger immediately, the mobile phone can determine that the sliding operation performed by the user on the screen this time is a quick sliding operation. However, if the mobile phone responds to the lifting event and the detected sliding speed is not greater than the preset speed threshold or the sliding distance is not greater than the preset distance threshold (in this case, it may be a quick sliding caused by an accidental touch by the user), the mobile phone can determine that the sliding parameters during the sliding of the user's finger do not meet the successful triggering conditions. At this time, the mobile phone does not execute the above-identified application closing status display, and directly returns the floating window of the video playback application 1001 to the state shown in FIG. Fig.10The display is displayed at the display position shown in (a).

[0222] After determining that the sliding parameters during the sliding of the user's finger meet the successful triggering conditions, before the mobile phone executes the above-identified application closing display, the mobile phone can display the intermediate transition state of the application from the floating window state to the application closing state. Since the sliding direction of the user's finger identified by the mobile phone is a downward slide, in this embodiment, the mobile phone can display the close icon at the lower edge of the screen, and move the floating window of the video playback application 1001 to the close icon, and display the intermediate transition state of the application from the floating window state to the application closing state during the movement, so as to reflect the effect of the application window being sucked toward the close icon. Optionally, when the mobile phone displays the close icon at the beginning, the close icon can be blurred, and the blurriness of the close icon can be reduced as the moving distance of the floating window increases, that is, the close icon displayed by the mobile phone can gradually focus to clarity as the floating window approaches.

[0223] like Fig.10 As shown in (e) and (f) in Fig.10 After the position 1003-a shown in (a) starts to slide along the direction 1004 for a distance, such as sliding to Fig.10 When the user's finger is lifted immediately after reaching the position 1003-b shown in (b) in FIG. 1 , the mobile phone can respond to the lifting event by displaying a trash can icon 1005 in the middle of the lower edge of the mobile phone screen, and can be opened from Fig.10 Starting from the position 1003-b shown in (b) of FIG. 1 , the floating window of the video playback application 1001 is moved downward along the curved track 1006 to the trash can icon 1005. At the same time, during the movement of the floating window, the video playback application 1001 is displayed in an intermediate transition state from the floating window state to the application closed state, as shown in FIG. Fig.10 The size of the floating window of the video playback application 1001 shown in (e) and (f) decreases as the moving distance increases until the entire floating window moves to the center of the trash can icon 1005, and the mobile phone screen no longer displays the application window.

[0224] In one example, a mobile phone Fig.10 Starting from the position 1003-b shown in (b) of FIG. 1003, when the floating window of the video playback application 1001 is moved downward along the curved track 1006 to a fifth distance, the display position and window size of the floating window after the movement can be as follows: Fig.10 As shown in the video playback application 1001-a in (e), when the floating window of the video playback application 1001 continues to move downward along the curved track 1006 to a sixth distance (greater than the fifth distance), the display position and window size of the floating window after the movement can be as follows Fig.10As shown in the video playback application 1001-b in (f) of FIG. 1 , the window size of the video playback application 1001-b is smaller than the window size of the video playback application 1001-a.

[0225] Optionally, whether the mobile phone moves the floating window of the video playback application 1001 downward along the curved track 1006 to the trash can icon 1005 depends on whether the user's finger sliding track can point to the trash can icon 1005. Fig.10 As shown in (b) and (e), the extension line 1007 of the sliding track of the user's finger points to the right edge of the screen, indicating that when the floating window moves along the extension line 1007 of the sliding track of the user's finger by inertia, the screen edge reached by the floating window is the right side of the screen, and it cannot reach the trash can icon 1005. At this time, the mobile phone can move the floating window of the video playback application 701 downward along the curved track 1006 to the trash can icon 1005.

[0226] It can be understood that if the extension line of the sliding track of the user's finger can point to the trash can icon, then the mobile phone can directly move the floating window of the video playback application to the trash can icon along the extension line of the sliding track (rather than the above-mentioned curved track), and at the same time display the intermediate transition state of the video playback application from the floating window state to the application closed state. Optionally, when responding to the lift event, the mobile phone can directly display the trash can icon at the lower edge of the screen reached by the extension line of the sliding track, so that the mobile phone can directly move the floating window of the video playback application to the trash can icon along the extension line of the sliding track.

[0227] As a result, users can directly switch the application's window display state from the floating window state to the full-screen state, floating ball state, and application closed state by simply applying quick sliding operations in different directions on the application's floating window. The operation is convenient and accidental touches are not likely to occur, thereby improving the user experience.

[0228] The following describes a method for displaying an application window provided by an embodiment of the present application in conjunction with the accompanying drawings. Fig.11 As shown, the display method of the application window may include S1101-S1103:

[0229] S1101. The mobile phone displays an application window in a floating window state, where the application window includes a first control for moving the application window.

[0230] Among them, the application window can be a window of any application installed in the mobile phone. The application can be a system application or a third-party application. The specific application type is not limited in the embodiment of the present application.

[0231] In the embodiment of the present application, the application window may include at least two display states, wherein the display state may be understood as the state of the window when the mobile phone displays the application window.

[0232] Optionally, the display state may be a floating window state. The floating window state is also called the floating window mode, which may refer to a state in which an application is "floating" in the form of a window on other user interfaces (such as the interface of other applications or the main interface of the mobile phone (i.e., the desktop)). The floating displayed window can be dragged to any position on the mobile phone screen, and if the user does not operate the floating displayed window, the floating displayed window remains in a fixed position and does not change with changes in other user interfaces. In an embodiment of the present application, when an application window is displayed in the form of a window, for example, it is suspended in the form of a window above an application window displayed in full screen or in the form of a window above an application window displayed in split screen, the display state of the application window can be defined as a floating window state. For example, please refer to Fig.12 , Fig.12 The figure shows the display form of the application window when the mobile phone displays the application window of the video playback application in a floating window state. Fig.12 As shown, the video playback application 1201 is displayed "floating" on the mobile phone desktop 1202 in the form of a window, and the video playback interface of the video playback application 1202 covers part of the mobile phone desktop.

[0233] Optionally, the display state can also be a full-screen state. The full-screen state is also called full-screen mode, which can refer to a state in which only one application window is displayed on the mobile phone screen, and the interface of the application fills the entire screen. In the embodiment of the present application, when an application window is displayed in full screen, the display state of the application window can be defined as a full-screen state. For example, see Fig.13 , Fig.13 The figure shows the display form of the application window when the mobile phone displays the application window of the video playback application in full screen mode. Fig.13 As shown, only one application window of a video player application is displayed on the mobile phone screen, and the video player interface of the video player application fills the entire screen.

[0234] In an embodiment of the present application, when the mobile phone displays an application window in a floating window state, the application window may include a first control. The first control may be used to instruct the user to move the application window to a position on the mobile phone screen. As an implementation, the first control may be a control in the form of an icon such as a drag bar or a drag button. As another implementation, the first control may also be a control in the form of a blank area, and when the user's finger touches the blank area, the movable function of the application window may be activated.

[0235] Optionally, when the mobile phone displays the application window in a floating window state, the application window may include a window operation area and a window content area. The window operation area is used to manipulate the application window, and the window content area is used to display the application interface. The window operation area and the window content area do not overlap. In the embodiment of the present application, the first control may be set in the window operation area. The window operation area may be hidden, and the mobile phone may only display the first control.

[0236] For example, see Fig.14 , Fig.14 (a) in FIG. 1 shows a display form of an application window when the mobile phone displays the application window in a floating window state. Fig.14 As shown in (a) in FIG. 1 , a drag bar control 1401 is provided on the window operation area 1403 located at the top of the application window, and the mobile phone does not hide the window operation area 1403 . Fig.14 (b) in FIG. 1 shows another display form of the application window when the mobile phone displays the application window in a floating window state. Fig.14 As shown in (b) in FIG. 1 , a drag bar control 1402 is provided on the window operation area at the top of the application window, and the mobile phone hides the window operation area, which is not visible to the user.

[0237] Optionally, the window operation area can be located at the top of the application window or at other positions of the application window. The area shape of the window operation area can be a conventional shape (such as a rectangle) or an unconventional shape (such as a circle) that fits the application window, which is not limited in the embodiments of the present application.

[0238] For example, see Fig.15 , Fig.15 FIG. 1 shows a display form of an application window when a mobile phone displays an application window in a floating window state. Fig.15 As shown in (a) in FIG. 1 , the application window includes a window content area 1502 and a window operation area 1501 located at the top of the application window, wherein the area shape of the window operation area 1501 is a rectangle that fits the application window. Fig.15 (b) in FIG. 1 is another display form of the application window when the mobile phone displays the application window in a floating window state. Fig.15 As shown in (b) in FIG. 1 , the application window includes a window content area 1504 and a window operation area 1503 located at the lower left corner of the application window, wherein the area shape of the window operation area 1503 is a semicircle that fits the application window.

[0239] Optionally, the window operation area may also include other operation controls. As an implementation, the other operation controls may be as follows: Figure 6The full screen button 602, minimize button 603, and close button 604 are shown in FIG. In some embodiments, the first control may be a control at a higher level than other operation controls. That is, the mobile phone may not display other operation controls initially until the user touches the first control, and then displays other operation controls. The touch operation may be a click operation, a long press operation, etc. For example, see Fig.16 When the mobile phone displays the application window in a floating window state, a drag bar control is set at the top of the application window. The mobile phone responds to the user's long press operation on the drag bar control and displays other operation controls, such as a full screen button, a minimize button, and a close button.

[0240] Optionally, the first control may also be a floating control suspended on the application interface. Fig.17 The floating control 1702 shown in (a) of FIG. 1 is displayed in the lower left corner of the application window 1701. The entire window area of ​​the application window can be used to display the application interface. The user can move the position of the application window on the mobile phone screen by sliding on the floating control. In some embodiments, the floating control can also be a control on the upper level of other operation controls. For example, Fig.17 As shown in (b) in FIG. 1 , the mobile phone responds to the user's long press operation on the floating control and displays other operation controls, such as a full screen button, a minimize button, and a close button.

[0241] Optionally, when the mobile phone displays the application window in a floating window state, the application window may not include the first control. The user may directly activate the moving function of the application window by long pressing the application window or pressing the application window with multiple fingers or other preset operations. It is understood that the present application may not limit the specific method of moving the application window.

[0242] In the embodiment of the present application, when the application window is displayed in a floating window state, the position of the floating window can be any position. The present application does not limit the position of the floating window for executing the present technical solution. For example, the floating window can be located in the upper right corner of the screen, and when the first sliding operation is detected (such as dragging to the top of the screen), the full screen state can also be switched.

[0243] S1102. The mobile phone responds to a first sliding operation starting from a first control and moves the application window along a sliding track of the first sliding operation, wherein the first sliding operation is a first movement in a first direction.

[0244] Optionally, when the mobile phone displays the application window in a floating window state, the mobile phone can receive user operations in real time. When the mobile phone receives the user operation, it can further determine whether the user operation is a sliding operation acting on the floating window, so that when it is detected that it is a sliding operation acting on the floating window, the mobile phone can move the floating window following the sliding track of the sliding operation. The sliding operation can be a fast sliding operation.

[0245] It can be understood that the user operation received by the mobile phone in real time may be a sliding operation on the floating window, or a sliding operation on the application interface in the floating window, such as a user sliding on the application interface to browse the interface content of the application, or a quick sliding operation on other user interfaces (such as other application interfaces or the main interface of the mobile phone), such as a user sliding on the main interface of the mobile phone to browse the application icons on the main interface. Therefore, when the mobile phone receives the user operation, it needs to determine whether the user operation is a sliding operation on the floating window to determine whether the user intends to convert the display state of the application window through a sliding gesture.

[0246] Among them, if the mobile phone detects that the user operation is a sliding operation acting on the floating window, it can be determined that the user has the intention to change the display state of the application window through a sliding gesture, and the mobile phone can perform the subsequent optimization of the display method of the application window in the embodiment of the present application. On the contrary, if the mobile phone detects that the user operation is not a sliding operation acting on the floating window, it can be determined that the user has no intention to switch the display state of the application window through a sliding gesture, and the mobile phone may not perform the subsequent optimization of the display method of the application window in the embodiment of the present application.

[0247] In the embodiment of the present application, if the user operation detected by the mobile phone is the first sliding operation starting from the first control, the mobile phone can confirm that the user operation is a sliding operation acting on the floating window, and then the mobile phone can respond to the first sliding operation and move the application window along the sliding track of the first sliding operation. In this way, during the finger sliding process, the floating window can slide on the mobile phone screen following the sliding track of the finger.

[0248] The first sliding operation is a first movement in a first direction, which can be understood as that after the user presses the first control with a finger, the user does not immediately lift the finger, but continues to slide the finger from the first control to the first direction. Optionally, the first direction can be any one of the four directions of up, down, left, and right, or other directions. The embodiment of the present application can take the first direction as upward as an example to illustrate the technical solution provided by the present application.

[0249] For example, Figure 7As shown in (b) of FIG. 7 , after the user presses the drag button 7011 at the top of the floating window of the video playback application 701 (pressing position 7012-a), the user does not lift the finger immediately, but continues to slide the finger from the drag button 7011 in a direction 7013. During the finger sliding process, the floating window can slide on the mobile phone screen following the sliding track of the finger. Figure 7 As shown in (b) to (d) in the figure, the mobile phone can follow the user's finger from Figure 7 From the position 7012-a shown in (b) to Figure 7 The position 7012-b shown in (c) of FIG. 1 and then Figure 7 The sliding track of position 7012-c shown in (d) moves the floating window of the video playback application 701 on the screen.

[0250] Optionally, when the user's finger touches the first control on the application window, the mobile phone may display a touch prompt to prompt the user that the finger has successfully acted on the first control. Figure 7 Of course, the mobile phone may not display the touch prompt, and this embodiment of the present application is not limited thereto.

[0251] Optionally, the mobile phone may determine whether the sliding direction of the sliding operation is the first direction according to the sliding angle of the sliding operation. As a method, the mobile phone may pre-set an angle range corresponding to the first direction, and when the mobile phone detects a sliding operation starting from the first control, if the sliding angle of the sliding operation is within the angle range corresponding to the first direction, the mobile phone may determine that the sliding direction of the sliding operation is the first direction.

[0252] Optionally, when the first direction is any one of the four directions of up, down, left and right, the mobile phone can pre-set the angle ranges corresponding to the four directions of up, down, left and right. When the mobile phone detects a sliding operation starting from the first control, it can determine the sliding direction of the sliding operation by judging which direction of the four directions of up, down, left and right the sliding angle of the sliding operation is in the angle range corresponding to.

[0253] For example, see Fig.18 , Fig.18 The angle range a corresponding to the upward direction is shown in the figure. Fig.18 The arrow in the figure indicates the direction of the sliding track of the user's finger sliding operation. Fig. 27 As shown, the sliding angle of the sliding operation is within the angle range corresponding to the upward direction, and the mobile phone determines that the sliding direction of the sliding operation of the user's finger is upward.

[0254] Optionally, the mobile phone may also determine the sliding direction of the sliding operation according to the screen edge intersecting with the sliding track of the sliding operation. When the sliding track of the sliding operation does not reach the screen edge, the mobile phone may also determine the sliding direction of the sliding operation according to the screen edge intersecting with the extension line of the sliding track.

[0255] For example, see Fig.19 , Fig.19 The arrow in is the direction of the sliding track of the user's finger sliding operation, such as Fig.19 As shown, the screen edge intersecting with the extended line of the sliding track is the upper edge of the screen, and the mobile phone determines that the sliding direction of the sliding operation is upward.

[0256] Optionally, when the application window is moved by the aforementioned floating control, long pressing the application window, etc., the mobile phone may also execute the method of displaying the application window of an embodiment of the present application when it detects the first sliding operation starting from the floating control, or detects the first sliding operation starting from long pressing the application window.

[0257] S1103: The mobile phone responds to the first lifting operation after the first movement to display the application window in full screen mode. Before the mobile phone displays the application window in full screen mode, the mobile phone responds to the first lifting operation after the first movement to continue moving the application window along the first direction, wherein the window size of the application window gradually increases during the movement until the application window is in full screen mode.

[0258] In the embodiment of the present application, the first lifting operation can be understood as a lifting operation detected after the first sliding operation is completed and occurs within a first time period. The first time period can be a time interval whose length is less than a preset value, which can indicate that the user's finger stays at the sliding end position for a very short time.

[0259] In the embodiment of the present application, the movement of the mobile phone along the first direction may be a movement approaching the first direction, or may be a movement not strictly in a fixed direction or angle.

[0260] In the embodiment of the present application, the first sliding operation for triggering the switching of the window full screen state can be a quick sliding operation in the first direction. The quick sliding operation can be understood as a gesture operation in which the user's finger touches the mobile phone screen and slides quickly for a distance, and then the finger immediately leaves the mobile phone screen. In the embodiment of the present application, when the quick sliding operation acts on the first control on the application window, the application window can slide quickly with the user's finger, and when the user's finger leaves the mobile phone screen, the application window will still slide for a distance.

[0261] In an embodiment of the present application, if the first sliding operation starting from the first control ends, that is, when the user's finger starts to move from the first control to the first direction, and the first lifting operation occurring within the first time period is detected, it can be considered that the user's finger immediately leaves the mobile phone screen after sliding a certain distance. The mobile phone can determine that the detected first sliding operation is a quick sliding operation in the above-mentioned first direction, thereby triggering the switching of the window to full-screen state, that is, the mobile phone can display the application window in full-screen state.

[0262] Taking the first direction as upward as an example, Figure 7 As shown in (b) to (d) in FIG. 1 , the mobile phone detects that the user presses the drag button 7011 at the top of the floating window from Figure 7 Start sliding from position 7012-a shown in (b) in direction 7013 (the mobile phone recognizes that the sliding direction is upward) to Figure 7 When the finger is moved to the position 7012-c shown in (d) (i.e., the first movement), if a finger lift operation is detected and occurs within the first time period, the mobile phone can respond to the lift operation and display the video playback application 701 in full screen mode. Figure 7 As shown in (e) in FIG. 7 , the mobile phone displays the video playing application 701 in full screen, and the video playing interface of the video playing application 701 fills the entire mobile phone screen.

[0263] Optionally, if the first sliding operation starting from the first control ends, that is, when the user's finger starts to move in the first direction from the first control, and a second lifting operation is detected within the second time period, it can be considered that the user's finger slid a certain distance and stayed for a period of time before leaving the mobile phone screen, and the mobile phone can determine that the detected first sliding operation is a drag-and-drop operation, which is only used to move the position of the application window. Therefore, the mobile phone can not trigger the window full-screen state switching, and maintain the display of the application window at the position after the move.

[0264] In the embodiment of the present application, the first lifting operation can be understood as a lifting operation detected after the first sliding operation is completed and occurs within the second time period. The second time period is greater than the first time period, which can indicate that the user's finger will pause for a certain period of time at the sliding end position.

[0265] It can be understood that the drag-and-slide operation is a gesture operation in which the user's finger touches the mobile phone screen and slides from one position to another position, and the finger pauses at another position for a preset time before leaving the mobile phone screen. In the embodiment of the present application, when the drag-and-slide operation acts on the first control, the application window can slide with the user's finger until the user's finger leaves the mobile phone screen, and when the user's finger leaves the screen, the application window will no longer slide.

[0266] Optionally, the mobile phone can pre-associate the full-screen state of the application window with the quick sliding operation in the first direction through a correspondence table, so that when the mobile phone detects the first sliding operation starting from the first control on the floating window, it can determine that the window display state triggered by the first sliding operation is the full-screen state according to the first direction of the first sliding operation and the preset sliding direction and display state correspondence table. In this way, the electronic device can quickly and accurately identify the user's real operation intention through the first direction of the sliding operation, and realize the rapid conversion of the application window from the floating window state to the full-screen state required by the user, avoiding the problem of accidental touches easily caused by multiple function buttons, ensuring the convenience of user operation while reducing the accidental touch rate of user operation.

[0267] Optionally, the preset sliding direction and display state correspondence table can be pre-configured in the mobile phone or set by the user in the mobile phone. In this way, a correspondence table suitable for the current user can be set according to the user's operating habits and operating scenarios, making it easier for the user to operate the electronic device.

[0268] In the embodiment of the present application, since the first sliding operation of the mobile phone is the first movement in the first direction, before the mobile phone executes the above-mentioned full-screen state to display the application window, in response to the above-mentioned first lifting operation, the mobile phone can continue to move the application window along the above-mentioned first direction. In this way, when the user's finger ends sliding, that is, the finger leaves the screen, the application window can continue to move in the first direction intended by the user, which reflects the inertial movement effect of the application window under the control of the user's operation, and improves the operational flexibility and simulacrum effect of the application window. At the same time, the user can also judge whether the electronic device is ready to recognize the sliding direction of the sliding operation by observing whether the moving direction of the application window is the direction of his true intention. So that subsequent users can optimize their own sliding operations or optimize the electronic device's recognition method of the sliding direction when they observe that the application window does not move in the direction of their true intention.

[0269] Optionally, in response to the first lifting operation, the mobile phone may continue to move the application window along the extension line of the sliding track of the first sliding operation until it reaches the edge of the screen, so as to reflect the inertial movement effect of the application window.

[0270] For example, taking the first direction as upward as an example, see Fig. 20 , Fig. 20 The arrow in is the sliding track of the first sliding operation. Fig. 20 As shown, although the first sliding operation does not reach the edge of the screen, the mobile phone can still move the floating window of the video playback application to the upper edge of the screen by inertia along the extension line of the sliding track of the first sliding operation.

[0271] In some embodiments, the screen edge to which the application window moves according to the extension line of the sliding track of the first sliding operation may not correspond to the first direction, that is, the application window may not be able to move to the screen edge corresponding to the first direction along the extension line of the sliding track of the first sliding operation.

[0272] For example, taking the first direction as upward as an example, see Fig.21 , Fig.21 The arrow in is the sliding track of the first sliding operation. Since the sliding angle of the first sliding operation is within the upward angle range, the mobile phone can recognize that the sliding direction of the first sliding operation is upward. Fig.21 As shown, when the mobile phone moves the application window along the extension line of the sliding track of the first sliding operation, the screen edge reached by the application window is the right side of the screen, which is different from the upward sliding direction determined by the mobile phone. The application window cannot reach the upper edge of the screen.

[0273] Optionally, when the application window cannot move to the screen edge corresponding to the first direction along the sliding trajectory of the first sliding operation, in response to the above-mentioned first lifting operation, the mobile phone can move the application window along a specified route. The specified route points to the first direction. The specified route can be a curve. In this way, when the application window cannot move in the first direction intended by the user along the sliding trajectory of the user's finger, the electronic device can set a specified route that can move in the first direction intended by the user, so that the application window can move along the specified route, so that the user can observe the effect of the application window being adsorbed and moved in the first direction intended by himself, thereby improving the operational flexibility and simulacrum effect of the application window.

[0274] Taking the first direction as upward as an example, Fig. 22 As shown, although the extended line 2201 of the sliding track of the first sliding operation intersects with the right edge of the screen, since the first sliding operation is an upward slide, the mobile phone moves the application window as shown in FIG. Fig. 22 The curved track 2202 shown moves to the upper edge of the screen. Fig.23 , Fig.23 It shows that when the floating window cannot move to the screen edge corresponding to the first direction (i.e., the upper edge of the screen) along the sliding trajectory of the first sliding operation, the floating window can move to the upper edge of the screen along a curved trajectory after the user's finger leaves the screen.

[0275] In the embodiment of the present application, in response to the first lifting operation, the mobile phone can gradually increase the window size of the application window in the process of continuing to move the application window along the first direction until the application window is in full screen state. In this way, the mobile phone can display the intermediate transition state of the application from the floating window state to the full screen state in the process of continuing to move the application window along the first direction, so as to reflect the dynamic conversion of the window form.

[0276] Taking the first direction as upward as an example, Figure 7 As shown in (g) and (h) in FIG. 1 , the mobile phone detects that the user's finger is pressing the drag button 7011 at the top of the floating window. Figure 7 Start sliding from position 7012-a shown in (b) in direction 7013 (the mobile phone recognizes that the sliding direction is upward) to Figure 7 When the finger is lifted to the position 7012-c shown in (d) (i.e., the first movement), if the finger lift operation is detected and occurs within the first time period, the mobile phone can respond to the lift operation and continue to move the floating window of the video playback application 701 upward along the curved track 704 to the upper edge of the screen. At the same time, during the movement of the floating window, the intermediate transition state of the video playback application 701 from the floating window state to the full screen state is displayed. Figure 7 The size of the floating window of the video playback application 701 shown in (g) and (h) increases as the moving distance increases until it fills the entire screen, as shown in FIG. Figure 7 The full screen state shown in (e) is displayed.

[0277] In some embodiments, in order to improve the triggering accuracy of the technical solution of the embodiments of the present application, the mobile phone can determine whether the first sliding operation is successfully triggered by presetting the target conditions for successful triggering, and then whether the mobile phone switches the application window to full screen state.

[0278] Optionally, when the mobile phone detects that the sliding parameters of the first sliding operation meet the target conditions, it can determine that the first sliding operation successfully triggers the switching of the window to the full-screen state, and then the mobile phone can respond to the first lifting operation after the above-mentioned first movement to display the application window in full-screen state. Among them, the sliding parameters may include parameters of at least one dimension in multiple dimensions such as sliding speed, sliding acceleration, sliding distance (i.e., first movement) and sliding time. Conversely, when the mobile phone detects that the sliding parameters of the first sliding operation do not meet the target conditions, it can determine that the first sliding operation is not successfully triggered. At this time, the mobile phone may not execute the display method of the application window of the embodiment of the present application to avoid false triggering.

[0279] Among them, the target condition may refer to the numerical condition that the sliding parameters of the quick sliding operation must meet. Optionally, the numerical condition may be a parameter threshold, and the target condition may be a parameter threshold set corresponding to the parameters of at least one dimension of the above-mentioned sliding speed, sliding acceleration, sliding distance, and sliding time, that is, the target condition may be a parameter set composed of parameter thresholds of one or more dimensions. For example, taking the example that the mobile phone detects that the sliding speed, sliding acceleration, sliding distance, and sliding time of the first sliding operation must all meet the target condition, the target condition may be a threshold set composed of a sliding speed threshold, a sliding acceleration threshold, a sliding distance threshold, and a sliding time threshold.

[0280] Optionally, the mobile phone may determine whether the sliding parameters of the first sliding operation meet the target conditions in sequence according to the corresponding dimensions. For example, the mobile phone may detect whether the sliding speed of the first sliding operation meets the sliding speed threshold in the target condition, the mobile phone may detect whether the dynamic acceleration of the first sliding operation meets the sliding acceleration threshold in the target condition, the mobile phone may detect whether the sliding distance (i.e., the first movement) of the first sliding operation meets the sliding distance threshold in the target condition, and the mobile phone may detect whether the sliding time of the first sliding operation meets the sliding time threshold in the target condition.

[0281] Optionally, when the mobile phone detects the first sliding operation starting from the first control, the coordinates of the initial contact point and the final contact point of the first sliding operation on the screen and the sliding time of the sliding operation can be obtained. Then, the mobile phone can determine the sliding parameters of the sliding operation in multiple dimensions, such as the sliding speed, sliding acceleration, and sliding distance, according to the coordinates of the initial contact point and the final contact point and the sliding time of the sliding operation.

[0282] Optionally, the target condition may also include an angle determination condition for the sliding direction. Thus, after the mobile phone detects a sliding operation starting from the first control, it can identify whether the sliding direction of the sliding operation is the first direction according to the angle determination condition. In one example, the angle determination condition may be an angle parameter set consisting of a sliding angle range for a quick upward slide, a sliding angle range for a quick downward slide, a sliding angle range for a quick left slide, and a sliding angle range for a quick right slide.

[0283] The embodiment of the present application provides a method for displaying an application window. When an electronic device displays an application window in a floating window state, a user quickly slides a first control of the application floating window in a first direction to trigger a mobile phone to change the application from a floating window state to a full-screen state. The operation is convenient and accidental touches are not likely to occur, thereby improving the user experience.

[0284] Another method for displaying an application window provided by an embodiment of the present application is described below in conjunction with the accompanying drawings. Fig.24 As shown, the display method of the application window may include S2401-S2403:

[0285] S2401. The mobile phone displays an application window in a floating window state, where the application window includes a first control for moving the application window.

[0286] In the embodiment of the present application, the application window may include at least two display states. Optionally, the display state may be a floating window state.

[0287] Optionally, the display state can also be a minimized state. The minimized state is also called minimized mode, which may refer to a state in which an application is "suspended" in a smaller form and displayed on other user interfaces (such as the interface of other applications or the main interface of the mobile phone (i.e., the desktop)). The smaller form of the suspended display can be adsorbed on the edge of the mobile phone screen, or it can be dragged to any position in the mobile phone screen. In the case where the user does not operate the smaller form of the suspended display, the smaller form of the suspended display remains in a fixed position and does not change with changes in other user interfaces. It can be understood that the screen display area occupied by the application window when it is displayed in a minimized state should be smaller than the screen display area occupied by the application window when it is displayed in a floating window state. In an embodiment of the present application, when an application window is suspended in a smaller form, for example, suspended in a smaller form above an application window displayed in full screen or suspended in a smaller form above an application window displayed in split screen, the display state of the application window can be defined as a minimized state.

[0288] Optionally, the minimized state may include a mini floating window state. The mini floating window state is also called a minimized floating window mode, that is, the smaller form may be a smaller window form. For example, see Fig.25 , Fig.25 The figure shows the display form of the application window when the mobile phone displays the application window of the video playback application in the mini floating window state. Fig.25 As shown, the video player application 2501 is displayed in a "floating" manner on the mobile phone desktop 2502 in the form of a smaller window, and the video player interface of the video player application 2501 only covers a small part of the mobile phone desktop. Fig.12 and Fig.25 It can be seen that the screen display area occupied by the video playback application 2501 when displayed in a minimized state is much smaller than the screen display area occupied by the video playback application 1201 when displayed in a floating window state.

[0289] It can be understood that the above-mentioned smaller form can also be a smaller non-window form. In one example, the above-mentioned smaller form can be a smaller round ball form, that is, the minimized state can include a floating ball state. The floating ball state is also called minimized floating ball mode. For example, refer to Fig.26 , Fig.26The figure shows the display form of the application window when the mobile phone displays the application window of the video playback application in the floating ball state. Fig.26 As shown, the video player application 2601 is displayed in the form of a small ball "floating" on the mobile phone desktop 2602, and the floating ball of the video player application 2601 only covers a small part of the mobile phone desktop.

[0290] As another example, the above-mentioned smaller form may also be a smaller icon form, that is, the minimized state may also include a suspended icon state. The suspended icon state is also called minimized to suspended icon mode. The specific minimized state type is not limited in the embodiments of the present application and can be reasonably set according to actual needs. For example, the above-mentioned smaller form may also be a smaller card form, that is, the minimized state may also include a suspended card state, and the suspended card state is also called minimized to suspended card mode.

[0291] S2402. The mobile phone responds to a second sliding operation starting from the first control and moves the application window along a sliding track of the second sliding operation, wherein the second sliding operation is a second movement in a second direction.

[0292] In the embodiment of the present application, if the user operation detected by the mobile phone is the second sliding operation starting from the first control, the mobile phone can confirm that the user operation is a sliding operation acting on the floating window, and then the mobile phone can respond to the second sliding operation and move the application window along the sliding track of the second sliding operation. In this way, during the finger sliding process, the floating window can slide on the mobile phone screen following the sliding track of the finger.

[0293] The second sliding operation is a second movement in the second direction, which can be understood as that after the user presses the first control with his finger, the user does not immediately lift his finger, but continues to slide his finger from the first control to the second direction. Optionally, the second direction can be any one of the four directions of up, down, left, and right, or other directions. The embodiment of the present application can take the second direction as rightward as an example to illustrate the technical solution provided by the present application.

[0294] Optionally, the mobile phone may determine whether the sliding direction of the sliding operation is the second direction according to the sliding angle of the sliding operation. As a method, the mobile phone may pre-set an angle range corresponding to the second direction, and when the mobile phone detects a sliding operation starting from the first control, if the sliding angle of the sliding operation is within the angle range corresponding to the second direction, the mobile phone may determine that the sliding direction of the sliding operation is the second direction.

[0295] S2403, the mobile phone responds to the first lifting operation after the second movement to display the application window in a minimized state. Before the mobile phone displays the application window in a minimized state, the mobile phone responds to the first lifting operation after the second movement to continue moving the application window along the second direction, wherein the window size of the application window gradually decreases during the movement until the application window is in a minimized state.

[0296] In the embodiment of the present application, the second sliding operation for triggering the switching of the window to the full-screen state may be a quick sliding operation in the second direction.

[0297] In an embodiment of the present application, if when the second sliding operation starting from the first control ends, that is, when the user's finger starts to make a second movement from the first control to the second direction, the first lifting operation occurring within the first time period is detected, it can be considered that the user's finger immediately leaves the mobile phone screen after sliding a certain distance, and the mobile phone can determine that the detected second sliding operation is a quick sliding operation in the above-mentioned second direction, thereby triggering the switching of the window minimization state, that is, the mobile phone can display the application window in a minimized state.

[0298] The minimized state may be a floating ball state, a mini floating window, etc. The present embodiment of the application takes the floating ball state as an example to end the display method of the application window provided by the present embodiment of the application.

[0299] Take the second direction as rightward as an example, Fig. 9 As shown in (a) to (b) in FIG. 1 , the mobile phone detects that the user's finger is pressing the drag button 9011 at the top of the floating window. Fig. 9 Start sliding from position 9012-a shown in (a) in direction 9013 (the mobile phone recognizes that the sliding direction is right) to Fig. 9 When the position 9012-b shown in (b) (i.e., the second movement) is reached, if a finger lift operation is detected and occurs within the first time period, the mobile phone can respond to the lift operation and display the video playback application 901 in a floating ball state. Fig. 9 As shown in (c) in the figure, the mobile phone displays the video playing application in the state of a floating ball 902, that is, the video playing application is "floating" on the mobile phone desktop in the form of a smaller ball.

[0300] Optionally, if the second sliding operation starting from the first control ends, that is, when the user's finger starts to move from the first control to the second direction for the second time, and a second lifting operation is detected within the second time period, it can be considered that the user's finger slides a certain distance and stays for a period of time before leaving the mobile phone screen, and the mobile phone can determine that the detected second sliding operation is a drag sliding operation. Therefore, the mobile phone can not trigger the window full screen state switching, and maintain the display of the application window at the position after the move. Among them, the second time period is greater than the first time period.

[0301] Optionally, the mobile phone can pre-associate the minimized state of the application window with the quick sliding operation in the second direction through a correspondence table, so that when the mobile phone detects the second sliding operation starting from the first control on the floating window, it can determine that the window display state triggered by the second sliding operation is the minimized state based on the second direction of the second sliding operation and the preset correspondence table between the sliding direction and the display state.

[0302] In the embodiment of the present application, since the second sliding operation of the mobile phone is a second movement in the second direction, before the mobile phone executes the above-mentioned minimized state display application window, in response to the above-mentioned first lifting operation, the mobile phone can continue to move the application window along the above-mentioned second direction.

[0303] Optionally, in response to the first lifting operation, the mobile phone can continue to move the application window along the extension line of the sliding track of the second sliding operation until it reaches the edge of the screen, so as to reflect the inertial movement effect of the application window.

[0304] In the embodiment of the present application, in response to the first lifting operation, the mobile phone can gradually reduce the window size of the application window in the process of continuing to move the application window along the second direction until the application window is in a minimized state. In this way, the mobile phone can display the intermediate transition state of the application from the floating window state to the minimized state in the process of continuing to move the application window along the second direction, so as to reflect the dynamic conversion of the window form.

[0305] Take the second direction as rightward as an example, Fig. 9 As shown in (e) and (f) in FIG. 1 , the mobile phone detects that the user's finger is pressing the drag button 9011 at the top of the floating window. Fig. 9 Start sliding from position 9012-a shown in (a) in direction 9013 (the mobile phone recognizes that the sliding direction is right) to Fig. 9 After the position 9012-b shown in (b) (i.e., the second movement) is reached, if a finger lift operation is detected and occurs within the first time period, the mobile phone may respond to the lift operation, from Fig. 9 Starting from the position 9012-b shown in (b) of FIG. 1 , the floating window of the video playback application 901 is moved rightward along the extension line 903 of the sliding track of the user's finger to the right edge of the screen. At the same time, during the movement of the floating window, the video playback application 901 is displayed in an intermediate transition state from the floating window state to the floating ball state, as shown in FIG. Fig. 9 The size of the floating window of the video playback application 901 shown in (e) and (f) decreases as the moving distance increases until a floating ball is formed and adsorbed to the right edge of the screen, as shown in FIG. Fig. 9 The suspended ball state shown in (c) is displayed.

[0306] In some embodiments, in order to improve the triggering accuracy of the technical solution of the embodiments of the present application, the mobile phone can determine whether to switch the application window to a minimized state by presetting the target conditions for successful triggering.

[0307] Optionally, when the mobile phone detects that the sliding parameters of the second sliding operation meet the target conditions, it can determine that the second sliding operation successfully triggers the switching of the window minimized state, and then the mobile phone can respond to the first lifting operation within the first time period after the second movement to display the application window in a minimized state. Among them, the sliding parameters may include parameters of at least one dimension in multiple dimensions such as sliding speed, sliding acceleration, sliding distance (i.e., second movement) and sliding time. Conversely, when the mobile phone detects that the sliding parameters of the first sliding operation do not meet the target conditions, it can determine that the first sliding operation is not successfully triggered. At this time, the mobile phone may not execute the display method of the application window of the embodiment of the present application to avoid false triggering.

[0308] Optionally, the target condition may also include an angle determination condition of the sliding direction, so that after the mobile phone detects a sliding operation starting from the first control, it can identify whether the sliding direction of the sliding operation is the second direction according to the angle determination condition.

[0309] The embodiment of the present application provides a method for displaying an application window. When an electronic device displays an application window in a floating window state, a user quickly slides the first control of the application floating window in a second direction to trigger the mobile phone to perform an operation of switching the application from a floating window state to a minimized state. The operation is convenient and accidental touches are not likely to occur, thereby improving the user experience.

[0310] Another method for displaying an application window provided by an embodiment of the present application is described below in conjunction with the accompanying drawings. Fig. 27 As shown, the display method of the application window may include S2701-S2703:

[0311] S2701. The mobile phone displays an application window in a floating window state, where the application window includes a first control for moving the application window.

[0312] In the embodiment of the present application, the application window may include at least two display states. Optionally, the display state may be a floating window state.

[0313] Optionally, the display state may be an application closed state. The application closed state is also called an application closed mode, which may refer to a state in which the application exits the running state or only runs in the background. At this time, the mobile phone stops displaying or does not display an application window of the application on the screen. In the embodiment of the present application, when an application window is closed or deleted, the display state of the application window may be defined as the application closed state.

[0314] In some embodiments, in order to improve the visual perception, the application closing state may also refer to the dynamic process of closing an application window. Fig.28 , Fig.28 The figure shows the display form of the application window when the mobile phone displays the application window of the video playback application in the application closed state. Fig.28 As shown, Fig.28 (a), (b), (c), and (d) are a dynamic closing process of the application window of the video playback application, that is, the application window of the video playback application moves along a preset trajectory to the center of the trash can, and the application window gradually shrinks.

[0315] S2702. The mobile phone responds to a third sliding operation starting from the first control, and moves the application window along a sliding track of the third sliding operation, wherein the third sliding operation is a third movement in a third direction.

[0316] In the embodiment of the present application, if the user operation detected by the mobile phone is the third sliding operation starting from the first control, the mobile phone can confirm that the user operation is a sliding operation acting on the floating window, and then the mobile phone can respond to the third sliding operation and move the application window along the sliding track of the third sliding operation. In this way, during the finger sliding process, the floating window can slide on the mobile phone screen following the sliding track of the finger.

[0317] The third sliding operation is a third movement in a third direction, which can be understood as that after the user presses the first control with his finger, the user does not immediately lift his finger, but continues to slide his finger from the first control to the third direction. Optionally, the third direction can be any one of the four directions of up, down, left, and right, or other directions. The embodiment of the present application can take the third direction as downward as an example to illustrate the technical solution provided by the present application.

[0318] Optionally, the mobile phone can pre-set the angle range corresponding to the third direction. When the mobile phone detects a sliding operation starting from the first control, if the sliding angle of the sliding operation is within the angle range corresponding to the third direction, the mobile phone can determine that the sliding direction of the sliding operation is the third direction.

[0319] S2703, the mobile phone responds to the first lifting operation after the third movement and closes the application window. Before closing the application window, the mobile phone responds to the first lifting operation after the third movement and continues to move the application window along the third direction, wherein the window size of the application window gradually decreases during the movement until the application window is closed.

[0320] In the embodiment of the present application, the third sliding operation used to trigger the switching of the window to the full-screen state may be a quick sliding operation in a third direction.

[0321] In an embodiment of the present application, if the third sliding operation starting from the first control ends, that is, when the user's finger starts to move the third direction from the first control, and the first lifting operation occurring within the first time period is detected, it can be considered that the user's finger immediately leaves the mobile phone screen after sliding a certain distance. The mobile phone can determine that the detected third sliding operation is a quick sliding operation in the above-mentioned third direction, thereby triggering the application closing state switching of the window.

[0322] Take the third direction as downward as an example, Fig.10 As shown in (a) and (b) in FIG. 1 , the mobile phone detects that the user presses the drag button 1002 at the top of the floating window. Fig.10 Start sliding from position 1003-a shown in (a) in direction 1004 (the mobile phone recognizes that the sliding direction is downward) to Fig.10 When the finger is moved to the position 1003-b shown in (b) (i.e., the third movement), if a finger lift operation is detected and occurs within the first time period, the mobile phone can respond to the lift operation and display the video playback application 1001 in the application closed state. Fig.10 As shown in (c) in FIG. 8 , the mobile phone stops displaying or does not display the video playback application on the screen.

[0323] Optionally, if the third sliding operation starting from the first control ends, that is, when the user's finger starts to move from the first control to the third direction for the third time, and a second lifting operation occurring within the second time period is detected, it can be considered that the user's finger slid a certain distance and stayed for a period of time before leaving the mobile phone screen, and the mobile phone can determine that the detected third sliding operation is a drag sliding operation. Therefore, the mobile phone can not trigger the window full screen state switching, and maintain the display of the application window at the position after the move. Among them, the second time period is greater than the first time period.

[0324] Optionally, the mobile phone can pre-associate the application closing state of the application window with the quick sliding operation in a third direction through a correspondence table, so that when the mobile phone detects a third sliding operation starting from the first control on the floating window, it can determine that the window display state triggered by the third sliding operation is the application closing state based on the third direction of the third sliding operation and the preset correspondence table between the sliding direction and the display state.

[0325] In the embodiment of the present application, since the third sliding operation of the mobile phone is a third movement in the third direction, before the mobile phone executes the above-mentioned closing of the application window, in response to the above-mentioned first lifting operation, the mobile phone can continue to move the application window along the above-mentioned third direction.

[0326] Optionally, in response to the first lifting operation, the mobile phone can continue to move the application window along the extension line of the sliding track of the third sliding operation until the entire floating window slides out of the edge of the screen.

[0327] In some embodiments, the screen edge to which the application window moves according to the extension line of the sliding trajectory of the third sliding operation may not correspond to the third direction, that is, the application window may not be able to move to the screen edge corresponding to the third direction along the extension line of the sliding trajectory of the third sliding operation.

[0328] For example, taking the third direction as downward as an example, see Fig.29 , Fig.29 The arrows shown in (a) and (b) in FIG. 1 are the sliding tracks of the third sliding operation. Since the sliding angle of the third sliding operation is within the downward angle range, the mobile phone can recognize that the sliding direction of the third sliding operation is downward. Fig.29 As shown in (b), when the mobile phone moves the application window along the extension line 2901 of the sliding track of the first sliding operation, the screen edge reached by the application window is the right side of the screen, which is different from the downward sliding direction determined by the mobile phone. The application window cannot reach the lower edge of the screen.

[0329] Optionally, when the application window cannot be moved to the screen edge corresponding to the third direction along the sliding track of the third sliding operation, in response to the first lifting operation, the mobile phone can move the application window along a specified route, wherein the specified route points to the third direction.

[0330] Take the third direction as downward as an example, Fig.29 As shown in (c) of FIG. 1 , although the extended line 2901 of the sliding track of the third sliding operation intersects with the right edge of the screen, since the third sliding operation is a downward slide, the mobile phone moves the application window as shown in FIG. Fig.29 The curved track 2902 shown in (c) and (d) moves to the lower edge of the screen until the entire floating window slides out of the lower edge of the screen.

[0331] Optionally, the mobile phone continues to move the application window along the third direction, and can first display a close icon at the edge of the screen corresponding to the third direction, and then move the application window to the close icon. The mobile phone can display the intermediate transition state of the application from the floating window state to the application closed state during the movement, so as to reflect the effect that the application window is sucked toward the close icon. Optionally, when the mobile phone displays the close icon at the beginning, the close icon can be blurred, and the blurriness of the close icon can be reduced as the moving distance of the application window increases, that is, the close icon displayed by the mobile phone can gradually focus to be clear as the floating window approaches.

[0332] In the embodiment of the present application, in response to the first lifting operation, the mobile phone can gradually reduce the window size of the application window while continuing to move the application window along the third direction until the application window is closed. In this way, the mobile phone can display the intermediate transition state of the application from the floating window state to the application closed state while continuing to move the application window along the third direction, so as to reflect the dynamic conversion of the window form.

[0333] Take the third direction as downward as an example, Fig.10 As shown in (e) and (f) in FIG. 1 , the mobile phone detects that the user's finger is pressing the drag button 1002 at the top of the floating window, and Fig.10 Start sliding from position 1003-a shown in (a) in direction 1004 (the mobile phone recognizes that the sliding direction is downward) to Fig.10 After the position 1003-b shown in (b) (i.e., the third movement) is reached, if a finger lift operation is detected and occurs within the first time period, the mobile phone can respond to the lift operation by displaying a trash can icon 1005 in the middle of the lower edge of the mobile phone screen and Fig.10 Starting from the position 1003-b shown in (b) of FIG. 1 , the floating window of the video playback application 1001 is moved downward along the extension line 1006 of the sliding track of the user's finger to the trash can icon 1005. At the same time, during the movement of the floating window, the intermediate transition state of the video playback application 1001 from the floating window state to the application closed state is displayed, as shown in FIG. Fig.10 The size of the floating window of the video playback application 1001 shown in (e) and (f) decreases as the moving distance increases, until the entire floating window moves to the center of the trash can icon 1005, and the mobile phone screen no longer displays the application window. In some embodiments, in order to improve the triggering accuracy of the technical solution of the embodiment of the present application, the mobile phone can determine whether to switch the application window to the application closed state by presetting the target condition for successful triggering.

[0334] Optionally, when the mobile phone detects that the sliding parameters of the third sliding operation meet the target conditions, it can determine that the third sliding operation successfully triggers the switching of the window closing state, and then the mobile phone can respond to the first lifting operation within the first time period after the third movement to close the application window. Among them, the sliding parameters may include parameters of at least one dimension in multiple dimensions such as sliding speed, sliding acceleration, sliding distance (i.e., the third movement) and sliding time. Conversely, when the mobile phone detects that the sliding parameters of the third sliding operation do not meet the target conditions, it can determine that the third sliding operation is not successfully triggered. At this time, the mobile phone may not execute the display method of the application window of the embodiment of the present application to avoid false triggering.

[0335] Optionally, the target condition may also include an angle determination condition of the sliding direction. Thus, after the mobile phone detects a sliding operation starting from the third control, it can identify whether the sliding direction of the sliding operation is the third direction according to the angle determination condition.

[0336] The embodiment of the present application provides a method for displaying an application window. When an electronic device displays an application window in a floating window state, a user performs a third-direction quick sliding operation on a first control of the application floating window, triggering the mobile phone to perform an operation of changing the application from a floating window state display to an application closed state display. The operation is convenient and accidental touches are not likely to occur, thereby improving the user experience.

[0337] It can be understood that users can complete the conversion of the application from the floating window to the full screen state, minimized state, application closed state and other different display states in one step by sliding the application window under the floating window, which not only avoids the fragmentation and separation of gesture interaction, but also makes the interaction more systematic and easier for users to learn and remember because the triggering gesture is simple and concentrated on the floating window, greatly improving the interaction efficiency. At the same time, because the hot area corresponding to the sliding operation (usually the entire screen) is relatively large, it is convenient for users to operate and is not easy to cause accidental touches, greatly improving the user's operation accuracy.

[0338] In an embodiment of the present application, the mobile phone can pre-associate the sliding direction of the sliding operation acting on the first control with other display states through a correspondence table, so that when the mobile phone detects a sliding operation starting from the first control, it can determine the display state corresponding to the sliding operation based on the sliding direction of the sliding operation and the preset correspondence table between the sliding direction and the display state.

[0339] For example, the mobile phone may pre-associate sliding operations in four sliding directions, namely, sliding up, sliding down, sliding left, and sliding right, on the first control on the floating window with other different display states of the application.

[0340] For example, see Fig.30 , Fig.30 The following is a schematic diagram showing the display states of the floating window corresponding to the different sliding directions. Fig.30 As shown in (a), Fig.30 (a) in FIG. 1 shows a left swipe operation of the floating window of the setting application, which can trigger the display state A of the setting application. Fig.30 (a) in FIG. 1 shows a sliding operation of the floating window of the setting application, which can trigger the display state B of the setting application. Fig.30 (a) in FIG. 1 shows a right sliding operation of the floating window of the setting application, which can trigger the display state C of the setting application. Fig.30(a) in the figure shows a sliding operation of the floating window of the setting application, which can trigger the display state D of the setting application. Among them, the display state A, display state B, display state C, and display state D can be any other state except the floating window state. The display state A, display state B, display state C, and display state D can be the same or different.

[0341] In some embodiments, the correspondence between the sliding direction of the sliding operation on the first control and the display state of the application window can be a one-to-one relationship, that is, sliding operations in different sliding directions trigger different display states of the application window.

[0342] For example, see Fig.31 , Fig.31 (a) and (b) show that when the user's finger touches the drag button at the top of the floating window of the video playback application and applies a quick upward sliding gesture, the full-screen state display of the video playback application is triggered.

[0343] For example, see Fig.32 , Fig.32 (a) in the figure shows the status display of the floating ball 3202 of the music playing application triggered when the user's finger touches the drag button on the top of the floating window 3201 of the music playing application and applies a sliding gesture operation of sliding quickly to the right.

[0344] For example, see Fig.33 , Fig.33 (a) in the figure is when the user's finger touches the drag button at the top of the floating window of the music player application and applies a quick downward sliding gesture, the application closing state of the music player application is displayed. Fig.33 As can be seen from (b) in the figure, the mobile phone screen no longer displays the application window of the music player application.

[0345] In other embodiments, the correspondence between the sliding direction of the sliding operation on the first control and the display state of the application window can also be a many-to-one relationship, that is, sliding operations in different sliding directions on the first control may trigger the same display state of the application window.

[0346] For example, see Fig.32 , when the mobile phone detects that the user performs a quick right swipe operation on the drag button at the top of the floating window of the music player application, it can determine that the display state corresponding to the quick right swipe operation is the floating ball state, such as Fig.32 See (a) and (b) in Fig.34, when the mobile phone detects that the user has swiped left quickly on the drag button at the top of the floating window of the music player application, it can still determine that the display state corresponding to the quick left swipe operation is the floating ball state. Fig.32 (b) and Fig.34 As can be seen from (b) in the figure, the music player application is displayed in the form of a floating ball on the mobile phone desktop under quick sliding operations in different directions.

[0347] Further, in some embodiments, when different sliding directions of the sliding operation are applied to the first control and the display states of the corresponding triggered application windows are the same, the mobile phone can adjust the display position of the application windows in the same display state according to the sliding direction of the sliding operation.

[0348] For example, when a quick sliding operation in the sliding direction to the right and a quick sliding operation in the sliding direction to the left both switch the display state to the floating ball state, the mobile phone can adjust the display position of the floating ball according to the sliding direction of the sliding operation.

[0349] For example, when the mobile phone detects a quick right swipe operation of the drag button on the top of the floating window, it can determine that the display state corresponding to the quick right swipe operation is the floating ball state, and at the same time, it can be determined that the display position of the floating ball on the mobile phone screen can be the right edge of the screen, such as Fig.32 Alternatively, when the mobile phone detects a quick left swipe operation of the drag button on the top of the floating window, it can determine that the display state corresponding to the quick left swipe operation is the floating ball state, and at the same time, it can be determined that the display position of the floating ball on the mobile phone screen can be the left edge of the screen, such as Fig.34 As shown in (a) and (b) in .

[0350] Optionally, when the sliding operation for triggering the display state switching of the window is a drag-and-drop operation starting from the first control to the edge of the screen, the mobile phone can also determine the display state corresponding to the drag-and-drop operation based on the screen edge to which the application window is dragged.

[0351] In some embodiments, if the mobile phone detects that the user operation is a drag and slide operation acting on the application window, the mobile phone needs to determine whether the application window is dragged to the edge of the screen to determine whether the user intends to change the display state of the application window by dragging and sliding. Among them, if the mobile phone detects that the application window has been dragged to the edge of the screen, it can be determined that the user has the intention to change the display state of the application window by dragging and sliding gestures. Then the mobile phone can determine the corresponding triggered second display state based on the drag and slide operation. On the contrary, if the mobile phone detects that the application window is not dragged to the edge of the screen, it can be determined that the user has no intention to change the display state of the application window by dragging and sliding gestures, and only moves the position of the application window on the screen. At this time, the mobile phone may not perform the subsequent optimization of the display method of the application window in the embodiment of the present application.

[0352] Optionally, the mobile phone can determine that the application window has been dragged to the edge of the screen when it detects that at least one side of the application window overlaps with the edge of the screen. Optionally, the mobile phone can also determine that the application window has been dragged to the edge of the screen when it detects that the end point of the drag track of the drag and slide operation is close to the edge of the screen.

[0353] As an implementation method, the mobile phone can pre-associate the screen edges on different sides with other display states of the application window through a correspondence table, so that when the mobile phone detects a drag-and-slide operation starting from the first control, it can determine the second display state corresponding to the drag-and-slide operation according to the screen edge reached by the drag-and-slide operation and the preset correspondence table between the screen edge and the display state. Optionally, the preset correspondence table between the screen edge and the display state can be pre-configured in the mobile phone or set by the user in the mobile phone.

[0354] For example, see Fig.30 (b) in Fig.30 (b) in FIG. 1 shows a schematic diagram of the display state corresponding to the conversion when the floating window is dragged to different side screen edges. Fig.30 As shown in (b), Fig.30 (b) in FIG. 1 shows a dragging and sliding operation of dragging the floating window to the left edge of the screen, which can trigger the display state A of the setting application. Fig.30 (b) in the figure shows a drag and slide operation of dragging the floating window to the upper edge of the screen, which can trigger the display state B of the setting application. Fig.30 (b) in FIG. 1 shows a drag and slide operation of dragging the floating window to the right edge of the screen, which can trigger the display state C of the setting application. Fig.30(b) in the figure shows the dragging and sliding operation of dragging the floating window to the lower edge of the screen, which can trigger the display state D of the application to be set. Among them, display state A, display state B, display state C, and display state D can be any other state except the floating window state. Display state A, display state B, display state C, and display state D can be the same or different. In one example, display state A can be a minimized state, display state B can be a full-screen state, display state C can be a minimized state, and display state D can be an application closed state.

[0355] In some embodiments, the correspondence between the screen edge and the display state of the application window can be a one-to-one relationship, that is, dragging and sliding operations to different sides of the screen edge can trigger different display states of the application window. It can also be a many-to-one relationship.

[0356] It can be understood that the technical solution of switching from the floating window state to other display states based on the above-mentioned application is also applicable to the scenarios of split-screen state and multi-task window state, and realizes the technical effect of switching from the split-screen state to other display states, as well as the technical effect of switching from the multi-task window state to other display states.

[0357] Another method for displaying an application window provided by an embodiment of the present application is described below in conjunction with the accompanying drawings. Fig.35 As shown, the display method of the application window may include S3501-S3503:

[0358] S3501. The mobile phone displays an application window in a first display state, where the application window includes a first control for moving the application window.

[0359] Optionally, the first display state may be a split-screen state. The split-screen state is also called a split-screen mode, which may refer to a state in which two or more application windows occupy a portion of the mobile phone screen respectively, and no two application windows overlap. Each application window can be resized, the position of the application window cannot be moved, or it can be dragged to any position on the mobile phone screen. In the embodiment of the present application, when a certain application window is displayed in split screen, the display state of the application window can be defined as a split-screen state. For example, refer to Fig.36 , Fig.36 The figure shows the display form of the application windows of the video player application and the music player application when the mobile phone displays the application windows of the video player application and the music player application in a split screen state. Fig.36 As shown, the application windows of the video player application 3601 and the music player application 3602 each occupy half of the mobile phone screen, and there is no overlap between the two application windows.

[0360] Optionally, the first display state may be a multi-tasking window state. The multi-tasking window state is also called the multi-tasking window mode, which may refer to a state in which, when an application enters the multi-tasking management interface, at least one application window is displayed in the form of a window "floating" on the main interface (i.e., the desktop) of the mobile phone. Each application window displayed in suspension can be dragged to any position on the mobile phone screen. Among them, the multi-tasking management interface may refer to an interface for managing and displaying application windows of applications in a running state. When there are multiple application windows in the multi-tasking management interface, the user can switch to open an application window at will. Among them, applications in a running state may include, but are not limited to, applications running in the foreground and applications running in the background. In an embodiment of the present application, when an application window enters the multi-tasking management interface, the display state of the application window may be defined as a multi-tasking window state. For example, please refer to Fig.37 , Fig.37 The figure shows the display form of the application window of the video player application when the mobile phone displays the application window of the video player application in the multi-task window state. Fig.37 As shown, the application window of the video playback application is displayed "floating" on the main interface of the mobile phone in the form of a window, and there are application windows of other applications adjacent to it on the left and right, which are also displayed "floating" on the main interface of the mobile phone in the form of a window.

[0361] It can be understood that the display status of the above application window is only an example, and the specific display status type is not limited in the embodiments of the present application.

[0362] S3502. The mobile phone responds to a sliding operation starting from the first control and moves the application window along a sliding track of the sliding operation, wherein the sliding operation is a target movement in a target direction.

[0363] S3503, the mobile phone responds to the first lifting operation after the target moves, and displays the application window in the second display state corresponding to the target direction. Before the mobile phone displays the application window in the second display state, the mobile phone responds to the first lifting operation after the target moves, continues to move the application window along the target direction, and displays the application window in the transitional display state during the movement.

[0364] The transitional display state may be a state of change from a first display state to a second display state. Optionally, the second display state may be any other state other than the aforementioned first display state.

[0365] Taking the split-screen state as the first display state as an example, the mobile phone displays an application window in a split-screen state, wherein the second application window is displayed in the first area, and the third application window is displayed in the second area, and the second application window includes a second control. In response to a sliding operation starting from the second control, the mobile phone moves the second application window following the sliding track of the sliding operation, wherein the sliding operation is a target movement in a target direction; in response to a first lifting operation after the target movement, the second application window is displayed in a second display state corresponding to the target direction. In particular, before the mobile phone displays the second application window in the second display state, the mobile phone responds to the first lifting operation after the target movement, continues to move the second application window along the target direction, and displays the second application window in a transitional display state during the movement.

[0366] Exemplarily, taking the first display state as the split-screen state as an example, the mobile phone can pre-associate the sliding operations in four sliding directions, namely, swiping up, swiping down, swiping left, and swiping right, of the split-screen window of the application with other different display states of the application.

[0367] For example, see Fig.38 , Fig.38 Schematic diagram of display state corresponding to the conversion of different sliding directions of split-screen windows. Among them, the mobile phone displays the application windows of video player application 3801 and music player application 3802 in split-screen state. Fig.38 As shown, when the mobile phone detects a sliding operation on the split-screen window of the audio playback application 3802, it can determine the corresponding second display state based on the sliding direction of the sliding operation.

[0368] in, Fig.38 The left swipe operation of the split-screen window of the audio playback application can trigger the display state A of the audio playback application. Fig.38 The upward sliding operation of the split-screen window of the audio playback application can trigger the display state B of the audio playback application. Fig.38 The right sliding operation of the split-screen window of the audio playback application can trigger the display state C of the audio playback application. Fig.38 The sliding operation of the split-screen window of the audio playback application can trigger the display state D of the audio playback application. Among them, display state A, display state B, display state C, and display state D can be any other state except the split-screen state. Display state A, display state B, display state C, and display state D can be the same or different. In one example, display state A can be a minimized state, display state B can be a full-screen state, display state C can be a floating window state, and display state D can be an application closed state.

[0369] It can be understood that if the first display state is a split screen state, the mobile phone screen displays multiple application windows. Optionally, when the mobile phone determines that the second display state of the target application window is any one of the display states such as minimized state, floating window state, application closed state, etc. according to the sliding action of the user on the target application window, the mobile phone can also adaptively adjust the display state of other application windows according to the number of remaining other application windows.

[0370] In one example, when there is only one other application window left, since when the target application window is displayed in the second display state, only one application window is left on the mobile phone screen in split-screen state, which affects the visual perception, so the mobile phone can switch the other application windows from split-screen state to full-screen state. In another example, when there are multiple other application windows left, since when the target application window is displayed in the second display state, the split-screen display area originally occupied by the target application window will be reserved on the mobile phone screen, so the mobile phone can adjust the split-screen display area occupied by the remaining other application windows to cover the entire screen display area.

[0371] For example, taking the first display state as the multi-task window state as an example, the mobile phone can pre-associate the sliding operations of the application's task window in four sliding directions, namely, swiping up, swiping down, swiping left, and swiping right, with other different display states of the application.

[0372] For example, see Fig.39 , Fig.39 FIG. 1 shows a schematic diagram of the display state of the task window corresponding to the different sliding directions. In which, the mobile phone displays the application window of the video playback application in the multi-task window state. Fig.39 As shown, Fig.39 The left sliding operation of the task window of the video playback application can trigger the display state A of the video playback application. Fig.39 The upward sliding operation of the task window of the video playback application can trigger the display state B of the video playback application. Fig.39 The right sliding operation of the task window of the video playback application can trigger the display state C of the video playback application. Fig.39 The sliding down operation of the task window of the video playback application can trigger the display state D of the video playback application. Among them, display state A, display state B, display state C, and display state D can be any other state except the multi-task window state. Display state A, display state B, display state C, and display state D can be the same or different. In one example, display state A can be a minimized state, display state B can be a split-screen state, display state C can be a floating window state, and display state D can be an application closed state.

[0373] The embodiment of the present application provides a method for displaying an application window. When an electronic device displays an application window in a first display state, a user can trigger a mobile phone to perform an operation of changing the application from the first display state to the second display state by quickly sliding the first control of the application floating window in a target direction, wherein the second display state corresponds to the target direction. The operation is convenient and accidental touch is not likely to occur, thereby improving the user experience.

[0374] Since it is difficult for a user's finger to slide at different locations on the mobile phone screen, if the same target condition is used to determine whether the sliding operation is successfully triggered, it is easy to cause inconsistent triggering experience at different locations, that is, some locations are difficult to trigger, while others are easy to trigger. Therefore, in some embodiments, the mobile phone can partition the screen according to the difficulty of sliding the user's finger on the screen. Then the mobile phone can set different target conditions according to different areas of the divided screen.

[0375] Optionally, see Fig.40 , the display method of the application window of the present application may also include:

[0376] S4001. The mobile phone divides the screen into zones according to the screen shape, and different zones correspond to different target conditions.

[0377] Among them, the parameter threshold value in the target condition can correspond to the sliding difficulty of the area. Optionally, the parameter threshold in the target condition corresponding to the area with high sliding difficulty can be smaller than the parameter threshold in the target condition corresponding to the area with low sliding difficulty, that is, the judgment threshold of the area with high sliding difficulty is lowered, and the judgment threshold of the area with low sliding difficulty is increased, so as to ensure that the triggering experience of each position of the mobile phone screen is consistent.

[0378] It is understandable that the application window can be slid at various positions on the mobile phone screen by using testing equipment such as a robotic arm, by fixing sliding parameters such as sliding speed or sliding distance, to determine whether each position can be triggered successfully. When a certain position is not triggered successfully, it can be considered that the triggering experience at various positions on the mobile phone screen is not consistent. At this point, the target conditions can be adjusted and then tested again until the triggering experience at various positions on the mobile phone screen is consistent.

[0379] Optionally, the mobile phone can divide the screen into a first area and a second area. The first area may refer to an easy sliding area on the screen, and the second area may refer to a difficult sliding area on the screen. Accordingly, the mobile phone can divide the target condition into a first target condition corresponding to the first area, and a second target condition corresponding to the second area. The parameter threshold in the first target condition is greater than the parameter threshold in the second target condition.

[0380] For example, taking the case where the sliding speed, sliding acceleration, sliding distance, and sliding time of the sliding operation detected by the mobile phone must all meet the target conditions, the first target condition corresponding to the first area can be a first threshold set consisting of a first sliding speed threshold, a first sliding acceleration threshold, a first sliding distance threshold, and a first sliding time threshold. The second target condition corresponding to the second area can be a second threshold set consisting of a second sliding speed threshold, a second sliding acceleration threshold, a second sliding distance threshold, and a second sliding time threshold. Thus, the mobile phone can use the first target condition to determine whether the sliding operation on the first area is successfully triggered, and the mobile phone can use the second target condition to determine whether the sliding operation on the second area is successfully triggered.

[0381] As an implementation, see Fig.41 , the first area can be the middle area of ​​the mobile phone screen, such as Fig.38 The middle area 4101 of the screen shown, the second area can be the edge area of ​​the mobile phone screen, such as Fig.38 Edge areas 4102 on the left and right sides of the screen are shown.

[0382] Optionally, the mobile phone can accurately partition the screen according to the detected trigger sensitivity values ​​of various positions on the screen. Fig.42 ,like Fig.42 As shown in (b), the mobile phone screen can be divided into 28 areas according to the ratio of 4*7. The mobile phone can divide the screen into the following areas according to the trigger sensitivity values ​​of the 28 areas detected: Fig.42 The multiple areas shown in (a) in FIG. Among them, the areas on both sides of the screen are the second area, and the area in the middle of the screen is the first area.

[0383] Optionally, the screen of the mobile phone can be divided into three or more areas, and target conditions can be set for each area. Fig.42 There are 28 regions shown in (b) in the figure, and accordingly, each of the 28 regions corresponds to a target condition.

[0384] When a user uses a mobile phone, the mobile phone may be in landscape mode or portrait mode, and the screen area where the user's finger slides in landscape mode may be different from the screen area where the user's finger slides in portrait mode. Therefore, in some embodiments, the mobile phone can perform a first partitioning process on the screen in landscape mode, and then the mobile phone can set different target conditions according to the different screen areas divided in landscape mode. The mobile phone can perform a second partitioning process on the screen in portrait mode, and then the mobile phone can set different target conditions according to the different screen areas divided in portrait mode.

[0385] Since the display screen of the mobile phone is a folding screen, the folding screen can be folded to form a first screen and a second screen. Among them, when the folding screen is in a folded state, the first screen can be used as the main screen to display the application window, and the second screen may not be displayed. When the folding screen is in an unfolded state, the first screen and the second screen can be used as a complete display screen to display the application window. Therefore, for a folding screen mobile phone, the screen area where the user's fingers are difficult to slide in the folded state may be different from the screen area where the user's fingers are difficult to slide in the unfolded state. Therefore, in some embodiments, when the mobile phone is a folding screen mobile phone, the folding screen mobile phone can perform a third partition processing on the screen in the unfolded state, and then the folding screen mobile phone can set different target conditions according to the different screen areas divided in the unfolded state. The folding screen mobile phone can perform a fourth partition processing on the screen in the folded state, and then the folding screen mobile phone can set different target conditions according to the different screen areas divided.

[0386] S4002: The mobile phone detects a first operation performed by a user on a first control.

[0387] Optionally, since the user's finger needs to touch the position of the application window on the screen first when performing a fast sliding operation starting from the first control, the first operation may be a touch operation acting on the first control. The touch operation may be understood as the starting operation of the fast sliding operation.

[0388] Optionally, when the user can trigger a sliding operation on the application window by long pressing the application window, the first operation may also be a long pressing operation on the application window.

[0389] S4003. The mobile phone determines the partition where the first operation is located.

[0390] In the embodiment of the present application, when the mobile phone detects the first operation performed by the user on the application window, the position coordinates of the first operation can be identified, and then the mobile phone determines the partition where the first operation is located based on the position coordinates.

[0391] For example, taking the screen divided into the first area and the second area as an example, refer to Fig.43 ,like Fig.43 As shown in (a) of FIG. 1 , when the mobile phone detects a touch operation of the user on the drag bar control at the top of the floating window, it can identify that the position coordinates of the touch operation are in the first area 4301 of the screen, i.e., the easy sliding area. Fig.43 As shown in (b), when the mobile phone detects the user's touch operation on the drag bar control at the top of the floating window, it can identify that the position coordinates of the touch operation are in the second area 4302 of the screen, namely the sliding difficulty area.

[0392] It is understandable that when the user's finger touches the application window on the screen, the coordinates of the finger touch point must fall within the display range of the application window. Therefore, in some embodiments, the mobile phone can also quickly determine the partition where the first operation is located based on the display position of the application window on the screen. In this way, the mobile phone can determine the partition where the user's operation is located in advance, without having to determine the partition where the operation is located in real time when the user operates, thereby improving the response speed.

[0393] For example, Fig.43 As shown in (a) of FIG. 1 , since the floating window is displayed in the first area 4301 of the screen, the mobile phone can directly determine that the position coordinates of the touch operation landing on the floating window are also in the first area 4301 of the screen, i.e., the easy sliding area. Fig.43 As shown in (b), since the floating window is displayed in the second area 4302 of the screen, the mobile phone can directly determine that the position coordinates of the touch operation landing on the floating window are also in the second area 4302 of the screen, that is, the sliding difficulty area.

[0394] Optionally, when the application window includes a window operation area, the mobile phone may determine the partition where the first operation is located according to the display position of the window operation area on the screen when detecting a first operation performed by the user on the window operation area.

[0395] Optionally, when the application window includes a first control for moving the window position, the mobile phone can determine the partition where the first operation is located according to the display position of the first control on the screen when detecting a first operation performed by the user on the first control.

[0396] Optionally, when the application window includes a floating control for moving the window position, the mobile phone can determine the partition where the first operation is located according to the display position of the floating control on the screen when detecting a first operation performed by the user on the floating control.

[0397] S4004. The mobile phone is assigned corresponding target conditions according to the partition in which it is located.

[0398] Since different areas use different target conditions to determine whether the sliding operation can successfully trigger the display status switch of the application window. Therefore, after the mobile phone determines the partition where the first operation is located, it can assign the corresponding target condition according to the partition where the first operation is located. Then the mobile phone can determine whether the sliding operation can successfully trigger the display status switch of the application window according to the target condition adapted to the partition. In this way, when the mobile phone detects sliding operations in different areas, it can adaptively adapt to the appropriate trigger judgment conditions to ensure that the trigger experience at each position of the mobile phone screen is consistent.

[0399] For example, taking the screen divided into the first area and the second area as an example, if the mobile phone detects that the partition where the first operation is located is the first area, the mobile phone can use the first target condition to determine whether the user operation can successfully trigger the display state switching of the application window. If the mobile phone detects that the partition where the first operation is located is the second area, the mobile phone can use the second target condition to determine whether the user operation can successfully trigger the display state switching of the application window.

[0400] S4005. The mobile phone detects a second operation starting from the first control.

[0401] The second operation may be a quick sliding operation following the first operation. Alternatively, the second operation may be the aforementioned first sliding operation, etc.

[0402] Optionally, when the application window includes a window operation area, the mobile phone may determine that the mobile phone detects the second operation performed by the user on the application window when detecting the second operation performed by the user on the window operation area.

[0403] Optionally, when the application window includes a first control for moving the window position, the mobile phone may determine that the mobile phone detects the second operation of the user acting on the application window when detecting the second operation of the user acting on the first control.

[0404] Optionally, when the application window includes a floating control for moving the window position, the mobile phone may determine that the mobile phone has detected the second operation of the user acting on the application window when detecting the second operation of the user acting on the floating control.

[0405] It is understandable that after the user's finger touches the application window on the screen, there may be other intentions, and the quick sliding operation of the application window may not necessarily be performed. When the mobile phone does not detect the user's quick sliding operation on the application window, it can be considered that the user has no intention to convert the display state of the application window, and the subsequent methods of the embodiments of the present application may not be executed. When the mobile phone detects the user's quick sliding operation on the application window, it can be considered that the user has the intention to convert the display state of the application window, and the subsequent methods of the embodiments of the present application may be executed. That is, the mobile phone can determine the second display state corresponding to the second operation.

[0406] S4006. The mobile phone determines whether the second operation satisfies the target condition according to the assigned target condition.

[0407] After the mobile phone determines the partition where the first operation is located, it can judge whether the second operation following the first operation can successfully trigger the display state transition of the application window according to the target condition corresponding to the partition. For example, taking the example of dividing the screen of the mobile phone into the above-mentioned first area and second area, if the mobile phone detects that the partition where the first operation is located is the first area, the mobile phone can judge whether the sliding parameters of the second operation meet the first target condition. If the mobile phone detects that the partition where the first operation is located is the second area, the mobile phone can judge whether the sliding parameters of the second operation meet the second target condition.

[0408] In summary, the display method of the application window of the embodiment of the present application allows the user to complete the conversion of the different display states of the application window in one step by sliding the application window in the first display state, which not only avoids the fragmentation and separation of gesture interaction, but also makes the interaction more systematic and easier for users to learn and remember because the triggering gesture is simple and concentrated on the application window in the first display state, greatly improving the interaction efficiency and increasing the convenience of user operation. At the same time, because the hot zone corresponding to the sliding operation (usually the entire screen) is relatively large, it is convenient for users to operate and is not easy to cause accidental touches, which greatly improves the accuracy of user operations.

[0409] It is understandable that, in order to realize the above functions, the electronic device includes hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.

[0410] In this embodiment, the electronic device can be divided into functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0411] In the case of dividing each functional module into corresponding functional modules, Fig.44 A possible schematic diagram of the composition of the electronic device 4400 involved in the above embodiment is shown. Fig.44 As shown, the electronic device 4400 may include: a display unit 4401 and a processing unit 4402.

[0412] Among them, the display unit 4401 can be used to support the electronic device 4400 to execute the above-mentioned corresponding steps, and / or other processes of the technology described in this article.

[0413] The processing unit 4402 can be used to support the electronic device 4400 to perform the above-mentioned corresponding steps and / or other processes for the technology described in this document.

[0414] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0415] The electronic device 4400 provided in this embodiment is used to execute the above-mentioned method for displaying the application window, and thus can achieve the same effect as the above-mentioned implementation method.

[0416] In the case of using an integrated unit, the electronic device 4400 may include a processing module, a storage module and a communication module. Among them, the processing module can be used to control and manage the actions of the electronic device 4400, for example, it can be used to support the electronic device 4400 to perform the steps performed by the above-mentioned display unit 4401 and the detection unit 4402. The storage module can be used to support the electronic device 4400 to store program codes and data, etc. The communication module can be used to support the communication between the electronic device 4400 and other devices.

[0417] Among them, the processing module can be a processor or a controller. It can implement or execute various exemplary logic boxes, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory. The communication module can specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, etc.

[0418] In one embodiment, when the processing module is a processor and the storage module is a memory, the structure of the electronic device involved in this embodiment can refer to Figure 4 The structure of the electronic device 100 is shown.

[0419] Some other embodiments of the present application also provide a display device for an application window, characterized in that the device can be applied to the electronic device described above. The device is used to execute each function or step executed by the mobile phone in the above method embodiment.

[0420] The embodiment of the present application also provides a chip system, which includes at least one processor and at least one interface circuit. The processor and the interface circuit can be interconnected through a line. The interface circuit can read the instructions stored in the memory and send the instructions to the processor. When the instructions are executed by the processor, the electronic device can perform the various steps in the above embodiment. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiment of the present application.

[0421] An embodiment of the present application also provides a computer storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned electronic device, the electronic device executes each function or step executed by the mobile phone in the above-mentioned method embodiment.

[0422] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer executes each function or step executed by the mobile phone in the above method embodiment.

[0423] Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above and will not be repeated here.

[0424] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0425] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0426] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0427] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0428] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0429] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A method for displaying an application window, characterized in that: Applied to an electronic device, the screen of the electronic device is divided into at least two areas, and the method includes: Displaying an application window in a floating window state, wherein the application window includes a first control for moving the application window; In response to a second sliding operation started from the first control, moving the application window along a sliding track of the second sliding operation, wherein the second sliding operation is a second movement in a second direction; In response to a first lifting operation after the second movement, displaying the application window in a minimized state; Before displaying the application window in a minimized state, the method further includes: It is detected that a sliding parameter of the second sliding operation satisfies a first target condition corresponding to a first area, wherein the first area is an area where the second sliding operation is located among the at least two areas, and the sliding parameter includes at least one of a sliding speed, a sliding acceleration, a sliding distance, and a sliding time; In response to the first lifting operation after the second movement, the application window continues to be moved along the second direction, wherein the window size of the application window gradually decreases during the movement until the application window is in the minimized state.

2. The method according to claim 1, characterized in that The method further comprises: In response to a first sliding operation started from the first control, moving the application window along a sliding track of the first sliding operation, wherein the first sliding operation is a first movement in a first direction; In response to a first lifting operation after the first movement, displaying the application window in a full-screen state; Before displaying the application window in full screen mode, the method further includes: In response to a first lifting operation after the first movement, the application window continues to be moved along the first direction, wherein the window size of the application window gradually increases during the movement until the application window is in the full-screen state.

3. The method according to claim 2, characterized in that The method further comprises: In response to a third sliding operation starting from the first control, moving the application window along a sliding track of the third sliding operation, wherein the third sliding operation is a third movement in a third direction; In response to a first lifting operation after the third movement, closing the application window; Wherein, before closing the application window, the method further includes: In response to the first lifting operation after the third movement, the application window continues to be moved along the third direction, wherein the window size of the application window gradually decreases during the movement until the application window is closed.

4. The method according to claim 2, characterized in that: The method further comprises: Determining, according to a sliding angle of the first sliding operation and an angle range corresponding to a preset sliding direction, that the sliding direction of the first sliding operation is the first direction; or Determining, according to a sliding angle of the second sliding operation and an angle range corresponding to a preset sliding direction, that the sliding direction of the second sliding operation is the second direction; or According to the sliding angle of the third sliding operation and the angle range corresponding to the preset sliding direction, the sliding direction of the third sliding operation is determined to be the third direction.

5. The method according to claim 4, characterized in that Before continuing to move the application window along the second direction, the method further includes: detecting that a sliding parameter of the second sliding operation satisfies a second target condition, wherein the sliding parameter includes at least one of a sliding speed, a sliding acceleration, a sliding distance, and a sliding time; Before continuing to move the application window along the third direction, the method further includes: It is detected that a sliding parameter of the third sliding operation satisfies a third target condition, wherein the sliding parameter includes at least one of a sliding speed, a sliding acceleration, a sliding distance, and a sliding time.

6. The method according to claim 5, characterized in that The detecting that the sliding parameter of the second sliding operation satisfies a target condition includes: It is detected that the sliding parameter of the second sliding operation satisfies a second target condition corresponding to a second area, wherein the second area is an area where the second sliding operation is located in the at least two areas; The detecting that the sliding parameter of the third sliding operation satisfies a target condition includes: It is detected that a sliding parameter of the third sliding operation satisfies a third target condition corresponding to a third area, wherein the third area is an area where the third sliding operation is located in the at least two areas.

7. The method according to claim 6, characterized in that The method further comprises: determining the first area from the at least two areas according to a contact point position of the first sliding operation; or determining the second area from the at least two areas according to the contact point position of the second sliding operation; or The third area is determined from the at least two areas according to the contact point position of the third sliding operation.

8. The method according to claim 6, characterized in that The method further comprises: According to the display position of the application window, the area where the sliding operation is located is determined from the at least two areas.

9. The method according to any one of claims 6 to 8, characterized in that: The method further comprises: According to the screen state of the electronic device, at least two areas into which the screen is divided and the target condition corresponding to each of the areas are determined.

10. The method according to claim 9, characterized in that The screen state includes a horizontal screen state or a vertical screen state.

11. The method according to claim 9 or 10, characterized in that: The electronic device includes a folding screen, and the screen state includes a folded state or an unfolded state.

12. The method according to claim 3, characterized in that The method further comprises: In response to a second lifting operation after the first movement, displaying the application window in the floating window state at the position after the first movement; or In response to a second lifting operation after the second movement, displaying the application window in the floating window state at the position after the second movement; or In response to a second lifting operation after the third movement, the application window is displayed in the floating window state at the position after the third movement.

13. The method according to claim 12, characterized in that The first lifting operation is used to indicate that the lifting operation detected after the sliding operation ends occurs within a first time period, and the second lifting operation is used to indicate that the lifting operation detected after the sliding operation ends occurs within a second time period, wherein the first time period is smaller than the second time period.

14. The method according to any one of claims 1 to 13, characterized in that: The continuing to move the application window along the first direction includes: If the sliding track of the first sliding operation does not point to the first direction, the application window is moved along a first designated route, wherein the first designated route points to the first direction.

15. The method according to any one of claims 1 to 13, characterized in that: The continuing to move the application window along the first direction includes: If the sliding track of the first sliding operation points to the first direction, the application window is moved along an extension line of the sliding track.

16. The method according to any one of claims 3 to 5, characterized in that: Before continuing to move the application window along the third direction, the method further includes: Displaying a close icon at the edge of the screen corresponding to the third direction; The continuing to move the application window along the third direction includes: The application window is moved along a second designated route, wherein the second designated route points to the close icon.

17. The method according to claim 2, characterized in that The displaying the application window in a minimized state includes: Displaying the application window in a mini floating window state; or A floating icon of the application window is displayed.

18. An electronic device, characterized in that: The electronic device includes a memory and one or more processors; the memory and the processor are coupled; the memory is used to store computer program code, the computer program code includes computer instructions, and when the processor executes the computer instructions, the electronic device executes the method as described in any one of claims 1-17.

19. A chip system, characterized in that: The chip system is applied to an electronic device; the chip system includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through lines; the interface circuit is used to receive a signal from a memory of the electronic device and send the signal to the processor, the signal including a computer instruction stored in the memory; when the processor executes the computer instruction, the electronic device executes the method as described in any one of claims 1-17.

20. A computer storage medium, characterized in that The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1 to 17.

21. A computer program product, characterized in that When the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 17.