Application window control method and device, electronic equipment and storage medium

Through the system preset mechanism, the application interface and window layers are drawn and merged frame by frame, and the flickering and stuttering problems during window adjustment in multi-window display mode of large-screen terminals are solved, achieving seamless switching and better user experience.

CN120233974APending Publication Date: 2025-07-01BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311869151.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-29
Publication Date
2025-07-01

AI Technical Summary

Technical Problem

In the multi-window display mode of a large-screen terminal, flickering and stuttering are prone to occur during the adjustment of the application window, affecting the user experience.

Method used

The system preset mechanism sends adjustment instructions to the application, so that the adjusted interface is drawn frame by frame, and merges the first frame interface with the layer of the application window, and uses the merge coefficient to make adaptive adjustments to achieve seamless switching.

Benefits of technology

It realizes seamless switching before and after the application window adjustment, avoids flickering and stuttering, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120233974A_ABST
    Figure CN120233974A_ABST
Patent Text Reader

Abstract

The invention relates to an application window control method and device, electronic equipment and a storage medium, and the method comprises the steps: responding to a received first adjustment instruction for an application window, and transmitting the first adjustment instruction to an application program corresponding to the application window through a system preset mechanism, the application program draws a first interface with the size and the shape indicated by the first adjusting instruction frame by frame; and acquiring a first frame of first interface drawn by the application program by utilizing a system preset mechanism, and combining the first frame of first interface with the layer of the application window to enable the layer to display the first frame of interface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of screen display, and particularly to an application window control method, apparatus, electronic device, and storage medium. Background Art

[0002] In recent years, there have been more and more types of large-screen terminals such as large-screen mobile phones and tablet computers, and their functions have gradually become rich, bringing great convenience to people's lives and work. For example, a tablet computer can provide a multi-window display mode, which is convenient for users to use multiple applications simultaneously. The so-called multi-window display mode means that the display screen is divided into multiple local areas, and each local area displays an application window, and the interface of the corresponding application program is displayed in the application window. In the related art, the tablet computer can adjust the mode, size, etc. of each application window in the multi-window display mode, but problems such as flickering and freezing often occur during the adjustment process, resulting in a decline in the user experience. Summary of the Invention

[0003] To overcome the problems existing in the related art, embodiments of the present disclosure provide an application window control method, apparatus, electronic device, and storage medium to solve the defects in the related art.

[0004] According to a first aspect of an embodiment of the present disclosure, there is provided an application window control method, the method including:

[0005] In response to receiving a first adjustment instruction for an application window, using a system preset mechanism to send the first adjustment instruction to the application program corresponding to the application window, so that the application program draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame;

[0006] Using a system preset mechanism to obtain the first frame of the first interface drawn by the application program, and merging the first frame of the first interface with the layer of the application window, so that the layer displays the first frame interface.

[0007] In an embodiment of the present disclosure, the merging the first frame of the first interface with the layer of the application window includes:

[0008] Generating a first frame merging coefficient according to the size and shape indicated by the first adjustment instruction and the size and shape of the layer of the application window;

[0009] Merging the first frame of the first interface with the layer of the application window according to the first frame merging coefficient.

[0010] In an embodiment of the present disclosure, the method further includes:

[0011] Obtain the first non - first - frame interface drawn by the application. Process the first - frame merging coefficient based on the current size and shape of the layer of the application window and the size and shape when the layer of the application window is merged with the first - frame first interface to obtain the current - frame merging coefficient;

[0012] Merge the first non - first - frame interface with the layer of the application window according to the current - frame merging coefficient, so that the layer displays the first non - first - frame interface.

[0013] In an embodiment of the present disclosure, the method further includes:

[0014] In response to receiving a second adjustment instruction for the application window, and the gap between the size and shape indicated by the second adjustment instruction and the size and shape indicated by the first adjustment instruction meets a preset condition, use the system - preset mechanism to send the second adjustment instruction to the application corresponding to the application window, so that the application draws a second interface with the size and shape indicated by the second adjustment instruction frame by frame;

[0015] Use the system - preset mechanism to obtain the first - frame second interface drawn by the application and merge the first - frame second interface with the layer of the application window, so that the layer displays the first - frame second interface.

[0016] In an embodiment of the present disclosure, the first adjustment instruction is used to indicate changing the mode of the application window or changing the size and shape of the application window;

[0017] The second adjustment instruction is used to indicate changing the size and shape of the application window.

[0018] In an embodiment of the present disclosure, when the first adjustment instruction includes an instruction to indicate changing the mode of the application window, the step of using the system - preset mechanism to send the first adjustment instruction to the application corresponding to the application window so that the application draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame includes:

[0019] Use the Transition mechanism to send the first adjustment instruction to the application corresponding to the application window, so that the application draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame.

[0020] In an embodiment of the present disclosure, when the first adjustment instruction is an instruction used to indicate changing the mode of the application window, the step of using the system - preset mechanism to send the first adjustment instruction to the application corresponding to the application window so that the application draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame includes:

[0021] Using the system preset mechanism to send a first adjustment instruction to the application corresponding to the application window, so that the application draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame, includes:

[0022] Using the system preset mechanism to send a first adjustment instruction to the application corresponding to the application window, so that the application restarts and draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame.

[0023] In an embodiment of the present disclosure, when the first adjustment instruction is used to indicate changing the size and shape of the application window, the using the system preset mechanism to send a first adjustment instruction to the application corresponding to the application window, so that the application draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame, includes:

[0024] Using the WindowOrganizer mechanism to send a first adjustment instruction to the application corresponding to the application window, so that the application draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame.

[0025] In an embodiment of the present disclosure, the method further includes:

[0026] In response to receiving a selection instruction for the application window, using the Transition mechanism to bring the layer of the application window to the top and associate it with the instruction for the application window.

[0027] In an embodiment of the present disclosure, the method further includes:

[0028] Using the system preset mechanism to enable the infinite gesture module to take over the layer of the topmost application window, so that the infinite gesture module generates and updates the layer animation of the application window in real time;

[0029] In response to the infinite gesture module dragging the application window from full screen to trigger a switch to a small window, initiating a window mode switch event through the system preset mechanism and sending the window mode switch event to the application corresponding to the application window, so that the application window draws a picture frame;

[0030] In response to receiving an application window drawing event, merging the application window drawing event with the layer animation, so that the layer animation displays the picture frame carried by the application window drawing event.

[0031] In an embodiment of the present disclosure, the method further includes:

[0032] During the dragging process, applying for a change in the application window to the system service in real time through the system preset mechanism;

[0033] The system service sends the application window change application to the application corresponding to the application window;

[0034] The application window applies for layout update, content drawing, adds the first drawn frame to the application window drawing event, and sends the application window drawing event to the system service;

[0035] The system service notifies the infinite gesture module through the system preset mechanism, so that the infinite gesture module merges the first frame into the layer animation of the application window.

[0036] According to a second aspect of the embodiments of the present disclosure, there is provided an application window control device, the device includes:

[0037] A sending module, configured to, in response to receiving a first adjustment instruction for an application window, use a system preset mechanism to send the first adjustment instruction to the application corresponding to the application window, so that the application draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame;

[0038] A merging module, configured to use a system preset mechanism to obtain the first frame of the first interface drawn by the application, and merge the first frame of the first interface with the layer of the application window, so that the layer displays the first frame interface.

[0039] In an embodiment of the present disclosure, when the merging module is used to merge the first frame of the first interface with the layer of the application window, it is used for:

[0040] Generate a first frame merging coefficient according to the size and shape indicated by the first adjustment instruction and the size and shape of the layer of the application window;

[0041] Merge the first frame of the first interface with the layer of the application window according to the first frame merging coefficient.

[0042] In an embodiment of the present disclosure, the device further includes a non-first frame module, configured to:

[0043] Obtain the non-first frame of the first interface drawn by the application, process the first frame merging coefficient according to the current size and shape of the layer of the application window and the size and shape when the layer of the application window is merged with the first frame of the first interface, and obtain a current frame merging coefficient;

[0044] Merge the non-first frame of the first interface with the layer of the application window according to the current frame merging coefficient, so that the layer displays the non-first frame interface.

[0045] In one embodiment of the present disclosure, the device further includes a cross-gear module, which is used for:

[0046] In response to receiving a second adjustment instruction for the application window, and when the gap between the size and shape indicated by the second adjustment instruction and the size and shape indicated by the first adjustment instruction meets a preset condition, use the system preset mechanism to send the second adjustment instruction to the application corresponding to the application window, so that the application draws the second interface with the size and shape indicated by the second adjustment instruction frame by frame;

[0047] Use the system preset mechanism to obtain the first-frame second interface drawn by the application, and merge the first-frame second interface with the layer of the application window, so that the layer displays the first-frame second interface.

[0048] In one embodiment of the present disclosure, the first adjustment instruction is used to indicate changing the mode of the application window or changing the size and shape of the application window;

[0049] The second adjustment instruction is used to indicate changing the size and shape of the application window.

[0050] In one embodiment of the present disclosure, when the first adjustment instruction includes an instruction to indicate changing the mode of the application window, the sending module is used for:

[0051] Use the Transition mechanism to send the first adjustment instruction to the application corresponding to the application window, so that the application draws the first interface with the size and shape indicated by the first adjustment instruction frame by frame.

[0052] In one embodiment of the present disclosure, when the first adjustment instruction is an instruction used to indicate changing the mode of the application window, the sending module is used for:

[0053] The step of using the system preset mechanism to send the first adjustment instruction to the application corresponding to the application window, so that the application draws the first interface with the size and shape indicated by the first adjustment instruction frame by frame, includes:

[0054] Use the system preset mechanism to send the first adjustment instruction to the application corresponding to the application window, so that the application restarts and draws the first interface with the size and shape indicated by the first adjustment instruction frame by frame.

[0055] In one embodiment of the present disclosure, when the first adjustment instruction is used to indicate changing the size and shape of the application window, the sending module is used for:

[0056] Send a first adjustment instruction to the application corresponding to the application window by using the WindowOrganizer mechanism, so that the application draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame.

[0057] In an embodiment of the present disclosure, the device further includes a selection module for:

[0058] In response to receiving a selection instruction for the application window, use the Transition mechanism to bring the layer of the application window to the top and associate it with the instruction for the application window.

[0059] In an embodiment of the present disclosure, the device includes a mode switching module for:

[0060] Enable the infinite gesture module to take over the layer of the topmost application window through the system preset mechanism, so that the infinite gesture module generates and updates the layer animation of the application window in real time;

[0061] In response to the infinite gesture module dragging the application window from full screen to trigger a switch to a small window, initiate a window mode switching event through the system preset mechanism and send the window mode switching event to the application corresponding to the application window, so that the application window draws a picture frame;

[0062] In response to receiving an application window drawing event, merge the application window drawing event with the layer animation, so that the layer animation displays the picture frame carried by the application window drawing event.

[0063] In an embodiment of the present disclosure, the device includes a window change module for:

[0064] During the dragging process, apply for a change of the application window to the system service in real time through the system preset mechanism;

[0065] The system service sends the application window change application to the application corresponding to the application window;

[0066] The application window applies for layout update, content drawing, adds the first drawn picture frame to the application window drawing event, and sends the application window drawing event to the system service;

[0067] The system service notifies the infinite gesture module through the system preset mechanism, so that the infinite gesture module merges the first picture frame into the layer animation of the application window.

[0068] According to a third aspect of the embodiments of the present disclosure, an electronic device is provided. The electronic device includes a memory and a processor. The memory is used to store computer instructions that can run on the processor, and the processor is used to implement the application window control method described in the first aspect when executing the computer instructions.

[0069] According to a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the method described in the first aspect is implemented.

[0070] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

[0071] The application window control method provided by the embodiments of the present disclosure can, in response to receiving a first adjustment instruction for an application window, use a system preset mechanism to send the first adjustment instruction to the application program corresponding to the application window, so that the application program draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame; and then use the system preset mechanism to obtain the first frame of the first interface drawn by the application program and merge the first frame of the first interface with the layer of the application window, so that the layer displays the first frame interface. Through the system preset mechanism, the first frame of the picture drawn by the application program can be merged with the layer of the application window, so that the picture frames drawn by the application program can be merged into the layer animation of the application window, realizing seamless switching before and after the adjustment of the application window (such as mode adjustment and size and shape adjustment, etc.), and no longer having problems such as flashing and freezing that affect the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] The accompanying drawings here are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present invention and used together with the specification to explain the principles of the present invention.

[0073] Figure 1 is a flowchart of an application window control method shown in an exemplary embodiment of the present disclosure;

[0074] Figure 2 is a flowchart of an application window mode change shown in an exemplary embodiment of the present disclosure;

[0075] Figure 3 is a flowchart of an application window shape and size change shown in an exemplary embodiment of the present disclosure;

[0076] Figure 4 is a schematic structural diagram of an application window control device shown in an exemplary embodiment of the present disclosure;

[0077] Figure 5 is a block diagram of an electronic device shown in an exemplary embodiment of the present disclosure. Detailed Implementation Modes

[0078] Here, exemplary embodiments will be described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation modes described in the following exemplary embodiments do not represent all implementation modes consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0079] The terms used in the present disclosure are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure. The singular forms "a", "said", and "the" used in the present disclosure and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more of the associated listed items.

[0080] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "while" or "in response to determining".

[0081] In recent years, there have been more and more types of large-screen terminals such as large-screen mobile phones and tablet computers, and their functions have gradually become rich, bringing great convenience to people's lives and work. For example, a tablet computer can provide a multi-window display mode, which is convenient for users to use multiple applications simultaneously. The so-called multi-window display mode means that the display screen is divided into multiple local areas, and each local area displays an application window, and the interface of the corresponding application program is displayed in the application window. In the related art, the tablet computer can adjust the mode, size, etc. of each application window in the multi-window display mode, but problems such as flickering and freezing often occur during the adjustment process, resulting in a decline in the user experience.

[0082] Based on this, in a first aspect, at least one embodiment of the present disclosure provides an application window control method, which can merge the image frames drawn by the application program into the layer animation of the application window during the adjustment process of the application window, realizing seamless switching before and after the adjustment of the application window, and no longer having problems such as flickering and freezing that affect the user experience.

[0083] Please refer to the appendix Figure 1, which exemplarily shows the process of an application window control method, including steps S101 to S102.

[0084] In step S101, in response to receiving a first adjustment instruction for an application window, a system preset mechanism is used to send the first adjustment instruction to the application corresponding to the application window, so that the application draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame.

[0085] Among them, the application window is a part or all of the display screen of the terminal device (such as a tablet computer) that executes this method. For example, if the application window is in full-screen mode, then the application window is the entire display screen. Each application window in the display screen corresponds to an application. For example, the display screen includes application window 1 in the left half screen and application window 2 in the right half screen. Application window 1 corresponds to video application 1, and application window 2 corresponds to social application 2.

[0086] When the user performs an adjustment operation on the application window, a selection instruction and an adjustment instruction for the application window are often generated in sequence. For example, the user can perform operations of pressing, dragging, and lifting on the application window, and the application window is adjusted from full-screen mode to small-window mode and further adjust the size and ratio of the application window in small-window mode. Among them, when the user performs a pressing operation on the application window, a selection instruction for the application window can be generated, and when the user performs a dragging operation on the application window, an adjustment instruction for the application window can be generated. The adjustment instruction can be an instruction for indicating to change the mode of the application window and / or change the size and shape of the application window.

[0087] Based on the above analysis, it can be known that the user can pre-select the application window before adjusting the application window, that is, a selection instruction for the application window will be received before receiving the adjustment instruction for the application window. In other words, the selection instruction indicates that the mode, size, shape, etc. of the application window will be adjusted. Exemplarily, the method can also, in response to receiving the selection instruction for the application window, use the Transition mechanism to bring the layer of the application window to the top and associate it with the instruction for the application window. Among them, in the case where the instruction for the application window is generated by the user's touch operation on the display screen, the layer of the application window can be directly associated with the infinite gesture module that obtains the touch operation by using the Transition mechanism, so that the layer animation of the application window can be generated according to the touch operation collected by the infinite gesture module.

[0088] Based on the above analysis, it can be known that the first adjustment instruction can be used to indicate to change the mode of the application window or change the size and shape of the application window.

[0089] Preferably, when the first adjustment instruction is used to indicate changing the mode of the application window, this step may use the Transition mechanism (through the system service) to send the first adjustment instruction to the application corresponding to the application window, so that the application draws the first interface with the size and shape indicated by the first adjustment instruction frame by frame. It should be understood that when the first adjustment instruction is used to indicate that the application window switches from the full-screen mode to the small window mode, the size of the application window indicated by the first adjustment instruction is the maximum size in the small window mode, and the shape indicated is the shape corresponding to the operation that triggers the first adjustment instruction. When the first adjustment instruction is used to indicate that the application window switches from the small window mode to the mini window mode, the size of the application window indicated by the first adjustment instruction is the maximum size in the mini window mode, and the shape indicated is the shape corresponding to the operation that triggers the first adjustment instruction. When the first adjustment instruction is used to indicate that the application window switches from the mini window mode to the small window mode, the size of the application window indicated by the first adjustment instruction is the minimum size in the small window mode, and the shape indicated is the shape corresponding to the operation that triggers the first adjustment instruction. When the first adjustment instruction is used to indicate that the application window switches from the small window mode to the full-screen mode, the size and shape of the application window indicated by the first adjustment instruction are the size and shape of the display screen.

[0090] Preferably, when the first adjustment instruction is used to indicate changing the mode of the application window, this step may use the system preset mechanism (through the system service) to send the first adjustment instruction to the application corresponding to the application window, so that the application restarts and draws the first interface with the size and shape indicated by the first adjustment instruction frame by frame.

[0091] Preferably, when the first adjustment instruction is used to indicate changing the size and shape of the application window, this step may use the WindowOrganizer mechanism (through the system service) to send the first adjustment instruction to the application corresponding to the application window, so that the application draws the first interface with the size and shape indicated by the first adjustment instruction frame by frame.

[0092] In step S102, use the system preset mechanism to obtain the first frame of the first interface drawn by the application, and merge the first frame of the first interface with the layer of the application window, so that the layer displays the first frame interface.

[0093] Exemplarily, this step may merge the first frame of the first interface with the layer of the application window in the following manner:

[0094] First, generate a first-frame merging coefficient according to the size and shape indicated by the first adjustment instruction, and the size and shape of the layer of the application window. The first-frame merging coefficient can be used to characterize the difference between the size and shape indicated by the first adjustment instruction (i.e., the size and shape of the first interface) and the size and shape of the layer of the application window. For example, if the shape indicated by the first adjustment instruction is the same as the shape of the layer of the application window, the first-frame merging coefficient is the ratio between the size indicated by the first adjustment instruction and the size of the layer of the application window.

[0095] Next, merge the first-frame first interface with the layer of the application window according to the first-frame merging coefficient. For example, adaptively adjust the size, shape, etc. of the first-frame first interface using the first-frame merging coefficient and add it to the layer of the application window.

[0096] It should be understood that in the case where the layer of the application window is directly associated with the infinite gesture module that obtains the touch operation using the Transition mechanism in step S101, so that the layer of the application window generates a layer animation according to the touch operation collected by the infinite gesture module, this step can merge the first-frame first interface into the layer animation using the first-frame merging coefficient.

[0097] In some embodiments, the non-first-frame first interface can also be obtained and merged in the following manner:

[0098] First, obtain the non-first-frame first interface drawn by the application program (the non-first-frame first interface has the same shape and size as the first-frame first interface, both being the shape and size indicated by the first adjustment instruction). Process the first-frame merging coefficient according to the current size and shape of the layer of the application window, and the size and shape when the layer of the application window is merged with the first-frame first interface, to obtain the current-frame merging coefficient. For example, if the first-frame merging coefficient is the ratio between the size of the first-frame first interface and the size when the layer of the application window is merged with the first-frame first interface, the current-frame merging coefficient, that is, the ratio between the size of the non-first-frame first interface and the current size of the layer of the application window, can be determined according to the first-frame merging coefficient and the ratio between the current size of the layer of the application window and the size when the layer of the application window is merged with the first-frame first interface.

[0099] Next, according to the current frame merging coefficient, merge the first non-first-frame interface with the layer of the application window so that the layer displays the first non-first-frame interface. The merging of the first non-first-frame interface and the layer of the application window can be performed in the same way as the merging of the first first-frame interface and the layer of the application window. For example, in step S101, when the layer of the application window is directly associated with the infinite gesture module that obtains the touch operation by using the Transition mechanism so that the layer of the application window generates a layer animation according to the touch operation collected by the infinite gesture module, in this step, the first non-first-frame interface can be merged into the layer animation by using the non-first-frame merging coefficient.

[0100] As can be seen from the above embodiments, after merging the first first-frame interface and the layer of the application window, the layer of the application window can change in shape and size in response to an adjustment instruction triggered by a user operation, for example, presenting the change in the form of a layer animation. When the shape and size of the layer of the application window change, the interface of the application program can be added to the layer of the application window in the following manner:

[0101] In response to receiving a second adjustment instruction for the application window, and when the difference between the size and shape indicated by the second adjustment instruction and the size and shape indicated by the first adjustment instruction does not meet the preset condition (for example, the difference in size ratio is not greater than the ratio threshold, etc.), continue to obtain and merge the first non-first-frame interface into the layer of the application window in the manner provided by the above embodiments.

[0102] In response to receiving a second adjustment instruction for the application window, and when the difference between the size and shape indicated by the second adjustment instruction and the size and shape indicated by the first adjustment instruction meets the preset condition (for example, the difference in size ratio is greater than the ratio threshold, etc.), send the second adjustment instruction to the application program corresponding to the application window by using the system preset mechanism (such as the Transition mechanism or the WindowOrganizer mechanism) so that the application program draws the second interface with the size and shape indicated by the second adjustment instruction frame by frame; and use the system preset mechanism (such as the Transition mechanism or the WindowOrganizer mechanism) to obtain the first second-frame interface drawn by the application program and merge the first second-frame interface with the layer of the application window so that the layer displays the first second-frame interface. The merging of the first second-frame interface and the layer of the application window can be performed in the same way as the merging of the first first-frame interface and the layer of the application window, that is:

[0103] First, a second merging coefficient is generated according to the size and shape indicated by the second adjustment instruction, and the size and shape of the layer of the application window. The first-frame merging coefficient can be used to characterize the difference between the size and shape indicated by the second adjustment instruction (i.e., the size and shape of the second interface) and the size and shape of the layer of the application window. For example, if the shape indicated by the second adjustment instruction is the same as the shape of the layer of the application window, the second merging coefficient is the ratio between the size indicated by the second adjustment instruction and the size of the layer of the application window.

[0104] Next, according to the second merging coefficient, the first-frame second interface is merged with the layer of the application window. For example, the size, shape, etc. of the first-frame second interface are adaptively adjusted using the second merging coefficient and added to the layer of the application window.

[0105] It should be understood that in the case where the layer of the application window is directly associated with the infinite gesture module that obtains the touch operation using the Transition mechanism in step S101, so that the layer of the application window generates a layer animation according to the touch operation collected by the infinite gesture module, in this step, the first-frame second interface can be merged into the layer animation using the second merging coefficient.

[0106] As for the non-first-frame second interface drawn by the application, the non-first-frame second interface and the layer of the application window can be merged in the same way as the non-first-frame second interface and the layer of the application window are merged. That is:

[0107] First, the non-first-frame second interface drawn by the application (the non-first-frame second interface has the same shape and size as the first-frame second interface, both being the shape and size indicated by the second adjustment instruction) is obtained, and the first merging coefficient is processed according to the current size and shape of the layer of the application window, and the size and shape when the layer of the application window is merged with the first-frame second interface, to obtain the current-frame merging coefficient. For example, if the second merging coefficient is the ratio between the size of the first-frame second interface and the size when the layer of the application window is merged with the first-frame second interface, then the current-frame merging coefficient can be determined according to the second merging coefficient and the ratio between the current size of the layer of the application window and the size when the layer of the application window is merged with the first-frame second interface, that is, the ratio between the size of the non-first-frame second interface and the current size of the layer of the application window.

[0108] Next, according to the current frame merging coefficient, merge the non-first-frame second interface with the layer of the application window, so that the layer displays the non-first-frame second interface. The non-first-frame second interface can be merged with the layer of the application window in the same way as the first-frame second interface and the layer of the application window are merged. For example, in step S101, when the layer of the application window is directly associated with the infinite gesture module that obtains the touch operation by using the Transition mechanism, so that the layer of the application window generates a layer animation according to the touch operation collected by the infinite gesture module, in this step, the non-first-frame second interface can be merged into the layer animation by using the non-first-frame merging coefficient.

[0109] The application window control method provided by the embodiments of the present disclosure can, in response to receiving a first adjustment instruction for an application window, use a system preset mechanism to send the first adjustment instruction to the application corresponding to the application window, so that the application draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame; further, use the system preset mechanism to obtain the first frame of the first interface drawn by the application, and merge the first frame of the first interface with the layer of the application window, so that the layer displays the first frame interface. Through the system preset mechanism, the first frame of the picture drawn by the application can be merged with the layer of the application window, so that the picture frames drawn by the application can be merged into the layer animation of the application window, realizing seamless switching before and after the adjustment of the application window (such as mode adjustment and size and shape adjustment, etc.), and problems that affect the user experience such as flashing and freezing will no longer occur.

[0110] As can be seen from the above application window control method combining multiple embodiments, when a selection instruction is received, the Transition mechanism can be directly used to associate the layer of the application window with the infinite gesture module that obtains the touch operation, so that the layer of the application window can generate a layer animation according to the touch operation collected by the infinite gesture module; when the first adjustment instruction received indicates a change in the mode of the application window, the Transition mechanism is used to notify the application to restart and draw the interface according to the size and shape of the target mode (i.e., the mode indicated by the first adjustment instruction), and then the Transition mechanism is used to obtain the interface drawn by the application and merge it into the layer animation; further, when the first adjustment instruction received indicates a change in the shape and size of the application window, the Transition mechanism or the WindowOrganizer mechanism can be used to notify the application to draw multiple frames of interfaces in sequence according to the shape and size indicated by the first adjustment instruction, and then the Transition mechanism or the WindowOrganizer mechanism is used to obtain the above multiple frames of interfaces and merge them into the layer animation until a second adjustment instruction is received indicating a change in the shape and size of the application window, and the difference between the indicated shape and size and the shape and size indicated by the first adjustment instruction meets the preset condition, then the Transition mechanism or the WindowOrganizer mechanism is used to notify the application to draw multiple frames of interfaces in sequence according to the shape and size indicated by the second adjustment instruction, and then the Transition mechanism or the WindowOrganizer mechanism is used to obtain the above multiple frames of interfaces and merge them into the layer animation until an adjustment instruction indicating a change in the shape and size of the application window and the difference between the indicated shape and size and the shape and size indicated by the second adjustment instruction meets the preset condition is received, or an adjustment end instruction is received.

[0111] It should be understood that adjustment instructions for indicating a change in the shape and size of the application window may also be received between the first adjustment instruction and the second adjustment instruction. However, since the difference between the indicated shape and size and the shape and size indicated by the first adjustment instruction does not meet the preset condition, the application is not instructed to adjust the size of the drawn interface based on these adjustment instructions. Figuratively speaking, there are multiple gears for the shape and size of the application window, each gear is an interval of the shape and size, and the difference between the starting points of adjacent gears meets the preset condition; when the user adjusts the size of the application window through operation, the first gear indicates the application to draw the interface in the manner related to the first adjustment instruction (the adjustment instruction for indicating a change in the shape and size), and merges the interface into the layer animation. After that, each time a gear is crossed, the application is instructed to draw the interface in the manner related to the second adjustment instruction and merge the interface into the layer animation until an end adjustment instruction is received (i.e., the user ends the operation of adjusting the shape and size of the application window).

[0112] In one embodiment of the present disclosure, when the first adjustment instruction is used to indicate changing the mode of the application window, the method includes the following steps:

[0113] Through the system preset mechanism, the gesture module without a pole takes over the layer of the topmost application window, so that the gesture module without a pole generates and updates the layer animation of the application window in real time;

[0114] In response to the gesture module without a pole triggering the switch from full screen dragging of the application window to a small window, initiate a window mode switching event through the system preset mechanism, and send the window mode switching event to the application corresponding to the application window, so that the application window draws a frame of the picture;

[0115] In response to receiving the application window drawing event, merge the application window drawing event with the layer animation, so that the layer animation displays the frame of the picture carried by the application window drawing event.

[0116] Please refer to the appendix Figure 2 , which shows the specific process of the above method as follows:

[0117] First, initiate the process of starting the Home through the Transition mechanism, and the gesture without a pole takes over the layer of the topmost application window.

[0118] Then, when triggering the switch to a small window from full screen dragging, initiate the window mode switching Transition again.

[0119] Then, when the window mode switching is completed, Transition will receive a callback notification of Merge, and the callback parameter will carry the drawing transaction Transaction of the application window. The drawing transaction Transaction represents a frame of the image drawn by the gear window content. Before being submitted, this frame of the picture will not be displayed.

[0120] Then, at this time, merge the two Transitions that are in the animation process, merge the window content frame into the current window animation that is being dragged, and submit it.

[0121] Finally, the window switch will be seamlessly completed during the dragging process.

[0122] It can be seen that through the Transition mechanism, the rendered frame of the application after transformation is merged into the gesture animation of the window module without a pole, realizing the seamless switching of the application window mode.

[0123] In one embodiment of the present disclosure, when the first adjustment instruction is used to indicate changing the shape and size of the application window, the method includes the following steps:

[0124] During the dragging process, an application window change request is sent to the system service in real time through a system preset mechanism;

[0125] The system service sends the application window change request to the application corresponding to the application window;

[0126] The application window applies for layout update, content drawing, adds the first drawn frame to the application window drawing event, and sends the application window drawing event to the system service;

[0127] The system service notifies the infinite gesture module through the system preset mechanism, so that the infinite gesture module merges the first frame into the layer animation of the application window.

[0128] Please refer to the appendix Figure 3 , which shows the specific process of the above method as follows:

[0129] First, during the dragging process, a request for the latest Bounds change of the window is sent in real time through WindowOrganizer;

[0130] Then, the system service calculates and notifies the application that the size has changed.

[0131] Then, when the application program receives the notification, it will re-apply for layout update and content drawing.

[0132] Then, after the first frame of the application is drawn, this frame of picture transaction Transaction will be notified to the system service.

[0133] Then, the system service will notify the infinite gesture through WindowOrganizerController.

[0134] Then, the infinite gesture merges this frame of picture transaction into the window animation that is currently being dragged and submits it.

[0135] Finally, the change in window size will be seamlessly completed during the dragging process.

[0136] It can be seen that through the WindowOrganizer mechanism, the frame of the application after resize is merged into the infinite window module gesture animation, realizing seamless switching of continuous size changes of the application window.

[0137] The application window control method provided by the embodiments of the present disclosure can, in response to receiving a first adjustment instruction for an application window, use a system preset mechanism to send the first adjustment instruction to the application corresponding to the application window, so that the application draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame; and then use the system preset mechanism to obtain the first frame of the first interface drawn by the application, and merge the first frame of the first interface with the layer of the application window, so that the layer displays the first frame interface. Through the system preset mechanism, the first frame of the picture drawn by the application can be merged with the layer of the application window, so that the picture frames drawn by the application can be merged into the layer animation of the application window, realizing seamless switching before and after the adjustment of the application window (such as mode adjustment and size and shape adjustment, etc.), and no longer having problems such as flashing and freezing that affect the user experience.

[0138] According to a second aspect of the embodiments of the present disclosure, an application window control device is provided. Please refer to the attached Figure 4 , the device includes:

[0139] A sending module 401, configured to, in response to receiving a first adjustment instruction for an application window, use a system preset mechanism to send the first adjustment instruction to the application corresponding to the application window, so that the application draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame;

[0140] A merging module 402, configured to use a system preset mechanism to obtain the first frame of the first interface drawn by the application, and merge the first frame of the first interface with the layer of the application window, so that the layer displays the first frame interface.

[0141] In an embodiment of the present disclosure, when the merging module is used to merge the first frame of the first interface with the layer of the application window, it is used for:

[0142] Generate a first frame merging coefficient according to the size and shape indicated by the first adjustment instruction and the size and shape of the layer of the application window;

[0143] Merge the first frame of the first interface with the layer of the application window according to the first frame merging coefficient.

[0144] In an embodiment of the present disclosure, the device further includes a non-first-frame module, which is used for:

[0145] Obtain the non-first-frame first interface drawn by the application, and process the first frame merging coefficient according to the current size and shape of the layer of the application window and the size and shape when the layer of the application window is merged with the first frame of the first interface, to obtain the current frame merging coefficient;

[0146] According to the current frame merging coefficient, merge the first non-first-frame interface with the layer of the application window, so that the layer displays the first non-first-frame interface.

[0147] In an embodiment of the present disclosure, the device further includes a cross-gear module, configured to:

[0148] In response to receiving a second adjustment instruction for the application window, and the gap between the size and shape indicated by the second adjustment instruction and the size and shape indicated by the first adjustment instruction meets a preset condition, use a system preset mechanism to send the second adjustment instruction to the application corresponding to the application window, so that the application draws a second interface with the size and shape indicated by the second adjustment instruction frame by frame;

[0149] Use a system preset mechanism to obtain the first-frame second interface drawn by the application, and merge the first-frame second interface with the layer of the application window, so that the layer displays the first-frame second interface.

[0150] In an embodiment of the present disclosure, the first adjustment instruction is used to indicate changing the mode of the application window or changing the size and shape of the application window;

[0151] The second adjustment instruction is used to indicate changing the size and shape of the application window.

[0152] In an embodiment of the present disclosure, when the first adjustment instruction includes an instruction to indicate changing the mode of the application window, the sending module is configured to:

[0153] Use the Transition mechanism to send the first adjustment instruction to the application corresponding to the application window, so that the application draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame.

[0154] In an embodiment of the present disclosure, when the first adjustment instruction is an instruction used to indicate changing the mode of the application window, the sending module is configured to:

[0155] The using a system preset mechanism to send the first adjustment instruction to the application corresponding to the application window, so that the application draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame, includes:

[0156] Use a system preset mechanism to send the first adjustment instruction to the application corresponding to the application window, so that the application restarts and draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame.

[0157] In one embodiment of the present disclosure, when the first adjustment instruction is used to indicate changing the size and shape of the application window, the sending module is configured to:

[0158] Use the WindowOrganizer mechanism to send the first adjustment instruction to the application corresponding to the application window, so that the application draws the first interface with the size and shape indicated by the first adjustment instruction frame by frame.

[0159] In one embodiment of the present disclosure, the device further includes a selection module, configured to:

[0160] In response to receiving a selection instruction for the application window, use the Transition mechanism to bring the layer of the application window to the top and associate it with the instruction for the application window.

[0161] In one embodiment of the present disclosure, the device includes a mode switching module, configured to:

[0162] Through the system preset mechanism, enable the infinite gesture module to take over the layer of the topmost application window, so that the infinite gesture module generates and updates the layer animation of the application window in real time;

[0163] In response to the infinite gesture module dragging the application window from full screen to trigger a switch to a small window, initiate a window mode switching event through the system preset mechanism and send the window mode switching event to the application corresponding to the application window, so that the application window draws a frame of the picture;

[0164] In response to receiving an application window drawing event, merge the application window drawing event with the layer animation, so that the layer animation displays the frame of the picture carried by the application window drawing event.

[0165] In one embodiment of the present disclosure, the device includes a window change module, configured to:

[0166] During the dragging process, send an application window change application to the system service in real time through the system preset mechanism;

[0167] The system service sends the application window change application to the application corresponding to the application window;

[0168] The application window applies for layout update, content drawing, adds the first drawn frame of the picture to the application window drawing event, and sends the application window drawing event to the system service;

[0169] The system service notifies the infinite gesture module through the system preset mechanism, so that the infinite gesture module merges the first frame of the picture into the layer animation of the application window.

[0170] Regarding the device in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments of the method in the first aspect, and will not be elaborated here.

[0171] According to the third aspect of the embodiments of the present disclosure, please refer to the attached Figure 5 , which exemplarily shows a block diagram of an electronic device. For example, the device 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0172] Refer to Figure 5 , the device 500 may include one or more of the following components: a processing component 502, a memory 504, a power component 506, a multimedia component 508, an audio component 510, an input / output (I / O) interface 512, a sensor component 514, and a communication component 516.

[0173] The processing component 502 generally controls the overall operation of the device 500, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.

[0174] The memory 504 is configured to store various types of data to support the operation of the device 500. Examples of such data include instructions for any application or method operating on the device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.

[0175] The power component 506 provides power to various components of the device 500. The power component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 500.

[0176] The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of the touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operations. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.

[0177] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC) that is configured to receive external audio signals when the device 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 504 or transmitted via the communication component 516. In some embodiments, the audio component 510 further includes a speaker for outputting audio signals.

[0178] The I / O interface 512 provides an interface between the processing component 502 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include but are not limited to: a home button, a volume button, a power button, and a lock button.

[0179] The sensor component 514 includes one or more sensors for providing an assessment of various aspects of the state of the device 500. For example, the sensor component 514 can detect the on / off state of the device 500, the relative positioning of components, such as the display and the keypad of the device 500. The sensor component 514 can also detect a change in the position of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration / deceleration of the device 500, and a change in the temperature of the device 500. The sensor component 514 can also include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 514 can also include a light sensor, such as a CMOS or a CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 514 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0180] The communication component 516 is configured to facilitate communication between the device 500 and other devices in a wired or wireless manner. The device 500 can access a communication standard-based wireless network, such as WiFi, 2G or 3G, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0181] In an exemplary embodiment, the device 500 can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the application window control method of the above electronic device.

[0182] In a fourth aspect, in an exemplary embodiment of the present disclosure, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory 504 including instructions, and the above instructions can be executed by a processor 520 of the device 500 to complete the application window control method of the above electronic device. For example, the non-transitory computer-readable storage medium can be a ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0183] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the disclosure herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the technical field not disclosed herein. The specification and embodiments are to be considered exemplary only, and the true scope and spirit of the present disclosure are pointed out by the following claims.

[0184] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.

Claims

1. A method for controlling an application window, characterized in that, The method includes: In response to receiving a first adjustment instruction for an application window, using a system preset mechanism to send the first adjustment instruction to the application corresponding to the application window, so that the application draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame; Using a system preset mechanism to obtain the first frame of the first interface drawn by the application, and merging the first frame of the first interface with the layer of the application window, so that the layer displays the first frame interface.

2. The application window control method according to claim 1, wherein The merging of the first frame of the first interface with the layer of the application window includes: Generating a first frame merging coefficient according to the size and shape indicated by the first adjustment instruction and the size and shape of the layer of the application window; Merging the first frame of the first interface with the layer of the application window according to the first frame merging coefficient.

3. The application window control method according to claim 2, wherein The method further includes: Obtaining non-first-frame first interfaces drawn by the application, processing the first frame merging coefficient according to the current size and shape of the layer of the application window and the size and shape when the layer of the application window is merged with the first frame of the first interface, to obtain a current frame merging coefficient; Merging the non-first-frame first interface with the layer of the application window according to the current frame merging coefficient, so that the layer displays the non-first-frame first interface.

4. The application window control method according to claim 1, wherein The method further includes: In response to receiving a second adjustment instruction for the application window, and when the difference between the size and shape indicated by the second adjustment instruction and the size and shape indicated by the first adjustment instruction meets a preset condition, using a system preset mechanism to send the second adjustment instruction to the application corresponding to the application window, so that the application draws a second interface with the size and shape indicated by the second adjustment instruction frame by frame; Using a system preset mechanism to obtain the first frame of the second interface drawn by the application, and merging the first frame of the second interface with the layer of the application window, so that the layer displays the first frame of the second interface.

5. The application window control method according to claim 4, characterized in that The first adjustment instruction is used to indicate changing the mode of the application window or changing the size and shape of the application window; The second adjustment instruction is used to indicate changing the size and shape of the application window.

6. The application window control method according to claim 5, wherein When the first adjustment instruction includes an instruction to change the mode of the application window, the using a system preset mechanism to send the first adjustment instruction to the application corresponding to the application window, so that the application draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame includes: Using the Transition mechanism to send the first adjustment instruction to the application corresponding to the application window, so that the application draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame.

7. The application window control method according to claim 5, characterized in that When the first adjustment instruction is an instruction used to indicate changing the mode of the application window, the using a system preset mechanism to send the first adjustment instruction to the application corresponding to the application window, so that the application draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame includes: Sending a first adjustment instruction to the application corresponding to the application window by using a system preset mechanism, so that the application draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame, includes: Sending a first adjustment instruction to the application corresponding to the application window by using a system preset mechanism, so that the application restarts and draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame.

8. The application window control method according to claim 5, characterized in that, When the first adjustment instruction is used to indicate a change in the size and shape of the application window, sending a first adjustment instruction to the application corresponding to the application window by using a system preset mechanism, so that the application draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame, includes: Sending a first adjustment instruction to the application corresponding to the application window by using the WindowOrganizer mechanism, so that the application draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame.

9. The application window control method according to claim 1, wherein The method further includes: In response to receiving a selection instruction for the application window, using the Transition mechanism to bring the layer of the application window to the top and associate it with the instruction for the application window.

10. The application window control method according to claim 1, wherein, The method further includes: Enabling the infinite gesture module to take over the layer of the topmost application window through a system preset mechanism, so that the infinite gesture module generates and updates the layer animation of the application window in real time; In response to the infinite gesture module triggering a switch from full screen dragging of the application window to a small window, initiating a window mode switch event through the system preset mechanism and sending the window mode switch event to the application corresponding to the application window, so that the application window draws a picture frame; In response to receiving an application window drawing event, merging the application window drawing event with the layer animation, so that the layer animation displays the picture frame carried by the application window drawing event.

11. The application window control method according to claim 1 or 10, characterized in that The method further includes: During the dragging process, sending an application window change application to the system service in real time through a system preset mechanism; The system service sends the application window change application to the application corresponding to the application window; The application window applies for layout update, content drawing, adds the first drawn picture frame to the application window drawing event, and sends the application window drawing event to the system service; The system service notifies the infinite gesture module through the system preset mechanism, so that the infinite gesture module merges the first picture frame into the layer animation of the application window.

12. An application window control device, characterized in that, The device includes: A sending module, configured to, in response to receiving a first adjustment instruction for an application window, send a first adjustment instruction to the application corresponding to the application window by using a system preset mechanism, so that the application draws a first interface with the size and shape indicated by the first adjustment instruction frame by frame; A merging module, configured to obtain the first frame of the first interface drawn by the application by using a system preset mechanism and merge the first frame of the first interface with the layer of the application window, so that the layer displays the first frame interface.

13. An electronic device, characterized in that, The electronic device includes a memory and a processor. The memory is used to store computer instructions that can run on the processor, and the processor is used to implement the application window control method according to any one of claims 1 to 11 when executing the computer instructions.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method according to any one of claims 1 to 11.