Window display method and electronic equipment

By implementing a window display method in an electronic device, allowing the sub-window to cover part of the second window and the third window, the problem of restricted display area of ​​the sub-window is solved and the user experience is improved.

CN119536612APending Publication Date: 2025-02-28HUAWEI TECH CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202311138690.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-08-29
Filing Date
2023-09-01
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

When existing electronic devices are multitasking, the display area of ​​the child window is limited to the parent window and cannot be displayed in other areas of the display screen, affecting the user experience.

Method used

By implementing a window display method in the electronic device, the first window is displayed in response to a user operation, including a second window and a third window displayed in parallel, receive an operation acting on the second window, trigger a sub-window of displaying the second window, and allow the sub-window to cover part of the second window and the third window.

Benefits of technology

It realizes the flexible display area of ​​the child window, enhances the user's operability and user experience, and avoids the problem of the child window blocking other windows.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119536612A_ABST
    Figure CN119536612A_ABST
Patent Text Reader

Abstract

The invention discloses a window display method and electronic equipment, relates to the technical field of electronic equipment, and can adjust a display area of a sub-window. According to the specific scheme, in response to operation of starting a target application, the electronic equipment can display a first window, and the first window comprises a second window and a third window which are displayed in parallel. Afterwards, the electronic device can receive a first operation acting on the second window, and the first operation is used for triggering and displaying a sub-window of the second window. Then, in response to the first operation, a child window of the second window is displayed. Wherein the sub-window of the second window covers a partial area in the area where the second window is located and a partial area in the area where the third window is located.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the priority of the Chinese patent application entitled “Window display method and electronic device”, which was submitted to the State Intellectual Property Office of China on August 29, 2023 (the State Intellectual Property Office has not provided an application number as of September 1, 2023. After the State Intellectual Property Office provides the application number, the application number will be supplemented according to the applicant's file number 92048311CN01), and the entire contents of which are incorporated by reference in this application. Technical Field

[0002] Embodiments of the present application relate to the technical field of electronic devices, and more particularly to a window display method and electronic device. Background Art

[0003] With the development of electronic technology, electronic devices (such as mobile phones, tablet computers or smart watches, etc.) have more and more functions and can be widely used in multiple scenarios such as home entertainment, office learning, etc. In addition, electronic devices can process multiple tasks at the same time through multitasking to meet the needs of users.

[0004] At present, when performing multi-tasking, electronic devices can display different task interfaces in a multi-window manner. In addition, there is a parent-child hierarchical relationship between some windows, and the display position and display size of the child window can only be limited to the range of the parent window. For example, an electronic device can simultaneously display window a and window b in the form of floating windows. Afterwards, in response to the user's operation on the display interface in window a, the electronic device can display window c, which is a child window of window a. The size of window c is smaller than window a, and window c can only be displayed in the area where window a is located. Therefore, how to adjust the display area of ​​the child window has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] The present application provides a window display method and electronic device, which can adjust the display area of ​​a sub-window.

[0006] In a first aspect, the present application provides a method for displaying a window, in which, in response to an operation of starting a target application, an electronic device may display a first window, wherein the first window includes a second window and a third window displayed in parallel. Afterwards, the electronic device may receive a first operation acting on the second window, wherein the first operation is used to trigger the display of a sub-window of the second window. Then, in response to the first operation, a sub-window of the second window is displayed. The sub-window of the second window covers a portion of the area where the second window is located and a portion of the area where the third window is located.

[0007] Based on the above technical solution, if the displayed sub-window is used to control the window of the entire application (i.e., the first window), the electronic device will display the sub-window of the displayed second window between the second window and the third window. In this way, it helps the user to understand the functional authority of the sub-window (i.e., the function in the window is applied to the entire application window), which improves the user's experience. In addition, the sub-window of the second window is displayed between the second window and the third window, which can reduce the area covered by the sub-window of the second window and improve the user's experience of using the second window.

[0008] In combination with the first aspect, in a possible design manner, the electronic device may display a sub-window of the second window of a first preset size, where the first preset size is smaller than or equal to the size of the first window.

[0009] That is to say, the size of the sub-window of the second window is not limited to the size of the parent window (ie, the second window), and may not exceed the size of the first window (ie, the display area of ​​the target application), thereby enriching the diversity of sub-window display.

[0010] In combination with the first aspect, in another possible design manner, the first preset size is smaller than or equal to the size of the display screen.

[0011] That is to say, the size of the sub-window of the second window is not limited to the size of the parent window (ie, the second window), and may not exceed the size of the display screen, thereby enriching the diversity of the sub-window display.

[0012] In combination with the first aspect, in another possible design method, the first preset size is less than or equal to the size of the first window, including: the width of the sub-window of the second window is less than or equal to the width of the first window, and / or the height of the sub-window of the second window is less than or equal to the height of the first window.

[0013] That is to say, the width and height of the sub-window of the second window are both limited by the first window, so that the sub-window of the second window can be displayed in the area where the first window is located, enriching the diversity of sub-window display.

[0014] In combination with the first aspect, in another possible design method, the first preset size is less than or equal to the size of the display screen, including: the width of the sub-window of the second window is less than or equal to the width of the display screen, and the height of the sub-window of the second window is less than or equal to the height of the display screen.

[0015] That is to say, the width and height of the sub-window of the second window are both limited by the display screen, so that the sub-window of the second window can be displayed in any area of ​​the display screen, enriching the diversity of sub-window display.

[0016] In combination with the first aspect, in another possible design, the window display method may further include: the electronic device receives a second operation acting on a sub-window of the second window, the second operation being used to move the sub-window of the second window. Then, in response to the second operation, the sub-window of the second window is controlled to move; wherein the moving area of ​​the sub-window of the second window includes the area where the first window is located and the area beyond the first window.

[0017] It is understandable that the electronic device can change the display area of ​​the sub-window of the second window in response to the user's movement operation, so as to enhance the user's operability and improve the user's experience.

[0018] In combination with the first aspect, in another possible design, the window display method may also include: the electronic device can receive an open operation acting on a preset move button to enable the movement of a sub-window of the second window, and the preset move button is used to control whether the sub-window is allowed to be moved.

[0019] It is understandable that by setting a preset moving button, the electronic device can enable the function of moving the sub-window according to the user's operation. In this way, the user can set the function of moving the sub-window according to actual needs, avoid accidental touches, and improve the user's experience.

[0020] In combination with the first aspect, in another possible design, the window display method may further include: the electronic device displays at least one application move button, one application move button corresponds to one application, and the application move button is used to control whether to allow the sub-window of the application to be moved. Afterwards, the electronic device may receive an opening operation of the application move button acting on the first application, enabling the sub-window of the first application to be moved, and the first application is any application among the applications corresponding to the at least one application move button.

[0021] It is understandable that the electronic device allows the user to set the mobile function of the sub-window for different applications by displaying the application mobile button. In this way, the user can set the function of moving the sub-window of different applications according to actual needs, thereby improving the user's experience.

[0022] In combination with the first aspect, in another possible design, the window display method may further include: the electronic device may receive a third operation, the third operation is used to adjust the size of the sub-window of the second window. Thereafter, in response to the third operation, the electronic device adjusts the size of the sub-window of the second window to a target size, the target size being different from the size of the sub-window of the second window before the adjustment.

[0023] It is understandable that the electronic device can adjust the display area covered by the sub-window of the second window by adjusting the size of the sub-window of the second window. In this way, the user can flexibly adjust the size of the sub-window displayed by the electronic device to avoid the sub-window blocking other windows, thereby improving the user experience.

[0024] In combination with the first aspect, in another possible design method, the display method of the window may also include: the electronic device can receive an activation operation acting on a preset adjustment button to enable adjustment of the size of the sub-window of the second window, and the preset adjustment button is used to control whether adjustment of the size of the sub-window is allowed.

[0025] It is understandable that by setting a preset adjustment button, the electronic device can turn on or off the function of adjusting the size of the sub-window according to the user's operation. In this way, the user can set the function of adjusting the size of the sub-window according to actual needs, thereby improving the user's experience.

[0026] In combination with the first aspect, in another possible design, the method for displaying the window may further include: the electronic device may display a second interface, the second interface including: at least one application adjustment button, one application adjustment button corresponding to one application, the application adjustment button being used to control whether to allow adjustment of the size of the sub-window of the application. Afterwards, the electronic device may receive an opening operation of the application adjustment button acting on the second application, enabling adjustment of the size of the sub-window of the second application, the second application being any application among the applications corresponding to the at least one application adjustment button.

[0027] It is understandable that the electronic device allows the user to set the sub-window size adjustment function for different applications by displaying the application adjustment button. In this way, the user can set the sub-window size adjustment function for different applications according to actual needs, thereby improving the user's experience.

[0028] In combination with the first aspect, in another possible design, the sub-window of the second window may include a display switching button, and the display switching button is used to trigger the sub-window of the second window to be displayed in a preset area according to a second preset size, and the preset area is an upper area of ​​the area where the second window is located, and the second preset size is smaller than the size of the second window. The display method of the window may also include: the electronic device may receive an operation acting on the display switching button, adjust the size of the sub-window of the second window and / or the display area of ​​the sub-window of the second window, and display the sub-window of the second window of the second preset size in the preset area.

[0029] It is understandable that, by operating the display switching button, the electronic device can switch the display mode of the sub-window of the second window, so as to improve the convenience of the user in switching the display mode of the sub-window.

[0030] In combination with the first aspect, in another possible design, the display method of the window may further include: the electronic device may execute a first event, the first event is used to trigger the adjustment of the restriction condition on the sub-window of the second window, the restriction condition is used to constrain the size of the sub-window of the second window. Wherein, the adjusted restriction condition includes: the size of the sub-window of the second window is less than or equal to the size of the first window, or the size of the sub-window of the second window is less than or equal to the size of the display screen.

[0031] It can be understood that by adjusting the restrictions on the sub-windows of the second window, the electronic device can not only display the sub-windows of the second window in the area where the second window is located, but also display the sub-windows of the second window in other areas, thereby enriching the diversity of sub-window displays and improving the user experience.

[0032] In conjunction with the first aspect, in another possible design, the first event may include at least one of the following: if the first information is received, the size of the subwindow of the second window is not set to the first information, and the first information is used to indicate that the size of the subwindow of the second window matches the second window. If the second window is not a full-screen window, the restriction condition on the subwindow of the second window is adjusted. If the window information of the subwindow of the second window contains the second information, the restriction condition on the subwindow of the second window is adjusted, and the second information is used to indicate that the window is a subwindow.

[0033] It is understandable that when the condition for limiting the sub-window is that the sub-window is related to the display of the parent window, the electronic device can adjust the limiting condition for the sub-window. In this way, the electronic device can not only display the sub-window of the second window in the area where the second window is located, but also display the sub-window of the second window in other areas, enriching the diversity of sub-window display, thereby improving the user experience.

[0034] In combination with the first aspect, in another possible design, the display method of the window may further include: the electronic device may obtain window information of a sub-window of the second window, the window information including: window type information, aspect ratio, and preset display area. Afterwards, if the window information meets a preset condition, the electronic device executes the first event. The preset condition includes at least one of the following: the window type information is preset type information, the aspect ratio is greater than a preset ratio threshold, and the preset display area is not within the range of the area where the second window is located; the preset type information is used to indicate that the window type is a sub-window type.

[0035] That is to say, when the window type information indicates that the window type is a child window type, the aspect ratio is greater than the preset ratio threshold, and the preset display area is not within the range of the area where the second window is located, the electronic device can adjust the restriction conditions of the child window so that the child window is not dependent on the parent window display, thereby increasing the diversity of the child window display.

[0036] In combination with the first aspect, in another possible design, the window display method may further include: the electronic device obtains window mode information of the first window. If the window mode information is third information, the electronic device executes the first event, and the third information is used to indicate display in parallel horizon mode.

[0037] That is to say, when the first window is displayed in parallel view mode, the electronic device can adjust the restriction conditions of the sub-window. In this way, the sub-window can be displayed between the second window and the third window, which helps the user to understand the functional authority of the sub-window (that is, the function in the window is applied to the entire application window), and improves the user's experience. In addition, the sub-window of the second window is displayed between the second window and the third window, which can reduce the area covered by the sub-window of the second window and improve the user's experience of using the second window.

[0038] In combination with the first aspect, in another possible design, the window display method may further include: the electronic device may obtain an application whitelist, the application whitelist is used to indicate applications that are allowed to display sub-windows in a target area, the target area being a portion of the area where the second window is located and a portion of the area where the third window is located. Thereafter, if the target application is in the application whitelist, the electronic device may execute the first event.

[0039] It is understandable that, by using the whitelist, the electronic device can selectively adjust the restriction conditions of the sub-windows of some applications, thereby reducing the load of the electronic device and the consumption of resources.

[0040] In combination with the first aspect, in another possible design, the window display method may further include: the electronic device may obtain fourth information, the fourth information being used to indicate a triggering method of the sub-window of the second window. If the fourth information is used to indicate that the sub-window of the second window is triggered by a user, the electronic device executes the first event.

[0041] It is understandable that by determining whether the sub-window is triggered by the user, the electronic device only adjusts the restriction conditions of the sub-window triggered by the user. In this way, it is possible to avoid adjusting the restriction conditions of windows not triggered by the user (such as advertising windows), thereby reducing the consumption of electronic device resources.

[0042] In combination with the first aspect, in another possible design, the display method of the window may further include: the electronic device may generate a second event through the second window, and the second event is used to trigger the creation of a subwindow of the second window. Afterwards, the electronic device may obtain window hierarchy information through the second window, and the window hierarchy information is used to indicate the hierarchical relationship between the second window and the third window. Then, if the window hierarchy information is used to indicate that the second window is on the upper layer of the third window, the second event is executed through the second window.

[0043] It is understandable that the electronic device determines the hierarchical relationship between the second window and the third window through the window hierarchy information. If the window hierarchy information is used to indicate that the second window is in the upper layer of the third window, it means that the hierarchical relationship of the sub-window created by the second window is higher than that of the third window. In this way, the electronic device executes the window creation event through the second window, so that the sub-window of the second window can be completely displayed in the upper layer of the second window and the third window, thereby improving the user experience.

[0044] In combination with the first aspect, in another possible design, the window display method may also include: if the window hierarchy information is used to indicate that the third window is above the second window, sending a second event to the third window through the second window, and executing the second event through the third window.

[0045] It is understandable that if the window level information is used to indicate that the third window is on the upper layer of the second window, it means that the hierarchical relationship of the sub-window created by the second window is lower than that of the third window. In this way, the electronic device can send a window creation event to the third window through the second window, and execute the window creation event through the third window, so that the sub-window of the second window can be completely displayed on the upper layer of the second window and the third window, thereby improving the user experience.

[0046] In combination with the first aspect, in another possible design, the second window may include a first drag button, and the third window may include a second drag button. The display method of the window may also include: the electronic device may receive an operation acting on the first drag button through the second window, and generate a state change message, the state change message is used to indicate the adjustment of the state of the drag button, and the state of the drag button includes at least one of the following: button size, button shape, button color. Afterwards, in response to the state change message, the electronic device may adjust the state of the first drag button to the target state through the second window. Then, the electronic device may send a state change message to the third window. Then, in response to the state change message, the electronic device may adjust the state of the second drag button to the target state through the third window.

[0047] It is understandable that after the electronic device receives the operation acting on the first drag button, it can not only adjust the state of the first drag button, but also send a state change message to the third window, so that the electronic device can adjust the state of the second drag button, ensuring the synchronization of the states of the first drag button and the second drag button, and improving the user's visual experience.

[0048] In combination with the first aspect, in another possible design manner, the first window may be a floating window or a full-screen window.

[0049] That is, the target application can be displayed in a suspended state in the parallel view mode. Alternatively, the target application can be displayed in full screen in the parallel view mode.

[0050] In combination with the first aspect, in another possible design, the second window and the third window display different interfaces of the target application.

[0051] That is to say, two interfaces of the same application can be displayed simultaneously through the second window and the third window respectively.

[0052] In a second aspect, the present application provides an electronic device, which includes: a memory, a display screen and one or more processors, wherein the memory and the display screen are coupled to the processors; the memory is used to store computer program codes, and the computer program codes include computer instructions; when the computer instructions are executed by the one or more processors, the electronic device performs the following operations: in response to an operation of starting a target application, a first window of the target application is displayed, and the first window includes: a second window and a third window displayed in parallel. A first operation acting on the second window is received, and the first operation is used to trigger the display of a sub-window of the second window. In response to the first operation, a sub-window of the second window is displayed. Wherein, the sub-window of the second window covers a portion of the area where the second window is located and a portion of the area where the third window is located.

[0053] In combination with the second aspect, in one possible design method, when the computer instructions are executed by the above-mentioned one or more processors, the electronic device can also perform the following operations: display a sub-window of the second window of a first preset size; wherein the first preset size is less than or equal to the size of the first window, or the first preset size is less than or equal to the size of the display screen.

[0054] In combination with the second aspect, in another possible design method, the first preset size is less than or equal to the size of the first window, including: the width of the sub-window of the second window is less than or equal to the width of the first window, and / or the height of the sub-window of the second window is less than or equal to the height of the first window.

[0055] In combination with the second aspect, in another possible design method, the first preset size is less than or equal to the size of the display screen, including: the width of the sub-window of the second window is less than or equal to the width of the display screen, and the height of the sub-window of the second window is less than or equal to the height of the display screen.

[0056] In conjunction with the second aspect, in another possible design, when the computer instructions are executed by the one or more processors, the electronic device can further perform the following operations: receiving a second operation acting on a sub-window of the second window, the second operation being used to move the sub-window of the second window. In response to the second operation, the sub-window of the second window follows the movement; wherein the moving area of ​​the sub-window of the second window includes the area where the first window is located and the area beyond the first window.

[0057] In combination with the second aspect, in another possible design method, when the computer instructions are executed by the above-mentioned one or more processors, the electronic device can also perform the following operations: receiving an open operation acting on a preset move button, enabling the movement of the sub-window of the second window, and the preset move button is used to control whether the sub-window is allowed to be moved.

[0058] In combination with the second aspect, in another possible design mode, when the computer instructions are executed by the one or more processors, the electronic device can also perform the following operations: display a first interface, the first interface includes: at least one application move button, one application move button corresponds to one application, and the application move button is used to control whether to allow the sub-window of the application to be moved. Receive an opening operation of the application move button acting on the first application, and enable the sub-window of the first application to be moved, the first application being any application among the applications corresponding to the at least one application move button.

[0059] In conjunction with the second aspect, in another possible design, when the computer instruction is executed by the one or more processors, the electronic device may further perform the following operations: receiving a third operation, the third operation being used to adjust the size of the sub-window of the second window. In response to the third operation, adjusting the size of the sub-window of the second window to a target size, the target size being different from the size of the sub-window of the second window before the adjustment.

[0060] In combination with the second aspect, in another possible design method, when the computer instructions are executed by the above-mentioned one or more processors, the electronic device can also perform the following operations: receiving an activation operation acting on a preset adjustment button to enable adjustment of the size of the sub-window of the second window, and the preset adjustment button is used to control whether adjustment of the size of the sub-window is allowed.

[0061] In conjunction with the second aspect, in another possible design, when the computer instructions are executed by the one or more processors, the electronic device can further perform the following operations: displaying a second interface, the second interface including: at least one application adjustment button, one application adjustment button corresponding to one application, the application adjustment button being used to control whether to allow adjustment of the size of the sub-window of the application. Receiving an opening operation of the application adjustment button acting on the second application, enabling adjustment of the size of the sub-window of the second application, the second application being any application among the applications corresponding to the at least one application adjustment button.

[0062] In conjunction with the second aspect, in another possible design, the sub-window of the second window includes a display switching button, and the display switching button is used to trigger the sub-window of the second window to be displayed in a preset area according to a second preset size, the preset area is an upper area of ​​the area where the second window is located, and the second preset size is smaller than the size of the second window. When the computer instructions are executed by the one or more processors, the electronic device can also perform the following operations: receiving an operation acting on the display switching button, adjusting the size of the sub-window of the second window and / or the display area of ​​the sub-window of the second window, and displaying the sub-window of the second window of the second preset size in the preset area.

[0063] In conjunction with the second aspect, in another possible design, when the computer instructions are executed by the one or more processors, the electronic device can also perform the following operations: execute a first event, the first event is used to trigger the adjustment of the restriction condition on the sub-window of the second window, the restriction condition is used to constrain the size of the sub-window of the second window. Wherein, the adjusted restriction condition includes: the size of the sub-window of the second window is less than or equal to the size of the first window, or the size of the sub-window of the second window is less than or equal to the size of the display screen.

[0064] In conjunction with the second aspect, in another possible design, the first event includes at least one of the following: if the first information is received, the size of the subwindow of the second window is not set to the first information, and the first information is used to indicate that the size of the subwindow of the second window matches the second window. If the second window is not a full-screen window, the restriction condition on the subwindow of the second window is adjusted. If the window information of the subwindow of the second window contains the second information, the restriction condition on the subwindow of the second window is adjusted, and the second information is used to indicate that the window is a subwindow.

[0065] In combination with the second aspect, in another possible design mode, when the computer instruction is executed by the one or more processors, the electronic device can also perform the following operations: obtain the window information of the sub-window of the second window, the window information includes: window type information, aspect ratio, preset display area. If the window information meets the preset conditions, the first event is executed. Among them, the preset conditions include at least one of the following: the window type information is preset type information, the aspect ratio is greater than the preset ratio threshold, and the preset display area is not within the range of the area where the second window is located; the preset type information is used to indicate that the window type is a sub-window type.

[0066] In combination with the second aspect, in another possible design, when the computer instruction is executed by the one or more processors, the electronic device can further perform the following operation: obtaining window mode information of the first window. If the window mode information is third information, executing the first event, the third information is used to indicate display in parallel horizon mode.

[0067] In conjunction with the second aspect, in another possible design, when the computer instructions are executed by the one or more processors, the electronic device can further perform the following operations: obtain an application whitelist, the application whitelist is used to indicate applications that are allowed to display sub-windows in a target area, the target area being a partial area in the area where the second window is located and a partial area in the area where the third window is located. If the target application is in the application whitelist, execute the first event.

[0068] In conjunction with the second aspect, in another possible design, when the computer instructions are executed by the one or more processors, the electronic device may further perform the following operations: obtaining fourth information, where the fourth information is used to indicate a triggering method of a sub-window of the second window. If the fourth information is used to indicate that the sub-window of the second window is triggered by a user, executing the first event.

[0069] In combination with the second aspect, in another possible design mode, when the computer instructions are executed by the one or more processors, the electronic device can also perform the following operations: generating a second event through the second window, the second event is used to trigger the creation of a subwindow of the second window. Obtaining window hierarchy information through the second window, the window hierarchy information is used to indicate the hierarchical relationship between the second window and the third window. If the window hierarchy information is used to indicate that the second window is on the upper layer of the third window, executing the second event through the second window.

[0070] In combination with the second aspect, in another possible design method, when the computer instructions are executed by the above-mentioned one or more processors, the electronic device can also perform the following operations: if the window hierarchy information is used to indicate that the third window is above the second window, then the second event is sent to the third window through the second window, and the second event is executed through the third window.

[0071] In combination with the second aspect, in another possible design, the second window includes: a first drag button, and the third window includes: a second drag button. When the computer instructions are executed by the one or more processors, the electronic device can also perform the following operations: receiving an operation acting on the first drag button through the second window, generating a state change message, the state change message is used to indicate the adjustment of the state of the drag button, and the state of the drag button includes at least one of the following: button size, button shape, button color. In response to the state change message, the state of the first drag button is adjusted to the target state through the second window. Send a state change message to the third window. In response to the state change message, the state of the second drag button is adjusted to the target state through the third window.

[0072] In combination with the second aspect, in another possible design manner, the first window is a floating window or a full-screen window.

[0073] In combination with the second aspect, in another possible design, the second window and the third window display different interfaces of the target application.

[0074] In a third 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 method described in the first aspect and any possible design thereof.

[0075] In a fourth aspect, the present application provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the method described in the first aspect and any possible design thereof.

[0076] In a fifth aspect, the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method described in the first aspect and any possible design thereof.

[0077] It can be understood that the beneficial effects that can be achieved by the electronic device described in the second aspect and any possible design thereof, the chip system described in the third aspect, the computer-readable storage medium described in the fourth aspect, and the computer program product described in the fifth aspect can be referred to as the beneficial effects in the first aspect and any possible design thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] Figure 1 An example schematic diagram of a sub-window display provided in an embodiment of the present application;

[0079] Figure 2 An exemplary schematic diagram of another sub-window display provided in an embodiment of the present application;

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

[0081] Figure 4 A schematic diagram of a system architecture of an electronic device provided in an embodiment of the present application;

[0082] Figure 5A An exemplary schematic diagram of another sub-window display provided in an embodiment of the present application;

[0083] Figure 5B An exemplary schematic diagram of another sub-window display provided in an embodiment of the present application;

[0084] Fig. 6A An exemplary schematic diagram of another sub-window display provided in an embodiment of the present application;

[0085] Figure 6B An exemplary schematic diagram of another sub-window display provided in an embodiment of the present application;

[0086] Figure 7 An exemplary schematic diagram of another sub-window display provided in an embodiment of the present application;

[0087] Figure 8 An example schematic diagram of a sub-window movement provided in an embodiment of the present application;

[0088] Fig. 9A An example schematic diagram of a sub-window setting interface provided in an embodiment of the present application;

[0089] Fig. 9B An example schematic diagram of another sub-window setting interface provided in an embodiment of the present application;

[0090] Fig.10 An example schematic diagram of another sub-window setting interface provided in an embodiment of the present application;

[0091] Fig.11 An example schematic diagram of another sub-window setting interface provided in an embodiment of the present application;

[0092] Fig.12 An exemplary schematic diagram of another sub-window display provided in an embodiment of the present application;

[0093] Fig.13 An exemplary schematic diagram of another sub-window display provided in an embodiment of the present application;

[0094] Fig.14A A schematic diagram of a flow chart of a sub-window layout method provided in an embodiment of the present application;

[0095] Fig. 14B A schematic diagram of a flow chart of a sub-window limiting method provided in an embodiment of the present application;

[0096] Fig.15 An exemplary schematic diagram of another sub-window display provided in an embodiment of the present application;

[0097] Fig.16 An exemplary schematic diagram of another sub-window display provided in an embodiment of the present application;

[0098] Fig.17 An exemplary schematic diagram of another sub-window display provided in an embodiment of the present application;

[0099] Fig.18 A schematic diagram of the structural composition of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0100] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0101] In this application, the character " / " generally indicates that the objects before and after are in an "or" relationship. For example, A / B can be understood as A or B.

[0102] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.

[0103] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or modules is not limited to the listed steps or modules, but may optionally include other steps or modules that are not listed, or may optionally include other steps or modules that are inherent to these processes, methods, products or devices.

[0104] In addition, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present concepts in a specific way.

[0105] With the development of electronic technology, electronic devices (such as mobile phones, tablet computers or smart watches, etc.) have more and more functions and can be widely used in multiple scenarios such as home entertainment, office learning, etc. In addition, electronic devices can process multiple tasks at the same time through multitasking to meet the needs of users.

[0106] When performing multitasking, electronic devices can display different task interfaces in a multi-window manner. In addition, there is a parent-child hierarchical relationship between some windows, namely a parent window and a child window. Among them, the electronic device can pop up a new window in response to the user's operation in the parent window, and the pop-up new window is a child window. The interface displayed by the child window and the application interface displayed by the parent window can be the application interface of the same application, or the interface displayed by the child window can be an interface associated with the parent window, such as an interface for setting parent window properties. At present, when an electronic device pops up a child window, it will set the display position and display size of the child window to be limited to the range of the parent window.

[0107] For example, Figure 1 As shown, the electronic device can display a floating window 101, in which the application interface of application a is displayed, and the floating window 101 includes: a drag button 102. In response to the operation of the drag button 102 (such as a click operation or a long press operation), the electronic device can display a floating window 103 (i.e., a subwindow of the floating window 101) on the upper layer of the area where the floating window 101 is located. For example, the floating window 103 can be displayed on the top of the floating window 101. Optionally, the floating window 103 may include a window setting interface, and the window setting interface may include: an enlargement button, a reduction button, and a close button. The enlargement button is used to enlarge the floating window 101 (such as adjusting the floating window 101 to full screen display), the reduction button is used to reduce the floating window 101 (such as hiding the floating window 101), and the close button is used to close the floating window 101. In addition, the floating window 103 cannot be displayed in any area other than the area where the floating window 101 is located in the display screen. For example, the floating window 102 cannot be displayed in area 104.

[0108] Furthermore, in order to improve the user experience when the electronic device performs multi-tasking in parallel, the electronic device can display two interfaces of the same application in parallel horizon mode. That is to say, when the electronic device is in parallel horizon mode, a floating window can be divided into two windows, and two pages of the same application can be displayed at the same time. However, when the user operates one of the two windows (such as window a), the sub-window of window a popped up by the electronic device can only be displayed in window a, and cannot be displayed in other areas of the display screen.

[0109] For example, the size of the floating window can be adjusted freely. However, when the size of the floating window is reduced to a certain ratio, the zoom-in button, zoom-out button, and close button on the left and right sides of the floating window title bar will not be displayed. After that, after the electronic device receives the operation of clicking and dragging the button, it can display a sub-window in which the zoom-in button, zoom-out button, and close button are displayed.

[0110] For example, Figure 2 As shown, the electronic device can display a floating window 201, and the floating window 201 can include a floating window 202 and a floating window 203, and the floating window 202 and the floating window 203 both display the application interface of application a. The floating window 202 includes a drag button 204, and the floating window 203 includes a drag button 205. Afterwards, in response to an operation on the drag button 204 (such as a click operation or a long press operation), the electronic device can display a floating window 206 (i.e., a sub-window of the floating window 202) on the upper layer of the area where the floating window 202 is located. For example, the floating window 206 can be displayed on the top of the floating window 202. Optionally, the floating window 206 may include: an enlargement button, a reduction button, and a close button. The enlargement button is used to enlarge the floating window 201 (such as adjusting the floating window 201 to full screen display), and the reduction button is used to reduce the floating window 201 (such as hiding the floating window 101). In addition, the floating window 206 cannot be displayed in any area of ​​the display screen except the area where the floating window 202 is located. For example, floating window 206 cannot be displayed in the area where floating window 203 is located.

[0111] Combination Figure 2 It can be seen that the control button in the floating window 206 is a button for controlling the floating window 201, but can only be displayed in the area where the floating window 202 is located. In this way, the user may mistakenly believe that the control button in the floating window 206 is a button for controlling the floating window 202, which may cause confusion in the user's operation and affect the user's experience. Therefore, how to adjust the display mode of the sub-window has become a technical problem that needs to be solved urgently.

[0112] To this end, an embodiment of the present application provides a method for displaying a window. In the method, an electronic device can display a parent window. Afterwards, the electronic device can receive an operation acting on the parent window to trigger the display of a child window corresponding to the parent window. In response to the operation acting on the parent window, the electronic device can display the child window in the parent window, or the electronic device can display the child window in an area other than the parent window in the display screen. In this way, the electronic device can not only display the child window in the parent window, but also display the child window in an area other than the parent window. In this way, the flexibility of window display can be increased and the user experience can be improved.

[0113] Among them, in the embodiment of the present application, the window can display the application interface of the application, or the window can display the system interface, which is not limited in the embodiment of the present application. The application in the embodiment of the present application can be an embedded application (i.e., a system application of the electronic device) installed in the electronic device or a downloadable application. Among them, an embedded application is an application provided as part of an implementation of an electronic device (such as a mobile phone). A downloadable application is an application that can provide its own Internet Protocol Multimedia Subsystem (Internet Protocol Multimedia Subsystem, IMS) connection, and the downloadable application can be an application pre-installed in the terminal or a third-party application that can be downloaded and installed in the terminal by the user.

[0114] For example, the above application may be an embedded application program installed in the terminal (ie, a system application of the terminal). For example, the above application may be a clock, a calendar, a calculator, and the like.

[0115] For another example, the above-mentioned multiple applications may also be downloadable application programs. For example, the above-mentioned applications may be social applications, shopping applications, short video applications, etc.

[0116] Exemplarily, the electronic device in the embodiments of the present application may be a tablet computer, a mobile phone, a desktop computer, a laptop computer, 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) device, a virtual reality (VR) device, a vehicle-mounted device, or the like. The embodiments of the present application do not impose any special restrictions on the specific form of the electronic device.

[0117] The execution subject of the window display method provided in the present application may be a window display device, and the execution device may be Figure 3The electronic device shown. At the same time, the execution device can also be a central processing unit (CPU) of the electronic device, or a display control module for the window in the electronic device. In the embodiment of the present application, the method for displaying a window executed by an electronic device is taken as an example to illustrate the method for displaying a window provided in the embodiment of the present application.

[0118] Please refer to Figure 3 , this application is based on electronic equipment Figure 3 Taking the tablet computer 200 as an example, the electronic device provided by the present application is introduced. Figure 3 The illustrated tablet computer 200 is merely one example of an electronic device, and the tablet computer 200 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. Figure 3 The various components shown in the EMBODIMENTS 2000 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.

[0119] like Figure 3 As shown, the tablet computer 200 may include: a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a subscriber identification module (SIM) card interface 295, etc.

[0120] Among them, the above-mentioned sensor module 280 may include sensors such as pressure sensor, gyroscope sensor, air pressure sensor, magnetic sensor, acceleration sensor, distance sensor, proximity light sensor, fingerprint sensor, temperature sensor, touch sensor, ambient light sensor and bone conduction sensor.

[0121] The processor 210 may include one or more processing units, for example, the processor 210 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.

[0122] The controller may be the nerve center and command center of the tablet computer 200. 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.

[0123] The processor 210 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may store instructions or data that the processor 210 has just used or cyclically used. If the processor 210 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 210, and thus improves the efficiency of the system.

[0124] In some embodiments, the processor 210 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.

[0125] 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 tablet computer 200. In other embodiments, the tablet computer 200 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0126] The charging management module 240 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. While the charging management module 240 charges the battery 242, it can also power the electronic device through the power management module 241.

[0127] The power management module 241 is used to connect the battery 242, the charging management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and / or the charging management module 240, and supplies power to the processor 210, the internal memory 221, the external memory, the display screen 294, the camera 293, and the wireless communication module 260. In some embodiments, the power management module 241 and the charging management module 240 can also be set in the same device.

[0128] The wireless communication function of the tablet computer 200 can be implemented through antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, modem processor and baseband processor. In some embodiments, the antenna 1 of the tablet computer 200 is coupled with the mobile communication module 250, and the antenna 2 is coupled with the wireless communication module 260, so that the tablet computer 200 can communicate with the network and other devices through wireless communication technology. For example, in the embodiment of the present application, the tablet computer 200 can send the above-mentioned target data to other devices through wireless communication technology.

[0129] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in tablet computer 200 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.

[0130] The mobile communication module 250 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the tablet computer 200. The mobile communication module 250 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 250 can receive electromagnetic waves from the antenna 1, and perform filtering, amplification, etc. on the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.

[0131] The mobile communication module 250 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some functional modules of the mobile communication module 250 can be set in the processor 210. In some embodiments, at least some functional modules of the mobile communication module 250 can be set in the same device as at least some modules of the processor 210.

[0132] The wireless communication module 260 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., applied to the tablet computer 200. For example, in the embodiment of the present application, the tablet computer 200 can access the Wi-Fi network through the wireless communication module 260.

[0133] The wireless communication module 260 may be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 210. The wireless communication module 260 may also receive signals to be sent from the processor 210, modulate the frequencies of the signals, amplify the signals, and convert the signals into electromagnetic waves for radiation via the antenna 2.

[0134] Tablet computer 200 implements display function through GPU, display screen 294, and application processor. GPU is a microprocessor for image processing, connecting display screen 294 and application processor. GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs, which execute program instructions to generate or change display information.

[0135] The display screen 294 is used to display images, videos, etc. The display screen 294 includes a display panel. For example, in an embodiment of the present application, the display screen 294 can be used to display the application interface of the above application, such as a device sharing interface, a device search interface, and a QR code scanning interface.

[0136] The tablet computer 200 can realize the shooting function through the ISP, the camera 293, the video codec, the GPU, the display screen 294 and the application processor. The ISP is used to process the data fed back by the camera 293. The camera 293 is used to capture a static image or a video. In some embodiments, the tablet computer 200 may include 1 or N cameras 293, where N is a positive integer greater than 1.

[0137] The external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the tablet computer 200. The external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0138] The internal memory 221 may be used to store computer executable program codes, which include instructions. The processor 210 executes various functional applications and data processing of the tablet computer 200 by running the instructions stored in the internal memory 221. For example, in an embodiment of the present application, the processor 210 may execute the instructions stored in the internal memory 221, and the internal memory 221 may include a program storage area and a data storage area.

[0139] The program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the tablet computer 200 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 221 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.

[0140] The tablet computer 200 can implement audio functions such as music playing and recording through the audio module 270, the speaker 270A, the receiver 270B, the microphone 270C, the headphone jack 270D, and the application processor.

[0141] The button 290 includes a power button, a volume button, etc. The button 290 can be a mechanical button. It can also be a touch button. The motor 291 can generate a vibration prompt. The motor 291 can be used for a vibration prompt for an incoming call, or for touch vibration feedback. The indicator 292 can be an indicator light, which can be used to indicate the charging status, power changes, messages, missed calls, notifications, etc. The SIM card interface 295 is used to connect the SIM card. The SIM card can be connected to and separated from the tablet computer 200 by inserting it into the SIM card interface 295 or pulling it out from the SIM card interface 295. The tablet computer 200 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 295 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.

[0142] although Figure 3 Not shown, the tablet computer 200 may also include a flashlight, a micro-projection device, a near field communication (NFC) device, etc., which will not be described in detail here.

[0143] It is understood that the structure illustrated in this embodiment does not constitute a specific limitation on the tablet computer 200. In other embodiments, the tablet computer 200 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.

[0144] After introducing the hardware structure of the electronic device, the present application takes the electronic device as a tablet computer 200 as an example to introduce the system architecture of the electronic device provided by the present application. The system architecture of the tablet computer 200 can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The operating system of the tablet computer 200 can be Android TM Operating system, Hongmeng TM Operating system or IOS TM The embodiment of the present application does not limit this. Taking the system as an example, the software structure of the tablet computer 200 is exemplified.

[0145] Figure 4 2 is a software structure diagram of the tablet computer 200 according to an embodiment of the present invention.

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

[0147] The application layer can include a series of application packages. Figure 4 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

[0148] 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 4 As shown, the application framework layer may include a layout manager, an activity manager, a window manager, a view system, a resource manager, a notification manager, a content provider, and the like.

[0149] The layout manager is used to manage the position and size of components in a container. The graphical user interface (GUI) needs to adapt to different window sizes and screen resolutions. When the window size changes, the layout manager can adjust the position and size of the components.

[0150] The activity manager is used to create a window. The activity manager is also used to distribute operation events input by the user and respond to the user's operation. For example, the activity manager receives the user's operation of creating a window and can create a new window.

[0151] The window manager is used to manage window programs. The window manager can adjust the layout of windows, such as determining the size and position of windows. The window manager can also obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0152] The window manager can include application windows and child windows. An application window corresponds to an application window of an application, such as an application window of a reading application, which is used to display the content in the reading application; another example is an application window of a shopping application, which is used to display the content in the shopping application; another example is an application window of a memo application, which is used to display the content in the memo application. The child window is attached to the parent window, that is, it cannot exist independently and needs to rely on an application. For example, the child window can be an application input method window, an application prompt box window, a shopping cart window, etc.

[0153] In one possible design, a window is a child window when its attributes are between WindowManager.LayoutParams.FIRST_SUB_WINDOW (1000) and WindowManager.LayoutParams.LAST_APPLICATION_WINDOW (99).

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

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

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

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

[0158] Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for scheduling and management of the Android system. The core library consists of two parts: one is the function that the Java language needs to call, and the other is the Android core library. 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.

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

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

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

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

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

[0164] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0165] The following is an example of the workflow of the software and hardware of the tablet computer 200 in conjunction with the scenario of displaying an application window.

[0166] When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, timestamp of the touch operation, and other information). The raw input event is stored in the kernel layer. The application framework layer obtains the raw input event from the kernel layer and identifies the control corresponding to the input event. For example, if the touch operation is a touch single-click operation and the control corresponding to the single-click operation is a shopping application icon control, the shopping application calls the interface of the application framework layer to start the shopping application, and then starts the display driver by calling the kernel layer, and displays the application window of the shopping application on the display screen.

[0167] The methods in the following embodiments can all be implemented in an electronic device having the above hardware structure and the above system architecture. In the following embodiments, the electronic device is a tablet computer 200 as an example to illustrate the methods in the embodiments of the present application.

[0168] In some embodiments, the electronic device can display sub-windows in parallel view mode. The parallel view mode is different from the traditional split-screen mode: the traditional split-screen mode displays two different applications (specifically, the application interface) through two split-screen areas of the display screen, while the parallel view mode can be understood as a split-screen display mode for the same application, that is, two different interfaces of an application can be displayed through two split-screen areas of the display screen (or two windows in a floating window). For example, Figure 2 As shown, the floating window 202 is used to display the application homepage, which may include multiple search options, one search option corresponds to one page content, and the floating window 203 is used to display the page content corresponding to the search option.

[0169] It should be noted that before the electronic device displays the application interface in the parallel horizon mode, the electronic device can turn on the parallel horizon mode in response to the user's operation. The embodiment of the present application does not limit the way to turn on the parallel horizon mode. For example, the user can open the setting interface of the parallel horizon mode in the system setting interface and select the option to turn on the parallel horizon mode. For another example, the user can trigger the turning on of the parallel horizon mode through voice operation. For another example, the user can adjust the aspect ratio of the window (such as the aspect ratio of the window is greater than the aspect ratio threshold, that is, the window is displayed in a horizontal manner) to trigger the turning on of the parallel horizon mode.

[0170] In an embodiment of the present application, after the electronic device displays two application windows of an application in a parallel view mode, it can display a sub-window of the application window in response to a user operation. In response to the operation of starting the target application, the electronic device can display a first window, and the first window includes: a second window and a third window displayed in parallel. Among them, the second window and the third window are both used to display the application interface of the same application. Afterwards, the electronic device can receive a first operation acting on the second window, and the first operation is used to trigger the display of a sub-window of the second window. In response to the first operation, the electronic device can display a sub-window of the second window.

[0171] In some examples, the second window and the third window are windows of the same application (eg, target application), and there is no parent-child relationship between the second window and the third window.

[0172] In some other examples, the second window and the third window have a parent-child relationship. The third window may be a child window of the second window. Alternatively, the second window may be a child window of the third window.

[0173] In an embodiment of the present application, the electronic device may display a sub-window of the second window in the target area.

[0174] In a possible design, the target area is a partial area of ​​the area where the second window is located and / or a partial area of ​​the area where the third window is located.

[0175] That is to say, the target area is any area in the area where the first window is located. Among them, when the target area is the area where the first window is located, the sub-window of the second window has the following three display modes (mode 1-mode 3). Mode 1, the electronic device can display the sub-window of the second window in the area where the second window is located. Mode 2, the electronic device can display the sub-window of the second window in the area where the third window is located. Mode 3, the electronic device can display the sub-window of the second window between the second window and the third window.

[0176] In some examples, the first window may be a floating window. Alternatively, the first window may be a full-screen window. The present application is introduced below by taking the first window as a floating window as an example.

[0177] In mode 1, in response to the first operation, the electronic device may display a sub-window of the second window in the area where the second window is located, that is, the sub-window of the second window may cover a part of the area where the second window is located (such as Figure 2 shown).

[0178] In some examples, the electronic device can display a sub-window of the second window in any area of ​​the area where the second window is located. Figure 2 , the electronic device may display the floating window 204 in the top area of ​​the floating window 202; or, the electronic device may display the floating window 204 in the middle area of ​​the floating window 202; or, the electronic device may display the floating window 204 in the bottom area of ​​the floating window 202.

[0179] In mode 2, in response to the first operation, the electronic device may display a sub-window of the second window in the area where the third window is located, that is, the sub-window of the second window may cover a portion of the area where the third window is located.

[0180] Exemplary, combined Figure 2 ,like Figure 5A As shown, after the electronic device receives the user's operation of clicking the drag button 204 , the electronic device can display the floating window 501 on the upper layer of the floating window 203 .

[0181] In some examples, the electronic device can display a sub-window of the second window in any area of ​​the area where the third window is located. Figure 5A, the electronic device may display the floating window 501 in the top area of ​​the floating window 203 ; or, the electronic device may display the floating window 501 in the middle area of ​​the floating window 203 ; or, the electronic device may display the floating window 501 in the bottom area of ​​the floating window 203 .

[0182] It is understandable that if the user is using the second window, the electronic device will display the sub-window of the second window in the third window. In this way, the electronic device can fully display the second window and the sub-window of the second window to reduce the impact on the user's use of the second window.

[0183] In mode 3, in response to the first operation, the electronic device can display a sub-window of the second window between the second window and the third window, that is, the sub-window of the second window can simultaneously cover the second window and the third window (that is, cover a partial area of ​​the second window and a partial area of ​​the third window).

[0184] Exemplary, combined Figure 2 ,like Figure 5B As shown, after the electronic device can receive the operation of the user clicking the drag button 204 , the electronic device can display the floating window 502 on the upper layer of the floating window 202 and the floating window 203 .

[0185] In some examples, the electronic device can display a sub-window of the second window in any area between the second window and the third window. Figure 5B , the electronic device can display the floating window 502 in the top area between the floating window 202 and the floating window 203; or, the electronic device can display the floating window 502 in the middle area between the floating window 202 and the floating window 203; or, the electronic device can display the floating window 502 in the bottom area between the floating window 202 and the floating window 203.

[0186] It is understandable that if the displayed sub-window is used to control the window of the entire application (i.e., the first window), the electronic device will display the sub-window of the displayed second window between the second window and the third window. In this way, it helps the user to understand the functional authority of the sub-window (i.e., the function in the window is applied to the entire application window), thereby improving the user's experience.

[0187] In another possible design, the target area may be any area in the display screen.

[0188] That is to say, the target area can be not only any area in the area where the first window is located, but also other areas in the display screen except the first window. Among them, when the target area can be any area in the display screen, the sub-window of the second window not only has the above three display modes (i.e., the above-mentioned modes 1-3), but also can include the following two display modes (modes 4 and 5). Mode 4, the electronic device can display other areas (which can be called the first target area) in the display screen except the first window. Mode 5, the electronic device can display the sub-window of the second window between the first target area and the first window.

[0189] In mode 4, in response to the first operation, the electronic device may display a sub-window of the second window in the first target area, that is, the sub-window of the second window does not cover the first window, and there is no intersection between the sub-window of the second window and the first window.

[0190] Exemplary, combined Figure 2 ,like Fig. 6A As shown, after the electronic device may receive an operation of the user clicking the drag button 204, the electronic device may display a floating window 601 in the top area of ​​the display screen.

[0191] In mode 5, in response to the first operation, the electronic device may display a sub-window of the second window between the first target area and the first window, that is, the sub-window of the second window simultaneously covers the upper layer of the first window and the first target area (such as the sub-window of the second window simultaneously covers the second window and the first target area, or the sub-window of the second window simultaneously covers a portion of the area where the third window is located and a portion of the first target area, or the sub-window of the second window simultaneously covers a portion of the area where the second window is located, a portion of the area where the third window is located, and a portion of the first target area).

[0192] Exemplary, combined Figure 2 ,like Figure 6B As shown, after the electronic device may receive an operation of the user clicking the drag button 204 (or the drag button 504), the electronic device may display a floating window 602 between the third window and the first target area.

[0193] It is understandable that the electronic device displays the sub-window of the second window in any area of ​​the display screen, that is, the sub-window of the second window can be displayed not only in the first window but also in the first target area. In this way, the display area of ​​the display screen can be fully utilized, the occlusion between windows can be reduced, and the user experience can be improved.

[0194] In some examples, the above embodiments introduce the present application by taking the sub-window displaying a button with management function for the first window as an example. The following introduces the present application by taking the sub-window and the parent window displaying the application interface of the same application as an example.

[0195] For example, Figure 7 As shown, taking the electronic device displaying the application interface of a shopping application as an example, the electronic device may display a floating window 701 and a floating window 702, wherein the floating window 701 displays a product browsing interface, the floating window 702 displays a product information interface, and the floating window 702 further includes a shopping cart button 703. In response to an operation on the shopping cart button 703, the electronic device may display a floating window 704 on the upper layer of the area where the floating window 701 is located, and the floating window 704 displays a shopping cart interface.

[0196] It should be noted that Figure 7 The floating window 704 is displayed in the upper layer of the area where the floating window 701 is located by way of example only. The embodiment of the present application does not limit the display area of ​​the floating window 704. For details, please refer to the introduction of the sub-window of the electronic device displaying the second window in the above embodiment, which will not be repeated here.

[0197] The above embodiments are only examples of the display area and display interface of the sub-window of the second window, and the embodiments of the present application do not limit this. Figure 5A ), the window size of the sub-window displaying the second window is introduced.

[0198] In an embodiment of the present application, the electronic device can display a subwindow of the second window of a first preset size, wherein the first preset size is smaller than or equal to the size of the first window, or the first preset size is smaller than or equal to the size of the display screen.

[0199] In a possible design, the window size may include: the length of the window and the width of the window. The first preset size is less than or equal to the size of the display screen, and may include: the width of the subwindow of the second window is less than or equal to the width of the display screen, and the height of the subwindow of the second window is less than or equal to the height of the display screen. The first preset size is less than or equal to the size of the first window, and may include: the width of the subwindow of the second window is less than or equal to the width of the first window, and / or the height of the subwindow of the second window is less than or equal to the height of the first window.

[0200] That is to say, the width and height of the subwindow of the second window are both smaller than or equal to the first window, or the width of the subwindow of the second window is smaller than or equal to the width of the first window, or the height of the subwindow of the second window is smaller than or equal to the height of the first window. The following takes the case where the width and height of the subwindow of the second window are both smaller than or equal to the first window as an example to introduce the embodiments of the present application.

[0201] For example, if the width of the first window is 10 and the height is 5, the width of the sub-window of the second window may be 8 and the height may be 4.

[0202] Optionally, the window size may further include: the area of ​​the window. That is, the first preset size is less than or equal to the size of the display screen, and may further include: the area of ​​the subwindow of the second window is less than or equal to the area of ​​the display screen. The first preset size is less than or equal to the size of the first window, and may further include: the area of ​​the subwindow of the second window is less than or equal to the area of ​​the first window.

[0203] In a possible implementation, when the first preset size is smaller than or equal to the size of the first window, the target area may be any one of an area where the second window is located and an area where the third window is located.

[0204] That is, when the size of the sub-window of the second window is smaller than or equal to the size of the first window, the sub-window of the second window can be displayed in the area where the first window is located according to the first preset size.

[0205] In another possible implementation manner, when the first preset size is smaller than or equal to the size of the display screen, the target area may be any area in the display screen.

[0206] That is, when the size of the sub-window of the second window is smaller than or equal to the size of the display screen, the sub-window of the second window can be displayed in any area of ​​the display screen according to the first preset size.

[0207] It should be noted that in the embodiment of the present application, since the child window can be displayed in the parent window or in any area outside the parent window, and the size of the child window may be relatively large, if the display position is not appropriate, it may block the display content of part of the electronic device, affecting the user's experience.

[0208] In some embodiments, the electronic device may move the subwindow of the second window to adjust the display area of ​​the subwindow of the second window. The electronic device may receive a second operation acting on the subwindow of the second window, the second operation being used to move the subwindow of the second window. In response to the second operation, the subwindow of the second window is controlled to move. The moving area of ​​the subwindow of the second window may include: the area where the first window is located and the area beyond the first window.

[0209] For example, Figure 8 As shown, taking the application interface of a shopping application displayed by an electronic device as an example, the electronic device can display a floating window 801, a floating window 802, and a floating window 803, and the floating window 803 is located in the upper layer (i.e., the target area) of the area where the floating window 801 is located. Among them, the floating window 801 displays a product browsing interface, the floating window 802 displays a product information interface, and the floating window 803 displays a shopping cart interface. In response to the drag operation of the floating window 803, the electronic device can move the floating window 803 to the right area (i.e., the first area) of the floating window 802. In this way, the electronic device can simultaneously display the product browsing interface, the product information interface, and the shopping cart interface, so that the user can view the relevant information at the same time without frequently switching interfaces (such as the total amount of the shopping cart can be viewed at the same time after adding the product to the shopping cart), which improves the user experience.

[0210] It is understandable that the electronic device can change the display area of ​​the sub-window of the second window in response to the user's operation, so as to enhance the operability of the user and improve the user's experience.

[0211] In some embodiments, in order to avoid the movement of the sub-window caused by the user's accidental touch, the electronic device can set whether to allow the sub-window to be moved. The electronic device can receive an opening operation acting on a preset movement button to enable the movement of the sub-window of the second window, and the preset movement button is used to control whether to allow the sub-window to be moved.

[0212] That is, after the electronic device receives the start operation acting on the preset moving button, the user can move the sub-window of the second window through the operation.

[0213] For example, Fig. 9A As shown, the electronic device can display a parallel horizon setting interface 901, and the parallel horizon setting interface 901 may include: a parallel horizon switch button 902, a sub-window moving button 903, and the sub-window moving button 903 includes an open moving state and a closed moving state, the open moving state is used to indicate that the sub-window can be moved, and the closed moving state is used to indicate that the sub-window cannot be moved. The electronic device can receive an opening operation of the user on the sub-window moving button 903, and set the state of the sub-window moving button 903 to the open moving state.

[0214] Optionally, the electronic device may receive a close operation on a preset moving button to enable moving the sub-window of the second window. That is, after the electronic device receives the close operation on the preset moving button, the user cannot move the sub-window of the second window through operation.

[0215] It is understandable that, by setting a preset moving button, the electronic device can turn on or off the function of moving the sub-window according to the user's operation. In this way, the user can set the function of moving the sub-window according to actual needs, thereby improving the user's experience.

[0216] Optionally, after the electronic device receives an activation operation on a preset move button, the electronic device may display a first interface, the first interface including: at least one application move button, one application move button corresponding to one application, the application move button being used to control whether to allow the sub-window of the application to be moved. The electronic device receives an activation operation on an application move button for a first application, and may enable the sub-window of the first application to be moved, the first application being any application among the applications corresponding to the at least one application move button.

[0217] For example, Fig. 9B As shown, the electronic device may display a parallel horizon setting interface 901, which may include: a parallel horizon switch button 902, and a sub-window moving button 903. The electronic device may receive a user's opening operation on the sub-window moving button 903, and the electronic device may display an "application 1" button, an "application 2" button, and an "application 3" button. In response to the user's opening operation on the "application 1" button, the electronic device allows the sub-window of application 1 to be moved.

[0218] It should be noted that the above is an implementation method of setting the sub-window movement provided in the embodiment of the present application, and the embodiment of the present application does not limit the implementation method of setting the sub-window movement. For example, the user can also set the sub-window movement by voice (such as the user inputs the voice "turn on the sub-window movement function of application 1").

[0219] It is understandable that the electronic device allows the user to set the mobile function of the sub-window for different applications by displaying the application mobile button. In this way, the user can set the function of moving the sub-window of different applications according to actual needs, thereby improving the user's experience.

[0220] In some embodiments, the electronic device may adjust the size of the sub-window of the second window to adjust the display area covered by the sub-window of the second window. The electronic device may receive a third operation, the third operation being used to adjust the size of the sub-window of the second window. In response to the third operation, the electronic device may adjust the size of the sub-window of the second window to a target size, the target size being different from the size of the sub-window of the second window before the adjustment.

[0221] Exemplary, combined Figure 7In response to a reduction operation on the floating window 704 (such as two fingers touching the display screen and sliding toward the inside of the window at the same time, or the user pulling the window border), the electronic device can reduce the floating window 704. Alternatively, in response to an enlargement operation on the floating window 704 (such as two fingers touching the display screen and sliding toward the outside of the window at the same time), the electronic device can enlarge the floating window 704 (not shown in the figure).

[0222] In an embodiment of the present application, the target size is different from the first preset size. The target size may be larger than the first preset size, or the target size may be smaller than the first preset size. Furthermore, in an embodiment of the present application, when the first preset size is smaller than or equal to the size of the first window, the target size is smaller than or equal to the size of the first window. Alternatively, when the first preset size is smaller than or equal to the size of the display screen, the target size is smaller than or equal to the size of the display screen.

[0223] It is understandable that the electronic device can adjust the display area covered by the sub-window of the second window by adjusting the size of the sub-window of the second window. In this way, the user can flexibly adjust the size of the sub-window displayed by the electronic device to avoid the sub-window blocking other windows, thereby improving the user experience.

[0224] In some embodiments, in order to prevent the size of the sub-window from changing due to an accidental touch by the user, the electronic device can set whether to allow the sub-window to be resized. The electronic device can receive an opening operation acting on a preset adjustment button to enable the size of the sub-window of the second window to be adjusted, and the preset adjustment button is used to control whether the size of the sub-window is allowed to be adjusted.

[0225] That is, after the electronic device receives the start operation acting on the preset adjustment button, the user can adjust the size of the sub-window of the second window through the operation.

[0226] For example, Fig.10 As shown, the electronic device can display a parallel horizon setting interface 1101, and the parallel horizon setting interface 1101 may include: a parallel horizon switch button 1102, a sub-window size adjustment button 1103, and the sub-window size adjustment button 1103 includes an open adjustment state and a closed adjustment state, the open adjustment state is used to indicate that the size of the sub-window can be adjusted, and the closed adjustment state is used to indicate that the size of the sub-window cannot be adjusted. Optionally, the parallel horizon setting interface 1101 may also include: a sub-window size adjustment button. The electronic device may receive an opening operation of the user on the sub-window size adjustment button 1103, and set the state of the sub-window size adjustment button 1103 to the open adjustment state.

[0227] Optionally, the electronic device may receive a close operation on a preset adjustment button to enable adjustment of the sub-window of the second window. That is, after the electronic device receives the close operation on the preset adjustment button, the user cannot adjust the size of the sub-window of the second window through operation.

[0228] It is understandable that by setting a preset adjustment button, the electronic device can turn on or off the function of adjusting the size of the sub-window according to the user's operation. In this way, the user can set the function of adjusting the size of the sub-window according to actual needs, thereby improving the user's experience.

[0229] Optionally, after the electronic device receives an activation operation on a preset adjustment button, the electronic device may display a second interface, the second interface including: at least one application adjustment button, one application adjustment button corresponding to one application, the application adjustment button being used to control whether to allow adjustment of the size of the sub-window of the application. The electronic device receives an activation operation on an application adjustment button for a second application, and may enable adjustment of the size of the sub-window of the second application, the second application being any application among the applications corresponding to the at least one application adjustment button.

[0230] For example, Fig.11 As shown, the electronic device may display a parallel horizon setting interface 1101, which may include: a parallel horizon switch button 1102, and a sub-window size adjustment button 1103. The electronic device may receive a user's opening operation on the sub-window size adjustment button 1103, and the electronic device may display an "application 1" button, an "application 2" button, and an "application 3" button. In response to the user's opening operation on the "application 2" button, the electronic device allows the sub-window of application 2 to be moved.

[0231] It should be noted that the above is a method for implementing the function of setting the sub-window size adjustment provided in the embodiment of the present application, and the embodiment of the present application does not limit the method for implementing the function of setting the sub-window size adjustment. For example, the user can set the sub-window size by entering a specific width and height.

[0232] It is understandable that the electronic device allows the user to set the sub-window size adjustment function for different applications by displaying the application adjustment button. In this way, the user can set the sub-window size adjustment function for different applications according to actual needs, thereby improving the user's experience.

[0233] In some embodiments, the electronic device can restore the display mode of the sub-window to be attached to the parent window. The sub-window of the second window may include: a display switching button, which is used to switch the display mode of the sub-window of the second window to the initial display mode. The initial display mode is that the sub-window of the second window is displayed in a preset area according to a second preset size, the preset area is the upper area of ​​the area where the second window is located, and the second preset size is smaller than the size of the second window. In other words, the electronic device can display the sub-window of the second window in the area where the second window is located according to the initial display mode.

[0234] In an embodiment of the present application, the electronic device can receive an operation acting on a display switch button, adjust the size of the sub-window of the second window and / or the display area of ​​the sub-window of the second window, and display the sub-window of the second window of a second preset size in a preset area.

[0235] For example, Fig.12 As shown, the electronic device can display floating window 1201, floating window 1202 and floating window 1203, and floating window 1203 is displayed on the upper layer of floating window 1201 and floating window 1202. Among them, the floating window 1203 is a subwindow of the floating window 1201 (such as triggering the pop-up window by clicking the drag button in the floating window 1201), and the width of the floating window 1203 can be 12 and the height is 6. The floating window 1203 may include a display switching button 1204. In response to the user's operation on the display switching button 1204, the electronic device can display the floating window 1203 on the upper layer of the floating window 1201 according to the initial display mode. In the initial display mode, the width of the floating window 1203 can be 6 and the height can be 4.

[0236] Optionally, the electronic device may also display a subwindow of the second window of a second preset size in a preset area by receiving a gesture operation of the user. For example, the electronic device may receive a swipe-up operation of the user on the subwindow of the second window and display the subwindow of the second window in the initial display mode.

[0237] Optionally, when the electronic device displays the sub-window of the second window in the initial display mode, the electronic device can receive an operation acting on a display switch button, adjust the size of the sub-window of the second window and / or the display area of ​​the sub-window of the second window, and display the sub-window of the second window of a first preset size in the target area.

[0238] It is understandable that, by operating the display switching button, the electronic device can switch the display mode of the sub-window of the second window, so as to improve the convenience of the user in switching the display mode of the sub-window.

[0239] In some other embodiments, the electronic device may display the second window and display the sub-window of the second window in the initial display mode. Afterwards, the electronic device may receive a fourth operation acting on the second window, the fourth operation being used to trigger the display of the second window in the parallel horizon mode. In response to the fourth operation, the electronic device may display the first window and display the sub-window of the second window in the target area. The first window includes: a second window and a third window, the second window and the third window being displayed in the horizontal screen in the parallel horizon mode.

[0240] It should be noted that the fourth operation is not limited in the embodiment of the present application. For example, the fourth operation may be dragging the border of the second window. For another example, the fourth operation may be a voice operation (such as "display application a in horizontal screen in parallel view mode").

[0241] For example, Fig.13 As shown, the electronic device displays floating window 1301 and floating window 1302, and floating window 1302 is a subwindow of floating window 1301. Afterwards, the electronic device can receive a drag operation from the user on the border of floating window 1301, and float window 1301 and floating window 1303 in a parallel view mode, and floating window 1302 is located on the upper layer of floating window 1301 and floating window 1303.

[0242] It is understandable that when an electronic device displays a parent window and a child window is within the parent window, if the electronic device displays the parent window in parallel view mode, the display area of ​​the child window can be adjusted. In this way, the layout between windows can be improved and the user experience can be improved.

[0243] It should be noted that the above embodiments are about the way to display sub-windows in electronic devices and the operation of sub-windows. The following is an introduction to the principle of electronic devices displaying sub-windows in this application. At present, electronic devices limit the size of sub-windows so that sub-windows can only be displayed in the area of ​​the parent window (i.e., the above initial display mode). TM Taking the operating system as an example, the electronic device can limit the size of the sub-window in the applyGravityAndUpdateFrame method.

[0244] For example, Fig.14AAs shown, in response to the user's operation of adding a window, the window management service module (such as WindowManagerService) can call functions (such as performSurfacePlacement, performSurfacePlacementLoop, etc.) to refresh the window layout, and instruct the window layer placement module to refresh the display area of ​​the window. Afterwards, the window layer placement module (such as WindowSurfacePlacer) can instruct the screen management module to traverse all areas in the display screen. Next, the screen management module (such as DisplayPolicy) can instruct the window container module to calculate the size of the window and the display area of ​​the window. Then, the window container module (such as WindowState) can calculate the display area of ​​the window based on the client layout parameters. For example, DisplayPolicy can call the computeFrameLw method to calculate and adjust the layout, and call the applyGravityAndUpdateFrame method through WindowState to limit the size of the child window. For example, Fig. 14B As shown, on Android TM In the applyGravityAndUpdateFrame method of the operating system, when the client sets the width of the child window, matchParent is set for the child window. The applyGravityAndUpdateFrame method recognizes that the child window is set to matchParent and sets the child window width and height to be equal to the parent window width and height. When the parent window is not displayed in full screen, the minimum value is taken between the width and height of the parent window and the width and height requested by the application. When the LAYOUT_IN_PARENT field is configured in the floating window, the child window size and display area are limited to the parent window area.

[0245] In some embodiments, the electronic device may modify the restriction condition on the sub-window. After the electronic device receives the first operation acting on the second window, the electronic device may execute a first event. The first event is used to trigger the adjustment of the restriction condition on the sub-window of the second window, and the restriction condition is used to constrain the size of the sub-window of the second window. The adjusted restriction condition includes: the size of the sub-window of the second window is less than or equal to the size of the first window, or the size of the sub-window of the second window is less than or equal to the size of the display screen.

[0246] In the embodiment of the present application, after the electronic device executes the first event, the electronic device may display a sub-window of the second window in the target area.

[0247] In one possible design, the first event may include at least one of the following: a first sub-event, a second sub-event, and a third sub-event.

[0248] The first sub-event is: if the first information is received, the electronic device does not set the size of the sub-window of the second window to the first information, and the first information is used to indicate that the size of the sub-window of the second window matches the second window. For example, the first information may be matchParent.

[0249] The second sub-event is: if the second window is not a full-screen window, the electronic device adjusts the restriction condition on the sub-window of the second window.

[0250] The third sub-event is: if the window information of the sub-window of the second window contains second information, the electronic device adjusts the restriction condition on the sub-window of the second window, and the second information is used to indicate that the window is a sub-window. For example, the second information can be the LAYOUT_IN_PARENT field configured in the floating window.

[0251] It should be noted that the first event can be applied to Android TM Operating system, Hongmeng TM Operating system or IOS TM Operating system and other operating systems. TM Taking the operating system as an example, the electronic device can add the first event in the applyGravityAndUpdateFrame method.

[0252] It is understandable that by adjusting the restriction condition on the sub-window of the second window, the size of the sub-window of the second window is limited to the area of ​​the first window or the display screen, thereby expanding the display area of ​​the sub-window of the second window. In this way, the diversity of the sub-window display of the second window can be increased, thereby improving the user experience.

[0253] It should be noted that when an electronic device displays a sub-window, the restriction conditions on the sub-window will be adjusted, which may increase the load of the electronic device.

[0254] In some embodiments, the electronic device may determine whether to adjust the restriction conditions on the sub-window based on the window information of the sub-window. After the electronic device receives the first operation acting on the second window, the electronic device may obtain the window information of the sub-window of the second window, and the window information includes: window type information, window aspect ratio, and preset display area, wherein the window information is the window information sent by the application corresponding to the sub-window of the second window (or the second window). Afterwards, the electronic device may determine whether the window information of the sub-window of the second window meets the preset conditions. If the window information meets the preset conditions, the electronic device executes the first event. Among them, the preset conditions include at least one of the following: the window type information is preset type information, the aspect ratio is greater than the preset ratio threshold, and the preset display area is not within the range of the area where the second window is located; the preset type information is used to indicate that the window type is a sub-window type.

[0255] It should be noted that the preset ratio threshold is not limited in the embodiment of the present application. For example, the preset ratio threshold may be 2:1, 3:1, 4:1, etc.

[0256] In some examples, if the aspect ratio is greater than a preset ratio threshold, it means that the electronic device displays the second window and the third window in parallel (ie, displays the two windows in horizontal mode).

[0257] For example, if the preset ratio threshold is 2:1, the window type information indicates that the window type is a sub-window type, the aspect ratio is 3:1, and the preset display area is not within the range of the area where the second window is located, the electronic device can display a sub-window of the second window in any area of ​​the display screen.

[0258] Optionally, if the window information does not meet the preset condition, the electronic device does not execute the first event, and displays the sub-window of the second window in an initial display manner.

[0259] It can be understood that when the window type information indicates that the window type is a child window type, the aspect ratio is greater than the preset ratio threshold, and the preset display area is not within the range of the area where the second window is located, the electronic device can display the child window of the second window in the target area, so that the child window is not dependent on the parent window display, thereby increasing the diversity of the child window display.

[0260] In some embodiments, the electronic device may determine whether to adjust the restriction condition on the sub-window according to the application corresponding to the sub-window.

[0261] In one possible implementation, an application whitelist is stored in the electronic device, and the application whitelist is used to indicate applications that are allowed to display sub-windows in the target area (i.e., restrictions on sub-windows of applications in the application whitelist are allowed to be adjusted). The electronic device can obtain the application whitelist. Afterwards, the electronic device can determine whether there is a target application in the application whitelist, and the target application is the application corresponding to the application interface displayed in the second window. If the target application exists in the application whitelist, the electronic device executes the first event. If the target application does not exist in the application whitelist, the electronic device does not execute the first event and displays the sub-window of the second window according to the initial display mode.

[0262] It should be noted that the application whitelist can be set by the user (for example, by selecting an application in the system setting interface); or, the application whitelist can be set by the developer. The embodiments of the present application do not limit this.

[0263] It is understandable that, by using the whitelist, the electronic device can selectively adjust the restriction conditions of the sub-windows of some applications, thereby reducing the load of the electronic device and the consumption of resources.

[0264] In some embodiments, the electronic device may determine whether to adjust the restriction condition on the sub-window according to the triggering mode of the sub-window. The electronic device may obtain fourth information, and the fourth information is used to indicate the triggering mode of the sub-window of the second window. If the fourth information is used to indicate that the sub-window of the second window is triggered by the user, the electronic device executes the first event. If the fourth information is used to indicate that the sub-window of the second window is not triggered by the user, the electronic device does not execute the first event and displays the sub-window of the second window according to the initial display mode.

[0265] It should be noted that the non-user-triggered window may be an advertisement-type window, a window actively sent by the server, etc., which is not limited in the embodiments of the present application.

[0266] It is understandable that by determining whether the sub-window is triggered by the user, the electronic device only adjusts the restriction conditions of the sub-window triggered by the user. In this way, it is possible to avoid adjusting the restriction conditions of windows not triggered by the user (such as advertising windows), thereby reducing the consumption of electronic device resources.

[0267] In some embodiments, the electronic device may adjust the restriction conditions on the sub-window when the first window is displayed in the parallel view mode. After the electronic device receives the first operation acting on the second window, the electronic device may obtain the window mode information of the first window, and the window mode information is the first mode information (also referred to as the third information) or the second mode information. The first mode information is used to indicate that the display is in the parallel view mode, and the second mode information is used to indicate that the display is not in the parallel view mode. Afterwards, if the window mode information is the first mode information, the electronic device executes the first event. If the window mode information is the second mode information, the electronic device does not execute the first event and displays the sub-window of the second window in the initial display mode.

[0268] Optionally, the first mode information is used to indicate that the horizontal screen display is performed in the parallel horizon mode. The second mode information is used to indicate that the horizontal screen display is not performed in the parallel horizon mode.

[0269] It is understandable that when the electronic device displays windows in parallel view mode, the electronic device can simultaneously display two window pages of an application. In this way, the electronic device adjusts the display mode of the sub-window and can flexibly display the sub-window (such as displaying it on the upper layer of two windows), thereby improving the user experience.

[0270] In some examples, when an application is displayed in a floating window in parallel view mode, one application corresponds to an application task stack (task), an application task stack may include at least one activity (activity), and one activity corresponds to a main window (i.e., parent window). In addition, there is a hierarchical relationship between windows in an application stack. When two windows overlap, the higher-level window can cover the lower-level window. In addition, the hierarchy of the child window inherits the hierarchy of the parent window. In this way, when an electronic device displays two windows in parallel view mode, if the hierarchy of the parent window corresponding to the child window is lower, even if the display area of ​​the child window can be enlarged, the child window may still be covered by another window, resulting in incomplete display of the child window.

[0271] For example, Fig.15 As shown, the electronic device may display a floating window 1501 and a floating window 1502, wherein the floating window 1501 includes a drag button 1503, wherein the level of the floating window 1501 is lower than the level of the floating window 1502. The electronic device may receive an operation of the user clicking the drag button 1503, and display a floating window 1504 on the upper layer of the floating window 1501 and the lower layer of the floating window 1502, that is, a portion of the floating window 1504 is covered by the floating window 1502.

[0272] In some embodiments, the electronic device can determine the window that creates the sub-window by judging the hierarchical relationship between the windows. After the electronic device receives the first operation acting on the second window, the electronic device can generate a window creation event through the second window, and the window creation event is used to trigger the creation of a sub-window of the second window. Afterwards, the electronic device can obtain window hierarchy information through the second window, and the window hierarchy information is used to indicate the hierarchical relationship between the second window and the third window. If the window hierarchy information is used to indicate that the second window is on the upper layer of the third window, the electronic device executes the window creation event through the second window.

[0273] Optionally, if the window level information is used to indicate that the third window is above the second window, the electronic device sends a window creation event to the third window through the second window, and executes the window creation event through the third window.

[0274] Exemplary, combined Fig.15, if the ActivityThread of the client in the application framework layer maintains an activity hierarchy list, the hierarchy information (such as the topActivity information of each window) of the windows (such as floating window 1501 and floating window 1502) in the same application stack can be updated. If the topActivity information of floating window 1501 indicates that the activity corresponding to floating window 1501 is at the top of the stack, the activity corresponding to floating window 1501 can display a pop-up window, that is, floating window 1501 can execute a window creation event (the electronic device can display such as Figure 5B The interface shown in FIG. 15 is a diagram showing a floating window 502 displayed on the upper layer of the floating window 202 and the floating window 203). If the topActivity information of the floating window 1502 indicates that the activity corresponding to the floating window 1502 is at the top of the stack, the activity corresponding to the floating window 1502 can display a pop-up window, that is, the floating window 1501 can send a window creation event to the floating slave window 1502, and the floating window 1502 executes the window creation event (the electronic device can display the pop-up window 1502 as shown in FIG. 15). Figure 5B The interface shown, that is, the floating window 502 is displayed on the upper layer of the floating window 202 and the floating window 203).

[0275] It is understandable that the electronic device determines the hierarchical relationship between the second window and the third window through the window hierarchy information. If the window hierarchy information is used to indicate that the second window is in the upper layer of the third window, it means that the hierarchical relationship of the sub-window created by the second window is higher than that of the third window. In this way, the electronic device executes the window creation event through the second window, so that the sub-window of the second window can be completely displayed in the upper layer of the second window and the third window, thereby improving the user experience. If the window hierarchy information is used to indicate that the third window is in the upper layer of the second window, it means that the hierarchical relationship of the sub-window created by the second window is lower than that of the third window. In this way, the electronic device can send a window creation event to the third window through the second window, and execute the window creation event through the third window, so that the sub-window of the second window can be completely displayed in the upper layer of the second window and the third window, thereby improving the user experience.

[0276] It should be noted that when the application is displayed in the floating window in parallel view mode, the title bar (captionView) corresponding to the application stack is also composed of two title bars. Figure 2It can be seen that the area where the floating window 201 is located is an application task stack, the area where the floating window 202 is located is an activity, and the area where the floating window 203 is located is an activity. The area where the drag button 204 is located is the title bar corresponding to the floating window 202, and the area where the drag button 205 is located is the title bar corresponding to the floating window 203. In other words, visually, the floating window 201 includes only one title bar, but in fact, the title bar of the floating window 201 is composed of the title bar corresponding to the floating window 202 and the title bar corresponding to the floating window 203, and the drag button is also composed of the drag button 204 and the drag button 205.

[0277] In this way, when the user operates one of the title bars, the other title bar will not respond to the operation synchronously. For example, when the user operates the drag button of one window, the drag button of the other window will not respond to the operation. Figure 2 When the user clicks the drag button 204, the drag button 204 can be adjusted to the user's touch state (such as changing color), while the drag button 205 will not respond to the click operation and will not be adjusted accordingly. This will cause the states of the two drag buttons to be out of sync, affecting the user's visual experience.

[0278] In some embodiments, when an application is displayed in a floating window in a parallel view mode, after a user operates one window, the electronic device can synchronize the operation event to another window. Wherein, the second window includes: a first drag button, and the third window includes: a second drag button. The electronic device can receive an operation acting on the first drag button through the second window and generate a state change message. Wherein, the state change message is used to indicate the adjustment of the state of the drag button, and the state of the drag button includes at least one of the following: button size, button shape, and button color. Afterwards, in response to the state change message, the electronic device adjusts the state of the first drag button to the target state through the second window. And, the electronic device can send a state change message to the third window. In response to the state change message, the electronic device can adjust the state of the second drag button to the target state through the third window.

[0279] It should be noted that the embodiments of the present application do not limit the adjustment of the state of the drag button. For example, the electronic device can change the size of the drag button from small to large. Or, the electronic device can change the size of the drag button from small to large, and change the button color of the drag button from white to blue. Or, the electronic device can change the button shape of the drag button from oval to round.

[0280] Exemplary, combined Figure 2 ,like Fig.16As shown, in response to an operation on the drag button 1601 (such as a click operation), the colors of the drag button 1601 and the drag button 1602 can both change from white to black, and the button sizes of the drag button 1601 and the drag button 1602 can both increase.

[0281] It is understandable that after the electronic device receives the operation acting on the first drag button, it can not only adjust the state of the first drag button, but also send a state change message to the third window, so that the electronic device can adjust the state of the second drag button, ensuring the synchronization of the states of the first drag button and the second drag button, and improving the user's visual experience.

[0282] The above embodiments are based on the example of an electronic device displaying a sub-window in a floating window parallel view mode to introduce the present application. Similarly, the present application can also be used in scenarios where sub-windows are displayed in other modes. For example, the following is based on the example of an electronic device displaying a first window in full screen to introduce the present application.

[0283] In some embodiments, the electronic device displays a first window in full screen in a parallel view mode, and the first window is a full screen window. The first window may include: a second window and a third window displayed in parallel. In addition, in response to a first operation on the second window, the electronic device may display a sub-window of the second window, and the sub-window of the second window may be displayed in any area of ​​the area where the first window is located.

[0284] In some examples, the subwindow of the second window may be displayed in an upper layer of the area where the second window is located (i.e., the subwindow of the second window covers a portion of the area of ​​the second window). Alternatively, the subwindow of the second window may be displayed in an upper layer of the area where the third window is located (i.e., the subwindow of the second window covers a portion of the area of ​​the third window). Alternatively, the subwindow of the second window may be displayed in an upper layer of the area where the second window is located and the area where the third window is located (i.e., the subwindow of the second window covers a portion of the area of ​​the second window and a portion of the area of ​​the third window).

[0285] For example, Fig.17 As shown, the electronic device can display window 1701, window 1702 and window 1703, window 1703 is a sub-window of window 1701, and window 1703 covers the area where window 1702 and window 1703 are located.

[0286] In some other embodiments, when the electronic device does not display the first window in the parallel view mode, in response to the first operation performed on the second window, the electronic device may display a sub-window of the second window in the target area.

[0287] In some examples, the electronic device may display a second window and a third window in split screen, and the second window and the third window display interfaces of different applications. The second window may cover a portion of the area where the second window is located and a portion of the area where the third window is located. Alternatively, the second window may cover a portion of the area where the second window is located. Alternatively, the second window may cover a portion of the area where the third window is located.

[0288] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of an electronic device. It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the steps of a method for displaying a window in each example described in the embodiment disclosed in the present application, 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 electronic device software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.

[0289] The embodiment of the present application can divide the display device of the window into functional modules or functional units according to the above method example. For example, each functional module or functional unit 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 or in the form of software functional modules or functional units. Among them, the division of modules or units in the embodiment of the present application is schematic, which is only a logical function division. There may be other division methods in actual implementation.

[0290] Some embodiments of the present application provide an electronic device (such as Figure 3 The electronic device may include: a memory and one or more processors. The memory and the processor are coupled. The electronic device may also include a camera. Alternatively, the electronic device may be connected to an external camera. The memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device may execute the various functions or steps executed by the mobile phone in the above method embodiment. The structure of the electronic device can refer to Figure 3 The structure of the tablet computer 200 is shown.

[0291] The present application also provides a chip system, such as Fig.18As shown, the chip system includes at least one processor 1801 and at least one interface circuit 1802. The processor 1801 and the interface circuit 1802 can be interconnected through a line. For example, the interface circuit 1802 can be used to receive signals from other devices (such as a memory of an electronic device). For another example, the interface circuit 1802 can be used to send signals to other devices (such as the processor 1801). Exemplarily, the interface circuit 1802 can read instructions stored in the memory and send the instructions to the processor 1801. When the instructions are executed by the processor 1801, the electronic device (such as Figure 3 The tablet computer 200 shown in the figure performs each step 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.

[0292] The present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed in the electronic device (such as Figure 3 When the electronic device is run on the tablet computer 200 shown in the figure, the electronic device executes each function or step executed by the mobile phone in the above method embodiment.

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

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

[0295] 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 the modules or units is only a logical function division. 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.

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

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

[0298] 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 method described in each embodiment 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.

[0299] 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 a window, characterized in that: The method comprises: In response to an operation of starting a target application, displaying a first window of the target application, the first window comprising: a second window and a third window displayed in parallel; receiving a first operation applied to the second window, wherein the first operation is used to trigger display of a sub-window of the second window; In response to the first operation, displaying a sub-window of the second window; The sub-window of the second window covers a portion of the area where the second window is located and a portion of the area where the third window is located.

2. The method according to claim 1, characterized in that The sub-window of the second window is displayed, comprising: A subwindow of the second window of a first preset size is displayed; wherein the first preset size is smaller than or equal to the size of the first window, or the first preset size is smaller than or equal to the size of a display screen.

3. The method according to claim 2, characterized in that The first preset size is smaller than or equal to the size of the first window, including: the width of the subwindow of the second window is smaller than or equal to the width of the first window, and / or the height of the subwindow of the second window is smaller than or equal to the height of the first window; The first preset size is smaller than or equal to the size of the display screen, including: the width of the subwindow of the second window is smaller than or equal to the width of the display screen, and the height of the subwindow of the second window is smaller than or equal to the height of the display screen.

4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: receiving a second operation acting on a sub-window of the second window, wherein the second operation is used to move the sub-window of the second window; In response to the second operation, the sub-window of the second window moves accordingly; wherein the moving area of ​​the sub-window of the second window includes the area where the first window is located and an area beyond the first window.

5. The method according to claim 4, characterized in that The method further comprises: An opening operation acting on a preset moving button is received to enable the sub-window of the second window to be moved, wherein the preset moving button is used to control whether the sub-window is allowed to be moved.

6. The method according to claim 5, characterized in that After receiving the start operation acting on the preset movement button, the method further includes: Displaying a first interface, the first interface comprising: at least one application moving button, one application moving button corresponding to one application, the application moving button being used to control whether to allow moving a sub-window of an application; An opening operation of an application moving button acting on a first application is received, and a sub-window of the first application is enabled to be moved, wherein the first application is any application among the applications corresponding to the at least one application moving button.

7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: receiving a third operation, where the third operation is used to adjust the size of the sub-window of the second window; In response to the third operation, the size of the sub-window of the second window is adjusted to a target size, where the target size is different from the size of the sub-window of the second window before the adjustment.

8. The method according to claim 7, characterized in that The method further comprises: An opening operation acting on a preset adjustment button is received to enable adjustment of the size of the sub-window of the second window, wherein the preset adjustment button is used to control whether adjustment of the size of the sub-window is allowed.

9. The method according to claim 8, characterized in that After receiving the activation operation acting on the preset adjustment button, the method further includes: Displaying a second interface, the second interface comprising: at least one application adjustment button, one application adjustment button corresponding to one application, the application adjustment button being used to control whether to allow adjustment of the size of a sub-window of the application; An opening operation of an application adjustment button acting on a second application is received to enable adjustment of the size of a sub-window of the second application, where the second application is any application among the applications corresponding to the at least one application adjustment button.

10. The method according to any one of claims 1 to 9, characterized in that The sub-window of the second window includes a display switching button, and the display switching button is used to trigger the sub-window of the second window to be displayed in a preset area according to a second preset size, and the preset area is an upper area of ​​the area where the second window is located, and the second preset size is smaller than the size of the second window; the method also includes: An operation on the display switching button is received, a size of the sub-window of the second window and / or a display area of ​​the sub-window of the second window is adjusted, and the sub-window of the second window of the second preset size is displayed in the preset area.

11. The method according to any one of claims 1 to 10, characterized in that After receiving the first operation acting on the second window, the method further includes: Executing a first event, where the first event is used to trigger adjustment of a restriction condition on a sub-window of the second window, where the restriction condition is used to constrain a size of the sub-window of the second window; The adjusted restriction condition includes: the size of the sub-window of the second window is smaller than or equal to the size of the first window, or the size of the sub-window of the second window is smaller than or equal to the size of the display screen.

12. The method according to claim 11, characterized in that The first event includes at least one of the following: If the first information is received, the size of the sub-window of the second window is not set to the first information, the first information being used to indicate that the size of the sub-window of the second window matches the second window; If the second window is not a full-screen window, adjusting the restriction condition on the sub-window of the second window; If the window information of the sub-window of the second window contains second information, then the restriction condition on the sub-window of the second window is adjusted, and the second information is used to indicate that the window is a sub-window.

13. The method according to claim 11 or 12, characterized in that: After receiving the first operation acting on the second window, the method further includes: Acquire window information of a sub-window of the second window, wherein the window information includes: window type information, aspect ratio, and preset display area; The executing the first event includes: If the window information meets the preset condition, executing the first event; Among them, the preset condition includes at least one of the following: the window type information is preset type information, the aspect ratio is greater than a preset ratio threshold, and the preset display area is not within the range of the area where the second window is located; the preset type information is used to indicate that the window type is a sub-window type.

14. The method according to any one of claims 11 to 13, characterized in that After receiving the first operation acting on the second window, the method further includes: Obtaining window mode information of the first window; The executing the first event includes: If the window mode information is the third information, the first event is executed, and the third information is used to indicate display in parallel view mode.

15. The method according to any one of claims 11 to 14, characterized in that After receiving the first operation acting on the second window, the method further includes: Acquire an application whitelist, where the application whitelist is used to indicate applications that are allowed to display sub-windows in a target area, where the target area is a partial area of ​​the area where the second window is located and a partial area of ​​the area where the third window is located; The executing the first event includes: If the target application is in the application whitelist, the first event is executed.

16. The method according to any one of claims 11 to 15, characterized in that After receiving the first operation acting on the second window, the method further includes: Acquire fourth information, where the fourth information is used to indicate a triggering mode of a sub-window of the second window; The executing the first event includes: If the fourth information is used to indicate that the sub-window of the second window is triggered by the user, the first event is executed.

17. The method according to any one of claims 1 to 16, characterized in that After receiving the first operation acting on the second window, the method further includes: generating a second event through the second window, wherein the second event is used to trigger creation of a sub-window of the second window; acquiring window level information through the second window, where the window level information is used to indicate a level relationship between the second window and the third window; If the window level information is used to indicate that the second window is above the third window, the second event is executed through the second window.

18. The method according to claim 17, characterized in that The method further comprises: If the window level information is used to indicate that the third window is on an upper layer of the second window, the second event is sent to the third window through the second window, and the second event is executed through the third window.

19. The method according to any one of claims 1 to 18, characterized in that The second window includes: a first drag button, the third window includes: a second drag button, and the method further includes: receiving, through the second window, an operation on the first drag button, and generating a state change message, wherein the state change message is used to indicate adjustment of a state of the drag button, wherein the state of the drag button includes at least one of the following: button size, button shape, and button color; In response to the state change message, adjusting the state of the first drag button to a target state through the second window; Sending the state change message to the third window; In response to the state change message, the state of the second drag button is adjusted to the target state through the third window.

20. The method according to any one of claims 1 to 19, characterized in that The first window is a floating window or a full-screen window.

21. The method according to any one of claims 1 to 20, characterized in that The second window and the third window display different interfaces of the target application.

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

23. A computer-readable 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 21.

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

Citation Information

Cited By

  • Application window display method, terminal equipment and storage medium

    CN122220024A

  • Window display method and electronic device

    EP4697152A1

  • Window display method and electronic device

    WO2025044459A1