CN-121979421-A - Method, device and storage medium for free window interaction
Abstract
The embodiment of the application provides a method, equipment and a storage medium for free window interaction, which belong to the technical field of terminals, and comprise the steps of determining an animation interpolator and animation total time length for creating multi-frame animations in an area formed from the current position of a target free window to a preset target position, displaying target free windows injected with application icon windows in different positions of the area formed from the current position to the target position according to the animation interpolator and animation total time length, wherein the sizes of the target free windows in the different positions are different, only displaying application icon windows when a background switching instruction is a background running instruction in response to the position of the target free window injected with the application icon windows, only displaying the target free windows when the background switching instruction is a foreground running instruction in response to the position of the target free window injected with the application icon windows, and triggering the foreground switching instruction by a primary operation interface of the free windows. The embodiment of the application can improve the user experience.
Inventors
- HUANG WEIBIN
- LI JINTAI
Assignees
- 珠海全志科技股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20251208
Claims (10)
- 1. A method for free window interaction, characterized in that it is applied to an intelligent terminal device, the method comprising: Responding to receiving a foreground and background switching instruction, and jumping to a custom window processing interface according to the foreground and background switching instruction to execute the following steps: acquiring a target free window of the injected application icon window corresponding to the foreground and background switching instruction; determining an animation interpolator and total animation duration for creating multi-frame animation in an area formed from the current position of the target free window to a preset target position; According to the total duration of the animation interpolator and the animation, the target free window injected into the application icon window is displayed in a time-sharing manner at different positions from the current position to the target position forming area; responding to the display position of the target free window injected into the application icon window as the target position, and displaying the application icon window only when the foreground and background switching instruction is a background running instruction; Responding to the display position of the target free window injected into the application icon window as the target position, and displaying only the target free window when the foreground and background switching instruction is a foreground operation instruction; the foreground and background switching instruction is triggered by a native operation interface for a free window provided by an operating system deployed on the intelligent terminal equipment.
- 2. The method of free window interaction according to claim 1, wherein the time-sharing displaying the target free window injected into the application icon window at different positions from the current position to the target position forming area according to the animation interpolator and the animation total duration, comprises: Generating a change rate of each frame corresponding to a region formed from the current position to the target position according to the animation interpolator and the total animation duration; according to the change rate, window display parameters corresponding to the change rate one by one are determined; And adjusting the display position and window size of the target free window injected into the application icon window frame by frame and adjusting the outer contour of the target free window frame by frame through a plurality of window display parameters, wherein when the foreground and background switching instruction is a background operation instruction, the outer contour of the target free window at the target position is matched with the outer contour of the corresponding application icon window, and the size of the target free window is matched with the size of the corresponding application icon window.
- 3. The method of free window interaction of claim 2, wherein the window display parameters include a crop area, the crop area determined by: Responding to the detection of generating a new change rate, and determining a cutting effective length according to the width, the wide height difference and the change rate of the currently displayed target free window when the foreground-background switching instruction is a foreground operation instruction; in response to detecting that a new change rate is generated, determining a cutting effective length according to the height of the target free window currently displayed, the wide height difference and the change rate when the foreground-background switching instruction is a background operation instruction; Respectively determining boundary coordinates of a preset cutting shape according to the cutting effective length to obtain the cutting area; wherein the wide height difference represents a length value between a width and a height of the target free window currently displayed.
- 4. A method of free window interaction according to claim 2 or 3, wherein the window display parameter comprises a window position, the window position being determined by: In response to the detection of the generation of the new change rate, when the foreground and background switching instruction is a foreground operation instruction, determining a target horizontal coordinate according to the horizontal coordinate of the application icon window corresponding to the target free window which is currently displayed, the first window horizontal coordinate interval and the change rate; in response to the detection of the generation of the new change rate, when the foreground and background switching instruction is a background operation instruction, determining a target horizontal coordinate according to the horizontal coordinate of the target free window which is currently displayed, the second window horizontal coordinate interval and the change rate; The first window horizontal coordinate distance represents a difference value between the horizontal coordinate of the currently displayed target free window and the horizontal coordinate of the corresponding application icon window; the first window vertical coordinate distance represents a difference value between the vertical coordinate of the currently displayed target free window and the vertical coordinate of the corresponding application icon window, the second window horizontal coordinate distance represents a difference value between the horizontal coordinate of the currently displayed application icon window corresponding to the target free window and the horizontal coordinate of the target free window, the second window vertical coordinate distance represents a difference value between the vertical coordinate of the currently displayed application icon window corresponding to the target free window and the vertical coordinate of the target free window, and the target vertical coordinate and the target horizontal coordinate are both parameters of the window position.
- 5. A method of free window interaction according to claim 2 or 3, wherein the window display parameter comprises a scale, the scale being determined by: in response to detecting that a new change rate is generated, when the foreground and background switching instruction is a background operation instruction, determining a target horizontal change interval according to the width of the target free window which is currently displayed, a window horizontal length difference and the change rate; In response to the detection of generating a new change rate, when the foreground and background switching instruction is a foreground operation instruction, determining a target horizontal change interval according to the width of an application icon window corresponding to the target free window which is currently displayed, a window horizontal length difference and the change rate; and determining the scaling according to the target horizontal change distance and the width of the target free window currently displayed.
- 6. The method of free window interaction of claim 1, further comprising: and responding to a window query request triggered by the application icon window, displaying a task window area, and displaying application icon windows corresponding to background running instructions triggered by meeting preset window management conditions in the task window area.
- 7. The method of free window interaction of claim 6, further comprising at least one of: In response to detecting a window display instruction for a first application icon window in the task window area, unhidden a first target free window corresponding to the first application icon window; and responding to a task window hiding instruction, and displaying and hiding the application icon window which is recently reduced based on the background running instruction in the task window area.
- 8. The method of free window interaction of claim 7, further comprising at least one of: In response to receiving a batch deletion instruction in the task window area, deleting a plurality of second target free windows and corresponding second application icon windows corresponding to the batch deletion instruction; and deleting a third target free window corresponding to the single window deleting instruction and a corresponding third application icon window in response to the single window deleting instruction received by the task window area.
- 9. A smart terminal device, characterized in that it comprises a memory storing a computer program and a processor implementing the method of free window interaction of any of claims 1 to 8 when executing the computer program.
- 10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method of free window interaction of any of claims 1 to 8.
Description
Method, device and storage medium for free window interaction Technical Field The present application relates to the field of terminal technologies, and in particular, to a method, an apparatus, and a storage medium for free window interaction. Background The related operations of the free window on the intelligent terminal equipment (such as a mobile phone) are usually realized based on the functional interface provided by the operating system realized by google native codes. However, as the number of scenes of interaction between multiple free windows on the intelligent terminal device increases, the user experience brought by the native function interface provided in the operating system realized based on google native codes is poor when the related operation of the free windows is realized, so that a mode is needed to improve the user experience of the interactive operation of the free windows on the intelligent terminal device. Disclosure of Invention The embodiment of the application mainly aims to provide a method, equipment and a storage medium for free window interaction, which can improve the user experience of free window interaction operation on intelligent terminal equipment. To achieve the above objective, a first aspect of an embodiment of the present application provides a method for free window interaction, which is applied to an intelligent terminal device, where the method for free window interaction includes: Responding to receiving a foreground and background switching instruction, and jumping to a custom window processing interface according to the foreground and background switching instruction to execute the following steps: acquiring a target free window of the injected application icon window corresponding to the foreground and background switching instruction; determining an animation interpolator and total animation duration for creating multi-frame animation in an area formed from the current position of the target free window to a preset target position; According to the total duration of the animation interpolator and the animation, the target free window injected into the application icon window is displayed in a time-sharing manner at different positions from the current position to the target position forming area; responding to the display position of the target free window injected into the application icon window as the target position, and displaying the application icon window only when the foreground and background switching instruction is a background running instruction; Responding to the display position of the target free window injected into the application icon window as the target position, and displaying only the target free window when the foreground and background switching instruction is a foreground operation instruction; the foreground and background switching instruction is triggered by a native operation interface for a free window provided by an operating system deployed on the intelligent terminal equipment. To achieve the above object, a second aspect of the embodiments of the present application provides an intelligent terminal device, where the intelligent terminal device includes a memory and a processor, where the memory stores a computer program, and the processor executes the computer program to implement the method for free window interaction according to any one of the first aspect. To achieve the above object, a third aspect of the embodiments of the present application proposes a computer readable storage medium storing a computer program which, when executed by a processor, implements the method of free window interaction of any one of the first aspects. The method, the device and the storage medium for free window interaction provided by the embodiment of the application realize the switching of the foreground and background operations of the target free window injected with the application icon window through the self-defined window processing interface, realize the frame-by-frame movement of the target free window injected with the application icon window to the target position in the form of animation and the change of the target free window attribute into the expected window attribute of the target position through the animation interpolator and the total animation duration in the switching process, solve the problem of abnormal display (such as offset/shadow residual and the like) caused by the scaling realized by calling the native interface of the operating system, and when the foreground and background switching instruction is a background running instruction, the target free window is hidden after the target free window injected with the application icon window moves to the target position, so that the target free window is kept to run continuously and other windows are not influenced, and the application icon window moves along with the target free window in the animation display process, and the method and the device can furthe