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

By generating animation management layers on the task layer of the tablet, including static and dynamic sublayers, and generating masks, the problem of flickering and stuttering during application window adjustment in multi-window display mode is solved, and user experience and rendering performance is improved.

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

Patent Information

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

AI Technical Summary

Technical Problem

In the multi-window display mode, tablets are prone to flashing and stuttering in the process of adjusting application window mode and size, resulting in a decline in user experience.

Method used

By generating an animation management layer on the upper layer of the task layer, the animation management layer includes a static sublayer and a dynamic sublayer, binds a static background to a static sublayer, and draws dynamic content within the dynamic sublayer to generate a mask for obstructing the application window.

Benefits of technology

Effectively obstruct flickering and lag problems in the application window, and reduce computing load and improve rendering performance and user experience through hierarchical design of static background and dynamic content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120233972A_ABST
    Figure CN120233972A_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 selection instruction for an application window, generating an animation management layer on a task layer, and binding a static background to a static sub-layer of the animation management layer, the animation management layer comprises a static sub-layer and a dynamic sub-layer; in response to a received adjustment instruction for the application window, processing the static background in the static sub-layer according to the adjustment instruction, drawing dynamic content in the dynamic sub-layer, and generating and displaying a mask for shielding the application window according to the animation management layer, the mask comprises the static background and the dynamic content.
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 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 the embodiments of the present disclosure, an application window control method is provided, and the method includes:

[0005] In response to receiving a selection instruction for an application window, an animation management layer is generated on the upper layer of the task layer, and a static background is bound to the static sub-layer of the animation management layer, where the animation management layer includes the static sub-layer and a dynamic sub-layer;

[0006] In response to receiving an adjustment instruction for the application window, the static background in the static sub-layer is processed according to the adjustment instruction, and dynamic content is drawn in the dynamic sub-layer, and a mask for covering the application window is generated and displayed according to the animation management layer, where the mask includes the static background and the dynamic content.

[0007] In a possible embodiment of the present disclosure, the method further includes:

[0008] Determining a preset background image as the static background; or,

[0009] Generating the static background according to the current interface in the application window, where the current interface is the interface in the application window when a selection instruction for the application window is received.

[0010] In a possible embodiment of the present disclosure, the generating the static background according to the current interface in the application window includes:

[0011] Use the Gaussian blur processing result of the current interface as the static background.

[0012] In a possible embodiment of the present disclosure, the method further includes:

[0013] Create a rendering buffer queue and a lightweight renderer;

[0014] The drawing of dynamic content within the dynamic sub-layer includes:

[0015] Use the rendering buffer queue and the lightweight renderer to draw dynamic content within the dynamic sub-layer.

[0016] In a possible embodiment of the present disclosure, the processing of the static background within the static sub-layer according to the adjustment instruction includes:

[0017] Crop and / or scale the static background within the static sub-layer so that the size and shape of the processing result are consistent with the size and shape of the application window indicated by the adjustment instruction.

[0018] In a possible embodiment of the present disclosure, the drawing of dynamic content within the dynamic sub-layer according to the adjustment instruction includes:

[0019] Draw dynamic content within the dynamic sub-layer according to the size, shape, position, and mode of the application window indicated by the adjustment instruction.

[0020] In a possible embodiment of the present disclosure, the dynamic content includes a mode icon and / or mode text of the application window.

[0021] In a possible embodiment of the present disclosure, the method further includes:

[0022] In response to receiving an end adjustment instruction for the application window, delete the animation management layer after a preset duration to restore the display of the application window.

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

[0024] An initialization module, configured to generate an animation management layer above the task layer in response to receiving a selection instruction for an application window, and bind a static background to the static sub-layer of the animation management layer, where the animation management layer includes the static sub-layer and the dynamic sub-layer;

[0025] An adjustment module, configured to respond to a received adjustment instruction for the application window, process the static background in the static sub-layer according to the adjustment instruction, draw dynamic content in the dynamic sub-layer, generate and display a mask for obscuring the application window according to the animation management layer, wherein the mask includes the static background and the dynamic content.

[0026] In a possible embodiment of the present disclosure, the device further includes a background module, configured to:

[0027] Determine a preset background image as the static background; or,

[0028] Generate the static background according to the current interface in the application window, where the current interface is the interface in the application window when a selection instruction for the application window is received.

[0029] In a possible embodiment of the present disclosure, the background module is configured to generate the static background according to the current interface in the application window, including:

[0030] Use the Gaussian blur processing result of the current interface as the static background.

[0031] In a possible embodiment of the present disclosure, the device further includes a creation module, configured to:

[0032] Create a rendering buffer queue and a lightweight renderer;

[0033] When the adjustment module is configured to draw dynamic content in the dynamic sub-layer, it is configured to:

[0034] Use the rendering buffer queue and the lightweight renderer to draw dynamic content in the dynamic sub-layer.

[0035] In a possible embodiment of the present disclosure, when the adjustment module is configured to process the static background in the static sub-layer according to the adjustment instruction, it is configured to:

[0036] Crop and / or scale the static background in the static sub-layer so that the size and shape of the processing result are consistent with the size and shape of the application window indicated by the adjustment instruction.

[0037] In a possible embodiment of the present disclosure, when the adjustment module is configured to draw dynamic content in the dynamic sub-layer according to the adjustment instruction, it is configured to:

[0038] Draw dynamic content in the dynamic sub-layer according to the size, shape, position, and mode of the application window indicated by the adjustment instruction.

[0039] In a possible embodiment of the present disclosure, the dynamic content includes a mode icon and / or a mode text of the application window.

[0040] In a possible embodiment of the present disclosure, the device further includes a deletion module, which is used to:

[0041] In response to receiving an end adjustment instruction for the application window, the animation management layer is deleted after a preset time period to restore the display of the application window.

[0042] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising a memory and a processor, wherein the memory is used to store computer instructions executable 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.

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

[0044] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0045] The application window control method provided by the embodiment of the present disclosure can generate an animation management layer on the upper layer of the task layer in response to receiving a selection instruction for the application window, the animation management layer includes a static sublayer and a dynamic sublayer, and then bind the static background to the static sublayer; further, in response to receiving an adjustment instruction for the application window, the static background in the static sublayer is processed according to the adjustment instruction, and dynamic content is drawn in the dynamic sublayer, and a mask for shielding the application window is generated and displayed according to the animation management layer, wherein the mask includes the static background and the dynamic content. The application window is shielded by the mask during the adjustment process, thereby shielding the flickering, jamming and other problems in the application window; the animation management layer corresponding to the mask for shielding the application window includes a static sublayer and a dynamic sublayer, and only the dynamic content of the mask needs to be drawn during the adjustment process of the application window, while the static background of the mask only needs to be processed, so that the dynamic rendering of the mask can be realized with a lower computing load, which improves the rendering performance and the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

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

[0048] Figure 2 It is a schematic diagram of layer relationships shown in an exemplary embodiment of the present disclosure;

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

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

[0051] Figure 5 It is a schematic diagram of a mask in full - screen mode shown in an exemplary embodiment of the present disclosure;

[0052] Figure 6 It is a schematic diagram of a mask in small - window mode shown in an exemplary embodiment of the present disclosure;

[0053] Figure 7 It is a schematic diagram of a mask in mini - small - window mode shown in an exemplary embodiment of the present disclosure;

[0054] Figure 8 It is a schematic diagram of the structure of an application window control device shown in an exemplary embodiment of the present disclosure;

[0055] Figure 9 It is a block diagram of the structure of an electronic device shown in an exemplary embodiment of the present disclosure. Detailed Embodiments

[0056] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments 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.

[0057] 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", "the", and "said" 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.

[0058] It should be understood that although terms such as first, second, and third may be used in this disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this 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 a determination".

[0059] In recent years, there have been an increasing number of large-screen terminals such as large-screen mobile phones and tablet computers, and their functions have gradually become richer, bringing great convenience to people's lives and work. For example, a tablet computer can provide a multi-window display mode, which facilitates the user 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.

[0060] Based on this, in a first aspect, at least one embodiment of the present disclosure provides an application window control method, which can cover a mask above the application window during the adjustment process of the application window to block problems such as flickering and freezing that occur in the application window; moreover, the mask is divided into a static background and dynamic content, and only the dynamic content needs to be dynamically rendered, so that the dynamic rendering of the mask can be achieved with a relatively low computing load, and the rendering effect can adapt to the adjustment process of the application window.

[0061] Please refer to the attached Figure 1 , which exemplarily shows the flow of the application window control method, including step S101 to step S102.

[0062] In step S101, in response to receiving a selection instruction for the application window, an animation management layer is generated above the task layer, and the static background is bound to the static sub-layer of the animation management layer, where the animation management layer includes the static sub-layer and the dynamic sub-layer.

[0063] 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 all of the display screen. Each application window in the display screen corresponds to an application program. 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 program 1, and application window 2 corresponds to social application program 2.

[0064] When a user performs an adjustment operation on an application window, a selection instruction and an adjustment instruction for the application window are often generated in sequence. For example, if the user continuously performs press, drag, and lift operations on the application window, the application window is adjusted from full-screen mode to small-window mode, and further the size and proportion of the application window in small-window mode are adjusted; among them, when the user performs a press operation on the application window, a selection instruction for the application window can be generated, and when the user performs a drag operation on the application window, an adjustment instruction for the application window can be generated.

[0065] The task layer is used to manage the interface of the application program corresponding to the application window. It should be understood that the upper layer can block the lower layer, and the sub-layers under the same parent layer are in a stacked form. For example, the dynamic sub-layer and the static sub-layer can be in a stacked state, and the dynamic sub-layer is stacked above the static sub-layer. Please refer to the appendix Figure 2 which shows the positional relationship between the animation management layer, the dynamic sub-layer, the static sub-layer, and the task layer.

[0066] Exemplarily, the static background can be generated in any of the following ways:

[0067] Determine a preset background image as the static background, and the preset background image can be a solid-color image, etc.

[0068] Generate the static background according to the current interface in the application window, where the current interface is the interface in the application window when a selection instruction for the application window is received. For example, use the Gaussian blur processing result of the current interface as the static background.

[0069] Preferably, in this step, the static background can be drawn in the static sub-layer and the static background is bound to the static sub-layer.

[0070] Preferably, in this step, a rendering buffer queue and a lightweight renderer can also be created.

[0071] Please refer to the appendix Figure 3 which shows a specific execution manner of step S101.

[0072] In this method, the selection instruction for the application window is generated by the user's press operation on the application window on the display screen.

[0073] In response to the user's press operation, the terminal device executing this method can create a static sub-layer and a dynamic sub-layer, set the parent layer of the above two sub-layers, and hang the parent layer above the task layer (i.e., above the Task layer).

[0074] For the static sub-layer, the terminal device can capture a static screenshot of the task layer, and then create a temporary surface layer (Surface), apply for a canvas, perform Gaussian rendering on the screenshot, and bind the screenshot to the static sub-layer (i.e., submit the GraphicBuffer corresponding to the frame to SurfaceFlinger and bind it to the static sub-layer).

[0075] For the dynamic sub-layer, the terminal device can create a rendering buffer queue (BLASTBufferQueue), a lightweight renderer (SimpleRenderer), and a render node (RenderNode), and connect the render node to the lightweight renderer.

[0076] In step S102, in response to receiving an adjustment instruction for the application window, process the static background in the static sub-layer according to the adjustment instruction, draw dynamic content in the dynamic sub-layer, and generate and display a mask for obscuring the application window according to the animation management layer, where the mask includes the static background and the dynamic content.

[0077] As described above, the adjustment instruction for the application window can be generated by a user's specific operation on the application window (such as dragging). The adjustment instruction can indicate the mode of adjusting the application window, such as adjusting from full-screen mode to small-window mode, from small-window mode to mini-screen mode, etc.; the adjustment instruction can also indicate adjusting the size, ratio, etc. of the application window, such as reducing the size of the application window, changing the aspect ratio of the application window, etc.

[0078] When the application window is adjusted correspondingly according to the adjustment instruction, the mask for obscuring the application window also needs to be adjusted correspondingly to maintain the occlusion relationship with the application window; specifically, the animation management layer for controlling the display of the mask will be adjusted correspondingly according to the adjustment instruction, such as adjusting the size, ratio, mode, etc. When the animation management layer is adjusted, its sub-layers (i.e., the static sub-layer and the dynamic sub-layer) will be adjusted accordingly to keep the size, ratio, mode, etc. consistent.

[0079] It should be understood that the adjustment of the size and ratio of the animation management layer will cause the size and ratio of the static sub-layer to be adjusted accordingly; while the adjustment of the size, ratio, and mode of the animation management layer will cause the size, ratio, and mode of the dynamic sub-layer to be adjusted accordingly. For example, the dynamic content in the dynamic sub-layer includes a mode icon and mode text.

[0080] After the static background is bound to the static sub-layer, when the size and proportion of the static sub-layer are adjusted, the static background does not need to be redrawn (or rendered), and only adaptive processing needs to be performed to make it adapt to the adjusted static sub-layer. For example, the static background within the static sub-layer can be cropped and / or scaled so that the size and shape of the processing result are consistent with the size and shape of the application window indicated by the adjustment instruction, where the shape includes types such as square, rectangle, circle, etc., as well as the length-width ratio under the rectangle, etc.

[0081] Exemplarily, the position of the dynamic sub-layer can be determined according to the size, shape, and position of the application window indicated by the adjustment instruction to ensure that the relative position and proportion of the dynamic sub-layer and the static sub-layer remain unchanged. For example, the position, shape, and size of the static sub-layer can be determined according to the size, shape, and position of the application window indicated by the adjustment instruction; furthermore, the position of the dynamic sub-layer can be determined according to the position of the static sub-layer and the relative position and proportion of the dynamic sub-layer and the static sub-layer.

[0082] Another exemplarily, dynamic content can be drawn (i.e., rendered) within the dynamic sub-layer according to the size, shape, position, and mode of the application window indicated by the adjustment instruction. For example, the position, size, etc. of the dynamic content can be determined according to the size, shape, and position of the application window; the mode icon and mode text in the dynamic content can be determined according to the mode of the application window.

[0083] Preferably, the rendering buffer queue and the lightweight renderer are used to draw dynamic content within the dynamic sub-layer.

[0084] Please refer to the appendix Figure 4 , which shows a specific execution manner of step S102.

[0085] In this manner, the selection instruction for the application window is generated by the user's dragging operation on the application window on the display screen.

[0086] For the user's dragging operation, the terminal device executing this method can calculate the window Frame (i.e., the window boundary).

[0087] For the static sub-layer, the change matrix (Matrix) of the static sub-layer can be calculated, the change matrix can be set, and the transaction layer composition can be submitted for display. Among them, the change matrix Matrix can be a matrix representing the translation, rotation, scaling, etc. of the static sub-layer.

[0088] For dynamic sublayers, you can calculate the dynamic layer boundary (i.e., Frame), update the dynamic sublayer position (Position), update the rendering node layout, create a drawing log (RecordingCanvas) through the rendering node, this process needs to be combined with the changes in window boundaries (Bounds), window mode, and window scale, etc.), draw dynamic content through the drawing log, submit the current frame drawing command through the lightweight renderer, draw the library (Skia), and submit the transaction layer synthesis for display. Among them, the drawing log RecordingCanvas is a function for recording Canvas drawing operations, which can help developers record and playback the Canvas drawing process.

[0089] Please refer to the attached Figure 5 To Attachment Figure 7 , which shows the effect diagram presented by this method when the application window is adjusted from full-screen mode to small window mode, and the size and proportion of the application window in small window mode are further adjusted.

[0090] The application window control method provided by the embodiment of the present disclosure can generate an animation management layer and a static sublayer and a dynamic sublayer of the animation management layer in the upper layer of the task layer in response to receiving a selection instruction for the application window, and bind the static background to the static sublayer; further, in response to receiving an adjustment instruction for the application window, the static background in the static sublayer is processed according to the adjustment instruction, and dynamic content is drawn in the dynamic sublayer, and a mask for shielding the application window is generated and displayed according to the animation management layer, wherein the mask includes the static background and the dynamic content. The application window is shielded by the mask during the adjustment process, thereby shielding the flickering, freezing and other problems in the application window; the animation management layer corresponding to the mask for shielding the application window includes a static sublayer and a dynamic sublayer, and only the dynamic content of the mask needs to be drawn during the adjustment process of the application window, while the static background of the mask only needs to be processed, so that the dynamic rendering of the mask can be realized with a lower computing load, which improves the rendering performance and the user experience.

[0091] The mask composite layer solution proposed by this method splits the entire mask UI rendering task, binds the heavyweight background image to the static layer, and binds the lightweight animation UI to the dynamic layer for rendering through SimpleRenderer. It optimizes the inefficiency problem caused by the window management solution, reduces the GPU rendering load, and improves the overall interactive performance of window dragging.

[0092] According to a second aspect of the present disclosure, an application window control device is provided. Figure 8 , the device comprises:

[0093] An initialization module 801, configured to generate an animation management layer on top of the task layer in response to receiving a selection instruction for an application window, and bind a static background to a static sub-layer of the animation management layer, where the animation management layer includes the static sub-layer and a dynamic sub-layer.

[0094] An adjustment module 802, configured to process the static background in the static sub-layer and draw dynamic content in the dynamic sub-layer according to the adjustment instruction in response to receiving the adjustment instruction for the application window, and generate and display a mask for covering the application window according to the animation management layer, where the mask includes the static background and the dynamic content.

[0095] In a possible embodiment of the present disclosure, the device further includes a background module, configured to:

[0096] Determine a preset background image as the static background; or,

[0097] Generate the static background according to a current interface in the application window, where the current interface is the interface in the application window when the selection instruction for the application window is received.

[0098] In a possible embodiment of the present disclosure, the background module is configured to generate the static background according to the current interface in the application window, including:

[0099] Taking a Gaussian blur processing result of the current interface as the static background.

[0100] In a possible embodiment of the present disclosure, the device further includes a creation module, configured to:

[0101] Create a rendering buffer queue and a lightweight renderer;

[0102] When the adjustment module is configured to draw dynamic content in the dynamic sub-layer, it is configured to:

[0103] Use the rendering buffer queue and the lightweight renderer to draw dynamic content in the dynamic sub-layer.

[0104] In a possible embodiment of the present disclosure, when the adjustment module is configured to process the static background in the static sub-layer according to the adjustment instruction, it is configured to:

[0105] Perform cropping and / or scaling processing on the static background in the static sub-layer, so that the size and shape of the processing result are consistent with the size and shape of the application window indicated by the adjustment instruction.

[0106] In a possible embodiment of the present disclosure, when the adjustment module is used to draw dynamic content within the dynamic sub-layer according to the adjustment instruction, it is used for:

[0107] Draw dynamic content within the dynamic sub-layer according to the application window size, shape, position, and mode indicated by the adjustment instruction.

[0108] In a possible embodiment of the present disclosure, the dynamic content includes a mode icon and / or mode text of the application window.

[0109] In a possible embodiment of the present disclosure, the device further includes a deletion module, which is used for:

[0110] In response to receiving an end adjustment instruction for the application window, delete the animation management layer after a preset duration to enable the application window to resume display.

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

[0112] According to the third aspect of the embodiments of the present disclosure, please refer to the appendix Figure 9 , which exemplarily shows a block diagram of an electronic device. For example, the device 900 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.

[0113] Referring to Figure 9 , the device 900 may include one or more of the following components: a processing component 902, a memory 904, a power component 906, a multimedia component 908, an audio component 910, an input / output (I / O) interface 912, a sensor component 914, and a communication component 916.

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

[0115] The memory 904 is configured to store various types of data to support the operation of the device 900. Examples of such data include instructions for any application or method operating on the device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 can 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, magnetic disk or optical disk.

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

[0117] The multimedia component 908 includes a screen that provides an output interface between the device 900 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 operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the device 900 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 focal length and optical zoom capabilities.

[0118] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC) that is configured to receive external audio signals when the device 900 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 904 or transmitted via the communication component 916. In some embodiments, the audio component 910 further includes a speaker for outputting audio signals.

[0119] The I / O interface 912 provides an interface between the processing component 902 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 start button, and a lock button.

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

[0121] The communication component 916 is configured to facilitate communication between the device 900 and other devices in a wired or wireless manner. The device 900 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 916 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 916 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.

[0122] In an exemplary embodiment, the device 900 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.

[0123] 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 904 including instructions, and the above instructions can be executed by a processor 920 of the device 900 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, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0124] Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon consideration of the specification and practice of the disclosure herein. This application 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 general knowledge or conventional technical means in the technical field not disclosed herein. The specification and examples are only to be considered as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.

[0125] 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 selection instruction for an application window, generating an animation management layer above the task layer, and binding a static background to the static sub-layer of the animation management layer, where the animation management layer includes the static sub-layer and a dynamic sub-layer; In response to receiving an adjustment instruction for the application window, processing the static background in the static sub-layer according to the adjustment instruction and drawing dynamic content in the dynamic sub-layer, and generating and displaying a mask for covering the application window according to the animation management layer, where the mask includes the static background and the dynamic content.

2. The application window control method according to claim 1, wherein The method further includes: Determining a preset background image as the static background; or, Generating the static background according to the current interface in the application window, where the current interface is the interface in the application window when a selection instruction for the application window is received.

3. The application window control method according to claim 1, wherein The generating the static background according to the current interface in the application window includes: Taking the Gaussian blur processing result of the current interface as the static background.

4. The application window control method according to claim 1, wherein The method further includes: Creating a rendering buffer queue and a lightweight renderer; The drawing dynamic content in the dynamic sub-layer includes: Using the rendering buffer queue and the lightweight renderer to draw dynamic content in the dynamic sub-layer.

5. The application window control method according to claim 1, characterized in that The processing the static background in the static sub-layer according to the adjustment instruction includes: Cropping and / or scaling the static background in the static sub-layer so that the size and shape of the processing result are consistent with the size and shape of the application window indicated by the adjustment instruction.

6. The application window control method according to claim 1, wherein The drawing dynamic content in the dynamic sub-layer according to the adjustment instruction includes: Drawing dynamic content in the dynamic sub-layer according to the size, shape, position, and mode of the application window indicated by the adjustment instruction.

7. The application window control method according to claim 1, characterized in that The dynamic content includes a mode icon and / or mode text of the application window.

8. The application window control method according to claim 1, wherein The method further includes: In response to receiving an end adjustment instruction for the application window, deleting the animation management layer after a preset duration so that the application window resumes display.

9. An application window control device, characterized in that, The device includes: An initialization module, configured to, in response to receiving a selection instruction for an application window, generate an animation management layer above the task layer, and bind a static background to the static sub-layer of the animation management layer, where the animation management layer includes the static sub-layer and a dynamic sub-layer; An adjustment module, configured to, in response to receiving an adjustment instruction for the application window, process the static background in the static sub-layer according to the adjustment instruction and draw dynamic content in the dynamic sub-layer, and generate and display a mask for covering the application window according to the animation management layer, where the mask includes the static background and the dynamic content.

10. 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 8 when executing the computer instructions.

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