Display switching method and device, equipment and storage medium

Switching animation objects in animation production through the target control class solves the problem of unsmooth animation transition, achieving a more natural transition effect and simplified management process.

CN119668546APending Publication Date: 2025-03-21GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411748744.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

In animation production, the screen switching between different layers often occurs in one-frame flow, resulting in unsmooth object transitions and inability to connect naturally, which increases the cost of later code maintenance.

Method used

The first control object is controlled by the target control class to display, and in response to user operations, the first control object is switched to the second control object, the second control object is controlled by the target control class to display, and the transition is ensured smoothly by using control parameters.

Benefits of technology

It improves the smoothness of object switching display, simplifies the difficulty of animation management, improves user experience, and reduces post-maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119668546A_ABST
    Figure CN119668546A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a display switching method and device, equipment and a storage medium. According to the technical scheme, under the condition that the terminal equipment controls the first control object to be displayed through the target control class, the first operation is received, then the first control object is switched into the second control object in response to the first operation for the first control object, and the target control class controls the second control object to be displayed. According to the display switching method, the first control object is controlled to be displayed through the target control class, and the switched second control object is controlled to be displayed, so that the object switching display smoothness can be improved, the animation management difficulty is simplified, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of animation technology, and relate to but are not limited to a display switching method and apparatus, device, and storage medium. Background Art

[0002] In the field of animation production, it is often necessary to switch the animation frame, that is, switch from the current frame to the next frame. In most cases, when switching between different layers, a frame cut often occurs, which makes the transition between different objects and actions feel broken, not smooth, and unable to connect naturally.

[0003] Therefore, how to improve the smoothness of object switching display is an urgent problem to be solved. Summary of the invention

[0004] In view of this, the display switching method, device, equipment, and storage medium provided in the embodiments of the present application can improve the smoothness of object switching display. The display switching method, device, equipment, and storage medium provided in the embodiments of the present application are implemented as follows:

[0005] The display switching method provided in an embodiment of the present application is applied to a terminal device, and the method includes: receiving a first operation when a first control object is controlled by a target control class for display; in response to the first operation on the first control object, switching the first control object to a second control object, and the target control class controls the second control object for display.

[0006] The display switching device provided in an embodiment of the present application is applied to a terminal device, and the device includes: a receiving module, which is used to receive a first operation when a first control object is controlled to be displayed through a target control class; a switching module, which is used to switch the first control object to a second control object in response to the first operation on the first control object, and the target control class controls the second control object to be displayed.

[0007] The computer device provided in the embodiment of the present application includes a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the display switching method described in the embodiment of the present application is implemented.

[0008] The computer-readable storage medium provided in the embodiment of the present application stores a computer program thereon, and when the computer program is executed by a processor, the display switching method provided in the embodiment of the present application is implemented.

[0009] The computer program product provided in the embodiment of the present application includes a computer program, which, when executed by a processor, implements the display switching method provided in the embodiment of the present application.

[0010] In the display switching method, apparatus, device, and storage medium provided in the embodiments of the present application, when the terminal device controls the first control object for display through the target control class, receives the first operation, and then switches the first control object to the second control object in response to the first operation on the first control object, and the target control class controls the second control object for display. In the display switching method of the present application, the first control object is controlled to be displayed through the target control class, and the second control object after the control switch is controlled to be displayed, which can improve the smoothness of the object switching display, simplify the difficulty of managing animations, and solve the technical problems raised in the background technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0012] Figure 1 A schematic diagram of the system architecture of a terminal device provided for one embodiment of the present application;

[0013] Figure 2 A schematic diagram of an implementation flow of a display switching method provided in one embodiment of the present application;

[0014] Figure 3 A schematic diagram of an implementation flow of a display switching method provided in another embodiment of the present application;

[0015] Figure 4 A schematic diagram of the relationship between layers and control objects provided for one embodiment of the present application;

[0016] Figure 5 A schematic diagram of the relationship between layer 1, layer 2, layer 3, layer 4, the current layer of the terminal device, the control object, the target control class and the control parameters provided for an embodiment of the present application;

[0017] Figure 6 A schematic diagram of an implementation flow of a display switching method provided in yet another embodiment of the present application;

[0018] Figure 7 A schematic diagram of an interface for display switching between processes provided in one embodiment of the present application;

[0019] Figure 8 A schematic diagram of an implementation flow of a display switching method provided in yet another embodiment of the present application;

[0020] Fig. 9 A schematic diagram of a display interface of a terminal device provided in one embodiment of the present application;

[0021] Fig.10 A structural schematic diagram of a display switching device provided by an embodiment of the present application;

[0022] Fig.11 A structural diagram of a computer device provided for one embodiment of the present application. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.

[0024] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0025] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0026] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0027] In the field of animation production, it is often involved in the switching of animation frames, that is, switching from the current frame to the next frame. In most cases, if it involves switching between different layers, there will often be a frame-cut phenomenon, that is, the picture of each frame is very different from the previous and next frames, and there is usually no smooth transition. For example, between two frames, the picture content has changed significantly, and it may even be a completely different picture, which often gives people a strong visual impact; or it may be a sudden acceleration or slowdown in the rhythm of the animation, especially in high-speed action scenes.

[0028] However, the phenomenon of one-frame cutting during screen switching will make it impossible to achieve blockable connection between animations at different levels, that is, the transition between different objects and different actions of the animation has a sense of discontinuity, is not smooth, and cannot be naturally connected, causing the animation to look incoherent or abrupt; and the connection between different objects is usually complicated and difficult to manage in a unified manner, resulting in high cost of later code maintenance.

[0029] Therefore, how to improve the smoothness of object switching display is an urgent problem to be solved.

[0030] In view of this, an embodiment of the present application provides a display switching method, which is applied to a terminal device, and the method specifically includes: receiving a first operation, and then switching the first control object to a second control object in response to the first operation on the first control object, and the target control class controls the second control object to be displayed. In the display switching method, the first control object is controlled to be displayed by the target control class, and the second control object after switching is displayed, which can improve the smoothness of the object switching display, simplify the difficulty of managing animations, and improve the user experience.

[0031] It should be understood that the terminal device involved in the embodiments of the present application may be a mobile phone, a tablet computer, a laptop computer, a PDA, a mobile internet device (MID), a wearable device, a virtual reality (VR) device, an augmented reality (AR) device, a smart screen, an artificial intelligence (AI) audio, a terminal in industrial control, a terminal in self driving, a terminal in remote medical surgery, a terminal in a smart grid, a terminal in transportation safety, a terminal in a smart city, a terminal in a smart home, a personal digital assistant (PDA), etc., and the embodiments of the present application are not limited to this.

[0032] For example, Figure 1 A schematic diagram of the system architecture of a terminal device provided in one embodiment of the present application. Figure 1 As shown, the terminal device includes components such as a processor 110, a memory 120, a transceiver 130, a display unit 140, an input unit 150, a sensor 160, an audio circuit 170, and a power module 180.

[0033] The processor 110 is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device. By running or executing software programs and / or modules stored in the memory 120, and calling data stored in the memory 120, the processor 110 performs various functions of the terminal device and processes data, thereby monitoring the terminal device as a whole. Optionally, the processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor, which mainly processes operating devices, user interfaces, and application programs, etc. Of course, other processors may also be included, which are not listed here one by one.

[0034] The memory 120 can be used to store software programs and modules. The processor 110 executes various functional applications and data processing of the terminal device by running the software programs and modules stored in the memory 120. The memory 120 mainly includes a program storage area and a data storage area, wherein the program storage area can store operating devices, at least one application required for a function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the terminal device (such as audio data, a phone book, etc.), etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0035] The transceiver 130 can provide wireless communication solutions for terminal devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The transceiver 130 can be one or more devices integrating at least one communication processing module, for example, an antenna and a baseband processor are integrated into the transceiver 130, or an antenna and a modem processor are integrated into the transceiver 130, etc., which are not limited here.

[0036] The display unit 140 can be used to display information input by the user or information provided to the user and various menus of the terminal device. The display unit 140 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc., which is not limited here.

[0037] The input unit 150 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the terminal device. Specifically, the input unit 150 can collect the user's operations on or near it, and drive the corresponding connection device according to a pre-set program. In addition, the input unit 150 may include a touch panel, which can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel, the input unit 150 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of function keys (such as volume control keys, switch keys, etc.), trackballs, joysticks, etc.

[0038] The terminal device may also include at least one sensor 160, such as a gyroscope sensor, a motion sensor, and other sensors. The motion sensor may include an acceleration sensor for detecting the magnitude of acceleration in all directions, and the magnitude and direction of gravity when stationary, which may be used for applications that identify the posture of the terminal device, such as horizontal and vertical screen switching, related games, magnetometer posture calibration, etc. As for other sensors that may be configured in the terminal device, such as a pressure gauge, a barometer, a hygrometer, a thermometer, an infrared sensor, a fingerprint sensor, etc., they will not be described in detail here.

[0039] The audio circuit 170 may include a speaker and a microphone, and may provide an audio interface between the user and the terminal device. The audio circuit 170 may transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 170 and converted into audio data, and then the audio data is output to the processor 110 for processing, and then sent to another terminal device through the video circuit, or the audio data is output to the memory 120 for further processing.

[0040] The terminal device also includes a power module 180 for supplying power to various components. Optionally, the power module 180 can be logically connected to the processor 110 through a power management device, so that functions such as charging, discharging, and power consumption management can be managed through the power management device.

[0041] Although not shown, the terminal device may further include a camera. Optionally, the camera may be located at the front or rear of the terminal device, which is not limited in the embodiment of the present application.

[0042] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0043] In order to make the purpose and technical solution of the present application clearer and more intuitive, the display switching method, device, equipment, and storage medium provided by the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0044] Please refer to Figure 2 , is a schematic diagram of the implementation flow of a display switching method provided by an embodiment of the present application. The method can be applied to Figure 1 The terminal equipment shown, such as Figure 2 As shown, the method may include the following steps 201 and 202:

[0045] Step 201: receiving a first operation while controlling a first control object to be displayed through a target control class.

[0046] It should be understood that the control class usually refers to the tools or systems used to manipulate animations. The control class can be used to control objects in the animation, such as the movement, shape change, posture adjustment, etc. of characters, objects or scene elements. The creation of the control class can be based on the construction of the skeleton system, the design and binding of the controller, the attribute drive, and the facial controller.

[0047] In some embodiments, the target control class is created based on the key features of the control object in the current process in the terminal device, the attribute drive in the current process, and the operation data, and can be used to control the control object to perform animation, that is, movement, shape change or posture adjustment, etc. Among them, the target control class can also be called the target service class.

[0048] In the field of animation, a control object usually refers to an object used for manipulation, or an object that drives the behavior of other objects, such as models, characters, scene elements, etc. The function of a control object is to affect or control the state or action associated with it by operating certain parameters, attributes or variables. In some embodiments, a control object can also be called a service object. A control object generally refers to a key element in a process, or a key element in a layer in a process.

[0049] In some embodiments, when the first control object is controlled by the target control class for display, a first operation is received, and the first operation is an operation on the first control object, which is used to indicate that the first control object is switched to the second control object. If the first control object and the second control object are in the same process, the first operation can be operations such as clicking, sliding, long pressing and dragging in the preset position area corresponding to the first control object; if the first control object and the second control object are in different processes, the first operation can be an operation of stopping the process where the first control object is located and starting the process where the second control object is located, etc., and this application does not specifically limit this.

[0050] Step 202: In response to a first operation on a first control object, the first control object is switched to a second control object, and the target control class controls the second control object to be displayed.

[0051] In some embodiments, in response to a first operation on a first control object, the terminal device may first check the status of the first control object, and when the first control object is in a normal state, switch the first control object to a second control object. The switching process may be to hide the first control object and display the second control object; it may also be to delete the first control object and replace it with the second control object, or it may be other implementation methods, which are not limited in the present application.

[0052] Furthermore, after switching to the second control object, the target control class can also update its internal state, for example, updating the current first control object to the second control object to ensure that subsequent control is based on the second control object; if the interaction logic of the second control object is different from that of the first control object, the subsequent interaction response can also be adjusted.

[0053] In this embodiment, when the first control object is controlled by the target control class for display, a first operation is received, and then in response to the first operation on the first control object, the first control object is switched to the second control object, and the target control class controls the second control object for display. In this display switching method, the first control object is controlled by the target control class for display, and the second control object after switching is displayed, which can improve the smoothness of object switching display, simplify the difficulty of managing animation, and improve user experience.

[0054] Based on the above embodiments, Figure 3 A schematic diagram of the implementation flow of a display switching method provided in another embodiment of the present application, in which the first control object is displayed on the first layer and the second control object is displayed on the second layer as an example. Figure 3 As shown, the method may include the following steps 301 and 302:

[0055] Step 301: receiving a first operation while controlling a first control object to be displayed through a target control class.

[0056] In some embodiments, the target control class is created based on the key features of the control object in the current process in the terminal device, the attribute drive in the current process, and the operation data, and can be used to control the control object to perform animation, that is, movement, shape change or posture adjustment, etc. Among them, the target control class can also be called the target service class.

[0057] In some embodiments, when the first control object is controlled to be displayed through the target control class, a first operation is received, and the first operation is an operation on the first control object, which is used to indicate that the first control object is switched to the second control object. The first control object is displayed on the first layer, and the second control object is displayed on the second layer. If the first layer and the second layer are in the same process, the first operation can be operations such as clicking, sliding, long pressing and dragging in the preset position area corresponding to the first control object in the first layer; if the first layer and the second layer are in different processes, the first operation can be an operation of stopping the process where the first layer is located and starting the process where the second layer is located, etc., which is not specifically limited in this application.

[0058] Step 302: In response to a first operation on a first control object, the first layer is switched to a second layer, and a second control object is displayed in the second layer according to a control parameter.

[0059] Among them, the control parameters include display parameters of the first control object in the first layer when the instruction of the first operation is received, and the display parameters include: at least one of the display position parameters, shape size parameters, material parameters, color parameters, deformation parameters, visual effect parameters, and time progress parameters of the first control object in the first layer.

[0060] It should be understood that layers are generally used to manage the display order and rendering order of different elements or objects. The first layer and the second layer may represent different visual levels, and the switching of objects may trigger the switching between layers.

[0061] In some embodiments, the terminal device determines the corresponding control parameter based on at least one of the display position parameter, shape size parameter, material parameter, color parameter, deformation parameter, visual effect parameter and time progress parameter of the animation control of the first control object in the first layer when receiving the instruction of the first operation, wherein the display position parameter of the first control object in the first layer is used to indicate the coordinate position of the first control object in the first layer; the shape size parameter of the first control object is used to indicate the size and shape of the first control object; the material parameter of the first control object is used to indicate the material properties of the surface of the first control object, which can also be used to determine its appearance, such as gloss, roughness, etc.; the color parameter of the first control object is used to indicate the color or texture tone of the first control object; the deformation parameter of the first control object is used to indicate the geometric transformation of the first control object; the visual effect parameter of the first control object is used to indicate the special effects of the first control object, such as transparency, shadow, lighting, etc.; the time progress parameter of the first control object is used to indicate the animation progress of the first control object.

[0062] Furthermore, the terminal device switches the first layer to the second layer in response to the first operation on the first control object. The first control object is displayed in the first layer by controlling the target control class. After the first layer is switched to the second layer, the second control object is displayed in the second layer according to the above-mentioned control parameters. At the same time, the second control object is also displayed by controlling the target control class. The control parameters are located in the target control class. Since both the first control object and the second control object are controlled and displayed by the target control class, the smoothness of the switching display of the control objects can be improved, so that the display blocking connection effect can be achieved between different layers, and the control parameters are also used when switching to the second layer, so the connection is relatively smooth during switching and will not appear abrupt.

[0063] As an example, see Figure 4 , is a schematic diagram of the relationship between layers and control objects provided by an embodiment of the present application. Figure 4 As shown, assuming that the first layer is Figure 4 The parallelogram in the upper middle part, the first control object is in the first layer; the second layer is Figure 4 The parallelogram in the lower middle part, the second control object is located in the second layer, and the first control object and the second control object are both controlled by the control class; in response to the user operation, the terminal device can switch the first control object to the second control object, or switch the second control object to the first control object, that is, switch the first layer to the second layer, or switch the second layer to the first layer, to realize object switching display.

[0064] In some embodiments, the first operation includes at least one of clicking, sliding, long pressing, and dragging in a preset position area corresponding to the first control object.

[0065] Exemplarily, assuming that the first control object in the first layer is a boy named Xiao Ming, and the second control object in the second layer is a girl named Xiao Mei, the target control class plans to control Xiao Ming to run from 0 meters to 1000 meters. When he runs to 500 meters, the user wants to switch to the girl Xiao Mei to continue running. At this time, the control parameter is 500 meters, that is, when the user operates, Xiao Ming is at 500 meters in the first layer; further, in response to the user operation, Xiao Ming is replaced by Xiao Mei at 500 meters, and the target control class continues to control Xiao Mei to run the rest of the way. Since the control objects are controlled by the target control class before and after switching, and when switching, the second layer displays the second control object based on the control parameter, the process of object switching display is relatively smooth. Since the control objects are all controlled by the target control class, the target control class can also control the control objects therein to run back and then turn around and continue running, that is to say, the effect of animation blocking connection can be achieved.

[0066] Optionally, switching the first layer to the second layer may also be understood as covering the second layer on top of the first layer, so that the second control object in the second layer covers the first control object in the first layer.

[0067] In a possible implementation, assuming that the first layer is the current layer of the terminal device, the terminal device can not only switch between the first layer and the second layer, but also switch between the first layer and multiple layers, that is, different layers can be covered on top of the current layer of the terminal device based on user operations. For example, taking the layers including layer 1, layer 2, layer 3 and layer 4 as an example, please refer to Figure 5 , which is a schematic diagram of the relationship between layer 1, layer 2, layer 3, layer 4, the current layer of the terminal device, the control object, the target control class and the control parameters provided by an embodiment of the present application, such as Figure 5 As shown, the target control class includes control parameters, which can be used when switching between any one of layer one, layer two, layer three, and layer four and the current layer of the terminal device. The control parameters are determined based on the display parameters of the control object in the current layer of the terminal device; the target control class can also control the control object; the terminal device can determine whether layer one needs to be covered on the current layer of the terminal device based on user operations, and if so, switch the control object; the terminal device can determine whether layer two needs to be covered on the current layer of the terminal device based on user operations, and if so, switch the control object; the terminal device can determine whether layer three needs to be covered on the current layer of the terminal device based on user operations, and if so, switch the control object; the terminal device can determine whether layer four needs to be covered on the current layer of the terminal device based on user operations, and if so, switch the control object.

[0068] Optionally, multiple layers can be simultaneously covered on the current layer of the terminal device based on user operations, and the latest covered layer is displayed. In other words, during the animation process, the user can operate to switch the control object multiple times, and the control class can control the latest control object to continue the animation.

[0069] In this embodiment, when the terminal device controls the first control object to be displayed through the target control class, receives the first operation, and in response to the first operation on the first control object, switches the first layer to the second layer, and displays the second control object in the second layer according to the control parameters. By displaying the second control object in the second layer according to the control parameters, the user can perceive a seamless transition in the interaction, thereby improving the fluency of the interface and the user experience; by controlling the first control object to be displayed through the target control class, and displaying the second control object after switching, the smoothness of the object switching display can be improved, the difficulty of managing animations can be simplified, and later maintenance and upgrades can be facilitated.

[0070] Based on the above embodiments, Figure 6 A schematic diagram of a display switching method according to another embodiment of the present application is provided. In this embodiment, a first control object is displayed on a first layer, a second control object is displayed on a second layer, and the first layer corresponds to a first process and the second layer corresponds to a second process. Figure 6 As shown, the method may include the following steps 601 to 603:

[0071] Step 601: Call the target control class through the first process to control the first control object to be displayed in the first layer.

[0072] In some embodiments, a process is a basic execution unit in an operating system. A first process generally refers to a main process in a system or application, which may be responsible for managing the core logic of a program, or starting other subprocesses, etc. For example, the first process may be an application, such as a map application.

[0073] In some embodiments, the target control class is created based on the key features of the first control object in the first process, the attribute drive in the first process, and the operation data, and can be used to control the first control object to be displayed in the first layer. The first control object is an instance object managed by the target control class, usually a component on the user interface, such as a button, image, text box, character, etc., or a model object.

[0074] In some embodiments, during the running of the first process, the target control class can be called, such as calling the interface corresponding to the target control class, to control the first control object to be displayed in the first layer. At the same time, the target control class can also obtain the data of the first control object in real time.

[0075] Step 602: Receive a first operation on a first control object.

[0076] In some embodiments, when the first process calls the target control class to control the first control object to be displayed in the first layer, a first operation is received, and the first operation is an operation on the first control object, which is used to instruct to switch the first control object to the second control object. Among them, the first control object is displayed in the first layer, the second control object is displayed in the second layer, the first layer corresponds to the first process, and the second layer corresponds to the second process. Then, the first operation can be an operation of stopping the first process and starting the second process, etc. Of course, it can also be other operations, and this application does not limit this.

[0077] Step 603, in response to the first operation on the first control object, the first layer is switched to the second layer, the second process calls the target control class, and the target control class controls the second control object to be displayed in the second layer according to the control parameters of the first control object when the instruction of the first operation is received.

[0078] In some embodiments, the control parameters include display parameters of the first control object in the first layer when the instruction of the first operation is received, and the display parameters include: at least one of the display position parameters, shape size parameters, material parameters, color parameters, deformation parameters, visual effect parameters, and time progress parameters of the first control object in the first layer.

[0079] Among them, the display position parameter of the first control object in the first layer is used to indicate the coordinate position of the first control object in the first layer; the shape size parameter of the first control object is used to indicate the size and shape of the first control object; the material parameter of the first control object is used to indicate the material properties of the surface of the first control object, and its appearance, such as gloss, roughness, etc., can also be used to determine the appearance; the color parameter of the first control object is used to indicate the color or texture tone of the first control object; the deformation parameter of the first control object is used to indicate the geometric transformation of the first control object; the visual effect parameter of the first control object is used to indicate the special effects of the first control object, such as transparency, shadow, lighting, etc.; the time progress parameter of the first control object is used to indicate the animation progress of the first control object.

[0080] In some embodiments, the terminal device switches the first layer to the second layer in response to a first operation on a first control object. In the first layer, the first process calls the target control class to control the first control object to be displayed in the first layer. Switching the first layer to the second layer is equivalent to transferring the target control class from the first process to the second process. The target control class includes control parameters. Further, the target control class controls the second control object to be displayed in the second layer according to the control parameters of the first control object when receiving the instruction of the first operation. Since the first control object and the second control object are both controlled and displayed through the target control class, the smoothness of object switching display between different layers of different processes can be improved, and the control parameters are also used when switching to the second layer, so the connection during switching is relatively smooth and will not appear abrupt, and the user has a good visual experience.

[0081] In a possible implementation, the data formats in the first process and the second process may be different. For example, Chinese is used in the first process and English is used in the second process. In this case, when the first layer is switched to the second layer in response to the first operation, the data format conversion needs to be done in advance.

[0082] Optionally, when the first data format corresponding to the first process is different from the second data format corresponding to the second process, the control parameters of the first control object are converted from the first data format to the second data format when the instruction of the first operation is received to obtain updated control parameters. Further, the second control object is controlled to be displayed in the second layer according to the updated control parameters, so that the second process can quickly identify the control parameters to achieve a smooth transition of switching display of the control object.

[0083] In this embodiment, when the first process calls the target control class to control the first control object to be displayed in the first layer, a first operation on the first control object is received, and finally in response to the first operation on the first control object, the first layer is switched to the second layer, and the second process calls the target control class, and the target control class controls the second control object to be displayed in the second layer according to the control parameters of the first control object when the instruction of the first operation is received. In this display switching method, the first control object is controlled to be displayed by the target control class, and the second control object after switching is displayed, which can improve the smoothness of object switching display and simplify the difficulty of managing animation; dynamically respond to user operations and update the display interface in real time, which can enhance the user's interactive experience.

[0084] As an example, assuming that the first process is a first map application and the second process is a second map application, please refer to Figure 7 , is a schematic diagram of an interface for display switching between processes provided by an embodiment of the present application. Figure 7As shown in (a), assuming that the first map application is running on the current interface of the terminal device, the user inputs navigation from address A to address B, where the first control object is a character icon of the first map application. When the first control object reaches address C, the user triggers the first operation, closes the first map application, and opens the second map application. At this time, the user interface is as follows: Figure 7 (b), that is, the second control object is automatically passed in the second map application, and the user continues to walk from address C to address B. The second control object is Figure 7 (b) shows a person icon with braids. The display interface of the first map application is located in the first layer, and the display interface of the second map application is located in the second layer. The terminal device switches the first layer to the second layer in response to the first operation. Accordingly, the navigation interface provided by the first map application in the terminal device switches to the navigation interface of the second map application. The first control object in the first map application is controlled by the target control class. The target control class is created based on the first map application and collects data of the first control object in real time. After the first layer is switched to the second layer, the first control object is also switched to the second control object. The second control object is also controlled by the target control class, so the switching process is relatively smooth.

[0085] Based on the above embodiments, Figure 8 A schematic diagram of a display switching method according to another embodiment of the present application is provided. In this embodiment, the first control object is a display window of a first folder, which is displayed on a first layer, and the second control object is a display window of a second folder, which is displayed on a second layer. Figure 8 As shown, the method may include the following steps 801 and 802:

[0086] Step 801: receiving a first operation while controlling a display window of a first folder to display through a target control class.

[0087] In some embodiments, the target control class is created based on the key features of the control object in the current process in the terminal device, the attribute drive in the current process, and the operation data, and can be used to control the control object for animation, that is, movement, shape change or posture adjustment.

[0088] In some embodiments, when the display window of the first folder is controlled to be displayed through the target control class, a first operation is received, and the first operation is an operation on the display window of the first folder, which is used to instruct to switch the display window of the first folder to the display window of the second folder. The display window of the first folder is displayed on the first layer, and the display window of the second folder is displayed on the second layer. If the first layer and the second layer are in the same process, the first operation can be a click, slide, long press, and drag operation in the preset position area corresponding to the display window of the first folder in the first layer; if the first layer and the second layer are in different processes, the first operation can be an operation of stopping the process where the first layer is located and starting the process where the second layer is located, etc., which is not specifically limited in this application.

[0089] Step 802, in response to a first operation in a preset position area in a display window of a first folder, switching a first layer to a second layer, and displaying a display window of a second folder in the second layer according to control parameters.

[0090] In some embodiments, the control parameters include display position parameters, shape size parameters, and line width parameters of the window frame of the display window of the first folder in the first layer when receiving the instruction of the first operation. The display position parameters of the display window of the first folder in the first layer are used to indicate the coordinate position of the display window of the first folder in the first layer; the shape size parameters of the display window of the first folder in the first layer are used to indicate the size and shape of the display window of the first folder, for example, the display window is a square with a side length of 5 cm; the line width parameters of the window frame of the display window of the first folder are used to indicate the line width of the window frame of the display window of the first folder, for example, the line width is 0.35 mm.

[0091] Furthermore, the terminal device switches the first layer to the second layer in response to the first operation in the preset position area in the display window of the first folder. In the first layer, the display window of the first folder is displayed by controlling the target control class. After the first layer is switched to the second layer, the display window of the second folder is displayed in the second layer according to the above-mentioned control parameters. At the same time, the display window of the second folder is also displayed by controlling the target control class. The control parameters are located in the target control class. Since both the display window of the first folder and the display window of the second folder are controlled and displayed by the target control class, the smoothness of switching display of the control object can be improved.

[0092] In this embodiment, when the terminal device controls the display window of the first folder to display through the target control class, receives the first operation, and in response to the first operation in the preset position area of ​​the display window of the first folder, switches the first layer to the second layer, and displays the display window of the second folder in the second layer according to the control parameters. By displaying the display window of the second folder in the second layer according to the control parameters, the user can perceive a seamless transition in the interaction, thereby improving the smoothness of the interface and the user experience; by controlling the display window of the first folder to display through the target control class, and displaying the display window of the second folder after switching, the smoothness of the object switching display can be improved, the difficulty of managing animations can be simplified, and later maintenance and upgrades can be facilitated.

[0093] As an example, see Fig. 9 , is a schematic diagram of the display interface of a terminal device provided by an embodiment of the present application. Assuming that the current display interface of the terminal device includes applications (APP) 1 to APP7, APP6 and APP7 are located in folder 1, and folder 1 itself has a rectangular white background area to ensure that the sliding of the page will not separate the applications in folder 1. Assuming that folder 1 as a whole is used as the first control object, long pressing any position of folder 1 can make a line outline appear in a rectangular white background area of ​​folder 1 itself, such as Fig. 9 As shown in (a), there are black lines around folder 1, which is equivalent to the target control class controlling the first control object (i.e., folder 1) to perform animation, and folder 1 is located in the first layer; if a first operation is received, such as the user's finger falling on the preset position of folder 1, the preset position is as shown in FIG. Fig. 9 The bold black area in the lower right corner of the folder 1 shown in (a) will be Fig. 9 Folder 1 of (a) is switched to Fig. 9 (b) Folder 1, Fig. 9 The width of the black lines around folder 1 in (b) is greater than Fig. 9 (a) The black lines around the folder 1, Fig. 9 The folder 1 in (b) is the second control object as a whole and is located in the second layer. The target control class includes the width parameter of the black line around the folder 1, and the target control class controls the second control object to be displayed in the second layer. That is, in response to the first operation, the terminal device switches the first layer to the second layer, that is, Fig. 9 Folder 1 of (a) is switched to Fig. 9 (b) Folder 1. Folder 1 before and after switching is controlled and displayed by the target control class, and based on the corresponding control parameters, so the smoothness of the switching display can be improved.

[0094] To sum up, the display switching method provided in the embodiment of the present application controls the first control object for display through the target control class, and displays the second control object after switching, which can improve the smoothness of object switching display, simplify the difficulty of managing animation, and facilitate later maintenance and upgrades.

[0095] It should be understood that, although the steps in the above-mentioned flowcharts are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flowcharts may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0096] Based on the foregoing embodiments, an embodiment of the present application provides a display switching device, which includes the modules included and the units included in the modules, which can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit, a microprocessor, a digital signal processor or a field programmable gate array, etc.

[0097] Fig.10 A structural schematic diagram of a display switching device provided by an embodiment of the present application, such as Fig.10 As shown, the device 1000 includes a receiving module 1001 and a switching module 1002, wherein:

[0098] A receiving module 1001 is used to receive a first operation when the first control object is controlled to be displayed through a target control class;

[0099] The switching module 1002 is used to switch the first control object to a second control object in response to the first operation on the first control object, and the target control class controls the second control object to be displayed.

[0100] In some embodiments, the first control object is displayed on a first layer, and the second control object is displayed on a second layer, and the switching module 1002 is specifically used to: in response to the first operation on the first control object, switch the first layer to the second layer, wherein the second control object is displayed in the second layer according to control parameters, and the control parameters include display parameters of the first control object in the first layer when the instruction of the first operation is received, and the display parameters include: at least one of display position parameters, shape size parameters, material parameters, color parameters, deformation parameters, visual effect parameters, and time progress parameters of animation control of the first control object in the first layer.

[0101] In some embodiments, the first operation includes at least one of clicking, sliding, long pressing and dragging in a preset position area corresponding to the first control object.

[0102] In some embodiments, the first layer corresponds to a first process, the second layer corresponds to a second process, and before switching the first control object to the second control object, the device further includes:

[0103] Processing module. The processing module is used for the first process to call the target control class to control the first control object to be displayed in the first layer, and the target control class obtains the control parameters of the first control object;

[0104] The switching module 1002 is specifically used to: in response to the first operation on the first control object, switch the first layer to the second layer, the second process calls the target control class, and the target control class controls the second control object to be displayed in the second layer according to the control parameters of the first control object when receiving the instruction of the first operation.

[0105] In some embodiments, the first operation is used to indicate an operation of stopping the first process and starting the second process.

[0106] In some embodiments, the processing module is specifically used to: when a first data format corresponding to the first process is different from a second data format corresponding to the second process, convert the control parameters of the first control object from the first data format to the second data format when receiving the instruction of the first operation, to obtain updated control parameters;

[0107] The second control object is controlled to be displayed in the second layer according to the updated control parameter.

[0108] In some embodiments, the first control object is a display window of a first folder and is displayed on a first layer, and the second control object is a display window of a second folder and is displayed on a second layer;

[0109] The switching module 1002 is specifically used to: in response to the first operation in a preset position area in the display window of the first folder, switch the first layer to the second layer, wherein the display window of the second folder is displayed in the second layer according to control parameters, and the control parameters include display position parameters, shape size parameters and line width parameters of the window frame of the display window of the first folder in the first layer when the instruction of the first operation is received.

[0110] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0111] It should be noted that in the embodiments of this application Fig.10 The division of modules in the display switching device shown is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit. It may also be implemented in the form of a combination of software and hardware.

[0112] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0113] The embodiment of the present application provides a computer device, which may be a server, and its internal structure diagram may be as follows: Fig.11As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the above method is implemented.

[0114] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the above embodiment are implemented.

[0115] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.

[0116] Those skilled in the art will understand that Fig.11 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0117] In one embodiment, the display switching device provided by the present application can be implemented in the form of a computer program. The computer program can be Fig.11 The computer device shown in the figure is run. The memory of the computer device can store various program modules constituting the above-mentioned device. The computer program composed of various program modules enables the processor to execute the steps in the method of each embodiment of the present application described in this specification.

[0118] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0119] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.

[0120] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.

[0121] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

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

[0123] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0124] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0125] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0126] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0127] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0128] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0129] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0130] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A display switching method, characterized in that: Applied to a terminal device, the method comprises: When the first control object is controlled to be displayed through the target control class, a first operation is received; In response to the first operation on a first control object, the first control object is switched to a second control object, and the target control class controls the second control object to be displayed.

2. The method according to claim 1, characterized in that: The first control object is displayed on a first layer, the second control object is displayed on a second layer, and in response to the first operation on the first control object, the first control object is switched to the second control object, including: In response to the first operation on the first control object, the first layer is switched to the second layer, wherein the second control object is displayed in the second layer according to control parameters, the control parameters include display parameters of the first control object in the first layer when the instruction of the first operation is received, and the display parameters include: at least one of display position parameters, shape size parameters, material parameters, color parameters, deformation parameters, visual effect parameters, and time progress parameters of animation control of the first control object in the first layer.

3. The method according to claim 2, characterized in that The first operation includes at least one of clicking, sliding, long pressing and dragging in a preset position area corresponding to the first control object.

4. The method according to claim 2, characterized in that: The first layer corresponds to a first process, the second layer corresponds to a second process, and before switching the first control object to the second control object, the method further includes: The first process calls the target control class to control the first control object to be displayed in the first layer, and the target control class obtains the control parameters of the first control object; The step of switching the first control object to a second control object in response to the first operation on the first control object includes: In response to the first operation on the first control object, the first layer is switched to the second layer, the second process calls the target control class, and the target control class controls the second control object to be displayed in the second layer according to the control parameters of the first control object when the instruction of the first operation is received.

5. The method according to claim 4, characterized in that The first operation is used to indicate an operation of stopping the first process and starting the second process.

6. The method according to claim 4, characterized in that The target control class controls the second control object to be displayed in the second layer according to the control parameter of the first control object when receiving the instruction of the first operation, including: When a first data format corresponding to the first process is different from a second data format corresponding to the second process, converting a control parameter of the first control object from the first data format to the second data format when receiving an instruction of the first operation, to obtain an updated control parameter; The second control object is controlled to be displayed in the second layer according to the updated control parameter.

7. The method according to claim 1, characterized in that The first control object is a display window of a first folder, and is displayed on a first layer; the second control object is a display window of a second folder, and is displayed on a second layer; The step of switching the first control object to a second control object in response to the first operation on the first control object includes: In response to the first operation in a preset position area in the display window of the first folder, the first layer is switched to the second layer, wherein the display window of the second folder is displayed in the second layer according to control parameters, and the control parameters include display position parameters, shape size parameters and line width parameters of the window frame of the display window of the first folder in the first layer when the instruction of the first operation is received.

8. A display switching device, characterized in that: Applied to a terminal device, the device comprises: A receiving module, configured to receive a first operation when the first control object is controlled to be displayed through the target control class; A switching module is used to switch the first control object to a second control object in response to the first operation on the first control object, and the target control class controls the second control object to be displayed.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, wherein: When the processor executes the program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.