Display method of electronic device, electronic device, and storage medium

By defining preset scenes and using target transition animations, the problem of inconsistent transition animations between different applications is solved, achieving consistency of animations between applications and components, and simplifying the development process.

CN118550617BActive Publication Date: 2025-11-21HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310206884.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2025-11-21
Estimated Expiration
2043-02-27

AI Technical Summary

Technical Problem

Inconsistent transition animation effects between different applications lead to discontinuous and inconsistent transition animation effects in different operating scenarios. Furthermore, when application-defined animation effects have high priority and override system default animation effects, it results in a large development workload or inconsistent animation effects.

Method used

By defining preset scenarios, when the application startup scenario matches the system-defined preset scenario, the target transition animation is used to ensure the consistency of animation between applications and components under the same preset scenario, and custom animations are turned off to maintain consistency.

Benefits of technology

It achieves consistency in animation effects during transitions between different applications, reduces development workload, and ensures consistency in switching animation effects between components within the same application under the same preset scene.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550617B_ABST
    Figure CN118550617B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a display method of an electronic device, an electronic device and a storage medium. The method is applied to an electronic device with a display screen. When a first application is started, a preset scene defined by a system is obtained, and the preset scene corresponds to a target transition effect. If a starting scene of the first application matches the preset scene, the target transition effect is used in switching between any two components in the first application. A second application is started from the first application. If a starting scene of the second application matches the preset scene, the target transition effect is used when switching from the first application to the second application. A third application is started from the first application. If a starting scene of the third application matches the preset scene, the target transition effect is used when switching from the first application to the third application, thereby ensuring consistency of window switching effect between different applications under the same preset scene and consistency of switching effect between components in an application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electronic technology, and more particularly to a display method, electronic device, and storage medium for an electronic device. Background Technology

[0002] The current system offers various animation capabilities, including system default animations for window switching, system default animations for component switching, and user-defined animations for component switching. User-defined animations can override system default animations. Additionally, the system provides a transparent theme capability for application components. When an application sets a transparent theme, the system-side window switching animations will enter a special processing scenario corresponding to the transparent theme, meaning that no animations will play during window switching.

[0003] To ensure consistent performance of the same application across different devices, custom animations are often used in most scenarios. However, the system's default animations have limited coverage. This can lead to inconsistencies in transition animations between different applications, where each application's custom animations may appear during continuous operations. Furthermore, the application of transparent themes in any scenario can also cause discontinuous, broken, and inconsistent animations when switching between applications or components.

[0004] Custom animations have high priority and can override system-defined default animations. To ensure consistent animations between applications within a scene, multiple applications need to follow a unified design specification, sacrificing the ability to use themes and custom animations. However, some applications may have visual effects that require the use of themes, creating a trade-off that leads to significant development work or the need to abandon the design for consistent animations altogether. Furthermore, the consistency of animations achieved between application 1 and application 2 in scene A cannot guarantee the consistency of animations achieved between application 1 and application 3 in scene A. Summary of the Invention

[0005] This application provides a display method, an electronic device, and a storage medium for an electronic device, applicable to electronic devices with a display screen, to solve the problem of consistent motion effects during transitions between different applications.

[0006] In a first aspect, embodiments of this application provide a display method for an electronic device, applied to an electronic device having a display screen. The method includes: when a first application is launched, acquiring a preset scene defined by the system, the preset scene corresponding to a target transition effect; if the launch scene of the first application matches the preset scene, then using the target transition effect during the switching process between any two components within the first application; receiving a first instruction, the first instruction being used to instruct the launch of a second application from the first application; launching the second application according to the first instruction; if it is determined that the launch scene of the second application matches the preset scene, then using the target transition effect during the switching process from the first application to the second application; receiving a second instruction, the second instruction being used to instruct the launch of a third application from the first application; launching the third application according to the second instruction; if it is determined that the launch scene of the third application matches the preset scene, then using the target transition effect during the switching process from the first application to the third application.

[0007] This method allows for seamless transitions between any two applications within the same preset scenario, utilizing the target transition effect corresponding to that scenario. For instance, if the transition from the first application to the second and from the first application to the third belong to the same preset scenario A, then the transition from the first application to the second uses target transition effect 1, and the transition from the first application to the third also uses target transition effect 1. This ensures consistency in transition effects between different applications. Furthermore, the transition between different components within an application also uses target transition effect 1, guaranteeing consistency in transition effects between components within different applications within the same preset scenario.

[0008] In one possible design, after launching the second application, the method may further include: if it is determined that the launch scene of the second application matches a preset scene, then during the switching between any two components within the second application, a target transition animation is used; and / or, if it is determined that the launch scene of the third application matches a preset scene, then during the switching between any two components within the third application, a target transition animation is used. This ensures consistency in the animation effects during component switching within different applications under the same preset scene.

[0009] In one possible design, the method may further include: if the launch scenario of the first application matches the preset scenario, then disable the system default component switching animation and the custom component switching animation corresponding to the first application; if the launch scenario of the second application matches the preset scenario, then disable the custom component switching animation corresponding to the second application; if the launch scenario of the third application matches the preset scenario, then disable the custom component switching animation corresponding to the third application. This allows for the selection of a target transition animation when switching between components within an application under the same preset scenario, thereby ensuring the consistency of animation effects when switching between components within different applications under the same preset scenario.

[0010] In one possible design, after launching the second application, the method may further include: receiving a third instruction to exit the second application; exiting the second application according to the third instruction; restoring the system default component switching animation and the custom component switching animation corresponding to the second application; launching the second application; and using either the system default component switching animation or the custom component switching animation corresponding to the second application during switching between any two components within the second application. Thus, for applications exiting a preset scenario, the switching of internal components can choose either the system default component switching animation or the custom component switching animation corresponding to the second application.

[0011] In one possible design, after restoring the system default component switching animation and the custom component switching animation for the second application, the fourth application is launched after the second application is started; during the switch from the second application to the fourth application, the system default window switching animation is used. Thus, when switching between applications after exiting a preset scenario, the system default window switching animation can be selected.

[0012] In one possible design, the method may further include: if the startup scenario of the first application does not match the preset scenario, then during the switching between any two components within the first application, the system default component switching animation or the custom component switching animation corresponding to the first application is used. Thus, even when the startup scenario of the first application does not match the preset scenario, the existing switching animation is still maintained, i.e., the system default component switching animation or the custom component switching animation corresponding to the first application is used.

[0013] In one possible design, the method may further include: if it is determined that the launch scenario of the second application does not match the preset scenario, then during the switch from the first application to the second application, the system default window switching animation is used, and / or, during the switch between any two components within the second application, the system default component switching animation or the custom component switching animation corresponding to the second application is used; or, if it is determined that the launch scenario of the third application does not match the preset scenario, then during the switch from the first application to the third application, the system default window switching animation is used, and / or, during the switch between any two components within the third application, the system default component switching animation or the custom component switching animation corresponding to the third application is used. Thus, even if the launch scenario of the second or third application does not match the preset scenario, the existing switching animation is still maintained, i.e., the system default component switching animation or the custom component switching animation corresponding to the first application is used.

[0014] Secondly, embodiments of this application also provide an apparatus comprising modules / units for performing any possible design method of any of the above aspects. These modules / units can be implemented in hardware or by hardware executing corresponding software.

[0015] Thirdly, embodiments of this application provide an electronic device, including a processor, a memory, and a display screen; the display screen is used to display a user interface; the memory is used to store one or more computer programs, which, when executed by the processor, cause the electronic device to perform the methods described in the first aspect and any possible design of the first aspect.

[0016] Fourthly, this application also provides a computer-readable storage medium comprising a computer program that, when run on an electronic device, causes the electronic device to perform the methods described in the first aspect and any possible design of the first aspect.

[0017] Fifthly, embodiments of this application also provide a method comprising a computer program product, which, when the computer program product is run on a terminal, causes the electronic device to perform the first aspect and any possible design of the first aspect.

[0018] For the beneficial effects of aspects two through five above, please refer to the beneficial effects of aspect one, which will not be repeated here. Attached Figure Description

[0019] Figure 1 A schematic diagram of the hardware structure of a mobile phone provided in an embodiment of this application;

[0020] Figure 2 A schematic diagram of the software structure of a mobile phone provided in an embodiment of this application;

[0021] Figure 3 A schematic flowchart illustrating a display method for an electronic device provided in an embodiment of this application;

[0022] Figure 4 This is a schematic diagram of a scenario provided for an embodiment of this application;

[0023] Figure 5 This is a schematic diagram of the target transition animation corresponding to the preset scene provided in the embodiments of this application;

[0024] Figure 6 This is a schematic diagram of transition effects provided in the embodiments of this application;

[0025] Figure 7 A set of user interface diagrams for switching in-application components provided in an embodiment of this application;

[0026] Figure 8 A set of user interface diagrams for switching between application windows provided in an embodiment of this application;

[0027] Figure 9A schematic diagram illustrating the processing flow of each service module in the system architecture for scene matching provided in this application embodiment;

[0028] Figure 10 A schematic diagram illustrating the processing flow of each service module in the system architecture when the scenarios provided in the embodiments of this application are mismatched;

[0029] Figure 11 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0030] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. The terminology used in the following embodiments is for the purpose of describing specific embodiments only and is not intended to be a limitation of this application. As used in the specification and appended claims of this application, the singular expressions "a," "an," "the," "the," "the," and "this" are intended to also include expressions such as "one or more," unless the context clearly indicates otherwise. It should also be understood that in the embodiments of this application, "one or more" refers to one, two, or more; "and / or" describes the relationship between related objects, indicating that three relationships may exist; for example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.

[0031] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0032] The "multiple" mentioned in the embodiments of this application refers to two or more. It should be noted that in the description of the embodiments of this application, terms such as "first" and "second" are used only for the purpose of distinguishing descriptions and should not be construed as indicating or implying relative importance, nor should they be construed as indicating or implying order.

[0033] This application provides a display method, an electronic device, and a storage medium for an electronic device, to solve the problem of consistent motion effects during transitions between different applications. The method and the electronic device are based on the same technical concept. Since the methods and electronic devices solve problems based on similar principles, their implementations can be mutually referenced, and repeated details will not be elaborated further.

[0034] In the solution provided in this application embodiment, by defining preset scenarios, when it is determined that the launch scenario of the first application matches the preset scenario defined by the system, the switching process between components within the first application uses the target transition animation corresponding to the preset scenario; when launching the second application from the first application, when it is determined that the launch scenario of the second application matches the preset scenario defined by the system, the target transition animation is used during the switching process from the first application to the second application. Under the defined preset scenarios, the switching between components within an application and the window switching between applications both use the target transition animation defined by the preset scenario, thereby ensuring the consistency of the animation effects of transitions between different applications.

[0035] The following explanations of some terms used in this application are provided to facilitate understanding by those skilled in the art.

[0036] (1) An electronic device is a device equipped with a display screen and capable of human-computer interaction through the display screen. For example, the electronic device may be a mobile phone, tablet computer, laptop computer, netbook, in-vehicle device, and business intelligent terminal (including: videophone, conference desktop intelligent terminal, etc.), personal digital assistant (PDA), augmented reality (AR) / virtual reality (VR) device, etc. The electronic device includes a device capable of performing data processing functions (such as a processor, or an application processor, or an image processor, or other processor), and a device capable of displaying a user interface (such as a display screen). Exemplary embodiments of the electronic device include, but are not limited to, devices equipped with… Alternatively, it can be a device with another operating system. The aforementioned electronic device can also be other portable devices, such as a laptop computer with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments of this application, the aforementioned electronic device 01 may not be a portable electronic device, but rather a desktop computer with a touch-sensitive surface (e.g., a touch panel). The embodiments of this application do not limit the specific form of the electronic device.

[0037] (2) Interface, or user interface (UI), is displayed on the screen and serves as the medium for interaction and information exchange between the application program or operating system in an electronic device and the user. It converts the internal form of information into a form acceptable to the user. The most common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be an icon, window, control, or other interface element displayed on the screen of an electronic device. Controls can include visible interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.

[0038] The structure of the above-mentioned electronic device will be further explained with reference to the accompanying drawings.

[0039] Figure 1 Only a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of this application is shown. Figure 1 Based on the example shown, other variations in the structure are also possible. For example... Figure 1 As shown, the electronic device 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, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include one or more of the following: pressure sensor 180A, gyroscope sensor 180B, barometric pressure sensor 180C, magnetic sensor 180D, accelerometer sensor 180E, distance sensor 180F, proximity sensor 180G, fingerprint sensor 180H, temperature sensor 180J, touch sensor 180K, ambient light sensor 180L, bone conduction sensor 180M, etc.

[0040] The following is about Figure 1 The components of the electronic device 100 shown are described in detail.

[0041] Processor 110 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors. The controller may serve as the central nervous system and command center of the electronic device 100. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution.

[0042] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can directly retrieve it from the memory, thereby avoiding repeated accesses, reducing the waiting time of the processor 110, and thus improving the efficiency of the system.

[0043] In some embodiments, the processor 110 may include one or more interfaces. For example, 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. It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation of the electronic device 100.

[0044] The charging management module 140 receives charging input from the charger. The power management module 141 connects to the battery 142, and the charging management module 140 connects to the processor 110. The wireless communication function of the electronic device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor, etc.

[0045] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.

[0046] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0047] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.

[0048] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. 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 antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0049] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with networks and other devices through wireless communication technology.

[0050] The electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a minimized LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.

[0051] In other embodiments, the electronic device 100 may implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display 194, and an application processor.

[0052] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0053] Internal memory 121 can be used to store computer executable program code, which includes instructions. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a function. Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 110 executes various functional applications and data processing of electronic device 100 by running instructions stored in internal memory 121 and / or instructions stored in memory disposed in the processor.

[0054] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0055] although Figure 1 As not shown in the diagram, the electronic device 100 may also include a Bluetooth device, a positioning device, a flash, a miniature projection device, a near field communication (NFC) device, etc., which will not be described in detail here.

[0056] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more than Figure 1 The more or fewer components shown, or some components combined, or some components separated, or different component arrangements. Figure 1 The components shown can be implemented in hardware, software, or a combination of both.

[0057] The following embodiments can all be implemented in the electronic device 100 having the above-described hardware structure.

[0058] The software architecture of electronic devices will be introduced below.

[0059] The software system of an electronic device can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application's embodiments use a layered architecture software system (such as Android). Taking a system as an example, the software structure of an electronic device is illustrated.

[0060] Figure 2 An exemplary diagram illustrates a layered software architecture of an electronic device provided in an embodiment of this application. The layered architecture divides the electronic device's software system into several layers, each with a clear role and function. Layers communicate with each other through software interfaces.

[0061] In some embodiments, the Android system is divided into four layers: applications, application framework, Android runtime, system libraries, and kernel. This application does not limit the layering of the electronic device's software structure. The Android runtime, system libraries, and kernel can be considered as one layer, referred to as the system layer. It should be understood that... Figure 2 It adds a hardware layer to electronic devices on top of the Android system.

[0062] It should be understood that Figure 2 The modules included in each layer shown are those involved in the embodiments of this application. The modules included in each layer below do not constitute a limitation on the structure and module deployment hierarchy of the electronic device (illustrative example). In one embodiment, Figure 2 The modules shown can be deployed individually, or several modules can be deployed together. Figure 2 The module division in the text is one example. In one embodiment, Figure 2 The names of the modules shown are for illustrative purposes only.

[0063] The application layer can include a series of application packages. The application layer may include, but is not limited to: camera, gallery, calendar, call, map, navigation, Bluetooth, music, video, SMS, and other applications. Applications can include system applications and third-party applications.

[0064] The application framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The application framework layer can include some predefined functions. (See reference...) Figure 2 The application framework layer may include:

[0065] Application launch manager, unified scene transition animation framework, window manager service (WMS), notification manager, drawing module, rendering module, and layer composition (Surface Flinger, SF), etc.

[0066] The application launch manager is used to manage the application software launch process.

[0067] The unified scene transition animation framework can include feature animation management, transition animation management, and animation layer management. When switching between applications or components in a specified scene, the unified scene transition animation framework takes over the system and application-defined animation flow, and switches the transition animation logic to the unified scene transition animation framework for unified processing through system framework stubbing.

[0068] The window manager is used to manage the user interface.

[0069] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.

[0070] The drawing module is used to draw the user interface. The rendering module is used to render the user interface drawn by the drawing module. The layer compositor is used to composite the rendered layers to obtain the user interface to be displayed.

[0071] Because this application embodiment treats the Android runtime, system libraries, and kernel layer as a single layer, the system layer can include the Android runtime and system libraries, as well as functional modules from the kernel layer. (See reference...) Figure 2The system layer can include multiple functional modules, such as a surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), and a 2D graphics engine (e.g., SGL). The surface manager manages the display subsystem and provides fusion of 2D and 3D layers for multiple applications. The media libraries support playback and recording of various common audio and video formats, as well as still image files. The media libraries support various audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG. The 3D graphics processing libraries are used for 3D graphics drawing, image rendering, compositing, and layer processing. The 2D graphics engine is the drawing engine for 2D graphics.

[0072] In addition, the system layer also includes hardware drivers to drive the hardware. For example, the driver layer includes sensor drivers, display drivers, graphics processing unit drivers (GPU drivers), etc., but this application embodiment does not limit this. It is understood that... Figure 2 The image shows a display driver involved in an embodiment of this application. The display driver is used to drive the display screen to display the user interface.

[0073] The hardware layer includes the hardware within electronic devices. This is understandable. Figure 2 The hardware layer in the document shows the display screen and the like involved in the following embodiments.

[0074] The display method of the electronic device provided in the embodiments of this application will be described below with reference to the accompanying drawings. The following embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0075] See Figure 3 This is a flowchart illustrating a display method for an electronic device provided in an embodiment of this application. Figure 3 As shown, the process may include the following steps:

[0076] Step 301: When the first application starts, the electronic device obtains the preset scene defined by the system, and the preset scene corresponds to the target transition animation.

[0077] Before step 301, a preset scene can be defined, such as... Figure 4 As shown, the electronic device includes application 1, application 2, application 3 and application 4. Application 1 includes component 1, component 2 and component 3, application 2 includes component 4, application 3 includes component 5 and application 4 includes component 6. The preset scenario can be to define one or more of the four applications.

[0078] Taking the preset scenario 1 as an example of launching any application from the notification bar, and then launching one or more other applications from that application, the target transition effect 1 corresponding to preset scenario 1 can be defined as follows: launching application 1 from the notification bar, launching application 2 from application 1, launching application 3 from application 2, launching application 4 from application 3, etc., all belong to preset scenario 1. After launching application 1 through the notification bar, the scenario declared by application 1 can be obtained as preset scenario 1. Therefore, the switching between applications when application 1 launches application 2, the switching between applications when application 2 launches application 3, the switching between applications when application 3 launches application 4, and the switching between components within each of applications 1, 2, 3, and 4 all use target transition effect 1. Similarly, launching application 2 from the notification bar, and launching application 4 from application 2, also belongs to preset scenario 1. The switching between application 2 and application 4, the switching between components within application 2, and the switching between components within application 4 all use target transition effect 1.

[0079] Taking the preset scenario 2 as launching any application from the DingTalk application, and the target transition effect 2 corresponding to the preset scenario 1 as an example, launching application 2 from the DingTalk desktop application, launching application 3 from application 2, etc. belong to the same preset scenario 2. The switching between application 2 and application 3, the switching between various components in application 2, and the switching between various components in application 3 all use target transition effect 2.

[0080] The following is combined Figure 5 An example is given to illustrate the target transition animation effect corresponding to the preset scene in step 301.

[0081] like Figure 5 As shown, the electronic device includes application 1 and application 2. For example, preset scenario A is to launch application 1 from the desktop and application 2 from application 1. Preset scenario A corresponds to target transition effect 1. Preset scenario B is to launch application 1 from the notification bar application and application 2 from application 1. Preset scenario B corresponds to target transition effect 2.

[0082] In preset scenario A, the transition effects for switching between components within application 1, switching between windows between application 1 and application 2, and switching between components within application 2 use target transition effect 1. In preset scenario B, the transition effects for switching between components within application 1, switching between windows between application 1 and application 2, and switching between components within application 2 use target transition effect 2.

[0083] After step 301 above, the electronic device can also determine whether the startup scenario of the first application matches the preset scenario. The specific implementation method is described below.

[0084] When the first application starts, it can send a notification message to the application launch manager to start the first application. The application launch manager can check the system-defined launch declaration content. For example, the launch declaration content may include the meta-data description, intent description and information obtained by the application launch manager about which application 1 is launched from.

[0085] Then, the application launch manager can notify the unified scene transition animation framework to check the launch scene of the first application. After the unified scene transition animation framework determines the check result corresponding to the first application, it sends the check result corresponding to the first application to the application launch manager. The check result corresponding to the first application may include whether the launch scene of the first application matches the preset scene, or whether the launch scene of the first application does not match the preset scene.

[0086] Taking the first application mentioned above as application 1 as an example, for instance, if the preset scenario A includes application 1 being launched from the desktop application, and the unified scene transition animation framework finds that application 1 is launched from the desktop application, then it is determined that the launch scenario of application 1 matches the preset scenario A; if the unified scene transition animation framework finds that application 1 is launched from other entry points besides the desktop application, such as checking that application 1 is launched from the notification bar, then it is determined that the launch scenario of application 1 does not match the preset scenario A.

[0087] This example illustrates the scenario where the startup scenario of application 1 is considered to match the startup scenario of application 1 if the preset scenario A and the startup scenario of application 1 are completely identical. It should be understood that even if the preset scenario A and the startup scenario of application 1 are not completely identical—for example, if the preset scenario A includes the startup scenario of application 1—then application 1's startup scenario is still considered to match the preset scenario A. For instance, if the preset scenario A includes application 1 launching from a desktop application and application 2 launching from application 1, the unified scene transition animation framework determines that application 1's startup scenario matches the preset scenario if it finds that application 1 is launched from a desktop application.

[0088] Step 302: If the startup scene of the first application matches the preset scene, the electronic device uses the target transition animation during the switching process between any two components in the first application.

[0089] It should be understood that in step 301 above, the system-defined preset scenario may include one or more scenarios. If the system-defined preset scenario includes multiple scenarios, and any one of these scenarios matches the startup scenario of the first application, then the startup scenario of the first application matches the preset scenario; if no one of these scenarios matches the startup scenario of the first application, then the startup scenario of the first application does not match the preset scenario.

[0090] In some other embodiments, if the startup scenario of the first application does not match the preset scenario, the switching animation of the system default component or the switching animation of the custom component corresponding to the first application is used during the switching process between any two components in the first application.

[0091] Taking the first application as an example Figure 6 Taking Application 1 as an example, Application 1 includes Component 1 and Component 2. In this embodiment, a unified scene transition animation framework is constructed to cover traditional capabilities, such as system default animations, application theme style definitions, and in-application custom animations. When the startup scene of Application 1 is a system-defined preset scene, the unified scene transition animation framework enables the system default animations and the custom animations of Application 1 to be disabled. In this way, under the preset scene, when switching between any two components of Application 1 (e.g., Component 1 and Component 2 in Application 1), the unified scene transition animation framework uses the target transition animation defined by the preset scene, thereby ensuring that the switching animations between any two components of Application 1 (e.g., Component 1 and Component 2 in Application 1) are consistent and the smoothness is consistent. When the startup scene of Application 1 is not a system-defined preset scene, the switching animations between any two components of Application 1 (e.g., Component 1 and Component 2 in Application 1) retain the application custom animations or the system default animations.

[0092] Step 303: The electronic device receives a first instruction, which instructs the second application to be launched from the first application.

[0093] Taking application 1 as the first application and application 2 as the second application, if application 1 receives a page link from application 2, it can launch application 2 by receiving a click operation on the page link of application 2. In this example, the first instruction can be the instruction triggered by the click operation.

[0094] Step 304: The electronic device starts the second application according to the first instruction.

[0095] When the second application launches, it can send a notification message to the application launch manager. The application launch manager then instructs the unified scene transition animation framework to check the second application's launch scene. After the unified scene transition animation framework determines the check result for the second application, it sends that result back to the application launch manager. This check result can include whether the second application's launch scene matches a preset scene, or whether the second application's launch scene does not match a preset scene.

[0096] Taking preset scenario A, which includes application 1 launching from the desktop application and application 2 launching from application 1, as an example, if the unified scene transition animation framework finds that application 2 is launched from application 1, that is, preset scenario A includes the launch scenario of application 2, then it is determined that the launch scenario of application 2 matches preset scenario A. If the unified scene transition animation framework finds that application 2 is launched from application 3, that is, preset scenario A does not include the launch scenario of application 2, then it is determined that the launch scenario of application 2 does not match preset scenario A.

[0097] Step 305: If it is determined that the startup scene of the second application matches the preset scene, then during the process of the electronic device switching from the first application to the second application, the target transition animation corresponding to the preset scene is used.

[0098] After launching the second application in step 304 above, if it is determined that the launch scene of the second application matches the preset scene, the electronic device will use the target transition effect corresponding to the preset scene during the switching process between any two components in the second application.

[0099] Continuing with the first application as an example Figure 6 The first application is shown, and the second application is... Figure 6 Taking application 2 as an example, application 1 includes component 1 and component 2, and application 2 includes component 1, component 2, and component 3. In this embodiment, a unified scene transition animation framework is constructed to cover traditional capabilities, such as system default animations, application theme style definitions, and custom animations within the application. When the startup scene of application 1 and application 2 matches the preset scene A defined by the system, the unified scene transition animation framework enables the system default animations and disables the custom animations of application 1 and application 2. Thus, under the preset scene A, the unified scene transition animation framework ensures that the switching between any two components of application 1 (e.g., component 1 and component 2 in application 1), the cross-application switching between application 1 and application 2, and the switching between any two components of application 2 (e.g., component 1 and component 2 in application 2, or component 2 and component 3 in application 2) all use the target transition animation 1 defined in the preset scene A, thereby ensuring consistent switching animations and smoothness when switching between components within a single application and when switching across applications. When the startup scenario of application 2 is not the system-defined preset scenario, the switching animation between any two components of application 2 (such as component 1 and component 2 in application 2) retains the application's custom animation or the system's default animation. When switching between application windows from application 1 to application 2, the system's default animation is retained.

[0100] The following example uses the preset scenario of out-of-box experience (OOBE) as an example, combined with... Figure 7 as well as Figure 8This section explains the consistency of animation effects when switching between components within an application and when switching windows between applications.

[0101] For example, the target transition animations corresponding to the OOBE scene include: taking the switch from component 1 to component 2 of the first application as an example, the component switching animation is component 1 fading out and component 2 fading in, and during the switch between the two components, multiple small balls as backgrounds present a scrolling effect; taking the switch from the window of the first application to the window of the second application as an example, the window of the first application fades out and the window of the second application fades in, and during the switch between the application windows, multiple small balls as backgrounds present a scrolling effect.

[0102] Figure 7 This is a schematic diagram of a user interface for switching between in-application components, provided as an embodiment of this application.

[0103] In an OOBE scenario, the first application may include multiple components, such as voice selection, region selection, protocol and declaration. It should be understood that the first application may also include more or fewer components, and this example does not limit this.

[0104] When an electronic device enters an OOBE scene, it first displays something like this. Figure 7 The user interface of the language selection component shown in (a) receives user operation 1 after language selection, for example, user operation 1 for switching to the user interface of the region selection component. The electronic device responds to user operation 1 by performing a switching action. During the switching from the language selection component to the region selection component, the language selection component first fades out. During the fade-out process, a frame of the screen appears as follows... Figure 7 As shown in (b), the language selection component fades out completely, then the region selection component fades in, displaying as shown. Figure 7 The user interface for selecting the region component is shown in (c), and it is from... Figure 7 The language selection component shown in (a) is switched to Figure 7 During the selection of the region component shown in (c), the background ball exhibits a scrolling effect.

[0105] Subsequently, the electronic device receives user action 2, which can be a click on the "Next" button. This user action 2 is used to switch from the region selection component to the protocol and declaration component. The electronic device responds to this user action 2 by performing the switching action. During the switch from the region selection component to the protocol and declaration component, the region selection component first fades out. During the fade-out process, a certain frame of the screen appears as follows... Figure 7 As shown in (d), the process continues until the selected region component completely fades out, after which the protocol and declaration components fade in, displaying as shown. Figure 7 The user interface of the protocol and declaration components shown in (e) is also shown in the diagram. Figure 7 The region selection component shown in (c) is switched to Figure 7 During the process of the protocol and declaration components shown in (e), the background ball exhibits a scrolling effect.

[0106] On electronic device display Figure 7 When the user interface of the protocol and declaration component shown in (e) is accessed, the electronic device receives user action 3, such as a click on the "Next" button. User action 3 is used to switch from the protocol and declaration component in the first application to the connectivity and networking component in the second application. In response to user action 3, the electronic device performs the switching action. During the switch from the protocol and declaration component in the first application to the connectivity and networking component in the second application, the protocol and declaration component in the first application first fades out. During the fade-out process, a frame of the screen appears as follows: Figure 8 As shown in (a), the protocol and declaration components fade out completely, followed by the network connection component fading in, displaying as shown in (a). Figure 8 The user interface of the network component shown in (b) is also shown in the image. Figure 7 The region selection component shown in (e) is switched to Figure 8 During the process of the protocol and declaration components shown in (b), the background ball exhibits a scrolling effect.

[0107] In the above embodiments, under the preset scenario defined by the system, the switching between components within the application and the window switching between applications all use the target transition animation corresponding to the same preset scenario, thereby ensuring the consistency of the transition animation effect between different applications.

[0108] After step 305 above, the electronic device can also exit the preset scene after the second application exits. The unified scene transition animation framework enables the system default animation and the custom animation of the second application to be restored.

[0109] In one possible implementation, the electronic device may also receive a third instruction to exit the second application; according to the third instruction, the second application exits; after exiting the second application, the preset scene is exited, and then the electronic device restores the system default component switching animation and the custom component switching animation corresponding to the second application. Then, the second application is restarted, and during switching between any two components within the second application, either the system default component switching animation or the custom component switching animation corresponding to the second application is used. After restoring the system default component switching animation and the custom component switching animation corresponding to the second application, a fourth application is launched, and during the switching from the second application to the fourth application, the system default window switching animation is used.

[0110] In some other embodiments, after step 304 above, if it is determined that the startup scenario of the second application does not match the preset scenario, then: during the process of switching from the first application to the second application, the system default window switching animation is used, and / or, during the process of switching between any two components in the second application, the system default component switching animation or the custom component switching animation corresponding to the second application is used.

[0111] Step 306: Receive a second instruction, which instructs the third application to be launched from the first application.

[0112] Step 307: Launch the third application according to the second instruction.

[0113] Step 308: If it is determined that the startup scene of the third application matches the preset scene, then during the switch from the first application to the third application, the target transition animation is used.

[0114] In one implementation, if it is determined that the startup scenario of the third application matches a preset scenario, the electronic device can turn off the custom component switching animation corresponding to the third application, and / or use the target transition animation during the switching process between any two components in the third application.

[0115] In some other embodiments, if it is determined that the startup scenario of the third application does not match the preset scenario, then during the process of switching from the first application to the third application, the system default window switching animation is used, and / or, during the process of switching between any two components in the third application, the system default component switching animation or the custom component switching animation corresponding to the third application is used.

[0116] In this embodiment of the application, under the same preset scene, the switching between any two applications can use the target transition animation effect corresponding to the preset scene. For example, the switching from the first application to the second application and the switching from the first application to the third application belong to the same preset scene A. Then, the target transition animation effect 1 corresponding to the preset scene A is used when the first application switches to the second application, and the target transition animation effect 1 corresponding to the preset scene is also used when the first application switches to the third application. This can ensure the consistency of the animation effect when switching between different applications.

[0117] Furthermore, the switching between the first, second, and third in-application components can also be performed using the target transition animation 1 corresponding to the preset scenario A, thereby ensuring the consistency of the animation effects between different in-application components under the same preset scenario.

[0118] The following is based on Figure 2 The system architecture shown, combined with Figure 9 This example illustrates the processing flow of each service module in the system architecture during scene matching. Figure 9As shown, the process may include the following steps:

[0119] S1, When application 1 is launched, application 1 notifies the application launch manager to launch application 1.

[0120] S2, the application startup manager checks the system-defined startup declaration content.

[0121] For example, the launch declaration may include a meta-data description, an intent description, and information from which application launcher launched application 1, obtained from the application launch manager.

[0122] S3, the application launch manager notifies the unified scene transition animation framework to check the launch scene of application 1.

[0123] S4, the unified scene transition animation framework checks the startup scene of application 1 and obtains the check results corresponding to application 1.

[0124] S5, the unified scene transition animation framework returns the inspection results corresponding to application 1 to the application launch manager.

[0125] S6, the check result for application 1 is that the startup scene of application 1 matches the preset scene, and the unified scene transition animation framework notifies the window manager to close the system default window switching animation.

[0126] S7, a unified scene transition animation framework, notifies the application launch manager to close system default component switching animations and application custom component switching animations.

[0127] S8, Application 1 sends a message to the Application Launch Manager to switch internal components of Application 1.

[0128] S9, the application 1 calls the target transition animation corresponding to the preset scene to the unified scene transition animation framework.

[0129] S10, Application 1 launches Application 2.

[0130] S11, Application 2 notifies Application Launch Manager to launch Application 2.

[0131] S12, the application launch manager notifies the unified scene transition animation framework to check the launch scene of application 2.

[0132] S13, the unified scene transition animation framework returns the inspection results corresponding to application 2 to the application launch manager.

[0133] S14, the check result corresponding to application 1 is that the startup scene of application 2 matches the preset scene, and the application startup manager calls the target transition effect corresponding to the preset scene to the unified scene transition effect framework.

[0134] S15, Application 2 sends a message to the Application Launch Manager to switch internal components of Application 2.

[0135] S16, the application launch manager calls the target transition effect corresponding to the preset scene to the unified scene transition effect framework.

[0136] S17, Application 2 notifies Application Launch Manager that Application 2 is exiting.

[0137] S18, the application launch manager notifies the unified scene transition animation framework to check the exit scene of application 2.

[0138] S19, the unified scene transition animation framework returns the inspection results corresponding to application 2 to the application launch manager.

[0139] The check results for application 2 include exiting the preset scenario.

[0140] S20, a unified scene transition animation framework, notifies the application launch manager to restore the system default component switching animation and the application's custom component switching animation.

[0141] S21, the unified scene transition animation framework notifies the window manager to restore the system's default window switching animation.

[0142] above Figure 9 The process shown is only an example. Some steps in the above process may be optional, and some steps in the above process may also be recombined. The application embodiments do not limit this.

[0143] The following is based on Figure 2 The system architecture shown, combined with Figure 10 This example illustrates the processing flow of each service module in the system architecture when the scenario does not match. Figure 10 As shown, the process may include the following steps:

[0144] S1, When application 3 is launched, application 3 notifies the application launch manager to launch application 3.

[0145] S2, the application startup manager checks the system-defined startup declaration content.

[0146] For example, the launch declaration may include a meta-data description, an intent description, and information from which application launcher the application 3 was launched, which is obtained from the application launch manager.

[0147] S3, the application launch manager notifies the unified scene transition animation framework to check the launch scene of application 3.

[0148] S4, the unified scene transition animation framework checks the startup scene of application 3 and obtains the check results corresponding to application 3.

[0149] S5, the unified scene transition animation framework returns the inspection results corresponding to application 3 to the application launch manager.

[0150] Among them, the inspection results for application 3 include that the startup scenario of application 3 does not match the preset scenario.

[0151] S6, Application 3 sends a message to the Application Launch Manager to switch between internal components of Application 3.

[0152] S7, the application launch manager calls the system's default in-application component switching animation or the application's custom component switching animation.

[0153] S8, Application 3 launches Application 4.

[0154] S9, Application 4 Notification Application Launch Manager Application 4 Launch.

[0155] S10, the application launch manager notifies the unified scene transition animation framework to check the launch scene of application 4.

[0156] S11, the unified scene transition animation framework returns the inspection results corresponding to application 4 to the application launch manager.

[0157] S12, the application launch manager and notification window manager use the system default window switching animation.

[0158] S13, Application 4 sends an internal component switch to the Application Launch Manager.

[0159] S14, the application launch manager calls the system's default in-application component switching animation or the application's custom component switching animation.

[0160] S15, Application 4 notifies Application Launch Manager that Application 4 is exiting.

[0161] S16, the application launch manager and notification window manager use the system default window switching animation.

[0162] above Figure 10 The process shown is only an example. Some steps in the above process may be optional, and some steps in the above process may also be recombined. The application embodiments do not limit this.

[0163] The methods provided in the embodiments of this application above are described from the perspective of an electronic device as the executing entity. To implement the functions of the methods provided in the embodiments of this application above, the electronic device may include hardware structures and / or software modules, implementing the above functions in the form of hardware structures, software modules, or a combination of hardware structures and software modules. Whether a particular function is executed in the form of hardware structures, software modules, or a combination of hardware structures and software modules depends on the specific application and design constraints of the technical solution.

[0164] When implemented in hardware, the hardware implementation of this electronic device can be found in [reference needed]. Figure 11 And its related descriptions.

[0165] See Figure 11 The electronic device includes: a display screen 1101; one or more processors 1102; a memory 1103; one or more application programs (not shown); and one or more computer programs 1104. These devices can be connected via one or more communication buses 1105. The one or more computer programs 1104 are stored in the memory 1103 and configured to be executed by the one or more processors 1102. The one or more computer programs 1104 include instructions that can be used to perform the methods in any of the above embodiments.

[0166] This application also provides a computer storage medium storing computer instructions. When the computer instructions are executed on an electronic device, the electronic device performs the aforementioned method steps to implement the methods described in the above embodiments.

[0167] This application also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement the methods described in the above embodiments.

[0168] In addition, embodiments of this application also provide an apparatus, which may specifically be a chip, component, or module. The apparatus may include a connected processor and a memory; wherein the memory is used to store computer execution instructions, and when the apparatus is running, the processor may execute the computer execution instructions stored in the memory to cause the chip to execute the translation methods in the above-described method embodiments.

[0169] In this application, the electronic devices, computer storage media, computer program products or chips provided in the embodiments are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0170] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above 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.

[0171] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0172] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0173] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0174] If the integrated unit is implemented as 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 solutions of the embodiments of this application, in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0175] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A display method for an electronic device, applied to an electronic device having a display screen, characterized in that, The method comprises: when a first application is started, a preset scene defined by a system is acquired, the preset scene corresponding to a target transition effect; if a start scene of the first application matches the preset scene, the target transition effect is used in a switching process between any two components in the first application; a first instruction is received, the first instruction being used for indicating starting a second application from the first application; the second application is started according to the first instruction; if it is determined that a start scene of the second application matches the preset scene, the target transition effect is used in a process of switching from the first application to the second application; a second instruction is received, the second instruction being used for indicating starting a third application from the first application; the third application is started according to the second instruction; if it is determined that a start scene of the third application matches the preset scene, the target transition effect is used in a process of switching from the first application to the third application.

2. The method of claim 1, wherein, After starting the second application, the method further comprises: if it is determined that a start scene of the second application matches the preset scene, the target transition effect is used in a switching process between any two components in the second application; and / or if it is determined that a start scene of the third application matches the preset scene, the target transition effect is used in a switching process between any two components in the third application.

3. The method of claim 1 or 2, wherein, The method further comprises: if a start scene of the first application matches the preset scene, a system default component switching effect and a custom component switching effect corresponding to the first application are closed; if it is determined that a start scene of the second application matches the preset scene, a custom component switching effect corresponding to the second application is closed; if it is determined that a start scene of the third application matches the preset scene, a custom component switching effect corresponding to the third application is closed.

4. The method of claim 1 or 2, wherein, After starting the second application, the method further comprises: a third instruction of exiting the second application is received; the second application is exited according to the third instruction; a system default component switching effect and a custom component switching effect corresponding to the second application are restored; the second application is started; in a switching process between any two components in the second application, the system default component switching effect or the custom component switching effect corresponding to the second application is used.

5. The method of claim 4, wherein, After the system default component switching effect and the custom component switching effect corresponding to the second application are restored, the method further comprises: a fourth application is started; in a process of switching from the second application to the fourth application, a system default window switching effect is used.

6. The method of claim 1 or 2, wherein, The method further comprises: if a start scene of the first application does not match the preset scene, in a switching process between any two components in the first application, a system default component switching effect or a custom component switching effect corresponding to the first application is used.

7. The method of claim 1 or 2, wherein, The method further comprises: if it is determined that the starting scenario of the second application does not match the preset scenario, using a system default window switching effect in switching from the first application to the second application, and / or using a system default component switching effect or a custom component switching effect corresponding to the second application in switching between any two components in the second application; or if it is determined that the starting scenario of the third application does not match the preset scenario, using a system default window switching effect in switching from the first application to the third application, and / or using a system default component switching effect or a custom component switching effect corresponding to the third application in switching between any two components in the third application.

8. An electronic device, comprising: comprise a processor, a memory, and a display screen; the display screen is configured to display a user interface; the memory is configured to store one or more computer programs, which, when executed by the processor, cause the electronic device to perform the following operations: when a first application is started, obtaining a preset scenario defined by a system, the preset scenario corresponding to a target transition effect; if the starting scenario of the first application matches the preset scenario, using the target transition effect in switching between any two components in the first application; receiving a first instruction for indicating starting a second application from the first application; starting the second application according to the first instruction; if it is determined that the starting scenario of the second application matches the preset scenario, using the target transition effect in switching from the first application to the second application; receiving a second instruction for indicating starting a third application from the first application; starting the third application according to the second instruction; if it is determined that the starting scenario of the third application matches the preset scenario, using the target transition effect in switching from the first application to the third application.

9. The electronic device of claim 8, wherein, the computer programs, when executed by the processor, cause the electronic device to further perform the following operations: if it is determined that the starting scenario of the second application matches the preset scenario, using the target transition effect in switching between any two components in the second application; and / or if it is determined that the starting scenario of the third application matches the preset scenario, using the target transition effect in switching between any two components in the third application.

10. The electronic device of claim 8 or 9, wherein, the computer programs, when executed by the processor, cause the electronic device to further perform the following operations: if the starting scenario of the first application matches the preset scenario, turning off a system default component switching effect and a custom component switching effect corresponding to the first application; if it is determined that the starting scenario of the second application matches the preset scenario, turning off the custom component switching effect corresponding to the second application; if it is determined that the starting scenario of the third application matches the preset scenario, turning off the custom component switching effect corresponding to the third application.

11. The electronic device of claim 8 or 9, wherein, the computer programs, when executed by the processor, cause the electronic device to further perform the following operations: receiving a third instruction for exiting the second application; According to the third instruction, exit the second application; Restore the system default component switching animation and the custom component switching animation corresponding to the second application; Start the second application; During switching between any two components in the second application, use the system default component switching animation or the custom component switching animation corresponding to the second application.

12. The electronic device of claim 11, wherein, The computer program, when executed by the processor, causes the electronic device to further perform: Start a fourth application; During switching from the second application to the fourth application, use the system default window switching animation.

13. The electronic device of claim 8 or 9, wherein, The computer program, when executed by the processor, causes the electronic device to further perform: If the start scenario of the first application does not match the preset scenario, during switching between any two components in the first application, use the system default component switching animation or the custom component switching animation corresponding to the first application; Or, If it is determined that the start scenario of the second application does not match the preset scenario, use the system default component switching animation or the custom component switching animation corresponding to the second application; Or, If it is determined that the start scenario of the third application does not match the preset scenario, use the system default component switching animation or the custom component switching animation corresponding to the third application.

14. The electronic device of claim 8 or 9, wherein, The computer program, when executed by the processor, causes the electronic device to further perform: If it is determined that the start scenario of the second application does not match the preset scenario, during switching from the first application to the second application, use the system default window switching animation, and / or, during switching between any two components in the second application, use the system default component switching animation or the custom component switching animation corresponding to the second application; Or, If it is determined that the start scenario of the third application does not match the preset scenario, during switching from the first application to the third application, use the system default window switching animation, and / or, during switching between any two components in the third application, use the system default component switching animation or the custom component switching animation corresponding to the third application.

15. A computer-readable storage medium, characterized in that, The computer readable storage medium includes a computer program, when the computer program is running on the electronic device, causes the electronic device to perform the method of any one of claims 1 to 7.

Citation Information

Patent Citations

  • Application program scene switching method, system and mobile terminal

    CN106775983A

  • Display method, electronic equipment and storage medium

    CN114518817A