Display method and device

By adjusting the transparency of the target image frame contour area in the transition animation in the terminal device and adjusting the contour area according to the edge movement speed, the problem of abrupt dynamic effects during interface switching is solved, and the user experience and visual effects are improved.

CN118885239APending Publication Date: 2024-11-01HUAWEI TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410797206.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

In terminal devices, due to the sudden dynamic effect during interface switching, the visual effect is not smooth and the user experience is reduced.

Method used

By adjusting the transparency of the outline area of ​​the target image frame in the transition animation, the transition between the image edge area and the background is more natural. The transparency of the outline area is gradually increased along the target direction, and the area of ​​the outline area is determined according to the edge movement speed, so as to achieve Soft and coherent dynamic effects.

Benefits of technology

It improves the visual experience during interface switching, avoids ghosting, reduces performance power consumption, and ensures the smoothness and consistency of transition animations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118885239A_ABST
    Figure CN118885239A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a display method and device, and relates to the technical field of terminal display. The method comprises the following steps: the electronic equipment can display a first interface, and displays a transition animation in response to an interface switching operation for the first interface. Wherein the transition animation is a dynamic picture displayed in the process of switching from the first interface to the second interface, a target image frame in the transition animation comprises a contour area, the transparency corresponding to the contour area is gradually increased in the target direction, and the target direction is the direction from the inside to the outside of the target image frame; the contour area is determined according to the edge moving speed corresponding to each edge in the target image frame in the transition animation playing process. The electronic device may also display a second interface. According to the method, the area of which the transparency needs to be adjusted is determined according to the edge moving speed corresponding to each edge in the target image frame, so that smoother and more coordinated continuous transition can be realized in an interface switching process, and the visual experience of a user when using a mobile phone is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal display technology, and in particular to a display method and device. Background Art

[0002] With the continuous development of terminals, in order to present a better user interface (UI) to users, based on powerful terminals, the application interface is becoming more and more complex, and the conversion between interfaces is becoming more and more frequent. For example, the switching (or transition) effects between different interfaces and the switching effects between the horizontal screen interface and the vertical screen interface after switching between the horizontal and vertical screens.

[0003] During the interface switching process, the interface contents of the two interfaces are different, and the commonly used switching animation will appear particularly abrupt, resulting in a relatively fragmented visual effect. The user's perception of the animation effect is not smooth and stiff, thus reducing the user's experience. Summary of the invention

[0004] The embodiment of the present application provides a display method and device, which can adjust the transparency of the outline area of ​​the target image frame in the transition animation, so that the transition between the edge area of ​​the image and the display background around the image is more natural, and there will be no ghosting problem. The user perceives that the interface switching process is softer and more coherent.

[0005] In order to achieve the above objectives, this application adopts the following technical solutions:

[0006] In a first aspect, the present application provides a display method, which is applied to an electronic device, and the method includes: the electronic device can display a first interface, and in response to an interface switching operation for the first interface, display a transition animation. Wherein, the transition animation is a dynamic picture displayed during the process of switching from the first interface to the second interface, and the target image frame in the transition animation includes a contour area, and the transparency corresponding to the contour area gradually increases along the target direction. The target direction is the direction from the inside to the outside of the target image frame, and the contour area is determined according to the edge movement speed corresponding to each edge in the target image frame during the playing of the transition animation. The electronic device can also display a second interface.

[0007] Thus, on the one hand, by adjusting the transparency of the contour area in the target image frame, the embodiment of the present application can make the transition between the edge area of ​​the image and the display background around the image more natural, and there will be no ghosting problem. In this way, the transition animation displayed after the zooming or stretching of each target image frame will also have a softer and more coherent dynamic effect.

[0008] On the other hand, the contour area in the target image frame is determined according to the edge moving speeds corresponding to the edges in the target image frame during the playing of the transition animation. The edge moving speeds corresponding to the edges in the target image frame can be the same or different.

[0009] In the scenario where the edge movement speeds corresponding to the edges in the target image frame are the same, the area corresponding to the edges of the target image frame on all sides in the contour area is also the same. In this way, during the transition animation playback, the edges of the target image frame on all sides have the same transparency adjustment effect, which can maintain the consistency of the transition effect and have a softer and more coherent dynamic effect.

[0010] Since the playback time of the transition animation is fixed, the faster the edge movement speed corresponding to the edge, the longer the edge movement distance, and the user will see the edge movement more clearly. Therefore, in the scene where the edge movement speeds corresponding to each edge in the target image frame are different, the area corresponding to the surrounding edges of the target image frame in the contour area is also different, which further makes the user perceive the contour area of ​​the transition animation as softer and more coherent, and can also achieve flexible adjustment of the contour area.

[0011] Similarly, the edge movement speeds corresponding to the edges in the multiple target image frames are different, and the area of ​​the contour area corresponding to each target image frame is also different. The target image frame with a faster edge movement speed has a larger area of ​​the contour area, which further enables the user to perceive a smooth transition between the contour area and the display background around the image, thereby improving the user's visual experience.

[0012] In some achievable embodiments, the contour area includes sub-contour areas corresponding to each edge, and the greater the edge movement speed corresponding to each edge, the larger the area of ​​the sub-contour area corresponding to each edge.

[0013] In this way, each edge corresponds to a sub-contour area, and the greater the edge movement speed corresponding to each edge, the larger the area of ​​the corresponding sub-contour area. In other words, in a scene where the edge movement speeds corresponding to each edge in the target image frame are different, the area of ​​the area corresponding to the surrounding edges of the target image frame in the contour area is also different, which further allows the user to perceive the contour area of ​​the transition animation as being softer and more coherent, and at the same time enables flexible adjustment of the contour area.

[0014] In some achievable embodiments, the method further includes: the electronic device may draw a target image frame, the target image frame is generated according to the interface content information of the first interface or the interface content information of the second interface, and the target image frame includes a layer.

[0015] In this way, the embodiment of the present application can draw a target image frame according to the interface content information of the first interface or the interface content information of the second interface, and the target image frame includes a layer. In other words, it is only necessary to draw an image once in a layer to generate a target image frame. On the basis of ensuring the user's viewing effect, there is no need to perform multiple image drawing processes on a frame of image, thereby reducing the performance and power consumption of the mobile phone.

[0016] In some achievable ways, the target image frame can be generated according to the interface content information of the second interface. The transition animation is used to present the zoom display effect or fade-in display effect corresponding to the target image frame, and the last image frame of the transition animation has the same image content as that displayed on the second interface.

[0017] The target image frame can also be generated according to the interface content information of the first interface. The transition animation is used to present a zoom-out display effect or a fade-out display effect corresponding to the target image frame, and the first image frame of the transition animation has the same image content as that displayed on the first interface.

[0018] In this way, in a scenario where the target image frame is generated based on the interface content information of the second interface, the transition animation is used to present a zoomed-in display effect or a fade-in display effect corresponding to the target image frame. In a scenario where the target image frame is generated based on the interface content information of the first interface, the transition animation is used to present a zoomed-out display effect or a fade-out display effect corresponding to the target image frame. In this way, the transition animation can be applied to the above-mentioned different display scenarios, and in different display scenarios, the user can perceive that the outline area of ​​the transition animation is softer and more coherent, thereby enhancing the user's visual experience.

[0019] In some implementable embodiments, the switching operation is used to indicate that the transition animation for launching the target application or exiting the target application is a zoom animation, and the zoom animation is used to present a zoomed-in display effect or a zoomed-out display effect corresponding to the target image frame.

[0020] Alternatively, the switching operation is used to indicate that the interface switching transition animation in the target application is a displacement animation, and the displacement animation is used to present a fade-in display effect or a fade-out display effect corresponding to the target image frame.

[0021] In this way, the embodiment of the present application can display a transition animation when starting the target application, exiting the target application, or switching interfaces within the target application. The transition animation can be a zoom animation or a displacement animation. In this way, the transition animation can be displayed in different interface switching scenes corresponding to the application, which can make the user perceive the contour area of ​​the transition animation to be softer and more coherent in various interface switching scenes, thereby improving the user's visual experience.

[0022] In some implementable methods, the zoom animation includes a direct zoom animation and a displacement zoom animation. The direct zoom animation includes a direct enlargement animation and a direct reduction animation. In the direct enlargement animation, the target image frame gradually enlarges from a first position in the first interface, and in the direct reduction animation, the target image frame gradually shrinks to the first position in the second interface.

[0023] The displacement zoom animation includes a displacement magnification animation and a displacement reduction animation. In the displacement magnification animation, the target image frame gradually enlarges in the process of moving from a first position in the first interface to a second position. In the displacement reduction animation, the target image frame moves from a second position in the second interface to a first position in the second interface while gradually shrinking. The first position in the first interface and the first position in the second interface are the same or different from the application control position corresponding to the target application.

[0024] Thus, the zoom animation of the embodiment of the present application may include direct zoom animation and displacement zoom animation. In the direct zoom animation, the target image frame may be directly enlarged from one position or directly reduced to one position. In the displacement zoom animation, the target image frame may also be displaced during the process of enlarging or reducing. This enables the user to still perceive the contour area of ​​the animation as being softer and more coherent in different types of zoom animations, thereby enhancing the user's visual experience.

[0025] In some achievable ways, the electronic device can obtain the target image frame and the edge movement speed of each edge of the target image frame during the process of drawing the target image frame. The electronic device can also determine the first area and the second area corresponding to the target image frame according to the edge movement speed of each edge of the target image frame, the first area being the area near each edge in the target image frame, and the second area being the area near each edge outside the target image frame. The electronic device adjusts the transparency of the first area and the second area to generate an updated target image frame, the contour area in the updated target image frame includes the adjusted first area and the second area, and the target image frame in the transition animation is the updated target image frame.

[0026] In this way, the embodiment of the present application can determine the first area and the second area corresponding to the target image frame according to the edge movement speed of each edge of the target frame image. The first area and the second area are the areas inside and outside the target image frame close to each edge, respectively. By setting the first area and the second area, it can be ensured that there are sufficient areas to present a transparent gradient effect later. The transparency of the first area and the second area can also be adjusted to make the outline of the image softer. Because the user's human eye perceives the edge position more clearly when recognizing the speed of a moving object, the contour area can enhance the user's visual effect after the transparency is adjusted, making the user look smoother.

[0027] In some achievable ways, in the process of determining the first area and the second area corresponding to the target image frame according to the edge movement speed of each edge of the target image frame, the electronic device can determine the feathering distance corresponding to each edge in the target image frame according to the edge movement speed of each edge of the target image frame, and determine the first area according to the feathering distance, and the area corresponding to the first area is positively correlated with the feathering distance. The electronic device can also expand the pixel points corresponding to the first area along the target direction to obtain the second area.

[0028] In this way, the edge movement speeds of the various edges in the embodiment of the present application are the same, and the corresponding feathering distances are the same. The edge movement speeds of the various edges are different, and the corresponding feathering distances are different. The larger the feathering distance, the larger the area of ​​the first region, and the smaller the feathering distance, the smaller the area of ​​the first region. In a scenario where the edge movement speeds corresponding to the various edges in the target image frame are different, the corresponding first region and second region are also different. This further allows the user to perceive that the contour area of ​​the transition animation is softer and more coherent, and at the same time, flexible adjustments to the contour area can be achieved.

[0029] In some conceivable embodiments, in the first area of ​​the electronic device, the distance from one end away from the edge in the target image frame to the edge in the target image frame is equal to the feathering distance, and in the second area, the distance from one end away from the edge in the target image frame to the edge in the target image frame is equal to the feathering distance.

[0030] In some achievable methods, in the process of obtaining the edge moving speed of each edge of the target image frame, the electronic device can obtain the moving distance between the center point positions in adjacent image frames in the transition animation and the corresponding playback speed of the transition animation when the transition animation is a displacement animation or a scaling animation, and determine the center moving speed corresponding to the center point position based on the moving distance. The electronic device can also add the center moving speed and the corresponding playback speed of the transition animation to obtain the target moving speed of each vertex in the target image frame, and average the target moving speeds of the vertices corresponding to each edge of the target image frame to obtain the edge moving speed of each edge of the target image frame.

[0031] Thus, in the embodiment of the present application, when the transition animation is a displacement animation or a direct scaling animation, the edge moving speed corresponding to each edge in the target image frame usually changes according to the center moving speed corresponding to the center point position in the target image frame and the change of the play speed of the transition animation. The center moving speed and the play speed corresponding to the transition animation can be added to obtain the target moving speed of each vertex in the target image frame, and then the target moving speed of the vertex corresponding to each edge is averaged. The edge moving speed of each edge of the target image frame can be accurately obtained, which is convenient for the subsequent determination of the area corresponding to the contour area. This allows the transition animation to achieve a smoother and more coordinated transition during the interface switching process, and the conversion will not appear abrupt. Thereby improving the visual experience of the user when using the mobile phone.

[0032] In some achievable methods, in the process of obtaining the edge moving speed of each edge of the target image frame, the electronic device can obtain the moving distance between the center point positions in adjacent image frames in the transition animation, the moving direction of the center point positions in adjacent image frames, and the corresponding playback speed of the transition animation when the transition animation is a displacement scaling animation; the target image frame in the displacement scaling animation is gradually enlarged during the displacement process, or is displaced during the gradual reduction process. The electronic device can determine the center moving speed corresponding to the center point position based on the moving distance, and calculate the center moving speed and the corresponding playback speed of the transition animation based on the moving direction of the center point position to determine the target moving speed of each vertex in the target image frame. The electronic device can also average the target moving speeds of the vertices corresponding to each edge of the target image frame to obtain the edge moving speeds of each edge of the target image frame.

[0033] Thus, in the embodiment of the present application, when the transition animation is a displacement scaling animation, the edge moving speed corresponding to each edge in the target image frame changes according to the center moving speed corresponding to the center point position in the target image frame, the center moving direction, and the play speed of the transition animation. Therefore, it is necessary to calculate the center moving speed and the play speed corresponding to the transition animation according to the moving direction of the center point position to determine the target moving speed of each vertex in the target image frame. The edge moving speed of each edge of the target image frame can be accurately obtained, which is convenient for the subsequent determination of the area corresponding to the contour area. This allows the transition animation to achieve a smoother and more coordinated transition during the interface switching process, and the conversion will not appear abrupt. This improves the visual experience of the user when using the mobile phone.

[0034] In some feasible embodiments, when the electronic device determines the feathering distance corresponding to each edge in the target image frame according to the edge movement speed of each edge of the target image frame, it can obtain the feathering distance corresponding to each edge in the target image frame according to the edge movement speed corresponding to each edge and a preset time threshold.

[0035] In this way, the embodiment of the present application can set a preset time threshold to convert the edge movement speed corresponding to each edge into the feathering distance corresponding to each edge. This facilitates the subsequent determination of the corresponding contour area in the target image frame and makes the contour area present a transparent gradient effect. In the process of interface switching, a smoother and more coordinated transition is achieved, improving the visual experience of users when using mobile phones.

[0036] In a second aspect, an embodiment of the present application further provides a display device, which includes a display module, an acquisition module and a processing module.

[0037] The display module is configured to display the first interface; the processing module is configured to draw the target image frame; the processing module is configured to generate a transition animation based on the target image frame; the transition animation is a dynamic picture displayed in the process of switching from the first interface to the second interface, and the target image frame in the transition animation includes a contour area, and the transparency corresponding to the contour area increases along the target direction, the target direction is from the inside to the outside of the target image frame, and the contour area is determined according to the edge movement speed of each edge of the target image frame during the playing of the transition animation; the display module is also configured to display the transition animation; the display module is also configured to display the second interface.

[0038] In this way, the display device provided by the embodiment of the present application can determine the area that needs to adjust the transparency according to the edge movement speed corresponding to each edge in the target image frame, which can further improve the display effect corresponding to the transition animation, and achieve a smoother and more coordinated transition in the process of interface switching, and the transition will not appear abrupt, thereby improving the visual experience of users when using mobile phones.

[0039] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a memory, one or more processors, and a display screen; the memory is coupled to the processor; wherein the display screen is used to display a user interface, and the memory stores computer program code, the computer program code comprising computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the display method as described in the first aspect above.

[0040] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on an electronic device, the electronic device executes the display method described in the first aspect above.

[0041] In a fifth aspect, an embodiment of the present application further provides a computer program product, which includes instructions. When the instructions are executed on a computer or a processor, the computer or the processor executes the display method as described in the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 An image schematic diagram of an image frame in a related technology provided by an embodiment of the present application;

[0043] Figure 2 A schematic diagram of the hardware structure of a mobile phone provided in an embodiment of the present application;

[0044] Figure 3 A schematic diagram of the software structure of a mobile phone provided in an embodiment of the present application;

[0045] Figure 4 A schematic diagram of an interface switching of a weather application provided in an embodiment of the present application;

[0046] Figure 5 A schematic diagram of interface switching of a memo application provided in an embodiment of the present application;

[0047] Figure 6 A schematic diagram of an interface switching of a storage function in a setting application provided in an embodiment of the present application;

[0048] Figure 7 A schematic diagram of a process for determining a first area and a second area provided in an embodiment of the present application;

[0049] Figure 8 A schematic diagram of an interface of a first area and a second area corresponding to a target image frame provided in an embodiment of the present application;

[0050] Fig. 9 A schematic diagram of a process for determining a first area and a second area according to an edge moving speed provided in an embodiment of the present application;

[0051] Fig.10 A schematic diagram of an interface for determining a first area and a second area according to an edge moving speed provided in an embodiment of the present application;

[0052] Fig.11 A schematic diagram of an interface of various edges in a target image frame provided by an embodiment of the present application;

[0053] Fig.12 A schematic diagram of an interface of a target image frame in a displacement zoom animation provided by an embodiment of the present application;

[0054] Fig.13 A schematic diagram of an interface for calculating edge moving distance provided in an embodiment of the present application;

[0055] Fig.14 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0056] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the present application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; "and / or" in the present application is only a kind of association relationship describing the associated objects, indicating that there can be three relationships, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. And, in the description of the present application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or its similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same functions and effects.

[0057] Those skilled in the art will appreciate that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference. At the same time, in some embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way for easy understanding.

[0058] In addition, the device architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person of ordinary skill in the art can appreciate that with the evolution of the device architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0059] With the continuous development of terminals, in order to present a better user interface (UI) to users, based on powerful terminals, the interfaces of applications are becoming more and more complex, and the transitions between interfaces are becoming more and more frequent. For example, the switching (or transition) effects between different interfaces (such as the switching effects corresponding to the display interface and the exit interface) and the switching effects between the horizontal screen interface and the vertical screen interface after switching between the horizontal and vertical screens. In the scenario of interface switching, the above-mentioned effects can be achieved by scaling or stretching the interface. During the process of scaling or stretching the interface, the color difference between the edge area of ​​the interface and the display background around the interface is too large, resulting in a more fragmented visual effect.

[0060] See also Figure 1 In the related art, the image frame in the transition animation includes multiple layers, and each layer needs to draw a corresponding image. Specifically, in the process of drawing the corresponding image of each layer, it is necessary to enlarge and adjust the edge area of ​​the corresponding image in each layer in turn to different degrees, and it is also necessary to modify the pixels of the enlarged adjustment area. For example, the edge areas corresponding to the first layer, the second layer, and the third layer are enlarged in turn. In this way, the image frame formed after superimposing multiple layers can achieve an effect similar to motion blur. However, when the number of drawn layers is smaller, the display effect of the image frame will look worse, like multi-layer ghosting rather than delicate directional blur, and the user's perception of the interface will be unsmooth and stiff. When the number of drawn layers is more, the real-time performance power consumption will increase accordingly. Thereby, the user's sense of use experience is reduced.

[0061] Based on the above content, an embodiment of the present application provides a display method, which is applied to an electronic device, and the method includes: the electronic device can display a first interface, and in response to an interface switching operation for the first interface, display a transition animation. Among them, the transition animation is a dynamic picture displayed in the process of switching from the first interface to the second interface, and the target image frame in the transition animation includes a contour area, and the transparency corresponding to the contour area gradually increases along the target direction. The target direction is the direction from the inside to the outside of the target image frame, and the contour area is determined according to the edge movement speed corresponding to each edge in the target image frame during the playing of the transition animation. The electronic device can also display a second interface.

[0062] That is to say, in the embodiment of the present application, during the conversion process between interfaces, a transition animation can be displayed, and the target image frame in the transition animation includes a contour area, and the transparency of the contour area gradually becomes transparent along the direction from the inside to the outside of the target image frame. At the same time, the contour area is determined according to the edge movement speed corresponding to each edge in the target image frame during the playing of the transition animation.

[0063] Thus, on the one hand, by adjusting the transparency of the contour area in the target image frame, the embodiment of the present application can make the transition between the edge area of ​​the image and the display background around the image more natural, and there will be no ghosting problem. In this way, the transition animation displayed after the zooming or stretching of each target image frame will also have a softer and more coherent dynamic effect.

[0064] On the other hand, the contour area in the target image frame is determined according to the edge moving speeds corresponding to the edges in the target image frame during the playing of the transition animation. The edge moving speeds corresponding to the edges in the target image frame can be the same or different.

[0065] In the scenario where the edge movement speeds corresponding to the edges in the target image frame are the same, the area corresponding to the edges of the target image frame on all sides in the contour area is also the same. In this way, during the transition animation playback, the edges of the target image frame on all sides have the same transparency adjustment effect, which can maintain the consistency of the transition effect and have a softer and more coherent dynamic effect.

[0066] Since the playback time of the transition animation is fixed, the faster the edge movement speed corresponding to the edge, the longer the edge movement distance, and the user will see the edge movement more clearly. Therefore, in the scene where the edge movement speeds corresponding to each edge in the target image frame are different, the area corresponding to the surrounding edges of the target image frame in the contour area is also different, which further makes the user perceive the contour area of ​​the transition animation as softer and more coherent, and can also achieve flexible adjustment of the contour area.

[0067] Similarly, the edge movement speeds corresponding to the edges in the multiple target image frames are different, and the area of ​​the contour area corresponding to each target image frame is also different. The target image frame with a faster edge movement speed has a larger area of ​​the contour area, which further enables the user to perceive a smooth transition between the contour area and the display background around the image, thereby improving the user's visual experience.

[0068] In summary, by determining the area that needs to adjust transparency based on the edge movement speed of each edge in the target image frame, the display effect of the transition animation can be further improved, and a smoother and more coordinated transition can be achieved during the interface switching process, so that the transition will not appear abrupt, thereby improving the user's visual experience when using the phone.

[0069] The electronic devices provided in the embodiments of the present application may include mobile phones, smart watches, tablet computers, foldable electronic devices, desktop computers, laptop computers, handheld computers, notebook computers, ultra-mobile personal computers (Ultra-Mobile Personal Computer, UMPC), netbooks, cellular phones, personal digital assistants (Personal Digital Assistant, PDA), augmented reality (Augmented Reality, AR) devices, virtual reality (Virtual Reality, VR) devices, artificial intelligence (Artificial Intelligence, AI) devices, wearable devices, vehicle-mounted devices and other electronic devices with communication capabilities. The embodiments of the present application do not impose any special restrictions on the specific types of electronic devices.

[0070] Furthermore, the operating systems installed on the electronic devices include but are not limited to Or other operating systems. This application does not limit the specific type of electronic device and the type of operating system when an operating system is installed. Those skilled in the art can determine the type of electronic device and the installed operating system according to actual needs, and these designs do not exceed the protection scope of the embodiments of this application.

[0071] The electronic device in the embodiment of the present application can be Figure 2 It can be achieved by using 100 mobile phones. Figure 2 Shown is a schematic diagram of the hardware structure of a mobile phone provided in an embodiment of the present application.

[0072] like Figure 2 As shown, the mobile phone 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0073] Among them, the above-mentioned sensor module 180 may include sensors such as a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L and a bone conduction sensor 180M.

[0074] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the mobile phone 100. In other embodiments of the present application, the mobile phone 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0075] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0076] The controller may be the nerve center and command center of the mobile phone 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0077] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0078] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0079] The wireless communication function of the mobile phone 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0080] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in mobile phone 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0081] Among them, the mobile communication module 150 can support 2G / 3G / 4G / 5G / future communication networks or more advanced communication standards, which is not limited in this application.

[0082] The wireless communication module 160 can provide wireless communication solutions 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., which are applied to the mobile phone 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0083] The mobile phone 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0084] The display screen 194 is used to display a user interface, etc. The display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the mobile phone 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0085] The mobile phone 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0086] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.

[0087] The mobile phone 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor.

[0088] In some examples, the display screen in the mobile phone can display the first interface, and in response to the interface switching operation for the first interface, display a transition animation. Among them, the transition animation is a dynamic picture displayed in the process of switching from the first interface to the second interface. The target image frame in the transition animation includes a contour area, and the transparency corresponding to the contour area gradually increases along the target direction. The target direction is the direction from the inside to the outside of the target image frame. The contour area is determined according to the edge movement speed corresponding to each edge in the target image frame during the playing of the transition animation. After displaying the transition animation, the electronic device can also display the second interface to complete the process of switching from the first interface to the second interface.

[0089] The software system of the mobile phone 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention takes the Android system of the layered architecture as an example to exemplify the software structure of the mobile phone 100.

[0090] Figure 3 It is a schematic diagram of the software structure of the mobile phone of the embodiment of the present application.

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

[0092] The application layer can include a series of application packages.

[0093] like Figure 3 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.

[0094] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0095] like Figure 3 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0096] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

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

[0098] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0099] The phone manager is used to provide communication functions of the mobile phone 100, such as management of call status (including answering, hanging up, etc.).

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

[0101] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0102] Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for scheduling and management of the Android system.

[0103] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0104] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0105] The system library can include multiple functional modules, such as display module and processing module.

[0106] In some examples, the display module is used to display the first interface. The processing module is used to generate a transition animation according to the target image frame in response to the interface switching operation for the first interface. Among them, the target image frame includes a contour area, and the transparency corresponding to the contour area gradually increases along the target direction. The target direction is the direction from the inside to the outside of the target image frame. The contour area is determined according to the edge movement speed corresponding to each edge in the target image frame during the playback of the transition animation. The display module is used to display the transition animation, and after displaying the transition animation, display the second interface to complete the process of switching from the first interface to the second interface.

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

[0108] The display method provided in the embodiment of the present application can make the display of the transition animation smoother and softer, and the connection is tighter, so as to enhance the user's viewing experience. In order to enable those skilled in the art to better understand the display method in the embodiment of the present application, the application scenarios of the transition animation are briefly introduced below. The transition animation (also known as transition dynamic effect, transition effect, etc.) can correspond to multiple image frames (also known as video frames, etc.), and the mobile phone can display the transition animation in the process of switching from the first interface to the second interface. It should be understood that the first interface is the interface to be switched, and the second interface is the interface after switching.

[0109] It should be noted that the transition animation involved in the embodiments of the present application can be understood as the animation effect used in the process of switching between different interfaces, or the animation effect used in the process of converting between different modes, etc. The embodiments of the present application do not specifically limit this.

[0110] In the specific scenario of switching between different modes, the modes in the embodiments of the present application include but are not limited to: screen-off mode, screen-lock mode, and unlock mode. Exemplarily, the transition animation of the screen-off mode can be a dynamic picture played on the mobile phone display when the desktop screen mode is switched to the screen-off mode. The transition animation of the lock screen mode can be a dynamic picture played on the mobile phone display when the screen-off mode is switched to the lock screen mode. The transition animation of the unlock mode can be a dynamic picture played on the mobile phone display when the lock screen mode is switched to the desktop mode. The embodiments of the present application do not specifically limit the mode type corresponding to the mode.

[0111] In the specific scenarios of switching between different interfaces, the interface switching scenarios in the embodiments of the present application include but are not limited to starting an application scenario, exiting an application scenario, and transitioning scenarios within the same application.

[0112] In some embodiments of the present application, the transition animation includes a first transition animation, a second transition animation and a third transition animation. Different types of transition animations can be divided according to different display scenes.

[0113] Specifically, in the scenario of launching or exiting an application, the mobile phone may display a first transition animation. The first transition animation may have a dynamic effect of transitioning from an application icon (or application card) in a first interface to a second interface (such as an application interface), or a dynamic effect of transitioning from an application interface to an application icon (or application card), that is, the application interface may appear or disappear from a position corresponding to the application icon (or application card).

[0114] In the scenario of launching or exiting an application, the mobile phone may display a second transition animation. The second transition animation may have a dynamic effect of transitioning from a preset position in the first interface to the application interface, or from the application interface to a preset position in the second interface, that is, the application interface may appear from a preset position in the first interface or disappear from a preset position in the second interface, and the preset position of the first interface and the preset position of the second interface are different from the positions corresponding to the application icon (or application card).

[0115] In the same in-application transition scenario, the mobile phone may display a third transition animation, which may have a fade-in dynamic effect that transitions the application interface from one side of the first interface to the other side, or a fade-out dynamic effect that transitions the application interface from one side of the first interface to the other side.

[0116] The first transition animation, the second transition animation and the third transition animation are exemplarily described below.

[0117] In one achievable manner, in a scenario of starting or exiting an application, a mobile phone may display a first interface, the first interface may include an application control corresponding to at least one application, the at least one application includes a target application, and the application control may include an application icon and an application card. The mobile phone may display a first transition animation in response to a switching operation on the first interface. The switching operation may be a triggering operation on an application control corresponding to a target application in the first interface, and the first transition animation may be a magnification animation, in which an image frame in the magnification animation gradually magnifies from a first position in the first interface. The first position may be associated with an application control position corresponding to a target application. The mobile phone may also display a second interface after displaying the transition animation, and the second interface may include an application interface corresponding to the target application.

[0118] For example, the target application is a weather application. Figure 4 (A) is a front view of a mobile phone provided in an embodiment of the present application. The first interface is displayed on the main screen interface of the mobile phone. The first interface includes a weather card control 401. The user can click the weather card control 401 to trigger the second interface. The second interface can be a weather interface corresponding to the weather application. Figure 4 As shown in (D) in FIG. 4 , the mobile phone displays the weather interface in response to a click operation on the weather card control 401. It can be seen that in the process of switching from the first interface to the second interface, the mobile phone can display a transition animation, which is a dynamic picture displayed in the process of switching from the first interface to the second interface, and the transition animation is a zoom animation.

[0119] Specifically, Figure 4 (A) to Figure 4 As shown in (D), the transition animation is realized by zooming in on the weather interface 402 corresponding to the weather application. It can be seen that the image frame in the zoom animation gradually zooms in from the position corresponding to the weather card control 401 in the first interface until it covers the entire display screen to display the weather interface 402.

[0120] It should be noted that the scenario of exiting the application is opposite to the scenario of starting the application. The mobile phone can display a first transition animation in response to a switching operation on the first interface. The switching operation can be an exit operation on the application interface in the first interface, and the first transition animation can be a zoom-out animation. The image frame in the zoom-out animation can be gradually reduced from covering the entire display screen to a first position in the first interface, and the first position is associated with the application control position corresponding to the target application.

[0121] In another achievable manner, in the scenario of starting or exiting an application, the mobile phone can display a first interface, the first interface can include an application control corresponding to at least one application, the at least one application includes a target application, and the application control can include an application icon and an application card. The mobile phone can display a second transition animation in response to a switching operation on the first interface. The switching operation can be a trigger operation for an application control corresponding to the target application in the first interface, and the second transition animation can be a magnification animation, in which the image frame in the magnification animation is gradually enlarged from a preset position in the first interface. The mobile phone can also display a second interface after displaying the transition animation, and the second interface can include an application interface corresponding to the target application.

[0122] The preset position may be pre-set, and the preset position may be different from the first position, that is, not associated with the application control position corresponding to the target application. In other words, the image frame in the second transition animation may suddenly appear at other positions in the first interface.

[0123] For example, the target application is a memo application. Figure 5 In (A), the first interface is displayed on the main screen interface of the mobile phone. The first interface includes an application icon 501 corresponding to the memo application. The user can click the application icon 501 corresponding to the memo application to trigger the entry into the second interface. The second interface may be a memo interface corresponding to the memo application. Figure 5 As shown in (D) in FIG. 5 , the mobile phone displays the memo interface in response to a click operation on the application icon 501 corresponding to the memo application. It can be seen that in the process of switching from the first interface to the second interface, the mobile phone can display a second transition animation, which is a dynamic picture displayed in the process of switching from the first interface to the second interface, and the transition animation is a zoom-in animation.

[0124] Specifically, Figure 5 (A) to Figure 5 As shown in (D) in the figure, the transition animation is realized by zooming in the memo interface 502 corresponding to the memo application. It can be seen that the image frame in the zoom animation is gradually zoomed in from the preset position in the first interface to the preset interface size, and of course, it can also be gradually zoomed in to cover the entire display screen to display the memo interface 502.

[0125] It should be noted that the scenario of exiting the application is opposite to the scenario of starting the application. The mobile phone can display the second transition animation in response to the switching operation on the first interface. The switching operation can be an exit operation on the application interface in the second interface, and the second transition animation can be a reduction animation. The image frame in the reduction animation can be gradually reduced from the preset interface size to the preset position of the second interface, or gradually reduced from covering the entire display screen to the preset position in the second interface.

[0126] In another achievable manner, the transition scenario within the same application includes using a function in the application or exiting a function in the application. In the scenario of using a function in the application, the mobile phone can display a first interface. The first interface may include at least one function control corresponding to the target application, and at least one function control includes a target function. The mobile phone may display a third transition animation in response to a switching operation on the first interface. Among them, the switching operation may be a triggering operation for a function control corresponding to the target function in the first interface, and the third transition animation may be a fade-in animation, and the image frame in the fade-in animation gradually shifts from one side of the first interface to the other side until the entire display screen is covered. The mobile phone can also display a second interface after displaying the transition animation, and the second interface may include a function interface corresponding to the target function.

[0127] For example, the target application is a setting application, and the target function is a storage function. Figure 6In (A), the first interface is displayed on the main screen interface of the mobile phone. The first interface includes a function control 601 corresponding to the storage function. The user can click the function control 601 to trigger the second interface. The second interface may be a function interface corresponding to the storage function. Figure 6 As shown in (D), the mobile phone displays the function interface corresponding to the storage function in response to the click operation on the function control 601. It can be seen that in the process of switching from the first interface to the second interface, the mobile phone can display a transition animation, which is a dynamic picture displayed in the process of switching from the first interface to the second interface, and the transition animation is a fade-in animation.

[0128] Specifically, Figure 6 (A) to Figure 6 As shown in (D), the transition animation is realized by shifting the function interface 602. The image frame in the fade-in animation gradually shifts from the right side to the left side of the first interface until it covers the entire display screen, so as to display the function interface 602 corresponding to the storage function.

[0129] It should be noted that the scenario of exiting a function in an application is opposite to the scenario of starting a function in the above application. The mobile phone may display a third transition animation in response to a switching operation on the first interface. The switching operation may be an exit operation on a function interface in the first interface, and the third transition animation may be a fade-out animation, in which an image frame may gradually move from the left side of the first interface to the right side until it disappears.

[0130] In some embodiments of the present application, the mobile phone can display the above transition animation in response to a switching operation on the first interface. The switching operation is used to indicate that the transition animation for starting the target application or exiting the target application is a zoom animation, and the zoom animation is used to present a zoomed-in display effect or a zoomed-out display effect corresponding to the target image frame.

[0131] Alternatively, the switching operation is used to indicate that the interface switching transition animation in the target application is a displacement animation, and the displacement animation is used to present a fade-in display effect or a fade-out display effect corresponding to the target image frame.

[0132] In one possible implementation, a scale transition is used to achieve a zoom-in effect or a zoom-out effect on a target image frame. A scale transition may include a zoom-out animation or an zoom-in animation. A zoom-out animation may be used to achieve a zoom-in effect on a target image frame, and an zoom-in animation may be used to achieve a zoom-out effect on a target image frame. A position transition is used to achieve a fade-in effect or a fade-out effect on a target image frame. It is understood that a position transition may also be used to achieve a translation effect on a target image frame.

[0133] It should be noted that the above-mentioned scaling animation and displacement animation are only for exemplary purposes. The transition animation may also include rotation animation, custom animation, etc. The embodiment of the present application does not limit the animation type corresponding to the transition animation, nor does it limit the specific implementation form of the animation.

[0134] In this way, the embodiment of the present application can display a transition animation when starting the target application, exiting the target application, or switching interfaces within the target application. The transition animation can be a zoom animation or a displacement animation. In this way, the transition animation can be displayed in different interface switching scenes corresponding to the application, which can make the user perceive the contour area of ​​the transition animation to be softer and more coherent in various interface switching scenes, thereby improving the user's visual experience.

[0135] In some embodiments of the present application, the transition animation may include at least one target image frame. In the scenario of launching an application and using functions in an application, in order to transition from the first interface to the second interface, the transition animation needs to generate a target image frame based on the interface content information of the second interface. In the scenario of exiting an application and exiting functions in an application, in order to make the first interface disappear and display the second interface, it is necessary to generate a target image frame based on the interface content information of the first interface. Among them, the target image frame may include a layer. The mobile phone can draw in a layer based on the interface content information of the second interface or the interface content information of the first interface to generate a target image frame.

[0136] Specifically, the mobile phone may draw a target image frame, where the target image frame is generated according to the interface content information of the first interface or the interface content information of the second interface, and the target image frame may include a layer.

[0137] In one feasible manner, the target image frame can be generated based on the interface content information of the second interface, and the transition animation is used to present the enlarged display effect or fade-in display effect corresponding to the target image frame. The last image frame of the transition animation is the same as the image content displayed on the second interface.

[0138] For example, during the process of starting the application, the target image frame can be generated according to the interface content information of the application interface, and further see Figure 4 In (A)-(D), the transition animation is used to present the magnified display effect corresponding to the target image frame. Figure 4 In (D), the last image frame of the transition animation is the same as the image content displayed on the application interface.

[0139] As another example, in the process of using the function in the application, the target image frame can be generated according to the interface content information of the function interface, and further see Figure 6 In (A)-(D), the transition animation is used to present the fade-in display effect corresponding to the target image frame. Figure 6 In (D), the last image frame of the transition animation is the same as the image content displayed on the function interface.

[0140] In another feasible manner, the target image frame can be generated according to the interface content information of the first interface, and the transition animation is used to present the zoomed-out display effect or fade-out display effect corresponding to the target image frame, and the first image frame of the transition animation is the same as the image content displayed on the first interface.

[0141] For example, during the process of exiting the application, the target image frame can be generated according to the interface content information of the application interface, and further see Figure 4 In (D)-(A), the transition animation is used to present the zoomed-out display effect corresponding to the target image frame. Figure 4 In (D), the first image frame of the transition animation is the same as the image content displayed on the application interface.

[0142] As another example, in the process of exiting a function in the application, the target image frame can be generated according to the interface content information of the function interface, and further referring to Figure 6 In (D)-(A), the transition animation is used to present the fade-out display effect corresponding to the target image frame. Figure 6 In (D), the first image frame of the transition animation is the same as the image content displayed on the function interface.

[0143] In this way, the embodiment of the present application can draw a target image frame, which includes a layer. That is, it is only necessary to draw an image once in a layer to generate a target image frame, and the contour area of ​​the target image frame presents a transparency gradient. In the process of displaying the transition animation, on the basis of ensuring the user's viewing effect, there is no need to perform multiple image drawing processes on a frame of image, thereby reducing the performance and power consumption of the mobile phone.

[0144] At the same time, in the scenario where the target image frame is generated based on the interface content information of the second interface, the transition animation is used to present the zoomed-in display effect or fade-in display effect corresponding to the target image frame. In the scenario where the target image frame is generated based on the interface content information of the first interface, the transition animation is used to present the zoomed-out display effect or fade-out display effect corresponding to the target image frame. In this way, the transition animation can be applied to the above-mentioned different display scenarios. In different display scenarios, the user can perceive that the outline area of ​​the transition animation is softer and more coherent, thereby enhancing the user's visual experience.

[0145] In some embodiments of the present application, the target image frame in the transition animation includes a contour area, and the transparency corresponding to the contour area gradually increases in the direction from the inside of the target image frame to the outside. In the process of drawing the target image frame, the mobile phone can obtain the edge movement speed of the target image frame and each edge of the target image frame (step 701). The mobile phone can also determine the first area and the second area corresponding to the target image frame according to the edge movement speed of each edge of the target image frame (step 702), the first area is the area near each edge in the target image frame, and the second area is the area near each edge outside the target image frame. The mobile phone can also adjust the transparency of the first area and the second area to generate an updated target image frame, the contour area in the updated target image frame includes the adjusted first area and the second area (step 703), and the target image frame in the transition animation is the updated target image frame.

[0146] For example, see Figure 8 In (A), the target image frame acquired by the mobile phone can be generated according to the application interface information corresponding to the weather application. The mobile phone can determine the first area and the second area corresponding to the target image frame according to the edge movement speed of each edge of the target image frame. Figure 8 In (B), the first area is the area near each edge in the target image frame, and the second area is the area near each edge outside the target image frame. Figure 8 In (C), the mobile phone can also adjust the transparency of the first area and the second area to generate an updated target image frame, and the contour area in the updated target image frame includes the adjusted first area and the second area. In this way, the transparency of the contour area in the target image frame can be gradually increased, that is, the contour area gradually becomes transparent along the target direction, so that the difference between the contour area of ​​the target image frame and the display background around the image becomes smaller, so that the transition animation has a softer and more coherent dynamic effect.

[0147] In some embodiments of the present application, in the process of adjusting the transparency of the first area and the second area, the mobile phone can gradually increase the transparency along the target direction. Exemplarily, the transparency of the first area is gradually adjusted from 100% to 50% along the target direction, and the transparency of the second area is gradually adjusted from 50% to 0 along the target direction. Another exemplary method is to gradually adjust the transparency of the outline area including the first area and the second area from 100% to 0 along the target direction. It should be noted that the embodiments of the present application do not limit the specific implementation method of adjusting the transparency.

[0148] In this way, the embodiment of the present application can determine the first area and the second area corresponding to the target image frame according to the edge movement speed of each edge of the target frame image. The first area and the second area are the areas inside and outside the target image frame close to each edge, respectively. By setting the first area and the second area, it can be ensured that there are sufficient areas to present a transparent gradient effect later. The transparency of the first area and the second area can also be adjusted to make the outline of the image softer. Because the user's human eye perceives the edge position more clearly when recognizing the speed of a moving object, the contour area can enhance the user's visual effect after the transparency is adjusted, making the user look smoother.

[0149] In some embodiments of the present application, in the process of determining the first area and the second area corresponding to the target image frame according to the edge movement speed of each edge of the target image frame, the mobile phone can determine the feathering distance corresponding to each edge in the target image frame according to the edge movement speed of each edge of the target image frame (step 901). The mobile phone can also determine the first area according to the feathering distance (step 902), and the area corresponding to the first area is positively correlated with the feathering distance. The mobile phone can also expand the pixel points corresponding to the first area along the target direction to obtain the second area (step 903).

[0150] Specifically, see Fig.10 In (A), the mobile phone can determine the feathering distance corresponding to each edge in the target image frame according to the edge moving speed of each edge in the target image frame. The feathering distance can be determined by taking the edge in the target image frame as the middle point and first determining the first area inside the target image frame. Fig.10 In (B), the mobile phone determines a second area outside the target image frame. The distance from the end away from the edge in the target image frame to the edge in the target image frame in the first area is equal to the feathering distance, and the distance from the end away from the edge in the target image frame to the edge in the target image frame in the second area is equal to the feathering distance.

[0151] In some embodiments of the present application, the edge movement speeds of the edges are the same, and the corresponding feathering distances are the same. The edge movement speeds of the edges are different, and the corresponding feathering distances are different. The larger the feathering distance, the larger the area of ​​the first region, and the smaller the feathering distance, the smaller the area of ​​the first region.

[0152] In one achievable manner, the contour area includes sub-contour areas corresponding to each edge, and the greater the edge movement speed corresponding to each edge, the larger the area of ​​the sub-contour area corresponding to each edge.

[0153] For example, see Fig.11When the target image frame in the transition animation begins to gradually enlarge at the lower left corner of the screen, the edge movement speeds of the edges corresponding to the target image frame are different, and the edge movement distances of the first edge 1110 and the second edge 1111 are greater than the edge movement distances of the third edge 1112 and the fourth edge 1113. Since the display time of the transition animation is fixed, the edge movement speeds of the first edge 1110 and the second edge 1111 are greater than the edge movement speeds of the third edge 1112 and the fourth edge 1113. Further, the feathering distances of the first edge 1110 and the second edge 1111 are greater than the feathering distances of the third edge 1112 and the fourth edge 1113. Therefore, the area of ​​the first sub-contour area and the second sub-contour area is greater than the area of ​​the third sub-contour area and the fourth sub-contour area.

[0154] It should be noted that the embodiment of the present application does not specifically limit the corresponding area divisions of the first sub-contour area, the second sub-contour area, the third sub-contour area and the fourth sub-contour area.

[0155] In some embodiments of the present application, different types of transition animations may correspond to different contour areas. For example, the contour area of ​​the target image frame in a zoom animation may be an area corresponding to the edges of the target image frame. The contour area of ​​the target image frame in a displacement animation may be an area corresponding to one side edge of the target image frame. It is understandable that, since only one side edge of the target image frame moves in the displacement animation, the area corresponding to one side edge of the target image frame will present a transparency gradient effect.

[0156] In this way, each edge corresponds to a sub-contour area, and the greater the edge movement speed corresponding to each edge, the larger the area of ​​the corresponding sub-contour area. In the embodiment of the present application, in a scenario where the edge movement speeds corresponding to each edge in the target image frame are different, the area of ​​the area corresponding to the surrounding edges of the target image frame in the contour area is also different, further allowing the user to perceive the contour area of ​​the transition animation as being softer and more coherent, while enabling flexible adjustment of the contour area.

[0157] In some embodiments of the present application, when the mobile phone expands the pixels corresponding to the first area along the target direction to obtain the second area, the pixels corresponding to the first area can be expanded outward in a direction perpendicular to the edge. The pixel point information corresponding to the pixel points in the second area is the same as the pixel point information corresponding to the pixel points in the first area.

[0158] In the embodiment of the present application, the feathering distance is calculated based on the edge movement speed corresponding to each edge. The process of obtaining the edge movement speed corresponding to each edge in the target image frame will be exemplified below.

[0159] In some embodiments of the present application, the zoom animation may include a direct zoom animation and a displacement zoom animation. In the direct zoom animation, the target image frame may be directly reduced or enlarged. In the displacement zoom animation, the target image frame may be enlarged during the displacement process or displaced during the reduction process.

[0160] In some achievable embodiments, the direct zoom animation includes a direct enlargement animation and a direct reduction animation. In the direct enlargement animation, the target image frame is gradually enlarged from the first position in the first interface, and in the direct reduction animation, the target image frame is gradually reduced to the first position in the second interface.

[0161] In some achievable ways, the displacement zoom animation includes a displacement zoom-in animation and a displacement zoom-out animation, wherein the target image frame gradually zooms in during the process of moving from the first position in the first interface to the second position, and the target image frame gradually zooms out during the process of moving from the second position in the second interface to the first position in the second interface. The first position in the first interface and the first position in the second interface may be the same as or different from the application control position corresponding to the target application.

[0162] For example, see Fig.12 In (A), the target image frame can also be moved from the first position in the first interface to the second position. Fig.12 In (B)-(C) of FIG. 1 , the target image frame can be gradually enlarged in the process of moving to the second position until it covers the entire display screen. Similarly, in the reduction animation, the target image frame can also be gradually reduced in the process of displacement, or can be displaced in the process of reduction.

[0163] Thus, the zoom animation of the embodiment of the present application may include direct zoom animation and displacement zoom animation. In the direct zoom animation, the target image frame may be directly enlarged from one position or directly reduced to one position. In the displacement zoom animation, the target image frame may also be displaced during the process of enlarging or reducing. This enables the user to still perceive the contour area of ​​the animation as being softer and more coherent in different types of zoom animations, thereby enhancing the user's visual experience.

[0164] In some embodiments of the present application, when the transition animation is a displacement animation or a direct scaling animation, the edge movement speed corresponding to each edge in the target image frame usually changes according to the center movement speed corresponding to the center point position in the target image frame and the change of the playback speed of the transition animation.

[0165] In other embodiments of the present application, when the transition animation is a displacement scaling animation, the edge movement speed corresponding to each edge in the target image frame changes according to the center movement speed corresponding to the center point position in the target image frame, the center movement direction and the playback speed of the transition animation.

[0166] In one implementable manner, when the transition animation is a displacement animation or a direct scaling animation, that is, when the target image frame is directly displaced or directly scaled, the moving distance between the center point positions in adjacent image frames in the transition animation and the corresponding playback speed of the transition animation can be obtained. The mobile phone can determine the center moving speed corresponding to the center point position based on the moving distance. The mobile phone can also add the center moving speed and the corresponding playback speed of the transition animation to obtain the target moving speed of each vertex in the target image frame. Then, the target moving speeds of the vertices corresponding to each edge of the target image frame are averaged to obtain the edge moving speeds of each edge of the target image frame.

[0167] In another achievable manner, when the transition animation is a displacement scaling animation, the moving distance between the center point positions in adjacent image frames in the transition animation, the moving direction of the center point position, and the corresponding playback speed of the transition animation are obtained. The mobile phone can determine the center moving speed corresponding to the center point position based on the moving distance. The mobile phone can also calculate the center moving speed and the corresponding playback speed of the transition animation based on the moving direction of the center point position to determine the target moving speed of each vertex in the target image frame. Then, the target moving speeds of the vertices corresponding to each edge of the target image frame are averaged to obtain the edge moving speeds of each edge of the target image frame.

[0168] Among them, the playback speed of the transition animation can be preset in the mobile phone, and the playback speed corresponding to the transition animation between different interface switches can be the same or different. The embodiment of the present application does not limit the specific implementation method of the playback speed. In the embodiment of the present application, the transition animation is a scaling animation or a displacement animation, and the playback speed of the transition animation can be obtained by dividing the scaling ratio or the displacement ratio by the preset time interval. The preset time interval can be the time interval between each image frame during the scaling or displacement process. For example, it can be 33 milliseconds, 50 milliseconds or 100 milliseconds, etc. The embodiment of the present application does not limit the specific numerical value corresponding to the preset time interval.

[0169] For example, the mobile phone can determine the center moving speed corresponding to the center point position according to the moving distance. Specifically, it can be obtained by dividing the moving distance between the center point positions in adjacent image frames by the time interval between adjacent image frames. If the center moving speed is (V x , V y), the center moving speed unit is px / s. You can set the upper left corner of the phone as the origin, the X axis is rightward and the Y axis is downward. The moving direction of the center point is (V x / |V x |, V y / |V y |). Set the playback speed of the transition animation (S x1 , S y1 ) is multiplied by the screen size of the display to obtain the updated transition animation playback speed (S x2 , S y2 ), the updated transition animation playback speed unit is px / s. It is understandable that the initial playback speed of the transition animation is inconsistent with the center moving speed, and the playback speed of the transition animation needs to be normalized.

[0170] When the transition animation is a displacement animation or a scaling animation, that is, when the target image frame is directly displaced or scaled, the mobile phone can add the center moving speed and the playback speed corresponding to the transition animation to obtain the target moving speed of each vertex in the target image frame. Fig.13 (A) in the figure, the speed of point A is (S x2 +V x , V y +S y2 ), the speed of point B is (S x2 +V x , S y2 +V y ).

[0171] When the transition animation is a displacement zoom animation, the mobile phone can calculate the center movement speed and the playback speed corresponding to the transition animation according to the moving direction of the center point position to determine the target movement speed of each vertex in the target image frame.

[0172] See also Fig.13 In (B), for point A, the moving direction of the center point is opposite to the magnification direction of the magnification animation, that is, the playback speed of the transition animation needs to be subtracted from the center movement speed. For example, the speed of point A is (S x2 -V x , S y2 -V y ). For point B, the moving direction of the center point position in the X-axis direction is the same as the magnification direction corresponding to the magnification animation, that is, the playback speed corresponding to the transition animation needs to be added to the center movement speed. The moving direction of the center point position in the Y-axis direction is opposite to the magnification direction corresponding to the magnification animation, that is, the playback speed corresponding to the transition animation needs to be subtracted from the center movement speed. For example, the speed of point B is (S x2 +V x , S y2 -Vy ). For point C, the moving direction of the center point position in the X-axis direction is opposite to the magnification direction corresponding to the magnification animation, that is, the playback speed corresponding to the transition animation needs to be subtracted from the center movement speed. The moving direction of the center point position in the Y-axis direction is the same as the magnification direction corresponding to the magnification animation, that is, the playback speed corresponding to the transition animation needs to be added to the center movement speed. For example, the speed of point C is (S x2 -V x , S y2 +V y ), for point D, the moving direction of the center point is the same as the magnification direction of the magnification animation, that is, the playback speed corresponding to the transition animation needs to be added to the center moving speed. For example, the speed of point D is (S x2 +V x , S y2 +V y ).

[0173] In some embodiments of the present application, the distances between all points on each edge in the target image frame and the center point change linearly. The mobile phone can calculate the target movement speeds of the four vertices in the edge respectively, and then perform weighted calculation on the target movement speeds of the four vertices to obtain the edge movement speeds of each edge of the target image frame.

[0174] In one implementable manner, after the target moving speed of each vertex is obtained, the target moving speeds of the vertices corresponding to each edge of the target image frame may be averaged to obtain the edge moving speed of each edge of the target image frame.

[0175] For example, see Fig.13 In (A), the average speed of point A and point B is calculated to obtain the edge moving speed of the edge in the target image frame. Fig.13 In (B), the average values ​​of the speeds at point A, point B, point C, and point D are calculated between two adjacent points to obtain the edge movement speeds of the four edges in the target image frame.

[0176] In another possible implementation, after the target moving speed of each vertex is obtained as described above, the target moving speed of the vertex corresponding to each edge of the target image frame may be assigned a corresponding weight ratio.

[0177] For example, the weight ratio of the vertex corresponding to the longer moving distance is set to 0.7, and the weight ratio of the vertex corresponding to the shorter moving distance is set to 0.3. The embodiment of the present application does not limit the specific value of the weight ratio.

[0178] In another possible implementation, the target moving speeds of all points on each edge in the target image frame may be the same or different. The mobile phone may also determine the target points for all points on each edge in the target image frame according to preset rules, and perform weighted calculation on the target moving speeds corresponding to the target points to obtain the edge moving speeds of each edge of the target image frame. Among them, the preset rules may include determining the points corresponding to the maximum target moving speed and the minimum target moving speed on each edge as the target points. It should be noted that the embodiment of the present application does not limit the process of determining the edge moving speed, and does not specifically limit the preset rules.

[0179] In some embodiments of the present application, in the process of determining the feathering distance corresponding to each edge in the target image frame according to the edge movement speed of each edge of the target image frame, the feathering distance corresponding to each edge in the target image frame can be obtained according to the edge movement speed corresponding to each edge and the preset time threshold. Among them, the preset time threshold can be set based on the shutter speed in the camera. For example, the preset time threshold can be 1 second, 2 seconds, 4 seconds, 8 seconds, 15 seconds, 30 seconds, and 50 seconds. The embodiments of the present application do not specifically limit the preset time threshold.

[0180] In some schemes, multiple embodiments of the present application may be combined, and the combined scheme may be implemented. Optionally, some operations in the process of each method embodiment may be optionally combined, and / or the order of some operations may be optionally changed. Furthermore, the execution order between the steps of each process is only exemplary and does not constitute a limitation on the execution order between the steps, and other execution orders may be used between the steps. It is not intended to indicate that the execution order is the only order in which these operations can be performed.

[0181] A person skilled in the art will be able to think of many ways to reorder the operations described in the embodiments of the present application. In addition, it should be noted that the process details involved in a certain embodiment of the present application are also applicable to other embodiments in a similar manner, or different embodiments can be used in combination.

[0182] In addition, some steps in the method embodiment may be equivalently replaced by other possible steps. Alternatively, some steps in the method embodiment may be optional and may be deleted in certain usage scenarios. Alternatively, other possible steps may be added to the method embodiment.

[0183] Furthermore, the various method embodiments may be implemented separately or in combination.

[0184] The embodiment of the present application also provides a display device, which includes a display module and a processing module. The display module is configured to display a first interface; the processing module is configured to draw a target image frame. The processing module is configured to generate a transition animation based on the target image frame. The transition animation is a dynamic picture displayed in the process of switching from the first interface to the second interface. The target image frame in the transition animation includes a contour area. The transparency corresponding to the contour area increases along the target direction. The target direction is from the inside to the outside of the target image frame. The contour area is determined according to the edge movement speed of each edge of the target image frame during the playing of the transition animation. The display module is also configured to display the transition animation. The display module is also configured to display the second interface.

[0185] The present application also provides an electronic device, such as the mobile phone described above. Fig.14 As shown, the mobile phone may include one or more processors 1410 , a memory 1420 and a communication interface 1430 .

[0186] The memory 1420 , the communication interface 1430 , and the processor 1410 are coupled. For example, the memory 1420 , the communication interface 1430 , and the processor 1410 may be coupled together via a bus 1440 .

[0187] The communication interface 1430 is used for data transmission with other devices. The memory 1420 stores computer program codes. The computer program codes include computer instructions. When the computer instructions are executed by the processor 1410, the electronic device executes the relevant method steps in the embodiments of the present application.

[0188] Processor 1410 may be a processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the present disclosure. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0189] The bus 1440 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus 1440 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.14 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0190] An embodiment of the present application also provides an electronic device, which includes a memory and one or more processors; the memory is coupled to the processor; wherein computer program code is stored in the memory, and the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the relevant method steps in the above method embodiment.

[0191] An embodiment of the present application also provides a communication device, which includes a memory and one or more processors; the memory is coupled to the processor; wherein the memory stores computer program code, the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the communication device executes the relevant method steps in the above method embodiment.

[0192] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program code is stored. When the processor executes the computer program code, the electronic device executes the relevant method steps in the method embodiment.

[0193] The embodiment of the present application also provides a computer program product, which includes instructions. When the instructions are executed on a computer or a processor, the computer or the processor executes the relevant method steps in the above method embodiment.

[0194] An embodiment of the present application also provides a chip system, including: a processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the chip system implements the method in any of the above method embodiments.

[0195] Optionally, the processor in the chip system may be one or more. The processor may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.

[0196] Optionally, the memory in the chip system may also be one or more. The memory may be integrated with the processor or may be separately arranged with the processor, which is not limited in the embodiments of the present application. Exemplarily, the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip or may be arranged on different chips respectively. The embodiments of the present application do not specifically limit the type of memory and the arrangement of the memory and the processor.

[0197] Exemplarily, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.

[0198] The electronic device, computer storage medium or computer program product provided in this application is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above and will not be repeated here.

[0199] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

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

[0201] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, which may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0202] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0203] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0204] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A display method, characterized in that: Used in electronic equipment, including: Display the first interface; In response to a switching operation on a first interface, a transition animation is displayed, wherein the transition animation is a dynamic picture displayed during the process of switching from the first interface to the second interface, wherein a target image frame in the transition animation includes a contour area, wherein the transparency corresponding to the contour area increases along a target direction, wherein the target direction is a direction from the inside to the outside of the target image frame, and wherein the contour area is determined according to the edge movement speed of each edge of the target image frame during the process of playing the transition animation; The second interface is displayed.

2. The method according to claim 1, characterized in that The contour area includes sub-contour areas corresponding to the edges. The greater the edge moving speed corresponding to the edges, the larger the area of ​​the sub-contour area corresponding to the edges.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: The target image frame is drawn, where the target image frame is generated according to the interface content information of the first interface or the interface content information of the second interface, and the target image frame includes a layer.

4. The method according to claim 3, characterized in that The target image frame is generated according to the interface content information of the second interface; the transition animation is used to present the enlarged display effect or fade-in display effect corresponding to the target image frame, and the last image frame of the transition animation is the same as the image content displayed on the second interface.

5. The method according to claim 3, characterized in that: The target image frame is generated according to the interface content information of the first interface; the transition animation is used to present the zoomed-out display effect or fade-out display effect corresponding to the target image frame, and the first image frame of the transition animation is the same as the image content displayed on the first interface.

6. The method according to any one of claims 1 to 5, characterized in that: The switching operation is used to indicate starting a target application or exiting a target application. The transition animation is a zoom animation, and the zoom animation is used to present a zoomed-in display effect or a zoomed-out display effect corresponding to the target image frame. Alternatively, the switching operation is used to instruct an interface switch in the target application, and the transition animation is a displacement animation, which is used to present a fade-in display effect or a fade-out display effect corresponding to the target image frame.

7. The method according to claim 6, characterized in that The zoom animation includes a direct zoom animation and a displacement zoom animation. The direct zoom animation includes a direct zoom-in animation and a direct zoom-out animation. In the direct zoom-in animation, the target image frame gradually zooms in from a first position in the first interface. In the direct zoom-out animation, the target image frame gradually zooms out to a first position in the second interface. The displacement scaling animation includes a displacement magnification animation and a displacement reduction animation. In the displacement magnification animation, the target image frame gradually enlarges during the process of moving from a first position in the first interface to a second position. In the displacement reduction animation, the target image frame moves from a second position in the second interface to a first position in the second interface during the process of gradually shrinking. The first position in the first interface and the first position in the second interface are the same as or different from the application control position corresponding to the target application.

8. The method according to any one of claims 3 to 5, characterized in that: The drawing of the target image frame comprises: Acquire a target image frame and edge moving speeds of each edge of the target image frame; Determine, according to the edge moving speeds of the respective edges of the target image frame, a first area and a second area corresponding to the target image frame, wherein the first area is an area within the target image frame close to the respective edges, and the second area is an area outside the target image frame close to the respective edges; The transparency of the first area and the second area is adjusted to generate the updated target image frame, the contour area in the updated target image frame includes the adjusted first area and the second area, and the target image frame in the transition animation is the updated target image frame.

9. The method according to claim 8, characterized in that The step of determining the first area and the second area corresponding to the target image frame according to the edge moving speeds of the edges of the target image frame comprises: Determining a feathering distance corresponding to each edge in the target image frame according to an edge moving speed of each edge of the target image frame; Determine the first region according to the feathering distance, wherein the area corresponding to the first region is positively correlated with the feathering distance; The pixel points corresponding to the first area are expanded along the target direction to obtain the second area.

10. The method according to claim 9, characterized in that The distance from one end away from the edge in the target image frame to the edge in the target image frame in the first region is equal to the feathering distance, and the distance from one end away from the edge in the target image frame to the edge in the target image frame in the second region is equal to the feathering distance.

11. The method according to any one of claims 8 to 10, characterized in that: The step of obtaining the edge moving speed of each edge of the target image frame comprises: When the transition animation is a displacement animation or a scaling animation, obtaining a moving distance between center points in adjacent image frames in the transition animation and a playback speed corresponding to the transition animation; Determine the center moving speed corresponding to the center point position according to the moving distance; Adding the center moving speed and the play speed corresponding to the transition animation to obtain the target moving speed of each vertex in the target image frame; The target moving speeds of the vertices corresponding to the edges of the target image frame are averaged to obtain the edge moving speeds of the edges of the target image frame.

12. The method according to any one of claims 8 to 10, characterized in that: The step of obtaining the edge moving speed of each edge of the target image frame comprises: When the transition animation is a displacement zoom animation, the moving distance between the center points in adjacent image frames in the transition animation, the moving direction of the center points in adjacent image frames and the corresponding playback speed of the transition animation are obtained; the target image frame in the displacement zoom animation is gradually enlarged during the displacement process, or is displaced during the gradual reduction process; Determine the center moving speed corresponding to the center point position according to the moving distance; According to the moving direction of the center point position, the center moving speed and the playback speed corresponding to the transition animation are calculated to determine the target moving speed of each vertex in the target image frame; The target moving speeds of the vertices corresponding to the edges of the target image frame are averaged to obtain the edge moving speeds of the edges of the target image frame.

13. The method according to claim 9, characterized in that The step of determining the feathering distance corresponding to each edge in the target image frame according to the edge moving speed of each edge of the target image frame comprises: According to the edge moving speeds corresponding to the edges and a preset time threshold, the feathering distances corresponding to the edges in the target image frame are obtained.

14. A display device, characterized in that: The display device includes a display module, an acquisition module and a processing module; The display module is configured to display a first interface; The processing module is configured to draw a target image frame; The processing module is configured to generate a transition animation according to the target image frame; the transition animation is a dynamic picture displayed in the process of switching from the first interface to the second interface, the target image frame in the transition animation includes a contour area, the transparency corresponding to the contour area increases along a target direction, the target direction is a direction from the inside to the outside of the target image frame, and the contour area is determined according to the edge movement speed of each edge of the target image frame during the playing of the transition animation; The display module is further configured to display the transition animation; The display module is further configured to display the second interface.

15. An electronic device, characterized in that: The electronic device includes a memory, one or more processors, and a display screen; the memory is coupled to the processor; wherein the display screen is used to display a user interface, the memory stores computer program code, and the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the display method as described in any one of claims 1-13.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on an electronic device, the electronic device executes the display method according to any one of claims 1 to 13.

17. A computer program product, characterized in that The computer program product includes instructions, and when the instructions are executed on a computer or a processor, the computer or the processor executes the display method according to any one of claims 1 to 13.

Citation Information

Cited By

  • Thread priority management method, electronic equipment and readable storage medium

    CN120066737A

  • Display method, and device

    WO2025260662A1