Interface display method and electronic equipment

By displaying dynamic effects between the wallpaper setting interface and the lock screen interface of an electronic device, the problem of abrupt picture changes when switching from the wallpaper setting interface to the lock screen interface is solved, and the user experience is improved.

CN119248391AActive Publication Date: 2025-01-03HONOR DEVICE CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410538333.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-29
Publication Date
2025-01-03
Estimated Expiration
2044-04-29

AI Technical Summary

Technical Problem

When electronic devices switch from the wallpaper setting interface to the lock screen interface, the screen changes are too abrupt, affecting the user experience.

Method used

Smooth the interface switching by displaying dynamic effects between the wallpaper setting interface and the lock screen interface, such as gradually enlarging and fading effects, to avoid screen changes caused by direct switching.

Benefits of technology

It effectively avoids the abrupt changes in the picture of electronic devices, improves the user experience, and makes the interface switching more smooth and natural through dynamic effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248391A_ABST
    Figure CN119248391A_ABST
Patent Text Reader

Abstract

The embodiment of the invention is suitable for the field of image processing, and provides an interface display method and electronic equipment, the interface display method comprises the steps that a first dynamic effect is displayed on a first interface in response to a first operation, the first operation is used for indicating that a display interface of the electronic equipment is switched from the first interface to a second interface, and the first interface comprises a wallpaper setting interface; the second interface comprises a screen locking interface; and when the display interface is switched to the second interface, displaying the second dynamic effect. That is, according to the interface display method provided by the embodiment of the invention, when the user switches from the wallpaper setting interface to the lock screen interface, the first dynamic effect is displayed on the wallpaper setting interface, and the second dynamic effect is displayed on the lock screen interface, so that the situation that the electronic equipment does not pass any dynamic effect is avoided; the situation that the wallpaper setting interface is directly switched to the lock screen interface is avoided, and then the situation that the picture change of the electronic equipment is abrupt is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing, and more specifically, to an interface display method and an electronic device. Background Art

[0002] In some possible scenarios, the user can perform a two-finger pinch (two-finger inward sliding) operation on the lock screen interface to enter the wallpaper setting interface.

[0003] When the user completes the wallpaper setting, the user can return to the lock screen interface by clicking the return control in the wallpaper setting interface. At this time, the electronic device usually directly switches the wallpaper setting interface to the lock screen interface, resulting in an abrupt change in the screen of the electronic device, affecting the user experience.

[0004] Based on this, how to avoid abrupt changes in the screen of electronic devices has become an urgent problem to be solved. Summary of the invention

[0005] The present application provides an interface display method, which can avoid abrupt changes in the screen of an electronic device.

[0006] In a first aspect, a method for displaying an interface is provided, the method comprising:

[0007] In response to a first operation, a first dynamic effect is displayed on the first interface, the first operation is used to instruct to switch the display interface of the electronic device from the first interface to the second interface, the first interface includes a wallpaper setting interface, and the second interface includes a lock screen interface;

[0008] When the display interface is switched to the second interface, a second dynamic effect is displayed.

[0009] The interface display method provided in the embodiment of the present application includes: in response to a first operation, displaying a first dynamic effect on the first interface, the first operation is used to instruct to switch the display interface of the electronic device from the first interface to the second interface, the first interface includes a wallpaper setting interface, and the second interface includes a lock screen interface; when the display interface is switched to the second interface, displaying a second dynamic effect. That is to say, in the interface display method provided in the embodiment of the present application, when the user switches from the wallpaper setting interface to the lock screen interface, by displaying the first dynamic effect on the wallpaper setting interface and the second dynamic effect on the lock screen interface respectively, the situation where the electronic device directly switches from the wallpaper setting interface to the lock screen interface without any dynamic effect is avoided, thereby avoiding the situation where the screen of the electronic device changes abruptly.

[0010] In combination with the first aspect, in certain embodiments of the first aspect, displaying the second dynamic effect when the display interface is switched to the second interface includes: when the display interface is switched to the second interface, displaying the second dynamic effect according to whether the first interface and the second interface are the same.

[0011] Among them, whether the first interface and the second interface are the same may refer to whether the wallpaper displayed on the first interface is the same as the wallpaper displayed on the second interface. If the wallpaper displayed on the first interface is the same as the wallpaper displayed on the second interface, the screen changes slightly when the electronic device switches from the first interface to the second interface; if the wallpaper displayed on the first interface is different from the wallpaper displayed on the second interface, the screen changes significantly when the electronic device switches from the first interface to the second interface.

[0012] The interface display method provided in the embodiment of the present application displays a second dynamic effect according to whether the first interface and the second interface are the same when the display interface is switched from a first interface to a second interface. In this way, the electronic device can flexibly and adaptively perform the second dynamic effect on the second interface according to whether the screen change of the electronic device is large, thereby improving the flexibility of displaying the second interface.

[0013] In combination with the first aspect, in certain embodiments of the first aspect, when the display interface is switched to the second interface, a second dynamic effect is displayed based on whether the first interface and the second interface are the same, including: if the first interface includes a first foreground area, a first component, a second component and a first background area, and the second interface includes a first foreground area, a first component, a third component and a first background area, the third component in the second interface is displayed through the second dynamic effect.

[0014] Among them, the first interface includes a first foreground area, a first component, a second component and a first background area, and the second interface includes a first foreground area, a first component, a third component and a first background area. From the above description, it can be seen that whether the first interface and the second interface are the same can refer to whether the wallpaper displayed on the first interface and the wallpaper displayed on the second interface are the same, and the wallpaper usually includes a foreground area and a background area. When the first interface includes the first foreground area and the first background area, and the second interface includes the first foreground area and the first background area, the wallpaper of the first interface and the wallpaper of the second interface are the same wallpaper, that is, the wallpaper including the first foreground area and the first background area.

[0015] In this way, when the first interface and the second interface are the same, the first interface also includes the first component and the second component, and the second interface also includes the first component and the third component. That is to say, the second interface includes the first component existing on the first interface, and there is a third component that is not on the first interface. In this case, when the second interface is displayed, only the third component is displayed through the second dynamic effect, that is, the third component that does not exist on the first interface, and the first component is not displayed through the second dynamic effect, that is, the first component that exists on the first interface. This can avoid the conflict between displaying the first component through the second dynamic effect on the second interface and displaying the first component through the first dynamic effect on the first interface, that is, avoiding the situation where the electronic device display screen displays different dynamic effects for the same component in a short period of time, thereby avoiding the screen flickering of the electronic device when switching interfaces.

[0016] In combination with the first aspect, in certain embodiments of the first aspect, the above-mentioned displaying the second interface by executing the second dynamic effect based on whether the first interface and the second interface are the same includes: if the first interface includes a first foreground area, a first component and a first background area, and the second interface includes a second foreground area, a third component and a second background area, displaying the second foreground area, the third component and the second background area in the second interface by using the second dynamic effect.

[0017] Among them, the first interface includes a first foreground area, a first component and a first background area, and the second interface includes a second foreground area, a third component and a second background area. From the above description, it can be seen that whether the first interface and the second interface are the same can refer to whether the wallpaper displayed on the first interface and the wallpaper displayed on the second interface are the same, and the wallpaper usually includes a foreground area and a background area. When the first interface includes the first foreground area and the first background area, and the second interface includes the second foreground area and the second background area, the wallpaper of the first interface and the wallpaper of the second interface are different wallpapers, that is, the first interface and the second interface are different. The first interface also includes a first component, and the second interface also includes a third component, which is equivalent to the component on the second interface is not a component on the first interface. In this case, when the second interface is displayed, the second foreground area, the third component and the second background area in the second interface are displayed through the second dynamic effect, which is equivalent to displaying wallpapers and components different from the first interface on the second interface through the second dynamic effect, so that in the process of switching from the first interface to the second interface, it is possible to avoid the situation where the display interface directly switches from the wallpaper setting interface to the lock screen interface, thereby avoiding the situation where the screen of the electronic device changes abruptly.

[0018] In combination with the first aspect, in certain embodiments of the first aspect, displaying the second dynamic effect when switching the display interface to the second interface includes: displaying the second interface through the second dynamic effect after the first dynamic effect is displayed on the first interface.

[0019] In combination with the first aspect, in some embodiments of the first aspect, the electronic device includes a first application and a second application, the first interface is a display interface of the first application, and the second interface is a display interface of the second application.

[0020] In combination with the first aspect, in some embodiments of the first aspect, the first application is a gallery application, and the second application is a lock screen application.

[0021] In combination with the first aspect, in certain embodiments of the first aspect, the first application is also used to send a first message to the second application after the first dynamic effect is displayed on the first interface, and the first message is used to indicate that the second dynamic effect is displayed on the second interface.

[0022] It should be noted that the first message may be sent by the first application through the calling interface provided by the second application to the first application.

[0023] In a possible case, the first application is a gallery application, and the second application is a lock screen application. The interface module may be an interface provided by the lock screen application to the gallery application, and is used to provide a calling interface to the gallery application, so that the gallery application can call the lock screen application to lock the screen. At the same time, the gallery application can also synchronize the updated lock screen wallpaper to the lock screen application through the calling interface after the user completes the lock screen wallpaper setting.

[0024] In combination with the first aspect, in some embodiments of the first aspect, the first message is further used to indicate the execution of a lock screen operation, and the second application is further used to execute the lock screen operation in response to the first message.

[0025] Among them, the first message can indicate a lock screen animation instruction.

[0026] In combination with the first aspect, in some embodiments of the first aspect, the first dynamic effect refers to a gradually enlarging dynamic effect, and the second dynamic effect refers to a fading-in dynamic effect.

[0027] The first dynamic effect may refer to a gradually increasing dynamic effect, such as Figure 7 (a) to Figure 7 As shown in (c) in Figure 7 (a) to Figure 7 The first dynamic element showing the gradually increasing dynamic effect in (c) includes a time component, a foreground (portrait) of the preview image, and a background of the preview image.

[0028] The second dynamic effect may refer to Fig. 9 (a) to Fig. 9 The dynamic effect of fading in is shown in (c). Fig. 9 (a) to Fig. 9 The elements showing the fading-in dynamic effect in (c) include a time component, a foreground (portrait) of the wallpaper image, a background of the wallpaper image, a notification bar component, and a camera shortcut key component.

[0029] In combination with the first aspect, in certain embodiments of the first aspect, the above method also includes: at a first moment, in response to a second operation, displaying a third interface through a third dynamic effect, the second operation is used to instruct the electronic device to turn off the screen, and the third interface is a screen off display interface.

[0030] In combination with the first aspect, in certain embodiments of the first aspect, the above method also includes: if the second moment is within the time period when the first dynamic effect is displayed on the first interface, canceling the lock screen operation, stopping switching from the first interface to the second interface, and displaying the third interface through the third dynamic effect, the second moment is the moment when the screen display is completed.

[0031] It is understandable that the process of the electronic device entering the screen-off display state can also be achieved by presenting a dynamic effect (such as the third dynamic effect) on the screen-off display interface. In this case, if the electronic device has not yet finished presenting the first dynamic effect on the wallpaper setting interface, or has not yet finished presenting the second dynamic effect on the lock screen interface, there may be a conflict between the first dynamic effect and the third dynamic effect, or between the second dynamic effect and the third dynamic effect.

[0032] When the electronic device executes the finishedGoingToSleep function, the execution of entering the off-screen display state is completed. It can be determined whether the electronic device has finished executing the off-screen display according to whether the electronic device executes the finishedGoingToSleep function.

[0033] In combination with the first aspect, in certain embodiments of the first aspect, if the first moment is after the first interface is displayed through the first dynamic effect and before the second interface is displayed through the second dynamic effect, the above-mentioned display of the third interface by executing the third dynamic effect includes: canceling the display of the second interface through the second dynamic effect, and displaying the third interface through the third dynamic effect.

[0034] Among them, when the electronic device calls the OnStartGoingToSleep function, it is the moment when the electronic device starts the screen-off operation, which is also the first moment.

[0035] If the OnStartGoingToSleep function is called at the start time T11 of the screen-off operation, after the first dynamic effect is displayed on the wallpaper device interface and before the second dynamic effect is displayed on the lock screen interface, the electronic device can set isLockedFromGallery to Fales, so that the lock screen operation called by the gallery application can be skipped and the screen-off display state can be directly entered. In this way, the second dynamic effect displayed on the lock screen interface will no longer be displayed.

[0036] In combination with the first aspect, in certain embodiments of the first aspect, if at the first moment the second interface is displayed through the second dynamic effect, the above-mentioned display of the third interface through the third dynamic effect includes: stopping displaying the second interface through the second dynamic effect, and displaying the third interface through the third dynamic effect.

[0037] If the moment when the OnStartGoingToSleep function is called is the time when the second dynamic effect begins to be presented on the lock screen interface at the starting time T11 of the screen-off operation and before the electronic device enters the screen-off display interface, the electronic device can execute animatorSet.cancel in OnStartGoingToSleep, thereby interrupting the execution of the second dynamic effect, and then enter the screen-off display interface to present the third dynamic effect.

[0038] In combination with the first aspect, in certain embodiments of the first aspect, if at the first moment the second interface is displayed through the second dynamic effect, the above-mentioned display of the third interface through the third dynamic effect includes: after displaying the second interface through the second dynamic effect, displaying the third interface through the third dynamic effect.

[0039] If the moment when the OnStartGoingToSleep function is called, that is, the starting moment T11 of the screen-off operation is the period after the second dynamic effect is presented on the lock screen interface, the electronic device has completed the rendering of the second dynamic effect. Then, after the second dynamic effect is presented on the lock screen interface, the third dynamic effect can be presented on the screen-off display interface.

[0040] In a second aspect, an interface display device is provided, comprising a unit for executing any one of the methods in the first aspect. The device may be a server, a terminal device, or a chip in a terminal device. The device may include an input unit and a processing unit.

[0041] When the device is a terminal device, the processing unit may be a processor, and the input unit may be a communication interface; the terminal device may also include a memory, which is used to store computer program code. When the processor executes the computer program code stored in the memory, the terminal device executes any one of the methods in the first aspect.

[0042] When the device is a chip in a terminal device, the processing unit may be a processing unit inside the chip, and the input unit may be an output interface, a pin or a circuit, etc.; the chip may also include a memory, which may be a memory inside the chip (for example, a register, a cache, etc.) or a memory located outside the chip (for example, a read-only memory, a random access memory, etc.); the memory is used to store computer program code, and when the processor executes the computer program code stored in the memory, the chip executes any one of the methods in the first aspect.

[0043] In one possible implementation, a memory is used to store computer program code; a processor executes the computer program code stored in the memory, and when the computer program code stored in the memory is executed, the processor is used to perform: in response to a first operation, displaying a first dynamic effect on a first interface, the first operation is used to indicate switching the display interface of the electronic device from a first interface to a second interface, the first interface includes a wallpaper setting interface, and the second interface includes a lock screen interface; when the display interface is switched to the second interface, displaying a second dynamic effect.

[0044] In a third aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program code. When the computer program code is executed by an interface display device, the interface display device executes any one of the interface display methods in the first aspect.

[0045] In a fourth aspect, a computer program product is provided, the computer program product comprising: a computer program code, when the computer program code is executed by an interface display device, the interface display device executes any one of the device methods in the first aspect.

[0046] The interface display method provided in the embodiment of the present application includes displaying a first dynamic effect on the first interface in response to a first operation, the first operation is used to instruct to switch the display interface of the electronic device from the first interface to the second interface, the first interface includes a wallpaper setting interface, and the second interface includes a lock screen interface; when the display interface is switched to the second interface, the second dynamic effect is displayed. That is to say, in the interface display method provided in the embodiment of the present application, when the user switches from the wallpaper setting interface to the lock screen interface, by displaying the first dynamic effect on the wallpaper setting interface and the second dynamic effect on the lock screen interface respectively, the situation where the electronic device directly switches from the wallpaper setting interface to the lock screen interface without any dynamic effect is avoided, thereby avoiding the situation where the screen of the electronic device changes abruptly. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 It is a schematic diagram of the foreground and background areas in an image;

[0048] Figure 2 It is a schematic diagram showing the widgets in the interface;

[0049] Figure 3 is a schematic diagram of two display states of a lock screen component in a display interface;

[0050] Figure 4 It is a schematic diagram of an interface for switching display interfaces.

[0051] Figure 5 is a schematic diagram of a hardware system of an electronic device applicable to the present application;

[0052] Figure 6 is a schematic diagram of a software system for an electronic device applicable to the present application;

[0053] Figure 7 It is an interface schematic diagram of an interface display method provided in an embodiment of the present application;

[0054] Figure 8 It is an interface schematic diagram of another interface display method provided in an embodiment of the present application;

[0055] Fig. 9 It is an interface schematic diagram of another interface display method provided in an embodiment of the present application;

[0056] Fig.10 It is a flowchart of an interface display method provided in an embodiment of the present application;

[0057] Fig.11 It is the time relationship between the various steps of the execution interface display method provided in the embodiment of the present application;

[0058] Fig.12It is a flowchart of another interface display method provided in an embodiment of the present application;

[0059] Fig.13 It is a flowchart of another interface display method provided in an embodiment of the present application;

[0060] Fig.14 It is a flowchart of another interface display method provided in an embodiment of the present application;

[0061] Fig.15 It is a flowchart of another interface display method provided in an embodiment of the present application;

[0062] Fig.16 It is a flowchart of another interface display method provided in an embodiment of the present application;

[0063] Fig.17 is a schematic diagram of an interface display device provided by the present application;

[0064] Fig.18 It is a schematic diagram of an electronic device with an interface display provided by the present application. DETAILED DESCRIPTION

[0065] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0066] In the following, the terms "first", "second", and "third" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", and "third" may explicitly or implicitly include one or more of the features.

[0067] To facilitate understanding, some of the examples given are provided for reference to the description of concepts related to the embodiments of the present application.

[0068] 1. Foreground and background

[0069] The images displayed in electronic devices usually include foreground and background. The foreground usually refers to the objects in the front of the image, such as portraits, objects or animals. The background usually refers to the area behind the image, such as the sky, grass or a background image drawn by the user.

[0070] For example, Figure 1 As shown, the image displayed by the electronic device includes a portrait 1001 and a background area 1002, wherein the background area 1002 is represented by lines. The background area 1002 can be a large area of ​​the same color, such as the sky, grass, etc.; or it can be an area composed of different colors, for example, a background area formed by alternating red lines and yellow lines. This embodiment of the application is not limited to this.

[0071] 2. Widgets

[0072] In some scenarios, the image displayed by the electronic device also includes small components. Figure 2 As shown, the lock screen image will usually display a notification bar component 1A, a time component 1B, and a lock screen component 1C. The notification bar component 1A is used to display notification messages; the time component 1B can be used to display time information, including date and time; the lock screen component 1C can be used to indicate whether the current electronic device is in a lock screen state. Since electronic devices have a lock screen state and an unlock state, the display state of the corresponding lock screen component 1C can also include a lock screen state and an unlock state, that is, the lock screen component 1C can include two display states, indicating that the electronic device is in a lock screen state and an unlock state respectively.

[0073] For example, if the lock screen component 1C is Figure 3 As shown in (a) in FIG. 1 , the electronic device is in a locked screen state; if the lock screen component 1C is Figure 3 As shown in (b), the electronic device is in unlocked state.

[0074] Since the displayed image can be divided into a foreground, a background, and a widget, when rendering the image, the foreground, the background, and the widget can be rendered separately. In some possible cases, a portion of the foreground, the background, and the widget can also be selectively rendered. For example, the electronic device can only render the foreground and the widget, and not the background.

[0075] In one possible case, the electronic device is in a locked screen state and displays a lock screen interface 10A, such as Figure 4 As shown in (a) in FIG. 1 , the user pinches inward with two fingers on the lock screen interface 10A (equivalent to sliding inward with two fingers), as shown in FIG. Figure 4 In response to the user's two-finger inward pinching operation, the electronic device displays the wallpaper setting interface 10B, as shown in (b) in FIG. Figure 4As shown in (c) in the figure. The user can make settings in the wallpaper setting interface 10B. For example, the user can change the foreground portrait in the wallpaper setting interface 10B; or change the background image; or change the color, text style, etc. of the time component; this embodiment of the application does not limit this. After the user completes the wallpaper setting, he can click the "Apply" control 10B1 on the wallpaper setting interface 10B, as shown in the figure. Figure 4 Alternatively, after the user completes the wallpaper setting, the user can click the return control 10B2 on the wallpaper setting interface 10B, as shown in (d) in FIG. Figure 4 In response to the user clicking the "Apply" control 10B1, or in response to the user clicking the return control 10B2, a new lock screen interface 10C is displayed, as shown in (e) in FIG. Figure 4 As shown in (f) in .

[0076] However, directly switching from the wallpaper setting interface 10B to the new lock screen interface 10C causes an abrupt change in the display interface, resulting in a poor user experience.

[0077] In view of this, an interface display method provided in an embodiment of the present application includes displaying a first dynamic effect on a first interface in response to a first operation, the first operation is used to instruct to switch the display interface of the electronic device from the first interface to the second interface, the first interface includes a wallpaper setting interface, and the second interface includes a lock screen interface; when the display interface is switched to the second interface, the second dynamic effect is displayed. That is to say, in the interface display method provided in an embodiment of the present application, when the user switches from the wallpaper setting interface to the lock screen interface, by displaying the first dynamic effect on the wallpaper setting interface and the second dynamic effect on the lock screen interface respectively, the situation where the electronic device directly switches from the wallpaper setting interface to the lock screen interface without any dynamic effect is avoided, thereby avoiding the situation where the screen of the electronic device changes abruptly.

[0078] The interface display method provided in the embodiment of the present application can be applied to electronic devices. Optionally, the electronic device includes a terminal device, which can also be called a terminal, a user equipment (UE), a mobile station (MS), a mobile terminal (MT), etc. The terminal device can be a mobile phone, a smart TV, a wearable device, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc. The embodiment of the present application does not limit the specific technology and specific device form adopted by the terminal device.

[0079] For example, Figure 5 1 shows a schematic diagram of the structure of the electronic device 100. 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. The sensor module 180 may include 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.

[0080] It is to be understood that the structure illustrated in the embodiment of the present application does 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 shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

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

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

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

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

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

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

[0087] 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), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

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

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

[0090] It should be noted that any electronic device mentioned in the embodiments of the present application may include more or fewer modules in the electronic device 100.

[0091] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.

[0092] Figure 6 It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.

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

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

[0095] like Figure 6 As shown, the application package may include lock screen, camera, gallery, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

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

[0097] like Figure 6 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, a life cycle manager (ActivityTaskManagerService, ATMS), and the like.

[0098] Among them, the life cycle manager ATMS can be used to manage the life cycle of each interface component in the Android system. For example, ATMS can manage the life cycle of the wallpaper editing interface in the gallery application.

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

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

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

[0102] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0103] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, sensor driver, Wi-Fi driver, etc.

[0104] It should be noted that the electronic device mentioned in the embodiments of the present application may include more or fewer modules in the above-mentioned electronic device.

[0105] The application scenarios provided by the embodiments of the present application and the different interfaces involved in the embodiments of the present application are described below in conjunction with the accompanying drawings.

[0106] The interface display method provided in the embodiment of the present application can be applied in the process of entering the wallpaper setting interface from the lock screen interface by pinching two fingers, and returning to the lock screen interface from the wallpaper setting interface. Figure 4 (a) to Figure 4 As shown in (f) in FIG. 10A, the user pinches with two fingers on the lock screen interface 10A to enter the Figure 4The wallpaper setting interface 10B shown in (c) in FIG. Then the user can set the foreground, background or component properties of the wallpaper in the wallpaper setting interface 10B. After the user completes the wallpaper setting, the user can click the return control 10B2 or the "Apply" control 10B1 to switch the display interface from the wallpaper setting interface 10B to the lock screen interface 10C. In the process of switching the display interface from the wallpaper setting interface 10B to the lock screen interface 10C, the lock screen wallpaper preview area displayed in the wallpaper device interface 10B can be gradually converted into a lock screen wallpaper image displayed on the lock screen interface 10C through a gradually enlarged dynamic effect. After switching to the lock screen interface 10C, some small components, such as time components, notification bar components, etc., can also be displayed on the lock screen wallpaper image through a fade-in dynamic effect.

[0107] For example, Figure 7 As shown in (a) in the figure, the user clicks the return control 10B2 in the wallpaper setting interface 10B. In response to the user clicking the return control 10B2, the electronic device switches the wallpaper setting interface 10B to the lock screen interface 10C through a gradually enlarged dynamic effect. The gradually enlarged dynamic effect may refer to gradually increasing the size of the lock screen wallpaper preview area 10B3 in the wallpaper setting interface 10B according to a preset time step until the size of the lock screen wallpaper preview area 10B3 is the same as the display screen size. For example, Figure 7 The lock screen wallpaper preview area 10B4 shown in (b) is Figure 7 In other words, the lock screen wallpaper preview area 10B4 is obtained by enlarging the lock screen wallpaper preview area 10B3, so the size of the lock screen wallpaper preview area 10B4 is larger than the size of the lock screen wallpaper preview area 10B3. The size of the lock screen wallpaper preview area 10B3 can be gradually increased according to the preset time length until the display screen size is the same, such as Figure 7 It should be noted that the lock screen wallpaper preview area 10B3 usually also displays some widgets, such as Figure 7 The size of these widgets will also increase as the size of the lock screen wallpaper preview area 10B3 increases, so that the lock screen wallpaper preview area 10B3 as a whole presents a dynamic effect of gradually enlarging. Figure 7 In (b), the size of the time component 10B6 is larger than the size of the time component 10B5. When the size of the lock screen wallpaper preview area 10B3 increases to the size of the display screen, the time component 10B6 will no longer be displayed. Figure 7 As shown in (c) in .

[0108] After the wallpaper setting interface 10B switches to the lock screen interface 10C, the lock screen interface 10C starts to display widgets through a dynamic fade-in effect. It should be noted that the lock screen image in the lock screen interface 10C can be the same image as the wallpaper image in the wallpaper setting interface 10B, or it can be a different image, and the embodiment of the present application does not limit this.

[0109] The following description is made by taking the lock screen wallpaper image in the lock screen interface 10C as the same as the wallpaper image in the wallpaper setting interface 10B. After the wallpaper setting interface 10B switches to the lock screen interface 10C, the lock screen interface 10C begins to display widgets through a fading-in dynamic effect, such as the time widget 10C2, the notification bar widget 10C3, and the camera shortcut key widget 10C4. Figure 7 At this time, the transparency of the time component 10C2, the notification bar component 10C3 and the camera shortcut key component 10C4 is relatively high. The transparency of these small components decreases with time until the transparency is 0 and is displayed on the lock screen interface 10C, as shown in FIG. Figure 7 As shown in (e) in FIG. 10A , the dynamic effect of the widget fading into the lock screen interface 10C can be achieved.

[0110] In some possible cases, the electronic device can set the foreground to be displayed before the widget to highlight the foreground image. Figure 8 As shown in (a) of FIG. 1 , the foreground portrait 10C5 is before the time component 10C6. In this case, the portrait 10B31 in the lock screen wallpaper preview area 10B3 in the wallpaper setting interface 10B is also above the time component 10B5, as shown in FIG. Figure 8 As shown in (b) in the figure. As the lock screen wallpaper preview area 10B3 gradually increases, the time component 10B5 also increases and remains displayed after the portrait 10B31 until the size of the lock screen wallpaper preview area 10B3 increases to the size of the display screen and the lock screen interface 10C is displayed. At this time, the time component 10B5 usually disappears, and the time component 10C2 begins to be displayed on the lock screen interface 10C through a fading-in dynamic effect, as shown in FIG. Figure 8 In this case, since the dynamic effect of fading in is achieved by adjusting the transparency of each component, the transparency of the time component 10C2 decreases with time, and the positional relationship between the time component 10C2 and the foreground portrait 10C5 is not adjusted. Therefore, the time component 10C2 may be displayed before the foreground portrait 10C5, as shown in FIG. Figure 8 When the fade-in dynamic effect is displayed, the electronic device adjusts the time component 10C2 to display after the foreground portrait 10C5, as shown in (d). Figure 8 As shown in (a) in FIG. 1 , the time component 10C2 may flash on the foreground portrait 10C5 on the lock screen interface 10C.

[0111] In this case, before the electronic device performs the fade-in dynamic effect on the lock screen interface 10C, it can first determine the small components that are the same as those in the wallpaper device interface 10B, and not perform the fade-in dynamic effect for these same small components to avoid these same small components flashing on the foreground portrait 10C5.

[0112] For example, Fig. 9 The wallpaper device interface 10B shown in (a) of FIG. Fig. 9 The lock screen interface 10C is shown in (b) in FIG. Among them, the wallpaper device interface 10B displays a time component 10B5, but there is no notification bar component and camera shortcut key component; the lock screen interface 10C displays a time component 10C2, a notification bar component 10C3 and a camera shortcut key component 10C4. The time component 10B5 and the time component 10C2 are the same widgets. In this case, when the electronic device performs a fade-in dynamic effect on the lock screen interface 10C, it can only perform a fade-in dynamic effect on the notification bar component 10C3 and the camera shortcut key component 10C4, while the time component 10C2 does not perform any dynamic effect. For example, Fig. 9 As shown in (c), the transparency of the time component 10C2 is 0, and it is displayed after the foreground portrait 10C5, without a dynamic effect of fading in; while the transparency of the notification bar component 10C3 and the camera shortcut key component 10C4 is relatively high, and decreases with the increase of time, which is equivalent to the dynamic effect of fading in of the notification bar component 10C3 and the camera shortcut key component 10C4. In this way, the time component 10C2 will not appear to flicker on the foreground portrait 10C5.

[0113] The above is an introduction to the application scenario of the interface display method provided in the embodiment of the present application. It should be noted that the application scenario of the above interface display method is only an example, and the application scenario of the interface display method provided in the embodiment of the present application is not limited to the above. Figures 7 to 9 The application scenario shown.

[0114] In one possible case, the interface display method provided in the embodiment of the present application can also be applied in the process of directly entering the setting interface of the time component from the lock screen interface and returning to the lock screen interface from the setting interface of the time component. When the user completes the setting of the clock component and returns to the lock screen interface, the first dynamic effect (such as a gradually increasing dynamic effect) can be applied to the setting interface of the time component, and then the second dynamic effect (such as a fade-in dynamic effect) can be applied to the lock screen interface. Furthermore, when the second dynamic effect is applied to the lock screen interface, the second dynamic effect can be applied only to the widgets that are different from those in the setting interface of the clock component, and the second dynamic effect cannot be applied to the widgets that are the same as those in the setting interface of the clock component.

[0115] Below through Figures 10 to 14 The detailed process of how the electronic device implements the above interface display method is described.

[0116] Fig.10 A flow chart of the interface display method provided in the embodiment of the present application is shown as follows: Fig.10 As shown, the method includes:

[0117] S101. A gallery application receives a first operation, where the first operation is an operation of instructing to return from a wallpaper setting interface to a lock screen interface.

[0118] It is understandable that the setting of the lock screen wallpaper is usually performed through the gallery application. The user's modification of the lock screen wallpaper can be directly saved through the gallery application. Therefore, the first operation performed by the user after completing the setting of the lock screen wallpaper is usually received by the gallery application.

[0119] For example, the first operation may refer to Figure 4 The operation of clicking the "Apply" control 10B1 on the wallpaper setting interface 10B as shown in (d) may also refer to Figure 4 The operation of clicking the return control 10B2 on the wallpaper setting interface 10B shown in (e) may also be other operations indicating returning from the wallpaper setting interface 10B to the lock screen interface 10C, for example, the operation of returning from the wallpaper setting interface 10B to the lock screen interface 10C through a voice control instruction, or the operation of returning from the wallpaper setting interface 10B to the lock screen interface 10C using a shortcut key, which is not limited in this embodiment of the present application.

[0120] It is understandable that the first operation indicates returning from the wallpaper setting interface to the lock screen interface, which means that the first operation refers to the operation triggered after the user completes the wallpaper setting. At this point, the user has completed the modification and setting of the lock screen wallpaper. Among them, the image can generally be divided into a foreground area and a background area. The modification of the lock screen wallpaper may include keeping the background of the lock screen wallpaper unchanged and changing the foreground; keeping the foreground of the lock screen wallpaper unchanged and changing the background; and changing the lock screen wallpaper; the embodiments of the present application do not limit this.

[0121] S102: In response to the first operation, the gallery application saves a lock screen wallpaper image and loads the lock screen wallpaper image.

[0122] It can be understood that the first operation refers to the operation triggered after the user completes the wallpaper setting. The lock screen wallpaper image may be a modified image. Therefore, the gallery needs to save the lock screen wallpaper image first, and then load the lock screen wallpaper image, so as to subsequently make dynamic effects on the updated lock screen wallpaper image.

[0123] S103: The gallery application configures resources for executing dynamic effects on the wallpaper setting interface.

[0124] The wallpaper setting interface includes a lock screen wallpaper preview area 10B3. The image displayed in the lock screen wallpaper preview area 10B3 is highly similar to the lock screen interface 10C. Therefore, in order to avoid the abrupt change of the screen from the wallpaper device interface 10B to the lock screen interface 10C, the lock screen wallpaper preview area 10B3 can be made to gradually increase the dynamic effect so that the wallpaper device interface 10B switches to the lock screen interface 10C. It should be noted that the wallpaper setting interface not only displays the lock screen wallpaper image, but also displays widgets. Figure 8 As shown in (b), the lock screen wallpaper preview area 10B3 includes not only the lock screen wallpaper image but also the time component 10B5. Therefore, the dynamic effect of the lock screen wallpaper preview area 10B3 is not only applied to the lock screen wallpaper image, but also to the time component 10B5. That is, the dynamic effect of gradually increasing the size of the wallpaper preview area 10B3 includes the dynamic effect of gradually increasing the size of the lock screen wallpaper image and the dynamic effect of gradually increasing the size of the time component 10B5 on the wallpaper setting interface 10B.

[0125] Among them, the resources for dynamic effects in the lock screen wallpaper preview area may refer to the resources required for performing image synthesis, image rendering and other operations on the lock screen wallpaper in the lock screen wallpaper preview area, and the resources required for performing image synthesis, image rendering and other operations on the widgets in the lock screen wallpaper preview area, so that the lock screen wallpaper preview area can present the corresponding dynamic effects as a whole. For example, the gallery application configures the resources required to execute the dynamic effects for the lock screen wallpaper image, and performs a gradually enlarging dynamic effect on the lock screen wallpaper image; the gallery application configures the resources required to execute the dynamic effects for the widget, and performs a gradually enlarging dynamic effect on the widget.

[0126] S104: The gallery application sends a wallpaper setting instruction to the lock screen application.

[0127] The wallpaper setting instruction is used to instruct the lock screen application to use the wallpaper image saved in response to the first operation as the wallpaper image displayed on the lock screen interface. After the gallery application sends the wallpaper setting instruction to the lock screen application, the lock screen application can start the wallpaper setting process and use the wallpaper image saved in response to the first operation in the gallery application as the wallpaper image displayed on the lock screen interface.

[0128] S105. The lock screen application starts a wallpaper setting process in response to the wallpaper setting instruction.

[0129] S106: The lock screen application provides a calling interface to the gallery application.

[0130] The lock screen application may provide a calling interface to the gallery application, so that after the first operation, the gallery application can set the wallpaper image saved in response to the first operation as the lock screen wallpaper by calling the resources of the lock screen application.

[0131] S107, the gallery application creates a gradually increasing dynamic effect.

[0132] It is understandable that it usually takes a while for the gallery application to perform a dynamic effect of gradually enlarging the lock screen wallpaper preview area in the wallpaper setting interface. For example, the gallery application completes the dynamic effect of gradually enlarging the lock screen wallpaper preview area in 350ms. After the dynamic effect of gradually enlarging the lock screen wallpaper preview area ends, the gallery application can call the lock screen application to execute a corresponding dynamic effect, such as a fade-in dynamic effect, by calling an interface.

[0133] S108. The gallery application sends a lock screen dynamic effect instruction to the lock screen application.

[0134] Among them, the lock screen dynamic effect instruction is used to instruct the lock screen application to perform a lock screen dynamic effect on the lock screen interface, such as a fade-in dynamic effect.

[0135] S109. The lock screen application performs a dynamic fade-in effect on the lock screen interface.

[0136] Among them, the fading-in dynamic effect may refer to the transparency of the widget on the lock screen interface changing from high to low with time until the transparency is 0, presenting a dynamic effect of the widget gradually being displayed on the lock screen interface.

[0137] S110. The lock screen application sets a parameter indicating the lock screen state to a first value, where the first value indicates that the electronic device is in a locked screen state.

[0138] It is understandable that it usually takes a while for the gallery application to perform a dynamic fade-in effect on the lock screen interface. After the lock screen application completes the dynamic fade-in effect on the lock screen interface, the lock screen application can set a parameter indicating the lock screen state so that other modules in the electronic device are set to the first value, that is, indicating that the electronic device is in a locked screen state.

[0139] Exemplarily, the parameter indicating the lock screen state may refer to the setLockScreenShow function, and the first value may refer to setting the value of the setLockScreenShow function to true. When the value of the setLockScreenShow function is set to true, it indicates that the electronic device is in the lock screen state.

[0140] S111. The gallery application destroys resources for the wallpaper setting interface.

[0141] Among them, after the gallery application completes the execution of the resources for the dynamic effects of the wallpaper setting interface, the gallery application does not immediately destroy the resources for the dynamic effects of the wallpaper setting interface, but destroys the resources for the wallpaper setting interface after the lock screen application sets the value of the setLockScreenShow function to true.

[0142] In this way, the electronic device can achieve a dynamic effect of gradually enlarging the lock screen wallpaper preview area in the wallpaper setting interface, and then transition to a dynamic effect of fading in on the lock screen interface. Figure 7 (a) to Figure 7 The dynamic effect shown in (e) in the figure achieves a smooth transition from the wallpaper setting interface to the lock screen interface through two dynamic effects, avoiding the abrupt change of the screen from the wallpaper setting interface to the lock screen interface.

[0143] It should be noted that, in the process of executing the above steps S101 to S111, the time relationship between the various steps is as follows: Fig.11 shown.

[0144] like Fig.11 As shown, at time T0, the gallery application receives the user's operation of returning to the lock screen interface, that is, executes S101.

[0145] At time T0, the gallery application starts to save the wallpaper image changed by the user, and completes saving of the wallpaper image at time T1, ie, executing S102.

[0146] From time T1 to time T2, the gallery application configures resources for executing dynamic effects for the wallpaper setting interface, that is, executes S103.

[0147] At time T1, the gallery application sends a wallpaper setting instruction to the lock screen application, ie, executes S104.

[0148] From time T1 to time T3, the lock screen application starts the wallpaper setting process in response to the wallpaper setting amount, that is, executes S105.

[0149] From time T3 to time T4, the lock screen application provides a calling interface to the gallery application, so that the gallery application can call the resources of the lock screen application based on the calling interface, that is, executing S106.

[0150] From time T4 to time T5, the gallery application starts to execute resources that gradually increase the dynamic effect, so that the wallpaper setting interface appears as follows Figure 7 (a) to Figure 7 The gradually enlarging dynamic effect shown in (c) is the execution of S107.

[0151] From time T5 to time T6, the gallery application starts to send a lock screen dynamic effect instruction to the lock screen application through the calling interface to call the lock screen application's resources, that is, to execute S108. From time T6 to time T7, the lock screen application can execute the fade-in dynamic effect resources based on the lock screen dynamic effect instruction, thereby making the lock screen interface appear as follows: Figure 8 (a) to Figure 8 The dynamic effect of fading in shown in (d) is the execution of S109.

[0152] It is understandable that after the fade-in dynamic effect is presented on the lock screen interface, the lock screen application can also modify the system parameters indicating the lock screen state of the electronic device. The lock screen application can modify the system parameters after the fade-in dynamic effect is presented. For example, Fig.11 As shown, from time T7 to time T8, the lock screen application modifies the system parameters indicating the lock screen state of the electronic device, that is, executes S110.

[0153] Then, from time T8 to time T9, the gallery application destroys the resources of the wallpaper setting interface, that is, executes S111.

[0154] It should be noted that the time relationship between the various steps in the process of executing the above steps S101 to S111 is only an example.

[0155] When implementing the above-mentioned dynamic effects from the wallpaper setting interface to the lock screen interface, the lock screen application can use the interface module (GalleryCallKeyguardLockedService), the core class module (KeyguardViewMediator) and the lock screen control class module (MagicLockscreenController) to implement related functions. Among them, the interface module can be an interface provided by the lock screen application to the gallery application, which is used to provide a calling interface to the gallery application so that the gallery application can call the lock screen application to lock the screen. At the same time, the gallery application can also synchronize the updated lock screen wallpaper to the lock screen application through the calling interface after the user completes the lock screen wallpaper setting. The core class module is used to handle interactive tasks on the lock screen interface, lock screen status management, security verification and interaction with the system. The lock screen control class module is used to handle lock screen related services. For example, when the gallery application calls the lock screen resource by calling the interface, it obtains the updated lock screen wallpaper, modifies the lock screen status, implements dynamic effects on the lock screen interface, and synchronizes the lock screen status to the AMS framework. The following is through Fig.12 Let me explain in detail.

[0156] S201. The interface module provides a calling interface LockKeyguard to the gallery application.

[0157] S202: The interface module calls the system to lock the screen.

[0158] The interface module can call the system to lock the screen through the DoKeyguardLocked function. The interface module can call the system to lock the screen through the core class module.

[0159] S203, the core class module controls the rendering process of the lock screen interface, monitors whether the lock screen interface is displayed on the screen, and performs security checks and status updates on the lock screen.

[0160] The core class module can monitor the rendering process of the lock screen interface through the showLocked function, monitor whether the lock screen interface is displayed on the screen, and perform security checks and status updates. When an electronic device is in a locked state, unauthorized users are generally not allowed to operate the electronic device, but emergency calls can be made. In this case, the security check of the electronic device can refer to verifying the identity of the user to prevent unauthorized users from illegally operating the electronic device.

[0161] S204. The core class module calls the lock screen control class module.

[0162] The core class module can call the lock screen control class module through the handleshow function.

[0163] S205. The lock screen control module initializes the parameters in the function for executing dynamic effects.

[0164] The lock screen control class module can initialize the parameters in the function that executes dynamic effects through the doAlphaAnimationWhenLockedFromGallery function.

[0165] S206. The lock screen control module starts the function corresponding to the dynamic effect to be executed, and monitors the process of executing the dynamic effect.

[0166] It is understandable that dynamic effects usually take some time to display. Therefore, the lock screen control module can monitor the execution status of the dynamic effect through doAlphaAnimation, including whether the dynamic effect is executed, whether the dynamic effect is wrong, etc.

[0167] S207. When the lock screen control module finishes executing the dynamic effect, it sends a message that the lock screen wallpaper is successfully set to the gallery application.

[0168] The lock screen control class module can set the islockedFromGallery function to flase, and the gallery application reads the value of the islockedFrom Gallery function set to flase to determine that the lock screen wallpaper set in the gallery application has been displayed on the lock screen interface, that is, the message that the lock screen wallpaper setting is successful is synchronized.

[0169] S208. The lock screen control module modifies the parameter value indicating whether the lock screen is successful.

[0170] The lock screen control module can set setlockScreenShow to True. Usually, when the value of setlockScreenShow is True, the system can confirm that the lock screen is successful. The lock screen control module can also set setlockScreenShow, which is not set to True, to True after monitoring that the dynamic effect of the lock screen interface has ended.

[0171] The ATMS of the application framework layer can read the value of setlockScreenShow, and when the value of setlockScreenShow is True, it notifies the gallery application to destroy the resources that render the lock screen wallpaper and display the gradually enlarging dynamic effect of the wallpaper setting preview area. In other words, after switching the wallpaper setting interface to the lock screen interface through the gradually enlarging dynamic effect and the fading dynamic effect, the gallery application will destroy the relevant resources only after the lock screen is successfully locked.

[0172] In order to avoid the dynamic effects from the wallpaper setting interface to the lock screen interface Figure 8 (a) to Figure 8 In order to solve the problem of flickering of the time component shown in (d), when performing a fade-in dynamic effect on the lock screen interface, the fade-in dynamic effect can be performed only on elements different from those on the wallpaper setting interface. The above elements may include widgets, foreground, and background.

[0173] Before applying a fade-in dynamic effect to the lock screen interface, it is possible to first determine whether the wallpaper image displayed on the lock screen interface is the wallpaper image previewed on the wallpaper setting interface, and then determine how to apply a fade-in dynamic effect to the lock screen interface. Fig.13 As shown, the method includes:

[0174] S301: Display a first dynamic effect on a wallpaper setting interface, and determine a first dynamic effect element for displaying the first dynamic effect on the wallpaper setting interface.

[0175] The first dynamic effect may refer to a gradually increasing dynamic effect, such as Figure 7 (a) to Figure 7As shown in (c) in Figure 7 (a) to Figure 7 The first dynamic element showing the gradually increasing dynamic effect in (c) includes a time component, a foreground (portrait) of the preview image, and a background of the preview image.

[0176] S302: Determine whether the image previewed in the wallpaper setting interface is the wallpaper image in the lock screen interface.

[0177] In some possible cases, the electronic device may select a default random image as the wallpaper image of the lock screen interface. In this case, even if the user sets a customized wallpaper image in the wallpaper setting interface, since the default random image has a higher priority as the wallpaper image of the lock screen interface, the preview image in the wallpaper setting interface is different from the wallpaper image in the lock screen interface.

[0178] If the image previewed in the wallpaper setting interface is an image in the lock screen interface, a second dynamic effect is applied to an element in the lock screen interface that is different from the first dynamic effect element, that is, S303 is executed.

[0179] If the image previewed in the wallpaper setting interface is not an image in the lock screen interface, a second dynamic effect is applied to all elements in the lock screen interface, that is, S304 is executed.

[0180] S303: Apply a second dynamic effect to an element in the lock screen interface that is different from the first dynamic effect element.

[0181] The second dynamic effect may refer to Fig. 9 (a) to Fig. 9 The dynamic effect of fading in is shown in (c). Fig. 9 (a) to Fig. 9 The elements showing the fading-in dynamic effect in (c) include a time component, a foreground (portrait) of the wallpaper image, a background of the wallpaper image, a notification bar component, and a camera shortcut key component.

[0182] like Fig. 9 (a) to Fig. 9 As shown in (c), the elements that are the same as the first dynamic effect elements mentioned above refer to the time component, the foreground (portrait) of the wallpaper image and the background of the wallpaper image. Therefore, the elements that create the second dynamic effect in the lock screen interface include the notification bar component and the photo taking shortcut key component.

[0183] S304: Apply a second dynamic effect to all elements in the lock screen interface.

[0184] In the process of displaying the second dynamic effect on the lock screen interface, the electronic device may enter the Always On Display (AOD) state in response to the user's screen-off operation. Among them, the screen-off display can also be called the screen-off display or the screen-off display. When the electronic device is in the screen-off display state, it can display basic information such as time and date, as well as notification information such as the reminder mark of missed calls and the reminder mark of unread text messages.

[0185] It is understandable that the process of the electronic device entering the screen-off display state can also be achieved by presenting a dynamic effect (such as the third dynamic effect) on the screen-off display interface. In this case, if the electronic device has not yet finished presenting the first dynamic effect on the wallpaper setting interface, or has not yet finished presenting the second dynamic effect on the lock screen interface, there may be a conflict between the first dynamic effect and the third dynamic effect, or between the second dynamic effect and the third dynamic effect.

[0186] If the electronic device completes entering the screen-off display state within the time period when the first dynamic effect is presented on the wallpaper setting interface, the electronic device can directly stop the first dynamic effect and switch to execute the third dynamic effect of the screen-off display.

[0187] Among them, when the electronic device executes the finishedGoingToSleep function, the execution of entering the screen-off display state is completed. If the electronic device executes the finishedGoingToSleep function, it is during the period when the electronic device presents the first dynamic effect on the wallpaper display interface. In this case, the electronic device can set GalleryCallKeyguardLockedService#isDeviceInteractive to False. In this way, the electronic device can not perform the first dynamic effect, and does not call LockKeyGuard, and directly executes the dynamic effect of the screen-off display. The electronic device does not call LockKeyGuard, which means that the electronic device does not execute the lock screen-related operations called by the gallery application, including executing the dynamic effects presented on the lock screen interface, and performing lock screen operations.

[0188] If the electronic device starts the screen-off display during the time period when the first dynamic effect is presented on the wallpaper setting interface, or during the time period when the second dynamic effect is presented on the lock screen interface, in this case, the electronic device can determine whether to stop the first dynamic effect or the second dynamic effect based on the relationship between the time when the screen-off display is started and the time when the first dynamic effect or the second dynamic effect is presented, so as to avoid the conflict between the first dynamic effect and the third dynamic effect, or the conflict between the second dynamic effect and the third dynamic effect. Fig.14 To explain in detail, Fig.14 As shown, including:

[0189] S401. Determine the start time T11 of the screen off operation.

[0190] Among them, when the electronic device calls the OnStartGoingToSleep function, it is the revelation moment T11 when the electronic device starts the screen-off operation.

[0191] S402. If T11 is a moment within the first time period, the second dynamic effect is not presented on the lock screen interface, and the third dynamic effect is presented on the screen off display interface. The first time period is the time period after the first dynamic effect is presented on the wallpaper device interface and before the second dynamic effect is presented on the lock screen interface.

[0192] If the OnStartGoingToSleep function is called at the start time T11 of the screen-off operation, after the first dynamic effect is displayed on the wallpaper device interface and before the second dynamic effect is displayed on the lock screen interface, the electronic device can set isLockedFromGallery to Fales, so that the lock screen operation called by the gallery application can be skipped and the screen-off display state can be directly entered. In this way, the second dynamic effect displayed on the lock screen interface will no longer be displayed.

[0193] S403. If T11 is a moment within the second time period, stop presenting the second dynamic effect on the lock screen interface and present the third dynamic effect on the screen off display interface, wherein the second time period is the time period after the second dynamic effect starts to be presented on the lock screen interface and before the electronic device enters the screen off display interface.

[0194] If the moment when the OnStartGoingToSleep function is called is the time when the second dynamic effect begins to be presented on the lock screen interface at the starting time T11 of the screen-off operation and before the electronic device enters the screen-off display interface, the electronic device can execute animatorSet.cancel in OnStartGoingToSleep, thereby interrupting the execution of the second dynamic effect, and then enter the screen-off display interface to present the third dynamic effect.

[0195] S404. If T11 is a time within the third time period, a third dynamic effect is presented on the screen-off display interface after the second dynamic effect is presented on the lock screen interface, wherein the third time period is the time period after the second dynamic effect is presented on the lock screen interface.

[0196] If the moment when the OnStartGoingToSleep function is called, that is, the starting moment T11 of the screen-off operation is the period after the second dynamic effect is presented on the lock screen interface, the electronic device has completed the rendering of the second dynamic effect. Then, after the second dynamic effect is presented on the lock screen interface, the third dynamic effect can be presented on the screen-off display interface.

[0197] In one possible scenario, the user performs an unlocking operation while the second dynamic effect is being presented on the lock screen. For example, when a fade-in dynamic effect is displayed on the lock screen, the user swipes up the screen to unlock the electronic device. Since the second dynamic effect presented on the lock screen has not ended, the resources required to execute the first dynamic effect have not yet been destroyed in the gallery application. In this case, the electronic device can first set setLockScreenshown to true. Setting setLockScreenshown to true indicates that the screen has been locked successfully, so that the wallpaper setting thread can be set to on pause in the gallery application, so that the wallpaper editing page interface in the gallery application executes the destruction process during the on pause life cycle. Fig.15 As shown, including:

[0198] S501. While presenting a second dynamic effect on the lock screen interface, receiving an unlocking operation.

[0199] The unlocking operation may be an operation of sliding the screen upwards.

[0200] S502. In response to an unlocking operation, set a parameter indicating a locked screen state to a second value, wherein the second value indicates that the locked screen is successful.

[0201] The electronic device can respond to the unlock operation by setting the parameter setLockScreenshown indicating the lock screen state to true (second value). When setLockScreenshown is set to true, it indicates that the lock screen is successful. In this case, the wallpaper editing page interface in the gallery application executes the destruction process in the on pause life cycle.

[0202] S503: Destroy the wallpaper editing interface in the gallery application.

[0203] The gallery application can execute the onPause life cycle in the wallpaper editing page interface, continue to execute the onStop life cycle, and finally destroy the wallpaper editing interface in the gallery application.

[0204] Since the wallpaper editing interface is usually destroyed after the lock screen is successfully locked when returning from the wallpaper setting interface, if the user slides up to unlock the lock screen when the second dynamic effect is displayed on the lock screen, in this case, the lock screen is unlocked before it ends, and the lock screen state remains unlocked in ATMS, and the gallery application cannot destroy the wallpaper editing interface. Therefore, when sliding up to unlock, directly set setLockScreenshown to true, which can avoid the situation where the wallpaper editing interface has not been destroyed by the gallery application.

[0205] Fig.16 A flow chart of the interface display method provided in the embodiment of the present application is shown as follows: Fig.16 As shown, the method includes:

[0206] S601, in response to a first operation, displaying a first dynamic effect on a first interface, the first operation being used to instruct to switch a display interface of the electronic device from the first interface to a second interface, the first interface including a wallpaper setting interface, and the second interface including a lock screen interface;

[0207] S602: When the display interface is switched to the second interface, a second dynamic effect is displayed.

[0208] The interface display method provided in the embodiment of the present application has the same implementation principle and beneficial effects as the above Figures 10 to 15 The embodiments shown are similar and will not be described again here.

[0209] It should be understood that, although each step in the flow chart in the above-described embodiment is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is clear explanation in this article, the execution of these steps does not have strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the flow chart may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.

[0210] It is understandable that in order to implement the above functions, the electronic device includes hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.

[0211] The embodiment of the present application can divide the functional modules of the electronic device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one module. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. It should be noted that the names of the modules in the embodiment of the present application are schematic and are not limited to the names of the modules in actual implementation.

[0212] Fig.17 A schematic diagram of the structure of an interface display device provided in an embodiment of the present application.

[0213] It should be understood that the interface display device 600 can execute Figures 10 to 16 The interface display method shown; the interface display device 600 includes: an acquisition unit 610 and a processing unit 620.

[0214] The processing unit 620 is used to display a first dynamic effect on the first interface in response to a first operation, and the first operation is used to instruct to switch the display interface of the electronic device from the first interface to the second interface, the first interface includes a wallpaper setting interface, and the second interface includes a lock screen interface; when the display interface is switched to the second interface, a second dynamic effect is displayed.

[0215] In one embodiment, the processing unit 620 is configured to display a second dynamic effect according to whether the first interface and the second interface are the same when the display interface is switched to the second interface.

[0216] In one embodiment, the processing unit 620 is used to display the third component in the second interface through a second dynamic effect if the first interface includes a first foreground area, a first component, a second component and a first background area, and the second interface includes a first foreground area, a first component, a third component and a first background area.

[0217] In one embodiment, the processing unit 620 is used to display the second foreground area, the third component and the second background area in the second interface through a second dynamic effect if the first interface includes a first foreground area, a first component and a first background area, and the second interface includes a second foreground area, a third component and a second background area.

[0218] In one embodiment, the processing unit 620 is configured to display the second interface through the second dynamic effect after the first dynamic effect is displayed on the first interface.

[0219] In one embodiment, the electronic device includes a first application and a second application, the first interface is a display interface of the first application, and the second interface is a display interface of the second application.

[0220] In one embodiment, the first application is a gallery application, and the second application is a lock screen application.

[0221] In one embodiment, the first application is further used to send a first message to the second application after the first interface displays the first dynamic effect, where the first message is used to instruct to display the second dynamic effect on the second interface.

[0222] In one embodiment, the first message is also used to instruct execution of a screen lock operation, and the second application is also used to execute the screen lock operation in response to the first message.

[0223] In one embodiment, the first dynamic effect is a gradually increasing dynamic effect, and the second dynamic effect is a fading-in dynamic effect.

[0224] In one embodiment, the processing unit 620 is also used to display a third interface through a third dynamic effect at a first moment in response to a second operation, the second operation being used to instruct the electronic device to turn off the screen, and the third interface is the screen-off display interface.

[0225] In one embodiment, if the second moment is within the time period when the first dynamic effect is displayed on the first interface, the processing unit 620 is also used to cancel the lock screen operation, stop switching from the first interface to the second interface, and display the third interface through the third dynamic effect. The second moment is the moment when the screen display is completed.

[0226] In one embodiment, if the first moment is after the first interface is displayed through the first dynamic effect and before the second interface is displayed through the second dynamic effect, the processing unit 620 is used to cancel the display of the second interface through the second dynamic effect and display the third interface through the third dynamic effect.

[0227] In one embodiment, if the second interface is being displayed through the second dynamic effect at the first moment, the processing unit 620 is configured to stop displaying the second interface through the second dynamic effect, and display the third interface through the third dynamic effect.

[0228] In one embodiment, if the second interface is displayed through the second dynamic effect at the first moment, the processing unit 620 is configured to display the third interface through the third dynamic effect after the second interface is displayed through the second dynamic effect.

[0229] The interface display device provided in this embodiment is used to execute the interface display method of the above embodiment. The technical principle and technical effect are similar and will not be repeated here.

[0230] It should be noted that the interface display device 600 is implemented in the form of a functional unit. The term "unit" here can be implemented in the form of software and / or hardware, and is not specifically limited to this.

[0231] For example, a "unit" may be a software program, a hardware circuit, or a combination of the two that implements the above functions. The hardware circuit may include an application specific integrated circuit (ASIC), an electronic circuit, a processor (e.g., a shared processor, a dedicated processor, or a group processor, etc.) and a memory for executing one or more software or firmware programs, a combined logic circuit, and / or other suitable components that support the described functions.

[0232] Therefore, the units of each example described in the embodiments of the present application can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.

[0233] Fig.18 A structural schematic diagram of an electronic device provided by the present application is shown. Fig.18 The dotted line in the figure indicates that the unit or the module is optional. The electronic device 700 can be used to implement the interface display method described in the above method embodiment.

[0234] The electronic device 700 includes one or more processors 701, which can support the electronic device 700 to implement the interface display method in the method embodiment. The processor 701 can be a general-purpose processor or a special-purpose processor. For example, the processor 701 can be a central processing unit (CPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, such as discrete gates, transistor logic devices or discrete hardware components.

[0235] The processor 701 may be used to control the electronic device 700, execute software programs, and process data of the software programs. The electronic device 700 may also include a communication unit 705 to implement input (reception) and output (transmission) of signals.

[0236] For example, the electronic device 700 may be a chip, the communication unit 705 may be an input and / or output circuit of the chip, or the communication unit 705 may be a communication interface of the chip, and the chip may be a component of a terminal device or other electronic devices.

[0237] For another example, the electronic device 700 may be a terminal device, and the communication unit 705 may be a transceiver of the terminal device, or the communication unit 705 may be a transceiver circuit of the terminal device.

[0238] The electronic device 700 may include one or more memories 702 on which a program 704 is stored. The program 704 can be executed by the processor 701 to generate instructions 703, so that the processor 701 executes the impedance matching method described in the above method embodiment according to the instructions 703.

[0239] Optionally, data may be stored in the memory 702. Optionally, the processor 701 may read data stored in the memory 702. The data may be stored at the same storage address as the program 704, or may be stored at a different storage address than the program 704.

[0240] The processor 701 and the memory 702 may be provided separately or integrated together; for example, integrated on a system on chip (SOC) of a terminal device.

[0241] Exemplarily, the memory 702 can be used to store the related program 704 of the interface display method provided in the embodiment of the present application, and the processor 701 can be used to call the related program 704 of the interface display method stored in the memory 702 when displaying the interface, and execute the interface display method of the embodiment of the present application; including: in response to a first operation, displaying a first dynamic effect on the first interface, the first operation is used to indicate that the display interface of the electronic device is switched from the first interface to the second interface, the first interface includes a wallpaper setting interface, and the second interface includes a lock screen interface; when the display interface is switched to the second interface, displaying a second dynamic effect.

[0242] The present application also provides a computer program product, which, when executed by the processor 701, implements the interface display method described in any method embodiment of the present application.

[0243] The computer program product may be stored in the memory 702 , for example, a program 704 , which is converted into an executable target file that can be executed by the processor 701 after preprocessing, compiling, assembling, and linking.

[0244] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a computer, the interface display method described in any method embodiment of the present application is implemented. The computer program can be a high-level language program or an executable target program.

[0245] The computer-readable storage medium is, for example, a memory 702. The memory 702 may be a volatile memory or a nonvolatile memory, or the memory 702 may include both a volatile memory and a nonvolatile memory. Among them, the nonvolatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).

[0246] In this application, "at least one" means one or more, and "more than one" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0247] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0248] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0249] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0250] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic; for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, 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.

[0251] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0252] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

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

Claims

1. An interface display method, characterized in that: The method comprises: In response to a first operation, displaying a first dynamic effect on a first interface, wherein the first operation is used to instruct to switch a display interface of the electronic device from the first interface to a second interface, wherein the first interface includes a wallpaper setting interface, and the second interface includes a lock screen interface; When the display interface is switched to the second interface, a second dynamic effect is displayed.

2. The method according to claim 1, characterized in that The displaying of the second dynamic effect when the display interface is switched to the second interface includes: When the display interface is switched to the second interface, a second dynamic effect is displayed according to whether the first interface and the second interface are the same.

3. The method according to claim 2, characterized in that When the display interface is switched to the second interface, displaying a second dynamic effect according to whether the first interface and the second interface are the same includes: If the first interface includes a first foreground area, a first component, a second component and a first background area, and the second interface includes the first foreground area, the first component, a third component and the first background area, the third component in the second interface is displayed through the second dynamic effect.

4. The method according to claim 2, characterized in that: The displaying the second interface by executing the second dynamic effect according to whether the first interface and the second interface are the same includes: If the first interface includes a first foreground area, a first component and a first background area, and the second interface includes a second foreground area, a third component and a second background area, the second foreground area, the third component and the second background area in the second interface are displayed through the second dynamic effect.

5. The method according to any one of claims 1 to 4, characterized in that: The displaying of the second dynamic effect when the display interface is switched to the second interface includes: After the first dynamic effect is displayed on the first interface, the second interface is displayed through the second dynamic effect.

6. The method according to any one of claims 1 to 5, characterized in that: The electronic device includes a first application and a second application, the first interface is a display interface of the first application, and the second interface is a display interface of the second application.

7. The method according to claim 6, characterized in that The first application is a gallery application, and the second application is a lock screen application.

8. The method according to claim 7, characterized in that The first application is also used to send a first message to the second application after the first interface displays the first dynamic effect, and the first message is used to instruct to display the second dynamic effect on the second interface.

9. The method according to claim 8, characterized in that The first message is also used to instruct execution of a screen lock operation, and the second application is also used to execute a screen lock operation in response to the first message.

10. The method according to any one of claims 1 to 9, characterized in that: The first dynamic effect is a gradually increasing dynamic effect, and the second dynamic effect is a fading-in dynamic effect.

11. The method according to any one of claims 1 to 10, characterized in that: The method further comprises: At the first moment, in response to a second operation, a third interface is displayed through a third dynamic effect, wherein the second operation is used to instruct the electronic device to turn off the screen display, and the third interface is the screen-off display interface.

12. The method according to claim 11, characterized in that The method further comprises: If the second moment is within the time period when the first dynamic effect is displayed on the first interface, the lock screen operation is canceled, switching from the first interface to the second interface is stopped, and the third interface is displayed through the third dynamic effect. The second moment is the moment when the screen display is completed.

13. The method according to claim 11, characterized in that If the first moment is after the first interface is displayed through the first dynamic effect and before the second interface is displayed through the second dynamic effect, displaying the third interface by executing the third dynamic effect includes: The display of the second interface through the second dynamic effect is canceled, and the third interface is displayed through the third dynamic effect.

14. The method according to claim 11, characterized in that If the first moment is in the process of displaying the second interface through the second dynamic effect, displaying the third interface through the third dynamic effect includes: Stop displaying the second interface through the second dynamic effect, and display the third interface through the third dynamic effect.

15. The method according to claim 11, characterized in that If the first moment is after the second interface is displayed through the second dynamic effect, the displaying of the third interface through the third dynamic effect includes: After the second interface is displayed through the second dynamic effect, the third interface is displayed through a third dynamic effect.

16. An electronic device, characterized in that: The electronic device includes: one or more processors, and a memory; The memory is coupled to the one or more processors, and the memory is used to store computer program codes, wherein the computer program codes include computer instructions, and the one or more processors call the computer instructions to enable the electronic device to perform the method as claimed in any one of claims 1 to 15.

17. A chip system, characterized in that: The chip system is applied to an electronic device, and the chip system includes one or more processors, and the one or more processors are used to call computer instructions so that the electronic device executes any one of the methods described in claims 1 to 15.

18. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises instructions, which, when executed on an electronic device, cause the electronic device to perform the method as claimed in any one of claims 1 to 15.

Citation Information

Patent Citations

  • Page switching method and device, equipment and medium

    CN113010249A

  • Display method and electronic equipment

    CN114443194A

  • Transition animation generation method for application switching and related equipment

    CN114579221A

  • Display method of lock screen wallpaper of electronic equipment and related device

    CN114780012A

  • Method for generating theme wallpaper and electronic equipment

    CN116627560A