Electronic device display method, electronic device, and storage medium

By defining preset scenes and using target transition animations between applications and components, the problem of inconsistency in dynamic effects between different applications is solved, the continuity and consistency of dynamic effects are achieved, and the development process is simplified.

WO2024179249A1PCT designated stage expired Publication Date: 2024-09-06HUAWEI TECH CO LTD
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/074422
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-27
Filing Date
2024-01-29
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The transition animations between different applications are inconsistent, which leads to problems of breakage, discontinuity, and inconsistency in switching between applications and components. In addition, the theme style and custom animation effects need to be taken into account within the application, resulting in increased development work.

Method used

By defining a preset scene, use the target transition effect when switching between applications and components to ensure the consistency of the motion effect in the same preset scene. Turn off the system default and custom animation effects to prioritize the use of the target transition effect.

Benefits of technology

It achieves the consistency of dynamic effects between different applications and components, reduces development complexity, and ensures the continuity and consistency of transition dynamic effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024074422_06092024_PF_FP
    Figure CN2024074422_06092024_PF_FP
Patent Text Reader

Abstract

The present application provides an electronic device display method, an electronic device, and a storage medium. The method is applied to an electronic device comprising a display screen. The method comprises: when a first application is started, acquiring a preset scenario defined by a system, the preset scenario corresponding to a target transition dynamic effect; if a startup scenario of the first application is matched with the preset scenario, using the target transition dynamic effect in the process of switching between any two components in the first application; starting a second application from the first application; if a startup scenario of the second application is matched with the preset scenario, using the target transition dynamic effect when switching from the first application to the second application; starting a third application from the first application; and if a startup scenario of the third application is matched with the preset scenario, using the target transition dynamic effect when switching from the first application to the third application. In this way, the consistency of dynamic effects of window switching between different applications in a same preset scenario and the consistency of dynamic effects of switching between components in an application are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Display method of electronic device, electronic device and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on February 27, 2023, with application number 202310206884.5 and application name “A display method for an electronic device, an electronic device and a storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The present invention relates to the field of electronic technology, and in particular to a display method of an electronic device, an electronic device, and a storage medium. Background Art

[0004] The current system provides a variety of 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. The system also provides transparent themes for application components. When a transparent theme is set for an application, the system-side window switching animation will enter a special processing scenario corresponding to the transparent theme, meaning that no animation will be played when the window switches.

[0005] To ensure consistent performance across devices, custom animations are used in most scenarios. However, the system's default animations have limited coverage. This can cause transitions between apps to appear as custom animations for different apps in consecutive operations, leading to inconsistent transitions. Furthermore, the application of transparent themes in any scenario can cause discontinuities, interruptions, and inconsistencies in transitions between apps and components.

[0006] However, custom animations in apps have a higher priority and can override the default system-defined animations. To ensure consistent animations across apps within a scenario, multiple apps must implement them according to unified design specifications, forgoing the ability to use themes and custom animations. However, apps already have visual effects that require themed styles, making it impossible to achieve both. This results in a significant amount of development work or the need to abandon consistent animation designs. Furthermore, the consistent animations developed for App 1 and App 2 in Scenario A cannot guarantee the consistent animations developed for App 1 and App 3 in Scenario A.

[0007] Summary of the Invention

[0008] Embodiments of the present application provide a display method for an electronic device, an electronic device, and a storage medium, which are applied to an electronic device with a display screen to solve the problem of consistency in motion effects when transitioning between different applications.

[0009] In a first aspect, an embodiment of the present application provides a display method for an electronic device, which is applied to an electronic device with a display screen, the method comprising: when a first application is started, obtaining a preset scene defined by the system, the preset scene corresponding to a target transition animation; if the startup scene of the first application matches the preset scene, then using the target transition animation during the switching process between any two components within the first application; receiving a first instruction, the first instruction is used to indicate the startup of the second application from the first application; starting the second application according to the first instruction; if it is determined that the startup scene of the second application matches the preset scene, then using the target transition animation during the switching process from the first application to the second application; receiving a second instruction, the second instruction is used to indicate the startup of a third application from the first application; starting the third application according to the second instruction; if it is determined that the startup scene of the third application matches the preset scene, then using the target transition animation during the switching process from the first application to the third application.

[0010] Through this method, in the same preset scene, the switching between any two applications can use the target transition animation corresponding to the preset scene. For example, if 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 switching from the first application to the second application uses the target transition animation 1 corresponding to the preset scene A, and the switching from the first application to the third application also uses the target transition animation 1 corresponding to the preset scene. This ensures the consistency of the animation effects when transitioning between different applications. Moreover, the switching between different components within an application also uses the target transition animation 1, which ensures the consistency of the animation effects when transitioning between components within different applications under the same preset scene.

[0011] In one possible design, after launching a second application, the method may further include: if it is determined that the launch scene of the second application matches the preset scene, then when switching between any two components within the second application, using the target transition effect; and / or if it is determined that the launch scene of a third application matches the preset scene, then when switching between any two components within the third application, using the target transition effect. In this way, the consistency of the transition effects between components within various applications under the same preset scene can be ensured.

[0012] In one possible design, the method may further include: if the startup scene of the first application matches the preset scene, disabling the system default component switching animation and the custom component switching animation corresponding to the first application; if it is determined that the startup scene of the second application matches the preset scene, disabling the custom component switching animation corresponding to the second application; if it is determined that the startup scene of the third application matches the preset scene, disabling the custom component switching animation corresponding to the third application. In this way, when switching between components within an application under the same preset scene, the target transition animation can be selected, thereby ensuring the consistency of the animation effects of switching between components within each application under the same preset scene.

[0013] 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 when switching between any two components within the second application, using the system default component switching animation or the custom component switching animation corresponding to the second application. In this way, when exiting an application with a preset scenario, the system default component switching animation or the custom component switching animation corresponding to the second application can be selected when switching its internal components.

[0014] In one possible design, after restoring the system default component transition effects and the custom component transition effects corresponding to the second application, the fourth application is launched after the second application; when switching from the second application to the fourth application, the system default window transition effects are used. In this way, when exiting the preset scene application and switching between applications, the system default window transition effects can be selected.

[0015] In one possible design, the method may further include: if the first application's startup scene does not match the preset scene, then when switching between any two components within the first application, using the system default component switching animation or the custom component switching animation corresponding to the first application. In this way, if the first application's startup scene does not match the preset scene, the existing switching animation, that is, using the system default component switching animation or the custom component switching animation corresponding to the first application, is still maintained.

[0016] In one possible design, the method may further include: if it is determined that the startup scene of the second application does not match the preset scene, then in the process of switching from the first application to the second application, the system default window switching animation is used, and / or, in 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; or, if it is determined that the startup scene of the third application does not match the preset scene, then in the process of switching from the first application to the third application, the system default window switching animation is used, and / or, in 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. In this way, when the startup scene of the second application or the third application does not match the preset scene, the existing switching animation is still maintained, that is, the system default component switching animation or the custom component switching animation corresponding to the first application is used.

[0017] In a second aspect, an embodiment of the present application further provides a device comprising modules / units for executing any of the possible design methods of any of the above aspects. These modules / units may be implemented by hardware, or by executing corresponding software implementations through hardware.

[0018] In a third aspect, an embodiment of the present application provides an electronic device comprising 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, enable the electronic device to execute the method in the above-mentioned first aspect and any possible design of the first aspect.

[0019] In a fourth aspect, an embodiment of the present application also provides a computer-readable storage medium, which includes a computer program. When the computer program runs on an electronic device, the electronic device executes the above-mentioned first aspect and any possible design method of the first aspect.

[0020] In a fifth aspect, an embodiment of the present application further provides a method comprising a computer program product, which, when the computer program product is run on a terminal, enables the electronic device to execute the above-mentioned first aspect and any possible design of the first aspect.

[0021] For the beneficial effects of the second to fifth aspects above, please refer to the beneficial effects of the first aspect and will not be repeated. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] FIG1 is a schematic diagram of the hardware structure of a mobile phone provided in an embodiment of the present application;

[0023] FIG2 is a schematic diagram of the software structure of a mobile phone provided in an embodiment of the present application;

[0024] FIG3 is a schematic diagram of a flow chart of a display method of an electronic device provided in an embodiment of the present application;

[0025] FIG4 is a schematic diagram of a scenario provided by an embodiment of the present application;

[0026] FIG5 is a schematic diagram of target transition effects corresponding to preset scenes provided in an embodiment of the present application;

[0027] FIG6 is a schematic diagram of a transition effect provided in an embodiment of the present application;

[0028] FIG7 is a schematic diagram of a user interface for switching components within a group of applications provided by an embodiment of the present application;

[0029] FIG8 is a schematic diagram of a user interface for switching windows between a group of applications provided in an embodiment of the present application;

[0030] FIG9 is a schematic diagram of the processing flow of each service module in the system architecture during scene matching provided in an embodiment of the present application;

[0031] FIG10 is a schematic diagram of the processing flow of each service module in the system architecture when the scenario does not match the embodiment of the present application;

[0032] FIG11 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. The terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to be limiting of the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the embodiments of the present application, "one or more" refers to one, two or more; "and / or" describes the association relationship of associated objects, indicating that three relationships may exist; for example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the related objects before and after are in an "or" relationship.

[0034] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in yet other embodiments" appearing in various places in 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 "including," "comprising," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0035] The "multiple" involved in the embodiments of the present application means greater than or equal to two. It should be noted that in the description of the embodiments of the present application, the words "first" and "second" are only used for the purpose of distinguishing the description and cannot be understood as indicating or implying relative importance or order.

[0036] This application provides a display method for an electronic device, an electronic device, and a storage medium to solve the problem of consistent dynamic effects when transitioning between different applications. The method and the electronic device are based on the same technical concept. Since the method and the electronic device solve similar problems, the implementation of the electronic device and the method can refer to each other, and any repetitions will not be repeated.

[0037] In the solution provided in the embodiment of the present application, by defining a preset scene, when it is determined that the startup scene of the first application matches the preset scene defined by the system, the target transition animation corresponding to the preset scene is used in the switching process between components within the first application; when the second application is launched from the first application, it is determined that the startup scene of the second application matches the preset scene defined by the system, and the target transition animation is used in the process of switching from the first application to the second application. Under the defined preset scene, the switching between components within the application and the switching of windows between applications both use the target transition animation defined by the preset scene, thereby ensuring the consistency of the animation effects of the transitions between different applications.

[0038] Below, some terms in this application are explained to facilitate understanding by those skilled in the art.

[0039] (1) Electronic devices are devices equipped with a display screen and capable of human-computer interaction through the display screen. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a netbook, a car-mounted device, a business intelligent terminal (including: videophone, conference desktop intelligent terminal, etc.), a personal digital assistant (PDA), an augmented reality (AR)\virtual reality (VR) device, etc. The electronic device includes a device capable of realizing data processing functions (such as a processor, or an application processor, or an image processor, or other processors), 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 a device equipped with Or devices with other operating systems. The above-mentioned electronic device may 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 the present application, the above-mentioned electronic device may not be a portable electronic device, but a desktop computer with a touch-sensitive surface (e.g., a touch panel). The embodiments of the present application do not limit the specific form of the electronic device.

[0040] (2) Interface, also known as user interface (UI), is presented on the display screen. It is the medium interface for interaction and information exchange between the application or operating system in the electronic device and the user. It realizes the conversion between the internal form of information and the form acceptable to the user. The commonly used form of user interface is graphical user interface (GUI), which refers to the user interface related to computer operation displayed in a graphical way. It can be an interface element such as an icon, window, control, etc. displayed on the display screen of the electronic device. The control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc.

[0041] The structure of the electronic device is further described with reference to the accompanying drawings.

[0042] FIG1 is only a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application. Based on the structure shown in FIG1 , other variant structures may exist. As shown in FIG1 , 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, 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. The sensor module 180 may include one or more of the following: 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, a bone conduction sensor 180M, etc.

[0043] The following is a detailed introduction to the components of the electronic device 100 shown in FIG1 .

[0044] 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 processing unit (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). Among them, different processing units can be independent devices or integrated into one or more processors. Among them, the controller can be the nerve center and command center of the electronic device 100. The controller can generate an operation control signal based on the instruction opcode and the timing signal to complete the control of instruction fetching and execution.

[0045] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory, thereby avoiding repeated accesses and reducing processor 110 latency, thereby improving system efficiency.

[0046] 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. It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration and does not constitute a structural limitation of the electronic device 100.

[0047] The charging management module 140 is configured to receive charging input from a charger. The power management module 141 is configured to connect the battery 142, the charging management module 140, and 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, a modem processor, and a baseband processor.

[0048] 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 a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0049] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0050] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate 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 being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0051] 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 electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0052] 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 the network and other devices through wireless communication technology.

[0053] 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 or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.

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

[0055] The external memory 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 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.

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

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

[0058] Although not shown in FIG. 1 , the electronic device 100 may further include a Bluetooth device, a positioning device, a flashlight, a micro-projection device, a near field communication (NFC) device, etc., which are not described in detail here.

[0059] It is understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than those shown in FIG1 , or may combine or separate certain components, or may have different component arrangements. The components shown in FIG1 may be implemented in hardware, software, or a combination of software and hardware.

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

[0061] The following is an introduction to the software architecture of electronic devices.

[0062] The software system of the electronic device can adopt a layered architecture, event-driven architecture, micro-core architecture, micro-service architecture, or cloud architecture. system) as an example to illustrate the software structure of the electronic device.

[0063] Figure 2 illustrates a schematic diagram of the layered software architecture of an electronic device provided by an embodiment of the present application. The layered architecture divides the software system of an electronic device into several layers, each with distinct roles and divisions of labor. Layers communicate with each other via software interfaces.

[0064] In some embodiments, the Android system is divided into four layers, namely, the application layer (applications), the application framework layer (application framework), the Android runtime (Android runtime), the system library, and the kernel layer (kernel). The embodiments of the present application do not limit the layering of the software structure of the electronic device. The Android runtime, the system library, and the kernel layer can be regarded as one layer, referred to as the system layer. It should be understood that Figure 2 also adds the hardware layer in the electronic device on the basis of the Android system.

[0065] It should be understood that the modules included in each layer shown in Figure 2 are modules involved in the embodiments of the present application. The modules included in the following layers do not constitute a limitation on the structure of the electronic device and the hierarchy of module deployment (illustrative examples). In one embodiment, the modules shown in Figure 2 can be deployed separately, or several modules can be deployed together. The division of modules in Figure 2 is an example. In one embodiment, the names of the modules shown in Figure 2 are illustrative examples.

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

[0067] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer may include some predefined functions. Referring to Figure 2, the application framework layer may include:

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

[0069] The application startup manager is used to manage the startup operations of application software.

[0070] The unified scene transition animation framework includes feature animation management, transition animation management, and animation layer management. The unified scene transition animation framework takes over the system and application-defined animation processes when switching between applications and components in a specified scene. Through system framework stubbing, the transition animation logic is switched to the unified scene transition animation framework for unified processing.

[0071] A window manager manages the user interface.

[0072] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include displaying text messages in the status bar, emitting alert sounds, vibrating electronic devices, or flashing indicator lights.

[0073] 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.

[0074] Because the Android runtime, system library, and kernel layer are regarded as one layer in the embodiment of the present application, the system layer can include the Android runtime and system library, as well as the functional modules in the kernel layer. Referring to Figure 2, the system layer can include multiple functional modules, such as: surface manager, media library, three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc. The surface manager is used to manage the display subsystem and provides fusion of 2D and 3D layers for multiple applications. The media library supports a variety of commonly used audio and video formats for playback and recording, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The three-dimensional graphics processing library is used to implement three-dimensional graphics drawing, image rendering, synthesis, and layer processing, etc. The 2D graphics engine is a drawing engine for 2D drawing.

[0075] In addition, the system layer also includes hardware drivers for driving hardware operations. For example, the driver layer includes: sensor drivers, display drivers (display drivers), graphics processing unit drivers (GPU drivers), etc., which are not limited in the embodiments of the present application. It is understood that Figure 2 shows the display driver involved in the embodiments of the present application. The display driver is used to drive the display screen to display the user interface.

[0076] The hardware layer includes the hardware in the electronic device. It can be understood that the hardware layer in Figure 2 shows the display screen and the like involved in the following embodiments.

[0077] The display method of the electronic device provided by the embodiment of the present application is 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 in detail in some embodiments.

[0078] Refer to Figure 3, which is a flow chart of a display method of an electronic device provided in an embodiment of the present application. As shown in Figure 3, the flow may include the following steps:

[0079] Step 301: When the first application is started, the electronic device obtains a preset scene defined by the system, and the preset scene corresponds to a target transition animation effect.

[0080] Before step 301, a preset scenario can be defined first. As shown in Figure 4, the electronic device includes application 1, application 2, application 3 and application 4, wherein application 1 includes component 1, component 2, component 3, application 2 includes component 4, application 3 includes component 5, and application 4 includes component 6. The preset scenario can be a definition of one or more applications among the four applications.

[0081] Taking preset scenario 1 as an example, launching any application from the notification bar, and then launching one or more other applications from that application, and preset scenario 1 corresponding to target transition animation 1, for example, 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. Then, 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 in each application, such as application 1, application 2, application 3, and application 4, all use target transition animation 1. For another example, 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 in application 2, and the switching between components in application 4 all use target transition animation 1.

[0082] Taking preset scene 2 as an example, launching any application from the DingTalk application, and preset scene 1 corresponding to target transition animation 2, launching application 2 from the DingTalk desktop application, launching application 3 from application 2, etc. belong to the same preset scene 2. Switching between application 2 and application 3, switching between components in application 2, and switching between components in application 3 all use target transition animation 2.

[0083] 5 , an example is given below to illustrate the target transition animation effect corresponding to the preset scene in step 301 .

[0084] As shown in Figure 5, the electronic device includes application 1 and application 2. For example, the preset scene A is to launch application 1 from the desktop, and then launch application 2 from application 1. The preset scene A corresponds to the target transition animation 1. The preset scene B is to launch application 1 from the notification bar application, and then launch application 2 from application 1. The preset scene B corresponds to the target transition animation 2.

[0085] In the preset scenario A, the transition effects for switching between components in App 1, switching between windows of App 1 and App 2, and switching between components in App 2 use target transition effect 1. In the preset scenario B, the transition effects for switching between components in App 1, switching between windows of App 1 and App 2, and switching between components in App 2 use target transition effect 2.

[0086] After step 301, the electronic device may further determine whether the startup scenario of the first application matches a preset scenario. The specific implementation method is described below.

[0087] When the first application is started, a notification message to start the first application can be sent to the application startup manager. The application startup manager can check the startup statement content defined by the system. For example, the startup statement content can include the metadata description and intent description carried when the first application is started, and the information obtained by the application startup manager from which application 1 is started.

[0088] The application launch manager can then 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 can include that the launch scene of the first application matches the preset scene, or that the launch scene of the first application does not match the preset scene.

[0089] Still taking the above-mentioned first application as application 1 as an example, for example, the preset scene A includes application 1 being launched from a desktop application. If the unified scene transition animation effect framework queries that application 1 is launched from a desktop application, then it is determined that the startup scene of application 1 matches the preset scene A; if the unified scene transition animation effect framework queries that application 1 is launched from other entrances other than the desktop application, for example, it is checked that application 1 is launched from the notification bar, then it is determined that the startup scene of application 1 does not match the preset scene A.

[0090] In this example, the example of determining that the startup scene of application 1 matches the preset scene A is taken as an example in which the preset scene A is completely consistent with the startup scene of application 1. It should be understood that in the case where the preset scene A is not completely consistent with the startup scene of application 1, for example, the preset scene A includes the startup scene of application 1, the startup scene of application 1 is also considered to match the preset scene A. Exemplarily, for example, the preset scene A includes application 1 being launched from a desktop application, and application 2 being launched from application 1. When the unified scene transition animation framework finds that application 1 is launched from a desktop application, it determines that the startup scene of application 1 matches the preset scene.

[0091] 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.

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

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

[0094] Taking the first application as application 1 shown in Figure 6 as an example, application 1 includes component 1 and component 2. In the embodiment of the present application, the unified scene transition animation framework is constructed to cover traditional capabilities, such as system default animation, application theme style definition, and custom animation within the application. When the startup scene of application 1 is a preset scene defined by the system, the unified scene transition animation framework can enable the system default animation and the custom animation of application 1 to be invalid. In this way, the unified scene transition animation framework uses the target transition animation defined in the preset scene when switching between any two components of application 1 (such as component 1 and component 2 in application 1), thereby ensuring that the switching animation when switching between any two components of application 1 (such as component 1 and component 2 in application 1) is consistent and the fluency is consistent. When the startup scene of application 1 is not a preset scene defined by the system, the switching animation when switching between any two components of application 1 (such as component 1 and component 2 in application 1) retains the application custom animation or the system default animation.

[0095] Step 303: The electronic device receives a first instruction, where the first instruction is used to instruct to start the second application from the first application.

[0096] Taking the first application as application 1 and the second application as application 2 as an example, for example, application 1 receives a page link to application 2, and can start application 2 by receiving a click operation on the page link to application 2. In this example, the first instruction can be an instruction triggered by the click operation.

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

[0098] When the second application is launched, it can send a notification message to the application launch manager to launch the second application. The application launch manager can then notify the unified scene transition animation effect framework to check the launch scene of the second application. After the unified scene transition animation effect framework determines the inspection result corresponding to the second application, it sends the inspection result corresponding to the second application to the application launch manager. The inspection result corresponding to the second application can include that the launch scene of the second application matches the preset scene, or that the launch scene of the second application does not match the preset scene.

[0099] For example, if preset scene A includes application 1 being launched from a desktop application and application 2 being launched from application 1, if the unified scene transition animation framework finds that application 2 is launched from application 1, that is, preset scene A includes the launch scene of application 2, then the launch scene of application 2 is determined to match preset scene A. If the unified scene transition animation framework finds that application 2 is launched from application 3, that is, preset scene A does not include the launch scene of application 2, then the launch scene of application 2 is determined to not match preset scene A.

[0100] In step 305 , if it is determined that the startup scene of the second application matches the preset scene, the electronic device uses the target transition animation corresponding to the preset scene when switching from the first application to the second application.

[0101] After starting the second application in step 304, if it is determined that the startup scene of the second application matches the preset scene, the electronic device uses the target transition animation corresponding to the preset scene during the switching process between any two components in the second application.

[0102] Continuing with the example of the first application being application 1 as shown in FIG6 and the second application being application 2 as shown in FIG6, application 1 includes component 1 and component 2, and application 2 includes component 1, component 2, and component 3, in the embodiment of the present application, the unified scene transition animation framework constructed covers traditional capabilities, such as system default animation, application theme style definition, and custom animation within the application. When the startup scene of application 1 and the startup scene of application 2 match the preset scene A defined by the system, the unified scene transition animation framework can enable the system default animation and the custom animation of application 1 and application 2 to be invalid. In this way, under the preset scene A, the unified scene transition animation framework switches between any two components of application 1 (for example, component 1 and component 2 in application 1), switches between applications 1 and 2 across applications, and switches between any two components of application 2 (for example, component 1 and component 2 in application 2, and for example, component 2 and component 3 in application 2) all use the target transition animation 1 defined by the preset scene A, thereby ensuring that the switching animation is consistent and the smoothness is consistent when switching between components within a single application and switching across applications. When the startup scenario of Application 2 is not a system-defined preset scenario, the transition animation when switching between any two components of Application 2 (for example, Component 1 and Component 2 in Application 2) retains the application-customized animation or the system default animation, and the system default animation is retained when switching between application windows from Application 1 to Application 2.

[0103] The following uses the out-of-box experience (OOBE) scenario as an example, and combines Figures 7 and 8 to illustrate the consistency of the dynamic effects of switching components within an application and switching windows between applications.

[0104] For example, the target transition animation effects corresponding to the OOBE scenario include: taking the switching from component 1 of the first application to component 2 as an example, the component switching animation effect is that component 1 fades out and component 2 fades in, and during the switching process between the two components, the multiple small balls serving as the background present a scrolling effect; taking the switching 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 switching process between the windows of the applications, the multiple small balls serving as the background present a scrolling effect.

[0105] FIG7 is a schematic diagram of a user interface for switching components within a group of applications provided in an embodiment of the present application.

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

[0107] When an electronic device enters the OOBE scenario, it first displays the user interface of the language selection component, as shown in FIG7(a). After selecting a language, the electronic device receives user operation 1, for example, user operation 1 for switching to the user interface of the region selection component. The electronic device performs the switching action in response to user operation 1. During the switching process from the language selection component to the region selection component, the language selection component first fades out. During the fading process, a certain frame of the screen is shown in FIG7(b), until the language selection component completely fades out. After that, the region selection component fades in, and the user interface of the region selection component is displayed, as shown in FIG7(c). In addition, during the switching process from the language selection component shown in FIG7(a) to the region selection component shown in FIG7(c), the background ball exhibits a scrolling effect.

[0108] Afterwards, the electronic device receives user operation 2, which may be a click operation on a "Next" button. This user operation 2 is used to switch from the region selection component to the protocol and declaration component. The electronic device performs the switching action in response to user operation 2. During the process of switching from the region selection component to the protocol and declaration component, the region selection component first fades out. During the fading process, a certain frame of the screen is shown in FIG7(d). After the region selection component completely fades out, the protocol and declaration component fades in, displaying the user interface of the protocol and declaration component shown in FIG7(e). In addition, during the process of switching from the region selection component shown in FIG7(c) to the protocol and declaration component shown in FIG7(e), the background ball exhibits a scrolling effect.

[0109] When the electronic device displays the user interface of the protocol and declaration component shown in FIG7(e), the electronic device receives a user operation 3, for example, a click operation on a "Next" button, and the user operation 3 is used to switch from the protocol and declaration component in the first application to the connection network component in the second application. The electronic device performs the switching action in response to the user operation 3. In the process of switching from the protocol and declaration component in the first application to the connection network component in the second application, the protocol and declaration component in the first application first fades out. During the fading process, a certain frame of the screen is shown in FIG8(a), until the protocol and declaration component completely fades out. After that, the connection network component fades in, and the user interface of the connection network component is displayed as shown in FIG8(b). In addition, in the process of switching from the selection area component shown in FIG7(e) to the protocol and declaration component shown in FIG8(b), the background ball exhibits a scrolling effect.

[0110] In the above embodiment, under the preset scenarios defined by the system, switching between components within an application and switching between windows of applications all use the target transition animation corresponding to the same preset scenario, thereby ensuring the consistency of the transition animation effects between different applications.

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

[0112] In one possible implementation, the electronic device may also receive a third instruction to exit the second application; exit the second application according to the third instruction; after exiting the second application, exit the preset scene, and then the electronic device restores the system default component switching effect and the custom component switching effect corresponding to the second application. Afterwards, the second application is started again, and in the process of switching 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. After restoring the system default component switching effect and the custom component switching effect corresponding to the second application, the fourth application is started, and in the process of switching from the second application to the fourth application, the system default window switching effect is used.

[0113] In some other embodiments, after the above step 304, if it is determined that the startup scene of the second application does not match the preset scene, then: in the process of switching from the first application to the second application, the system default window switching animation is used, and / or, in 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.

[0114] Step 306: Receive a second instruction, where the second instruction is used to instruct to start a third application from the first application.

[0115] Step 307: Start the third application according to the second instruction.

[0116] Step 308: If it is determined that the startup scene of the third application matches the preset scene, the target transition animation is used in the process of switching from the first application to the third application.

[0117] In one embodiment, if it is determined that the startup scene of the third application matches the preset scene, 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 within the third application.

[0118] In some other embodiments, if it is determined that the startup scene of the third application does not match the preset scene, the system default window switching animation is used in the process of switching from the first application to the third application, and / or, in 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.

[0119] In an embodiment of the present application, in the same preset scene, the switching between any two applications can use the target transition animation 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 switching from the first application to the second application uses the target transition animation 1 corresponding to the preset scene A, and the switching from the first application to the third application also uses the target transition animation 1 corresponding to the preset scene. This can ensure the consistency of the animation effects when transitioning between different applications.

[0120] Furthermore, switching between components within the first application, switching between components within the second application, and switching between components within the third application can also use the target transition animation 1 corresponding to the preset scene A, thereby ensuring the consistency of the animation effects of switching between components in different applications under the same preset scene.

[0121] Based on the system architecture shown in Figure 2 and in conjunction with Figure 9, the following is an exemplary diagram of the processing flow of each service module in the system architecture during scene matching. As shown in Figure 9, the process may include the following steps:

[0122] S1, when application 1 is started, application 1 notifies the application startup manager to start application 1.

[0123] S2, the application startup manager checks the startup declaration content defined by the system.

[0124] Exemplarily, the launch declaration content may include a metadata description and an intent description carried when the application 1 is launched, as well as information obtained by the application launch manager about which application to launch the application 1 from.

[0125] S3: The application startup manager notifies the unified scene transition animation framework to check the startup scene of application 1.

[0126] S4, the unified scene transition animation framework checks the startup scene of application 1 and obtains the inspection result corresponding to application 1.

[0127] S5: The unified scene transition animation framework returns the inspection result corresponding to application 1 to the application launch manager.

[0128] S6, the check result corresponding to 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 turn off the system default window switching animation.

[0129] S7: The unified scene transition animation framework notifies the application launch manager to turn off the system default component switching animation and the application's custom component switching animation.

[0130] S8, application 1 sends an internal component switch request of application 1 to the application launch manager.

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

[0132] S10, application 1 starts application 2.

[0133] S11, application 2 notifies the application startup manager to start application 2.

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

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

[0136] 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 animation effect corresponding to the preset scene to the unified scene transition animation effect framework.

[0137] S15, application 2 sends an internal component switch request of application 2 to the application launch manager.

[0138] S16, the application startup manager calls the target transition animation effect corresponding to the preset scene from the unified scene transition animation effect framework.

[0139] S17, application 2 notifies the application launch manager that application 2 exits.

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

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

[0142] The inspection result corresponding to the application 2 includes exiting the preset scene.

[0143] S20: The unified scene transition animation framework notifies the application launch manager to restore the system default component switching animation and the application's customized component switching animation.

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

[0145] The process shown in FIG. 9 is merely an example. Some steps in the process may be optional steps. Some steps in the process may also be recombined, and the application embodiment does not impose any restrictions on this.

[0146] Based on the system architecture shown in Figure 2 and in combination with Figure 10, the following is an exemplary diagram of the processing flow of each service module in the system architecture when the scene does not match. As shown in Figure 10, the process may include the following steps:

[0147] S1, when application 3 is started, application 3 notifies the application startup manager to start application 3.

[0148] S2, the application startup manager checks the startup declaration content defined by the system.

[0149] Exemplarily, the launch declaration content may include a metadata description and an intent description carried when the application 3 is launched, as well as information obtained by the application launch manager about which application to launch the application 3 from.

[0150] S3: The application startup manager notifies the unified scene transition animation framework to check the startup scene of application 3.

[0151] S4, the unified scene transition animation framework checks the startup scene of application 3 and obtains the inspection result corresponding to application 3.

[0152] S5: The unified scene transition animation framework returns the inspection result corresponding to application 3 to the application launch manager.

[0153] The inspection result corresponding to application 3 includes that the startup scenario of application 3 does not match the preset scenario.

[0154] S6, application 3 sends an internal component switch request of application 3 to the application launch manager.

[0155] S7, the application launch manager calls the system default application component switching animation or the application 3 custom component switching animation.

[0156] S8, application 3 starts application 4.

[0157] S9, application 4 notifies the application launch manager to launch application 4.

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

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

[0160] S12, the application launch manager notifies the window manager to use the system default window switching animation.

[0161] S13, application 4 sends an internal component switch request of application 4 to the application launch manager.

[0162] S14, the application launch manager calls the system default application component switching animation or the application 4 custom component switching animation.

[0163] S15 , application 4 notifies the application launch manager to exit.

[0164] S16, the application launch manager notifies the window manager to use the system default window switching animation.

[0165] The process shown in FIG. 10 is merely an example. Some steps in the process may be optional steps. Some steps in the process may also be recombined, and the application embodiment does not impose any restrictions on this.

[0166] In the embodiments provided in the present application above, the methods provided in the embodiments of the present application are introduced from the perspective of an electronic device as an execution subject. In order to implement the various functions in the methods provided in the embodiments of the present application above, the electronic device may include a hardware structure and / or a software module, and implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether a function of the above functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.

[0167] When hardware implementation is adopted, the hardware implementation of the electronic device may refer to FIG11 and its related description.

[0168] 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. The aforementioned components may 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, which may be used to execute the method in any of the aforementioned embodiments.

[0169] An embodiment of the present application further provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the method in the above-mentioned embodiment.

[0170] The embodiments of the present application also provide a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the method in the above-mentioned embodiment.

[0171] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the chip to execute the translation method in the above-mentioned method embodiments.

[0172] Among them, the electronic device, computer storage medium, computer program product or chip provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0173] Through the description of the above implementation methods, technical personnel in the relevant field can 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 distributed and completed by 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.

[0174] In the several embodiments provided in this 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 merely schematic. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as 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.

[0175] Units described as separate components may or may not be physically separate, and components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0176] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0177] 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 to the prior art 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 and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0178] The above content is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A method for displaying an electronic device, applied to an electronic device having a display screen, characterized in that The method comprises: When the first application is started, a preset scenario defined by the system is obtained, which corresponds to the target transition animation effect; If the startup scene of the first application matches the preset scene, the target transition animation effect is used during the switching between any two components in the first application; Receive a first instruction for instructing the activation of the second application from the first application; According to the first instruction, the second application is activated; If it is determined that the startup scene of the second application matches the preset scene, the target transition animation effect is used during the switching from the first application to the second application; Receive a second instruction for instructing the activation of the third application from the first application; According to the second instruction, the third application is activated; If it is determined that the startup scene of the third application matches the preset scene, the target transition animation effect is used during the switching from the first application to the third application.

2. The method according to claim 1, characterized in that After starting the second application, the method further comprises: If it is determined that the startup scene of the second application matches the preset scene, the target transition animation is used during the switching between any two components within the second application; and / or, If it is determined that the startup scene of the third application matches the preset scene, the target transition animation effect is used during the switching between any two components in the third application.

3. The method according to claim 1 or 2, characterized in that The method further comprises: If the startup scene of the first application matches the preset scene, the system default component switching effect and the custom component switching effect corresponding to the first application are turned off; If it is determined that the startup scene of the second application matches the preset scene, the custom component switching effect corresponding to the second application is turned off; If it is determined that the startup scene of the third application matches the preset scene, the custom component switching effect corresponding to the third application is turned off.

4. The method according to any one of claims 1 to 3, characterized in that: After starting the second application, the method further comprises: Received a third instruction to exit the second application; According to the third instruction, exit the second application; Restore the system default component switching dynamic effect and the custom component switching dynamic effect corresponding to the second application; Starting the second application; During the switching between any two components in the second application, the system default component switching effect or the custom component corresponding to the second application switching effect is used.

5. The method according to claim 4, characterized in that After restoring the system default component switching motion effect and the custom component switching motion effect corresponding to the second application, the method further comprises: Launching the fourth application; During the process of switching from the second application to the fourth application, the motion effect is switched using the system default window.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: If the startup scene of the first application does not match the preset scene, during the switching process between any two components in the first application, the system default component switching animation or the custom component switching animation corresponding to the first application is used.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: If it is determined that the startup scene of the second application does not match the preset scene, in the process of switching from the first application to the second application, the system default window switching animation is used, and / or, in 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; or, If it is determined that the startup scene of the third application does not match the preset scene, the system default window switching animation is used in the process of switching from the first application to the third application, and / or, in 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.

8. An electronic device, characterized in that: Including processor, memory, display screen; The display screen is used to display a user interface; The memory is used to store one or more computer programs that, when executed by the processor, cause the electronic device to execute: When the first application is started, a preset scenario defined by the system is obtained, which corresponds to the target transition animation effect; If the startup scene of the first application matches the preset scene, the target transition animation effect is used during the switching between any two components in the first application; Received a first instruction for instructing the activation of the second application from the first application; According to the first instruction, the second application is activated; If it is determined that the startup scene of the second application matches the preset scene, the target transition animation effect is used during the switching from the first application to the second application; Receive a second instruction for instructing the activation of the third application from the first application; According to the second instruction, the third application is activated; If it is determined that the startup scene of the third application matches the preset scene, the target transition animation effect is used during the switching from the first application to the third application.

9. The electronic device according to claim 8, characterized in that: When the computer program is executed by the processor, the electronic device further executes: If it is determined that the startup scene of the second application matches the preset scene, the target transition animation effect is used during the switching between any two components in the second application; and / or, If it is determined that the startup scene of the third application matches the preset scene, the target transition animation effect is used during the switching between any two components in the third application.

10. The electronic device of claim 8 or 9, characterized in that When the computer program is executed by the processor, the electronic device further executes: If the startup scene of the first application matches the preset scene, the system default component switching effect and the custom component switching effect corresponding to the first application are turned off; If it is determined that the startup scene of the second application matches the preset scene, the custom component switching effect corresponding to the second application is turned off; If it is determined that the startup scene of the third application matches the preset scene, the custom component switching effect corresponding to the third application is turned off.

11. The electronic device according to any one of claims 8-10, characterized in that When the computer program is executed by the processor, the electronic device further executes: Received a third instruction to exit the second application; According to the third instruction, exit the second application; Restore the system default component switching dynamic effect and the custom component switching dynamic effect corresponding to the second application; Starting the second application; During the switching between any two components in the second application, the system default component switching effect or the custom component corresponding to the second application switching effect is used.

12. The electronic device of claim 11, characterized in that When the computer program is executed by the processor, the electronic device further executes: Launching the fourth application; During the process of switching from the second application to the fourth application, the motion effect is switched using the system default window.

13. The electronic device according to any one of claims 8-12, characterized in that When the computer program is executed by the processor, the electronic device further executes: If the startup scene of the first application does not match the preset scene, in the process of switching between any two components in the first application, the system default component switching animation or the custom component switching animation corresponding to the first application is used; or, If it is determined that the startup scene of the second application does not match the preset scene, the system default component switching effect or the custom component corresponding to the second application switching effect; or, If it is determined that the startup scene of the third application does not match the preset scene, the system default component switching effect or the custom component corresponding to the third application switching effect is used.

14. The electronic device according to any one of claims 8-13, characterized in that When the computer program is executed by the processor, the electronic device further executes: If it is determined that the startup scene of the second application does not match the preset scene, in the process of switching from the first application to the second application, the system default window switching animation is used, and / or, in 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; or, If it is determined that the startup scene of the third application does not match the preset scene, the system default window switching animation is used in the process of switching from the first application to the third application, and / or, in 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.

15. A computer-readable storage medium, characterized in that: The computer readable storage medium comprises a computer program that causes the electronic device to perform the method as claimed in any one of claims 1 to 7 when the computer program is run on an electronic device.

16. A computer program product, characterized in that The computer program product comprises a computer program or instructions that implement the method as claimed in any one of the preceding claims 1 to 7 when executed on a computer.

Citation Information

Patent Citations

  • Smart television and application switching method thereof

    CN105516767A

  • Method for generating transitional field animation, electronic device and computer storage medium

    CN109165345A

  • View transition method, apparatus, computer readable storage medium, and computer device

    CN109542564A

  • Scene switching method and device, terminal and storage medium

    CN110062271A

  • Display method, electronic equipment and storage medium

    CN114518817A