Display method, electronic device, storage medium, program product and chip

By blurring the background layer and compositing the foreground layer with the blurred background layer, the problem of inconsistent interface when switching between applications across different cores on electronic devices is solved, achieving a seamless visual effect.

CN123067769APending Publication Date: 2026-11-10HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510603427.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-09
Publication Date
2026-11-10

AI Technical Summary

Technical Problem

When electronic devices switch between applications across different cores, they cannot achieve a seamless visual transition between interfaces, resulting in inconsistent displayed content.

Method used

A blurred background layer is obtained by taking a screenshot of the background layer. Then, when the application is detected to be running, the foreground layer and the blurred background layer are combined by taking screenshots to generate a composite layer, so as to ensure the consistency of the content displayed when exiting the application.

Benefits of technology

It achieves a seamless visual transition between applications on electronic devices, ensuring that the displayed content remains consistent before and after running and exiting the application.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123067769A_ABST
    Figure CN123067769A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of terminals, in particular to a display method, an electronic device, a storage medium, a program product and a chip. In the method, a blurred background layer is obtained by performing screenshot blurring processing on a background layer, and a first composite layer is obtained by performing screenshot synthesis processing on a foreground layer and the blurred background layer when it is detected that an application is running, so that the display content of the electronic device is ensured to be the same before and after the application is exited, and the electronic device can present a visual effect of seamless switching of interfaces.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to a display method, electronic device, storage medium, program product, and chip. Background Technology

[0002] Electronic devices may include multiple processor cores and may include cross-core applications that can be applied to different processor cores. While running a cross-core application, the electronic device can capture a screenshot of the screen displayed on one processor core and transmit it to another processor core for display when exiting the cross-core application. However, the screenshot captured by the electronic device may differ from the screen displayed after exiting the cross-core application, resulting in a lack of seamless interface transitions. Summary of the Invention

[0003] To address the problem that electronic devices cannot present a visual effect of seamless interface switching, embodiments of this application provide a display method, an electronic device, a storage medium, a program product, and a chip.

[0004] In a first aspect, embodiments of this application provide a display method applied to an electronic device. The display method may include: displaying a first interface; the first interface including a background layer; in response to a first operation, performing a screenshot blurring process on the background layer to obtain a blurred background layer, and displaying a second interface indicated by the first operation; the second interface including a foreground layer and a background layer, the foreground layer including a first application component; in response to a second operation, performing a screenshot compositing process on the foreground layer and the blurred background layer to obtain a first composite layer, and displaying a third interface indicated by the second operation; the third interface including a first application layer of the first application corresponding to the first application component; in response to a third operation, displaying a fourth interface; the third operation instructing the third interface to be closed, the fourth interface including the first composite layer.

[0005] In this embodiment, a blurred background layer is obtained by first taking a screenshot of the background layer and blurring it. Then, when the running application is detected, the foreground layer and the blurred background layer are taken and composited to obtain a first composite layer, which is displayed when the application is exited. This ensures that the content displayed on the electronic device is the same before and after the application is running and exited, thereby ensuring that the electronic device can present a visual effect of seamless interface switching.

[0006] It is understandable that, in the case of an electronic device like a smartwatch, the background layer can also be called the watch face layer. The watch face layer can include display content such as time, date, and images. The first operation can be pressing the power button on the electronic device. The blurred background layer can include blurred time, blurred date, blurred images, and other display content. The foreground layer can also be called the launcher layer. The second interface can include a foreground layer and a background layer arranged from top to bottom along a second direction. Furthermore, the transparency of the foreground layer can be the transparency corresponding to a semi-transparent effect, for example, the transparency of the foreground layer can be 50%. The second operation can be an operation such as touching the first application component or long-pressing the first application component to run the first application. The first composite layer can include a foreground layer and a blurred background layer arranged from top to bottom along a second direction. The transparency of the foreground layer can be the transparency corresponding to a semi-transparent effect, for example, the transparency of the foreground layer can be 50%. The third interface can include a first application layer, a foreground layer, and a background layer arranged from top to bottom along a second direction. The transparency of the first application layer can be the transparency corresponding to an opaque effect, for example, the transparency of the first application layer can be 0%. The third operation can be touching the third interface and moving it in the first direction, where the first direction can be horizontally to the right parallel to the display screen of the electronic device; the third operation can also be pressing the power button on the electronic device, or pressing and holding the display screen of the electronic device to close the third interface.

[0007] In some implementations of the first aspect, before displaying the third interface of the second operation instruction, the display method further includes: displaying a first transition interface, the first transition interface including a first application layer, a foreground layer and a background layer, and the area of ​​the first application layer in the first transition interface is smaller than the area of ​​the first application layer in the third interface.

[0008] In this embodiment of the application, when it is detected that the user is running the first application, the electronic device can gradually enlarge the first application layer until it fills the entire display screen, so as to achieve a one-shot zoom-in animation effect of the first application.

[0009] In some implementations of the first aspect, before displaying the fourth interface, the display method further includes: displaying a second transition interface, the second transition interface including a first application layer and a first composite layer, and the area of ​​the first application layer in the second transition interface is smaller than the area of ​​the first application layer in the third interface.

[0010] In this embodiment of the application, when the user exits the first application, the electronic device can gradually shrink the first application layer until it disappears, so as to achieve a one-shot shrinking animation effect of the first application.

[0011] In some implementations of the first aspect, after displaying the fourth interface, the display method also includes: displaying the second interface.

[0012] In this embodiment of the application, by displaying the second interface again after displaying the fourth interface, instead of overlaying the first composite layer on the second interface, the situation where the displayed content of the second interface is different from the previously displayed content can be avoided after overlaying the first composite layer. This can further ensure that the displayed content of the electronic device is the same before and after running the application and exiting the application, thereby ensuring that the electronic device can present a visual effect of seamless interface switching.

[0013] In some implementations of the first aspect, the first application is a first type of application, and the interface corresponding to the first type of application can be displayed through the first processor core or the second processor core in the electronic device; the first interface is displayed through the first processor core, the second interface is displayed through the first processor core, the first transition interface is displayed through the first processor core, the third interface is displayed through the second processor core, the second transition interface is displayed through the second processor core, and the fourth interface is displayed through the second processor core.

[0014] It is understood that in some implementations, the first processor core and the second processor core can be different processor cores in the same processor, or they can be different processor cores in different processors. The first processor and the second processor can also be different operating systems. This application does not make any specific limitations.

[0015] In some implementations of the first aspect, the display method further includes: in response to a first display instruction, displaying a fifth interface corresponding to the second application as instructed by the first display instruction; wherein the fifth interface includes a second application layer, a first application layer, a foreground layer, and a background layer corresponding to the second application.

[0016] It is understandable that in some implementations, the first display instruction can be the caller ID instruction corresponding to the caller ID application. The fifth interface may include a second application layer, a first application layer, a foreground layer, and a background layer arranged from top to bottom along the second direction. Furthermore, the transparency of the second application layer can be the transparency corresponding to an opaque effect, for example, the transparency of the second application layer can be 0%.

[0017] In some implementations of the first aspect, the display method further includes: responding to a second display instruction by performing a screenshot compositing process on a second application layer, a foreground layer, and a blurred background layer to obtain a second composite layer, and displaying a sixth interface corresponding to the third application as instructed by the second display instruction; wherein the second application is a second type of application, the interface corresponding to the second type of application can be displayed through a first processor core in the electronic device, and the sixth interface includes a third application layer, a second application layer, a first application layer, a foreground layer, and a background layer corresponding to the third application, and the third application is a first type of application.

[0018] It is understandable that in some implementations, the second display instruction can be the heartbeat warning display instruction corresponding to the heartbeat warning application. The sixth interface may include a third application layer, a second application layer, a first application layer, a foreground layer, and a background layer arranged from top to bottom along the second direction. The transparency of the third application layer can be the transparency corresponding to an opaque effect, for example, the transparency of the third application layer can be 0%. The second composite layer may include a second application layer, a foreground layer, and a blurred background layer arranged from top to bottom along the second direction. The transparency of the second application layer can be the transparency corresponding to an opaque effect, for example, the transparency of the second application layer can be 0%.

[0019] It's understandable that during the display of the sixth interface, the electronic device can perform a screenshot composite process on the foreground layer and the blurred background layer to obtain a third composite layer. In this way, the electronic device can determine the third composite layer in advance so that it can be displayed promptly when exiting the first application. This further ensures that the displayed content of the electronic device is the same before and after running and exiting the application, thus ensuring a seamless visual effect for interface transitions.

[0020] In some implementations of the first aspect, the display method further includes: displaying a fifth interface in response to a fourth operation; the fourth operation instructing the sixth interface to be closed, the fifth interface including a second composite layer.

[0021] It is understandable that in some implementations, the fourth operation can be touching the sixth interface and moving in the first direction, where the first direction can be any direction parallel to the display screen of the electronic device.

[0022] In some implementations of the first aspect, before displaying the fifth interface, the display method further includes: displaying a third transition interface, which includes a third application layer and a second composite layer.

[0023] In this embodiment of the application, when the user exits the third application, the electronic device can gradually shrink the third application layer until it disappears, so as to achieve a one-shot shrinking animation effect of the third application.

[0024] In some implementations of the first aspect, the display method further includes: in response to the fifth operation, performing a screenshot composite processing on the foreground layer and the blurred background layer to obtain a third composite layer, and displaying a third interface, the third interface including the first application layer and the third composite layer.

[0025] It is understandable that in some implementations, the fifth operation can be touching the fifth interface and moving in the first direction, where the first direction can be any direction parallel to the display screen of the electronic device. The third interface may include a first application layer and a third composite layer set from top to bottom along the second direction. The transparency of the first application layer can be the transparency corresponding to an opaque effect; for example, the transparency of the first application layer can be 0%.

[0026] In this embodiment, by updating the composite layer in a timely manner to ensure its timely display upon exiting the first application, the displayed content of the electronic device remains the same before and after running and exiting the application. This ensures a seamless visual effect for interface switching. Furthermore, during the operation of cross-core applications—that is, when any application switches from the application processor core to the microcontroller core—timely updating the composite layer guarantees extremely smooth interface switching for the electronic device when switching between any processor cores.

[0027] Secondly, embodiments of this application provide a display system, including: a screenshot module, a background layer module, a Gaussian blur layer module, and a foreground layer module; the screenshot module is used to perform screenshot processing on the background layer in the background layer module and send it to the Gaussian blur layer module; the Gaussian blur layer module is used to perform Gaussian blur processing on the background layer obtained by the screenshot processing to obtain a blurred background layer; wherein, the blur parameters in the Gaussian blur layer module are the same as the blur parameters in the foreground layer module; the screenshot module is also used to perform screenshot compositing processing on the foreground layer and the blurred background layer in the foreground layer module to obtain a first composite layer.

[0028] It's understandable that the screenshot module can also be called the HybridSnapshot module. In the case of a smartwatch, the background layer module can be called the watch face layer module. The foreground layer module can also be called the launcher layer module.

[0029] In some implementations, the Gaussian blur layer module can be an ArkUI component containing only one container. The container can contain blur parameters, and the visibility attribute of these parameters can be set to hidden.

[0030] Thus, by creating a Gaussian blur layer module independent of the launcher layer module, and setting the blur parameters in the Gaussian blur layer module to be the same as those in the launcher layer module, this first composite layer can ensure that the content displayed on the electronic device is the same before and after running and exiting the application, and can also ensure that the electronic device can present a visual effect of seamless interface switching.

[0031] Thirdly, embodiments of this application provide an electronic device, including: a memory for storing instructions executed by one or more processors of the electronic device, and a processor, which is one of the one or more processors of the electronic device, for executing any of the display methods in the first aspect or the various implementations provided in the first aspect.

[0032] Fourthly, embodiments of this application provide a readable storage medium storing instructions that, when executed on an electronic device, cause the electronic device to perform the display method described in the first aspect or any of the various implementations provided in the first aspect.

[0033] Fifthly, embodiments of this application provide a computer program product, which includes computer instructions. When executed by an electronic device, the electronic device performs a display method according to the first aspect or any of the various implementations provided in the first aspect.

[0034] Sixthly, embodiments of this application provide a chip including a processor coupled to a memory for executing computer programs or instructions stored in the memory, such that the chip implements the display method of any one of the first aspects or the various implementations provided in the first aspect.

[0035] It is understood that the specific implementation methods and beneficial effects of the second to sixth aspects mentioned above can be found in the relevant descriptions of the display methods of the first aspect or any of the various implementation methods provided by the first aspect, and will not be repeated here. Attached Figure Description

[0036] Figure 1 According to some embodiments of this application, a schematic diagram of an application scenario is shown;

[0037] Figure 2 A schematic diagram of interface switching in the first related scheme is shown;

[0038] Figure 3 A schematic diagram of interface switching in the second related scheme is shown;

[0039] Figure 4 A flowchart illustrating a first display method is shown according to some embodiments of this application;

[0040] Figure 5 According to some embodiments of this application, a first interface switching schematic diagram is shown;

[0041] Figure 6A A schematic diagram of a background layer is shown according to some embodiments of this application;

[0042] Figure 6B A schematic diagram of a blurred background layer is shown according to some embodiments of this application;

[0043] Figure 6C According to some embodiments of this application, a schematic diagram of a layer in a second interface is shown;

[0044] Figure 6D According to some embodiments of this application, a schematic diagram of a layer in a third interface is shown;

[0045] Figure 6E According to some embodiments of this application, a schematic diagram of a first composite layer is shown;

[0046] Figure 7 According to some embodiments of this application, a flowchart of a second display method is shown;

[0047] Figure 8 According to some embodiments of this application, a second interface switching schematic diagram is shown;

[0048] Figure 9 According to some embodiments of this application, a flowchart of a third display method is shown;

[0049] Figure 10 According to some embodiments of this application, a third interface switching schematic diagram is shown;

[0050] Figure 11A According to some embodiments of this application, a schematic diagram of a layer in a fifth interface is shown;

[0051] Figure 11B According to some embodiments of this application, a schematic diagram of a layer in a sixth interface is shown;

[0052] Figure 11C According to some embodiments of this application, a schematic diagram of a second composite layer is shown;

[0053] Figure 11D According to some embodiments of this application, a schematic diagram of another layer in a third interface is shown;

[0054] Figure 11E According to some embodiments of this application, a schematic diagram of a third composite layer is shown;

[0055] Figure 12A According to some embodiments of this application, a schematic diagram of interface switching in a third related scheme is shown.

[0056] Figure 12B According to some embodiments of this application, a schematic diagram of interface switching in a fourth related scheme is shown.

[0057] Figure 13 According to some embodiments of this application, a schematic diagram of the structure of an electronic device is shown.

[0058] Figure 14 According to some embodiments of this application, a schematic diagram of the structure of a display system is shown;

[0059] Figure 15 According to some embodiments of this application, an interactive schematic diagram based on a display system is shown. Detailed Implementation

[0060] The embodiments of this application include, but are not limited to, a display method, an electronic device, a storage medium, a program product, and a chip.

[0061] It is understood that the display method mentioned in the embodiments of this application can be applied to electronic devices. In some implementations, the electronic device may be referred to as a terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), etc. In some implementations, the electronic device may be a smartphone, smartwatch, smart bracelet, tablet computer, computer with wireless transceiver function, virtual reality (VR) terminal device, augmented reality (AR) terminal device, wireless terminal in industrial control, wireless terminal in self-driving, wireless terminal in remote medical surgery, wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart home, etc.

[0062] It is understood that electronic devices can include multiple processor cores, such as application processor (AP) cores and microcontroller unit (MCU) cores. Furthermore, electronic devices can include various types of applications, such as type I applications (also known as cross-core applications) and type II applications. Type I applications can have their interfaces displayed across different processor cores, while type II applications can have their interfaces displayed using a single processor core.

[0063] It is understood that the display method mentioned in the embodiments of this application can be applied to scenarios where a first type of application is running, as well as scenarios where a second type of application is running. The embodiments of this application do not impose specific limitations. The following description uses the scenario of running a first type of application as an example to illustrate the display method mentioned in the embodiments of this application.

[0064] like Figure 1 The diagram illustrates an application scenario. In this scenario, upon detecting a user's screen-on operation, such as detecting a user pressing the display screen of electronic device 100, or detecting a user pressing the power button 200 on electronic device 100, electronic device 100 can respond to the user's screen-on operation by displaying, as shown below. Figure 1 The first interface is shown in (a) above. This first interface may include a background layer.

[0065] It is understandable that, in the case of an electronic device, 100% of which is a smartwatch, the background layer can also be called the watchface layer.

[0066] When the electronic device 100 displays the first interface, if a user's first operation is detected, such as detecting that the user presses the power button 200 on the electronic device 100, the electronic device 100 can respond to the user's first operation and display something like... Figure 1 The second interface is shown in (b) above. This second interface may include a foreground layer and a background layer. The foreground layer may include multiple application components, and the background layer may apply a blur mask or a background blur effect.

[0067] In some implementations, the foreground layer can also be called the launcher layer. Multiple application components can include application components corresponding to the first type of application, such as the first application component corresponding to the first application and the third application component corresponding to the third application; multiple application components can also include application components corresponding to the second type of application, such as the second application component corresponding to the second application. Furthermore, application components can be application icons, images, desktop widgets, cards, pop-ups, etc.

[0068] When the electronic device 100 displays a second interface, if a second user action is detected, such as detecting a user touching a first application component, the electronic device 100 can respond to the user's second action by displaying, as shown below. Figure 1 The third interface corresponding to the first application shown in (c) is shown in the figure.

[0069] It is understood that the second operation can also be an operation such as long-pressing the first application component to run the first application, and the embodiments of this application do not specifically limit it.

[0070] When the electronic device 100 displays a third interface, if a third user action is detected, for example... Figure 1 As shown in (d), the system detects that a user touches the third interface and moves it in a first direction a, where the first direction a can be horizontally to the right parallel to the display screen of the electronic device 100. In response to the user's third operation, the electronic device 100 closes the third interface and displays as shown in (d). Figure 1 The fourth interface is shown in (e).

[0071] It is understood that the first direction 'a' can also be any direction parallel to the display screen of the electronic device 100, and this application embodiment does not impose a specific limitation. Furthermore, the third operation can also be an operation such as pressing the power button 200 on the electronic device 100, or pressing and holding the display screen of the electronic device 100 to indicate closing the third interface; this application embodiment also does not impose a specific limitation.

[0072] After the electronic device 100 displays the fourth interface for a preset duration, such as Figure 1 As shown in (f), the electronic device 100 can display the second interface again.

[0073] It is understandable that, upon detecting a second user action, the electronic device 100 can take a screenshot of the second interface for use when displaying the fourth interface.

[0074] The following section introduces some methods for taking screenshots of the second interface.

[0075] For example, such as Figure 2 As shown, when a user's screen-on operation is detected, such as when the user presses the display screen of electronic device 100, or when the user presses the power button 200 on electronic device 100, electronic device 100 can respond to the user's screen-on operation and display as shown. Figure 2 The first interface is shown in (a) above. This first interface may include a background layer.

[0076] It's understandable that, in the case of an electronic device like a smartwatch, the background layer can also be called the watch face layer.

[0077] When the electronic device 100 displays the first interface, if a user's first operation is detected, such as detecting that the user presses the power button 200 on the electronic device 100, the electronic device 100 can respond to the user's first operation and display something like... Figure 2 The second interface is shown in (b) above. This second interface may include a foreground layer and a background layer. The foreground layer may include multiple application components, and the background layer may apply a blur mask or a background blur effect.

[0078] In some implementations, the foreground layer can also be called the launcher layer. Multiple application components can include application components corresponding to the first type of application, such as the first application component corresponding to the first application and the third application component corresponding to the third application; multiple application components can also include application components corresponding to the second type of application, such as the second application component corresponding to the second application. Furthermore, application components can be application icons, images, desktop widgets, cards, pop-ups, etc.

[0079] When the electronic device 100 displays a second interface, if a second user action is detected, such as the user touching a first application component, the electronic device 100 can respond to the second user action by taking screenshots of the foreground layer and the background layer of the second interface, respectively, and then combining the screenshots to obtain a first composite screenshot layer. Furthermore, the electronic device 100 can display, for example... Figure 2 The third interface corresponding to the first application shown in (c) is shown in the figure.

[0080] It is understood that the second operation can also be an operation such as long-pressing the first application component to run the first application, and the embodiments of this application do not specifically limit it.

[0081] When the electronic device 100 displays a third interface, if a third user action is detected, for example... Figure 2 As shown in (d), the system detects that a user touches the third interface and moves it in a first direction a, where the first direction a can be horizontally to the right parallel to the display screen of the electronic device 100. In response to the user's third operation, the electronic device 100 closes the third interface and displays as shown in (d). Figure 2 The fourth interface is shown in (e) above. This fourth interface may include the first screenshot composite layer.

[0082] It is understood that the first direction 'a' can also be any direction parallel to the display screen of the electronic device 100, and this application embodiment does not impose a specific limitation. Furthermore, the third operation can also be an operation such as pressing the power button 200 on the electronic device 100, or pressing and holding the display screen of the electronic device 100 to indicate closing the third interface; this application embodiment also does not impose a specific limitation.

[0083] After the electronic device 100 displays the fourth interface for a preset duration, such as Figure 2 As shown in (f), the electronic device 100 can display the second interface again.

[0084] However, because the background layer in the second interface uses a blur mask or applies a background blur effect (i.e., the blur parameter is set on the foreground layer), the Gaussian blur on the background layer in the second interface is a rendering effect, not a component. Therefore, when taking a screenshot of the background layer in the second interface, since the blur parameter is on the foreground layer while the background image to be blurred is on the background layer, and because component screenshots cannot capture two different layers simultaneously, and the blur parameter and the background image to be blurred must be on the same layer to capture the blur effect through component screenshots, individually capturing a layer will not capture the blur effect on the background layer, and compositing individually captured layers will also not present the blur effect. Thus, as... Figure 2 (e) and Figure 2 As shown in (f), this causes the content displayed on the fourth interface to be different from that displayed on the second interface.

[0085] For example, such as Figure 3 As shown, when a user's screen-on operation is detected, such as when the user presses the display screen of electronic device 100, or when the user presses the power button 200 on electronic device 100, electronic device 100 can respond to the user's screen-on operation and display as shown. Figure 3 The first interface is shown in (a) above. This first interface may include a background layer.

[0086] It's understandable that, in the case of an electronic device like a smartwatch, the background layer can also be called the watch face layer.

[0087] When the electronic device 100 displays the first interface, if a user's first operation is detected, such as detecting that the user presses the power button 200 on the electronic device 100, the electronic device 100 can respond to the user's first operation and display something like... Figure 3 The second interface is shown in (b) above. This second interface may include a foreground layer and a background layer. The foreground layer may include multiple application components, and the background layer may apply a blur mask or a background blur effect.

[0088] In some implementations, the foreground layer can also be called the launcher layer. Multiple application components can include application components corresponding to the first type of application, such as the first application component corresponding to the first application and the third application component corresponding to the third application; multiple application components can also include application components corresponding to the second type of application, such as the second application component corresponding to the second application. Furthermore, application components can be application icons, images, desktop widgets, cards, pop-ups, etc.

[0089] When the electronic device 100 displays a second interface, if a second user action is detected, such as the user touching a first application component, the electronic device 100 can respond to the second user action by taking a screenshot of the second interface to obtain a first screenshot layer. Furthermore, the electronic device 100 can display, as shown below... Figure 3 The third interface corresponding to the first application shown in (c) is shown in the figure.

[0090] It is understood that the second operation can also be an operation such as long-pressing the first application component to run the first application, and the embodiments of this application do not specifically limit it.

[0091] When the electronic device 100 displays a third interface, if a third user action is detected, for example... Figure 3 As shown in (d), the system detects that a user touches the third interface and moves it in a first direction a, where the first direction a can be horizontally to the right parallel to the display screen of the electronic device 100. In response to the user's third operation, the electronic device 100 closes the third interface and displays as shown in (d). Figure 3 The fourth interface is shown in (e) above. This fourth interface may include the first screenshot layer.

[0092] It is understood that the first direction 'a' can also be any direction parallel to the display screen of the electronic device 100, and this application embodiment does not impose a specific limitation. Furthermore, the third operation can also be an operation such as pressing the power button 200 on the electronic device 100, or pressing and holding the display screen of the electronic device 100 to indicate closing the third interface; this application embodiment also does not impose a specific limitation.

[0093] After the electronic device 100 displays the fourth interface for a preset duration, such as Figure 3 As shown in (f), the electronic device 100 can display the second interface again.

[0094] However, during the process of taking a screenshot of the second interface, the electronic device 100 will display the third interface. Therefore, the content of the first screenshot layer may be the content displayed on the third interface. Figure 3 (e) and Figure 3 As shown in (f), this causes the content displayed on the fourth interface to be different from that displayed on the second interface.

[0095] Based on the above two methods, since the content displayed on the fourth interface is different from that displayed on the second interface, the electronic device 100 cannot present a visual effect of seamless interface switching during the process of the electronic device 100 sequentially displaying the third interface, the fourth interface and the second interface.

[0096] To address the aforementioned problems, this application provides a display method. In this method, an electronic device 100 can display a first interface, which includes a background layer. Then, in response to a first operation, the electronic device 100 performs a screenshot blurring process on the background layer to obtain a blurred background layer, and displays a second interface as indicated by the first operation; the second interface includes a foreground layer and a background layer, the foreground layer including a first application component. Next, in response to a second operation, the electronic device 100 performs a screenshot compositing process on the foreground layer and the blurred background layer to obtain a first composite layer, and displays a third interface as indicated by the second operation; the third interface includes a first application layer corresponding to the first application component. Then, in response to a third operation, the electronic device 100 displays a fourth interface; the third operation indicates that the third interface is closed, and the fourth interface includes the first composite layer.

[0097] In this way, by first taking a screenshot and blurring the background layer to obtain a blurred background layer, and then taking screenshots and combining the foreground layer and the blurred background layer when the application is detected to obtain a first composite layer, which is displayed when the application is exited, it can be ensured that the display content of the electronic device 100 is the same before and after the application is running and exited, thereby ensuring that the electronic device 100 can present a visual effect of seamless interface switching.

[0098] The following is combined Figure 4 , Figure 5 as well as Figures 6A to 6E The display methods mentioned in the embodiments of this application will be described. For example... Figure 4 A flowchart of the first display method is shown. Figure 5 A schematic diagram of the first interface switching method is shown.

[0099] It is understood that this display method can be performed by the electronic device 100. For example, the display method may include:

[0100] S401: Display the first interface; the first interface includes a background layer.

[0101] It is understandable that when the electronic device 100 is in a black screen state, if a user's screen-on operation is detected, such as detecting the user pressing the display screen of the electronic device 100, or detecting the user pressing the power button 200 on the electronic device 100, the electronic device 100 can respond to the user's screen-on operation and display something like... Figure 5The first interface is shown in (a) of the diagram.

[0102] It's understandable that the first interface can include a background layer. In the case of an electronic device like a smartwatch, the background layer can also be called the watch face layer. For example... Figure 6A As shown, the dial layer can include display content such as time, date, and image (the image shown in the shaded box).

[0103] S402: In response to the first operation, the background layer is captured and blurred to obtain a blurred background layer, and the second interface indicated by the first operation is displayed; the second interface includes a foreground layer and a background layer, and the foreground layer includes a first application component.

[0104] It is understandable that when the electronic device 100 displays the first interface, if the user's first operation is detected, such as the user pressing the power button 200 on the electronic device 100, the electronic device 100 can respond to the user's first operation by taking a screenshot and blurring the background layer to obtain a blurred background layer, and displaying it as shown. Figure 5 The second interface is shown in (b) above. This second interface may include a foreground layer and a background layer. The foreground layer may include multiple application components, and the background layer may apply a blur mask or a background blur effect.

[0105] In some implementations, the foreground layer can also be called the launcher layer. Multiple application components can include application components corresponding to the first type of application, such as the first application component corresponding to the first application and the third application component corresponding to the third application; multiple application components can also include application components corresponding to the second type of application, such as the second application component corresponding to the second application. Furthermore, application components can be application icons, images, desktop widgets, cards, pop-ups, etc.

[0106] For example, the first application can be a heartbeat detection application, the second application can be an incoming call application, and the third application can be a heartbeat warning application. It is understood that the first, second, and third applications can also be other applications, and the embodiments of this application do not specifically limit them.

[0107] For example, electronic device 100 can respond to a user's first operation by taking a screenshot of the background layer and blurring it, resulting in... Figure 6B The blurred background layer shown. This blurred background layer may include the time of blurring ( Figure 6B The time is blurred to the point of being unreadable, and the date is blurred (showing an effect where the time is blurred to the point of being unreadable). Figure 6B This shows a blurred image and other displayed content, including a date that is so blurred it is unreadable. Therefore, when compositing the first layer of the screenshot, the blurred background layer will be used instead of the dial layer in the screenshot stack.

[0108] like Figure 6C As shown, the second interface may include a semi-transparent foreground layer and a background layer set from top to bottom along the second direction z. Furthermore, the transparency of the foreground layer can be the transparency corresponding to the semi-transparent effect; for example, the transparency of the foreground layer can be 50%.

[0109] S403: In response to the second operation, perform a screenshot compositing process on the foreground layer and the blurred background layer to obtain a first composite layer, and display the third interface indicated by the second operation; the third interface includes the first application layer of the first application corresponding to the first application component.

[0110] It is understandable that when the electronic device 100 displays a second interface, if a second user operation is detected, such as detecting a user touching a first application component, the foreground layer and the blurred background layer are composited by taking screenshots to obtain a first composite layer, which is then displayed as shown below. Figure 5 The third interface corresponding to the first application shown in (c) is shown in the diagram. This third interface may include the first application layer corresponding to the first application.

[0111] It is understood that the second operation can also be an operation such as long-pressing the first application component to run the first application, and the embodiments of this application do not specifically limit it.

[0112] For example, such as Figure 6D As shown, the third interface may include a first application layer, a foreground layer, and a background layer arranged from top to bottom along the second direction z. The transparency of the first application layer can be the transparency corresponding to an opaque effect; for example, the transparency of the first application layer can be 0%.

[0113] like Figure 6E As shown, the first composite layer may include a foreground layer and a blurred background layer positioned from top to bottom along the second direction z. The foreground layer's opacity can be the opacity corresponding to a semi-transparent effect; for example, the foreground layer's opacity can be 50%.

[0114] S404: In response to the third operation, display the fourth interface; the third operation indicates that the third interface is closed, and the fourth interface includes the first composition layer.

[0115] When the electronic device 100 displays a third interface, if a third user action is detected, for example... Figure 5 As shown in (d), the system detects that a user touches the third interface and moves it in a first direction a, where the first direction a can be horizontally to the right parallel to the display screen of the electronic device 100. In response to the user's third operation, the electronic device 100 closes the third interface and displays as shown in (d). Figure 5 The fourth interface is shown in (e) in the diagram. This fourth interface may include the first composite layer.

[0116] It is understood that the first direction 'a' can also be any direction parallel to the display screen of the electronic device 100, and this application embodiment does not impose a specific limitation. Furthermore, the third operation can also be an operation such as pressing the power button 200 on the electronic device 100, or pressing and holding the display screen of the electronic device 100 to indicate closing the third interface; this application embodiment also does not impose a specific limitation.

[0117] After the electronic device 100 displays the fourth interface for a preset duration, such as Figure 5 As shown in (f), the electronic device 100 can display the second interface again. In this embodiment, by displaying the fourth interface and then displaying the second interface again, instead of overlaying the first composite layer on the second interface, the situation where the content of the second interface displayed again is different from the content of the original second interface can be avoided after overlaying the first composite layer. That is, the first composite layer is not displayed on the actual interface and has no impact on the actual interface. This further ensures that the content displayed by the electronic device is the same before and after running and exiting the application, thereby ensuring that the electronic device can present a visual effect of seamless interface switching.

[0118] Thus, based on the above display method, the content displayed on the fourth interface can be the same as the content displayed on the second interface, so that the electronic device 100 can present a visual effect of seamless interface switching during the process of the electronic device 100 sequentially displaying the third interface, the fourth interface and the second interface.

[0119] The following is combined Figure 7 and Figure 8 The display methods mentioned in the embodiments of this application will be described. For example... Figure 7 A flowchart illustrating the second display method is shown. Figure 8 A diagram illustrating the second type of interface switching is shown. Figure 4 and Figure 5 The difference in the display method is that, in this method, when the user's second operation is detected, that is, when the user runs the first application, the electronic device does not directly display the third interface, but gradually enlarges the first application layer until it fills the entire display screen in order to display the third interface.

[0120] It is understood that this display method can be performed by the electronic device 100. For example, the display method may include:

[0121] S701: Display the first interface; the first interface includes a background layer.

[0122] It is understandable that when the electronic device 100 is in a black screen state, if a user's screen-on operation is detected, such as detecting the user pressing the display screen of the electronic device 100, or detecting the user pressing the power button 200 on the electronic device 100, the electronic device 100 can respond to the user's screen-on operation and display something like... Figure 8 The first interface is shown in (a) of the diagram.

[0123] It is understandable that S701 is essentially the same as S401. The specific implementation of S701 can be referred to S401. To avoid repetition, it will not be elaborated here.

[0124] S702: In response to the first operation, the background layer is captured and blurred to obtain a blurred background layer, and the second interface indicated by the first operation is displayed; the second interface includes a foreground layer and a background layer, and the foreground layer includes a first application component.

[0125] It is understandable that when the electronic device 100 displays the first interface, if the user's first operation is detected, such as the user pressing the power button 200 on the electronic device 100, the electronic device 100 can respond to the user's first operation by taking a screenshot and blurring the background layer to obtain a blurred background layer, and displaying it as shown. Figure 8 The second interface is shown in (b) of the diagram.

[0126] It is understandable that S702 is essentially the same as S402. The specific implementation of S702 can be referred to S402. To avoid repetition, it will not be elaborated here.

[0127] S703: In response to the second operation, perform a screenshot compositing process on the foreground layer and the blurred background layer to obtain the first composite layer, and display the first transition interface.

[0128] It is understandable that when the electronic device 100 displays a second interface, if a second user operation is detected, such as detecting a user touching a first application component, the foreground layer and the blurred background layer are composited by taking screenshots to obtain a first composite layer, which is then displayed as shown below. Figure 8 The first transition interface is shown in (c) in the diagram.

[0129] The first transition interface may include a first application layer, a foreground layer, and a background layer. Furthermore, the area of ​​the first application layer in the first transition interface is smaller than the area of ​​the first application layer in the third interface. That is, when the user is detected running the first application, the electronic device 100 can gradually enlarge the first application layer until it fills the entire display screen, thereby achieving a one-shot zoom-in animation effect for the first application.

[0130] It is understandable that the specific implementation of S703 can be referenced from S402. To avoid repetition, it will not be elaborated here.

[0131] S704: Display the third interface of the second operation instruction display; the third interface includes the first application layer of the first application corresponding to the first application component.

[0132] It is understandable that when the electronic device 100 displays a second interface, if a second user action is detected, such as detecting a user touching a first application component, the electronic device 100 can respond to the user's second action by first displaying, for example, a second user action. Figure 8 The first transition interface shown in (c) then displays as shown in the image. Figure 8 The third interface is shown in (d) in the diagram.

[0133] It is understandable that the specific implementation of S704 can be referenced from S402. To avoid repetition, it will not be elaborated here.

[0134] S705: In response to the third operation, the second transition interface is displayed; the third operation indicates that the third interface is closed.

[0135] It is understandable that when the electronic device 100 displays a third interface, if a third user action is detected, for example, ... Figure 8 As shown in (e), the system detects that a user touches the third interface and moves it in a first direction a, where the first direction a can be horizontally to the right parallel to the display screen of the electronic device 100. In response to the user's third operation, the electronic device 100 closes the third interface and displays as shown in (e). Figure 8 The second transition interface is shown in (f) in the diagram.

[0136] The second transition interface may include a first application layer and a first composite layer, and the display area of ​​the first application layer in the second transition interface is smaller than that of the first composite layer. Figure 8 The display area of ​​the first application layer in the third interface is shown in (d). That is, when the user exits the first application, the electronic device 100 can gradually shrink the first application layer until it disappears, so as to achieve a one-shot shrinking animation effect of the first application.

[0137] It is understandable that the specific implementation of S705 can be referenced from S404. To avoid repetition, it will not be elaborated here.

[0138] S706: Display the fourth interface; the fourth interface includes the first composite layer.

[0139] It is understandable that when the electronic device 100 displays a third interface, if a third user action is detected, for example, ... Figure 8As shown in (e), the system detects that a user touches the third interface and moves it in a first direction a, where the first direction a can be any direction parallel to the display screen of the electronic device 100. In response to the third operation, the electronic device 100 can close the third interface and first display as shown in (e). Figure 8 The second transition interface shown in (f) then displays as follows: Figure 8 The fourth interface is shown in (g).

[0140] After the electronic device 100 displays the fourth interface for a preset duration, such as Figure 8 As shown in (h), the electronic device 100 can display the second interface again. In this embodiment, by displaying the fourth interface and then displaying the second interface again, instead of overlaying the first composite layer on the second interface, the situation where the content of the second interface displayed again is different from the content of the original second interface can be avoided. That is, the first composite layer is not displayed on the actual interface and has no impact on the actual interface. This further ensures that the content displayed by the electronic device is the same before and after running and exiting the application, thereby ensuring that the electronic device can present a visual effect of seamless interface switching.

[0141] It is understandable that the specific implementation of S706 can be referenced from S404. To avoid repetition, it will not be elaborated here.

[0142] Thus, based on the above display method, not only can the content displayed on the fourth interface be the same as that on the second interface, but the electronic device 100 can also present a seamless visual effect of interface switching during the sequential display of the third, fourth, and second interfaces. Furthermore, when the user is detected running the first application, the electronic device 100 can gradually enlarge the first application layer until it fills the entire display screen; when the user is detected exiting the first application, the electronic device 100 can gradually shrink the first application layer until it disappears, thus presenting a seamless animation effect of the first application.

[0143] The following is combined Figure 9 , Figure 10 as well as Figures 11A to 11E The display methods mentioned in the embodiments of this application will be described. For example... Figure 9 A flowchart illustrating the third display method is shown. Figure 10 A schematic diagram of the third type of interface switching is shown.

[0144] and Figure 7 and Figure 8The difference in the display method shown is that in this display method, the electronic device can run multiple applications. For example, the electronic device can first run a first type of application, then run a second type of application, and then run the first type of application again. For example, the electronic device can first run a first application, then run a second application, and then run a third application.

[0145] It is understood that this display method can be performed by the electronic device 100. For example, the display method may include:

[0146] S901: Display the first interface; the first interface includes a background layer.

[0147] It is understandable that when the electronic device 100 is in a black screen state, if a user's screen-on operation is detected, such as detecting the user pressing the display screen of the electronic device 100, or detecting the user pressing the power button 200 on the electronic device 100, the electronic device 100 can respond to the user's screen-on operation and display something like... Figure 10 The first interface is shown in (a) of the diagram.

[0148] It is understandable that S901 is essentially the same as S401. The specific implementation of S901 can be referred to S401. To avoid repetition, it will not be elaborated here.

[0149] S902: In response to the first operation, the background layer is captured and blurred to obtain a blurred background layer, and the second interface indicated by the first operation is displayed; the second interface includes a foreground layer and a background layer, and the foreground layer includes a first application component.

[0150] It is understandable that when the electronic device 100 displays the first interface, if the user's first operation is detected, such as the user pressing the power button 200 on the electronic device 100, the electronic device 100 can respond to the user's first operation by taking a screenshot and blurring the background layer to obtain a blurred background layer, and displaying it as shown. Figure 10 The second interface is shown in (b) of the diagram.

[0151] It is understandable that S902 is essentially the same as S402. The specific implementation of S902 can be referred to S402. To avoid repetition, it will not be elaborated here.

[0152] S903: In response to the second operation, perform a screenshot compositing process on the foreground layer and the blurred background layer to obtain the first composite layer, and display the first transition interface.

[0153] It is understandable that when the electronic device 100 displays a second interface, if a second user operation is detected, such as detecting a user touching a first application component, the foreground layer and the blurred background layer are composited by taking screenshots to obtain a first composite layer, which is then displayed as shown below. Figure 10 The first transition interface is shown in (c) in the diagram.

[0154] The first transition interface may include a first application layer, a foreground layer, and a background layer. Furthermore, the area of ​​the first application layer in the first transition interface is smaller than the area of ​​the first application layer in the third interface. That is, when the user is detected running the first application, the electronic device 100 can gradually enlarge the first application layer until it fills the entire display screen, thereby achieving a one-shot zoom-in animation effect for the first application.

[0155] It is understandable that the specific implementation of S902 can be referenced from S402. To avoid repetition, it will not be elaborated here.

[0156] S904: Display the third interface of the second operation instruction display; the third interface includes the first application layer of the first application corresponding to the first application component.

[0157] It is understandable that when the electronic device 100 displays a second interface, if a second user action is detected, such as detecting a user touching a first application component, the electronic device 100 can respond to the user's second action by first displaying, for example, a second user action. Figure 10 The first transition interface shown in (c) then displays as shown in the image. Figure 10 The third interface is shown in (d) in the diagram.

[0158] It is understandable that the specific implementation of S904 can be referenced from S402. To avoid repetition, it will not be elaborated here.

[0159] S905: In response to the first display command, display the fifth interface corresponding to the second application as instructed by the first display command.

[0160] It is understandable that when the electronic device 100 displays a third interface, if a first display command is detected, such as a caller ID command corresponding to a caller ID application, the electronic device 100 can respond to the first display command and display something like... Figure 10 The first display instruction shown in (e) indicates the display of the fifth interface corresponding to the second application. The fifth interface may include a second application layer, a first application layer, a foreground layer, and a background layer corresponding to the second application.

[0161] like Figure 11A As shown, the fifth interface may include a second application layer, a first application layer, a foreground layer, and a background layer, arranged from top to bottom along the second direction z. Furthermore, the transparency of the second application layer can be the transparency corresponding to an opaque effect; for example, the transparency of the second application layer can be 0%.

[0162] S906: In response to the second display command, perform a screenshot composite processing on the second application layer, the foreground layer and the blurred background layer to obtain the second composite layer, and display the sixth interface corresponding to the third application as instructed by the second display command.

[0163] It is understandable that when the electronic device 100 displays the fifth interface, if a second display command is detected, such as a heartbeat warning display command corresponding to a heartbeat warning application, the electronic device 100 can respond to the second display command. The electronic device 100 can perform screenshot compositing on the second application layer, the foreground layer, and the blurred background layer to obtain a second composite layer, and display it as shown below. Figure 10 The second display instruction shown in (f) indicates the display of the sixth interface corresponding to the third application. The sixth interface includes the third application layer, the second application layer, the first application layer, the foreground layer, and the background layer corresponding to the third application.

[0164] For example, such as Figure 11B As shown, the sixth interface may include a third application layer, a second application layer, a first application layer, a foreground layer, and a background layer arranged from top to bottom along the second direction z. The transparency of the third application layer can be the transparency corresponding to an opaque effect; for example, the transparency of the third application layer can be 0%.

[0165] like Figure 11C As shown, the second composite layer may include a second application layer, a foreground layer, and a blurred background layer arranged from top to bottom along the second direction z. The opacity of the second application layer can be the opacity corresponding to an opaque effect; for example, the opacity of the second application layer can be 0%.

[0166] S907: In response to the fourth operation, the third transition interface is displayed; the fourth operation instructs the sixth interface to be closed.

[0167] It is understandable that when the electronic device 100 displays the sixth interface, if the user's fourth operation is detected, for example, ... Figure 10 As shown in (j), the system detects that a user touches the sixth interface and moves it in the first direction a, where the first direction a can be any direction parallel to the display screen of the electronic device 100. In response to the fourth operation, the electronic device 100 can close the sixth interface and display as shown in (j). Figure 10 The third transition interface is shown in (h).

[0168] The third transition interface may include a third application layer and a second composite layer, and the area of ​​the third application layer in the third transition interface is less than [the area of ​​the third application layer]. Figure 10The area of ​​the third application layer in the sixth interface shown in (f) is the area of ​​the third application layer. That is, when the user exits the third application, the electronic device 100 can gradually shrink the third application layer until it disappears, so as to achieve a one-shot shrinking animation effect of the third application.

[0169] It is understandable that during the display of the sixth interface, the electronic device 100 can perform screenshot compositing of the foreground layer and the blurred background layer to obtain a third composite layer. In this way, the electronic device can determine the third composite layer in advance and display it promptly when exiting the first application, further ensuring that the displayed content of the electronic device is the same before and after running and exiting the application, thus ensuring a seamless visual effect of interface switching. Furthermore, by updating the composite layer in a timely manner to display it promptly when exiting the first application, it is further ensured that the displayed content of the electronic device is the same before and after running and exiting the application, thus ensuring a seamless visual effect of interface switching. Moreover, during the running of cross-core applications, that is, when any application switches from the application processor core to the microcontroller core, timely updating the composite layer ensures extremely smooth interface switching of the electronic device when switching between any processor cores.

[0170] S908: Display the fifth interface; the fifth interface includes the second composite layer.

[0171] It is understandable that when the electronic device 100 displays the sixth interface, if the user's fourth operation is detected, for example, ... Figure 10 As shown in (g), the system detects that a user touches the sixth interface and moves it in the first direction a, where the first direction a can be any direction parallel to the display screen of the electronic device 100. The electronic device 100 can respond to the fourth operation by closing the sixth interface and first displaying... Figure 10 The third transition interface shown in (h) then displays as follows: Figure 10 The fifth interface is shown in (i).

[0172] S909: In response to the fifth operation, perform a screenshot composite processing on the foreground layer and the blurred background layer to obtain a third composite layer, and display the third interface, which includes the first application layer and the third composite layer.

[0173] It is understandable that when the electronic device 100 displays the fifth interface, if the user's fifth operation is detected, for example, ... Figure 10As shown in (g), the system detects that a user touches the fifth interface and moves it in a first direction a, where the first direction a can be any direction parallel to the display screen of the electronic device 100. In response to the fifth operation, the electronic device 100 can perform a screenshot compositing process on the foreground layer and the blurred background layer to obtain a third composite layer. Furthermore, in response to the fifth operation, the electronic device can close the fifth interface and display as shown in (g). Figure 10 The third interface is shown as (k) in the diagram.

[0174] For example, such as Figure 11D As shown, the third interface may include a first application layer and a third composite layer set from top to bottom along the second direction z. The transparency of the first application layer can be the transparency corresponding to an opaque effect; for example, the transparency of the first application layer can be 0%.

[0175] like Figure 11E As shown, the third composite layer may include a foreground layer and a blurred background layer set from top to bottom along the second direction z. The transparency of the foreground layer can be the transparency corresponding to a semi-transparent effect; for example, the transparency of the foreground layer can be 50%.

[0176] In this embodiment, by updating the composite layer in a timely manner to ensure its timely display upon exiting the first application, the displayed content of the electronic device remains the same before and after running and exiting the application. This ensures a seamless visual effect for interface switching. Furthermore, during the operation of cross-core applications—that is, when any application switches from the application processor core to the microcontroller core—timely updating the composite layer guarantees extremely smooth interface switching for the electronic device when switching between any processor cores.

[0177] S910: In response to the third operation, the second transition interface is displayed; the third operation indicates that the third interface is closed.

[0178] It is understandable that when the electronic device 100 displays a third interface, if a third user action is detected, for example, ... Figure 10 As shown in (l), the system detects that a user touches the third interface and moves it in a first direction a, where the first direction a can be horizontally to the right parallel to the display screen of the electronic device 100. In response to the user's third operation, the electronic device 100 closes the third interface and displays as shown in (l). Figure 10 The second transition interface is shown as (m) in the diagram.

[0179] The second transition interface may include a first application layer and a third composite layer, and the display area of ​​the first application layer in the second transition interface is smaller than that of the third composite layer. Figure 10The display area of ​​the first application layer in the third interface is shown in (d). That is, when the user exits the first application, the electronic device 100 can gradually shrink the first application layer until it disappears, so as to achieve a one-shot shrinking animation effect of the first application.

[0180] It is understandable that the specific implementation of S910 can be referenced from S404. To avoid repetition, it will not be elaborated here.

[0181] S911: Displays the fourth interface; the fourth interface includes the third composite layer.

[0182] It is understandable that when the electronic device 100 displays a third interface, if a third user action is detected, for example, ... Figure 10 As shown in (l), the system detects that a user touches the third interface and moves it in a first direction a, where the first direction a can be any direction parallel to the display screen of the electronic device 100. In response to the third operation, the electronic device 100 can close the third interface and first display as shown in (l). Figure 10 The second transition interface shown in (m) then displays as follows: Figure 10 The fourth interface is shown in (n).

[0183] After the electronic device 100 displays the fourth interface for a preset duration, such as Figure 10 As shown in (o), the electronic device 100 can display the second interface again. In this embodiment, by displaying the fourth interface and then displaying the second interface again, instead of overlaying the first composite layer on the second interface, the situation where the displayed content of the second interface is different from the previously displayed content can be avoided. That is, the first composite layer is not displayed on the actual interface and has no impact on the actual interface. This further ensures that the displayed content of the electronic device is the same before and after running and exiting the application, thereby ensuring that the electronic device can present a visual effect of seamless interface switching.

[0184] It is understandable that the specific implementation of S911 can be referenced from S404. To avoid repetition, it will not be elaborated here.

[0185] Thus, based on the above display method, not only can the content displayed on the fourth interface be the same as that on the second interface, but the electronic device 100 can also present a seamless visual effect of interface switching during the sequential display of the third, fourth, and second interfaces. Furthermore, when the user is detected running the first application, the electronic device 100 can gradually enlarge the first application layer until it fills the entire display screen; when the user is detected exiting the first application, the electronic device 100 can gradually shrink the first application layer until it disappears, thus presenting a one-shot animation effect of the first application. Similarly, when the user is detected exiting the third application, the electronic device 100 can gradually shrink the third application layer until it disappears, thus presenting a one-shot animation effect of the third application.

[0186] The following is combined Figure 8 and Figure 12A The effects of the display method mentioned in the embodiments of this application will be explained.

[0187] like Figure 12A As shown, when a user's screen-on operation is detected, such as when the user presses the display screen of electronic device 100, or when the user presses the power button 200 on electronic device 100, electronic device 100 can respond to the user's screen-on operation and display as shown. Figure 12A The first interface is shown in (a) above. This first interface may include a background layer.

[0188] When the electronic device 100 displays the first interface, if a user's first operation is detected, such as detecting that the user presses the power button 200 on the electronic device 100, the electronic device 100 can respond to the user's first operation and display something like... Figure 12A The second interface is shown in (b) above. This second interface may include a foreground layer and a background layer. The foreground layer may include multiple application components, and the background layer may apply a blur mask or a background blur effect.

[0189] When the electronic device 100 displays a second interface, if a second user action is detected, such as the user touching a first application component, the electronic device 100 can respond to the second user action by taking screenshots of the foreground layer and the background layer of the second interface, respectively, and then combining the screenshots to obtain a second composite screenshot layer. Furthermore, the electronic device 100 can first display, as shown in the image... Figure 12A The first transition interface corresponding to the first application shown in (c) is displayed as follows: Figure 12A The third interface corresponding to the first application shown in (d) is shown in the figure.

[0190] When the electronic device 100 displays a third interface, if a third user action is detected, for example... Figure 12A As shown in (e), the system detects that a user touches the third interface and moves it in a first direction a, where the first direction a can be horizontally to the right of the display screen of the electronic device 100. In response to the user's third operation, the electronic device 100 closes the third interface and first displays as shown in (e). Figure 12A The second transition interface shown in (f) then displays as follows: Figure 12A The fourth interface is shown in (g) above. This fourth interface may include the second screenshot composite layer.

[0191] After the electronic device 100 displays the fourth interface for a preset duration, such as Figure 12A As shown in (h), the electronic device 100 can display the second interface again.

[0192] Depend on Figure 12A It can be seen that because the foreground layer (i.e., the launcher layer) in the second interface has a Gaussian blur parameter, it seeps into the background layer of the second interface, blurring the background image in the background layer. Therefore, using component screenshots cannot capture the blurred background image seen through. Furthermore, when exiting the first application, the following will occur: Figure 12A (f) and Figure 12A The clear background image shown in (g) is then displayed, and then... Figure 12A When the second interface shown in (h) appears, there will be a jump from a clear background image to a blurry background image, which will cause the electronic device 100 to fail to present a visual effect of seamless interface switching.

[0193] In the embodiments of this application, such as Figure 8 As shown, a blurred background layer is obtained by first taking a screenshot of the background layer and blurring it. Then, when the application is detected to be running, the foreground layer and the blurred background layer are combined by taking screenshots to obtain a first composite layer, which is displayed when the application is exited. This ensures that the displayed content of the electronic device 100 is the same before and after the application is running and exited. For example, as shown... Figure 8 The content displayed on the interface before running the first application, as shown in (b) in the figure, and such as Figure 8 The content displayed on the interface after exiting the first application, as shown in (g) in the diagram, is the same, thus ensuring that the electronic device 100 can present a visual effect of seamless interface switching.

[0194] It is understandable that, in the case where the first application is a first-class application, i.e., the first application is a cross-core application, for Figure 8The various interfaces in the process can be displayed through the first processor core, the second interface, the first transition interface, the third interface, the second transition interface, and the fourth interface.

[0195] When the first application is a second type of application, for Figure 8 Each interface in the system can be displayed through the first processor core.

[0196] Therefore, when exiting the second type of application, the first application layer in the second transition interface begins to shrink. Since the application layer, foreground layer, and background layer in the second transition interface are all displayed through the first processor core, the display method mentioned in the embodiments of this application can be used for display. However, when exiting the first type of application, the second transition interface is displayed through the second processor core, that is, the application layer needs to be displayed through the second processor core, and the composite layer obtained by the first processor core capturing the foreground layer and background layer through component screenshot is received. Therefore, the display method mentioned in the embodiments of this application needs to be used for display.

[0197] The following is combined Figure 10 and Figure 12B The effects of the display method mentioned in the embodiments of this application will be explained.

[0198] like Figure 12B As shown, when a user's screen-on operation is detected, such as when the user presses the display screen of electronic device 100, or when the user presses the power button 200 on electronic device 100, electronic device 100 can respond to the user's screen-on operation and display as shown. Figure 12B The first interface is shown in (a) above. This first interface may include a background layer.

[0199] When the electronic device 100 displays the first interface, if a user's first operation is detected, such as detecting that the user presses the power button 200 on the electronic device 100, the electronic device 100 can respond to the user's first operation and display something like... Figure 12B The second interface is shown in (b) above. This second interface may include a foreground layer and a background layer. The foreground layer may include multiple application components, and the background layer may apply a blur mask or a background blur effect.

[0200] When the electronic device 100 displays a second interface, if a second user action is detected, such as the user touching a first application component, the electronic device 100 can respond to the second user action. Furthermore, the electronic device 100 can respond to the user's screenshot action by clicking the screen of the electronic device 100, and use a screenshot method to capture the second interface, obtaining a second screenshot layer. The electronic device 100 can also first display... Figure 12B The first transition interface corresponding to the first application shown in (c) will then display as follows: Figure 12B The third interface corresponding to the first application shown in (d) is shown in the figure.

[0201] When the electronic device 100 displays a third interface, if a third user action is detected, for example... Figure 12B As shown in (e), the system detects that a user touches the third interface and moves it in a first direction a, where the first direction a can be horizontally to the right of the display screen of the electronic device 100. In response to the user's third operation, the electronic device 100 closes the third interface and first displays as shown in (e). Figure 12B The second transition interface corresponding to the first application shown in (f) then displays as follows: Figure 12B The fourth interface is shown in (g) above. This fourth interface may include the second screenshot layer.

[0202] After the electronic device 100 displays the fourth interface for a preset duration, such as Figure 12B As shown in (h), the electronic device 100 can display the second interface again.

[0203] Depend on Figure 12B It is known that the electronic device 100 can respond to a user's tapping of its display screen to take a screenshot. For example, upon detecting a touchDown event, it can invoke a screenshot algorithm to capture the content displayed on the screen. However, if the electronic device 100 detects a user tapping the screen (i.e., a touchDown event), it might use a screenshot method to capture the content displayed on its screen, leading to frequent screenshots and severely impacting the performance of the electronic device 100 and related components. Furthermore, if the electronic device, after detecting a user tapping the screen, invokes a screenshot algorithm to capture the content displayed on its screen, it is highly likely that icon animations, button animations, and zoom-in animations from the first application (such as...) will be captured. Figure 12B (f) and Figure 12B (as shown in (g)). Thus, when exiting the first application, the following will appear: Figure 12B (f) and Figure 12BThe zoom-in animation of the first application, shown in (g), which differs from the content displayed on the second interface, causes screen flickering and visual stuttering. Furthermore, if the icon animation, button animation, and zoom-in animation of the first application have finished playing (i.e., the icon animation, button animation, and zoom-in animation of the first application displayed via the first processor core are not captured), and the interface displayed by the electronic device 100 is now the third interface displayed via the microcontroller core, screen flickering will also occur when exiting the first application.

[0204] In the embodiments of this application, such as Figure 10 As shown, a blurred background layer is obtained by first taking a screenshot of the background layer and blurring it. Then, when the application is detected to be running, the foreground layer and the blurred background layer are combined by taking screenshots to obtain a first composite layer, which is displayed when the application is exited. This ensures that the displayed content of the electronic device 100 is the same before and after the application is running and exited. For example, as shown... Figure 10 The content displayed on the interface before running the third application, as shown in (e) in the figure, and such as Figure 10 The content displayed on the interface after exiting the third application, as shown in (i), is the same. For example, as shown in (i), Figure 10 The content displayed on the interface before running the first application, as shown in (b) in the figure, and such as Figure 10 The content displayed on the interface after exiting the first application is the same as shown in (n), thus ensuring that the electronic device 100 can present a visual effect of seamless interface switching.

[0205] It is understood that the display method mentioned in the embodiments of this application can be applied to the electronic device 100. The hardware structure of the electronic device 100 is described below.

[0206] Figure 13 A schematic diagram of the hardware structure of an electronic device 100 is shown. The structure illustrated in this embodiment of the invention does not constitute a specific limitation on the electronic device. In other embodiments of this application, the electronic device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0207] like Figure 13 As shown, the electronic device 100 includes a watch body 210 and a watch strap 220. The watch body 210 and the watch strap 220 can be fixedly connected or detachably connected.

[0208] The watch body 210 can be circular, rectangular, or other shapes. The watch body 210 may include a housing 221 and a display screen 222.

[0209] The housing 221 and the display screen 222 enclose and form an accommodating space 230. For example, Figure 13 As shown, the accommodating space 230 can be used to accommodate various functional modules and electronic components of the electronic device 100, including but not limited to: processor, internal memory, universal serial bus (USB) interface, charging management module, power management module, battery, antenna and antenna, mobile communication module, wireless communication module, audio module, speaker, microphone, sensor module, buttons, motor, indicator, camera, and subscriber identification module (SIM) card interface, etc.

[0210] The sensor module may include one or more of the following sensors: pressure sensor, gyroscope sensor, 180C barometric pressure sensor, magnetic sensor, accelerometer, distance sensor, proximity sensor, fingerprint sensor, humidity sensor, temperature sensor, touch sensor, ambient light sensor, heart rate sensor, and electrocardiogram sensor.

[0211] The buttons include a power button, volume buttons, etc. These buttons can be mechanical or touch-sensitive. The electronic device 100 can receive button input and generate key signal inputs related to user settings and function control.

[0212] The watch strap 220 may include a strap body 310 and a connecting structure 320. Exemplarily, the strap body 310 may include a first strap body and a second strap body. The material of the strap body 310 may include, but is not limited to, metal, leather, rubber, ceramic, and nylon. The connecting structure 320 can be used to connect the first strap body and the second strap body.

[0213] like Figure 14 The diagram shows a schematic representation of the software architecture of an electronic device 100. It can be understood that the electronic device 100 may include a first processor core and a second processor core.

[0214] In this embodiment, the first processor core and the second processor core can be different processor cores within the same processor, or they can be different processor cores within different processors. The first processor and the second processor core can also be different operating systems; this application does not impose specific limitations. For example, the first processor core can be an application processor core, and the second processor core can be a microcontroller core.

[0215] In some implementations, the first processor core can also be referred to as a display system. This display system may include a screenshot module, a background layer module, a Gaussian blur layer module, and a foreground layer module. The screenshot module is used to capture a screenshot of the background layer in the background layer module and send it to the Gaussian blur layer module. The Gaussian blur layer module is used to apply a Gaussian blur to the background layer obtained from the screenshot, resulting in a blurred background layer. The blur parameters in the Gaussian blur layer module are the same as those in the foreground layer module. The screenshot module is also used to perform a screenshot compositing process on the foreground layer and the blurred background layer in the foreground layer module, resulting in a first composite layer.

[0216] It's understandable that the screenshot module can also be called the HybridSnapshot module. In the case of a smartwatch, the background layer module can be called the watch face layer module. The foreground layer module can also be called the launcher layer module.

[0217] In some implementations, the Gaussian blur layer module can be an ArkUI component containing only a container. This container can hold blur parameters, whose visibility attribute can be set to hidden. Furthermore, the Gaussian blur layer module is attached to the launcher layer module, loaded when the launcher layer is displayed, and destroyed when the launcher layer is hidden, ensuring its lifecycle is identical to that of the launcher layer module.

[0218] When loading the launcher layer, the Gaussian blur layer can be loaded into the tree node of the launcher layer module and added to the renderService's rendering. At this point, a screenshot of the image to be blurred (e.g., a watch face layer) can be used, and the captured image can be set as the background image in the Gaussian blur layer. This solves the problem of the blur parameters and the background image not being on the same layer. After the interface refreshes, this blurred background layer is ready and can be used as a Gaussian blur background control, captured and used at the appropriate time.

[0219] Thus, by creating a Gaussian blur layer module independent of the launcher layer module, and setting the blur parameters in the Gaussian blur layer module to be the same as those in the launcher layer module, this first composite layer can ensure that the content displayed on the electronic device is the same before and after running and exiting the application, thereby ensuring that the electronic device can present a visual effect of seamless interface switching.

[0220] The following is combined Figure 14 and Figure 15The process of determining the first composite layer mentioned in the embodiments of this application will be described.

[0221] like Figure 15 The diagram illustrates a process for determining a first composite layer. This determination of the first composite layer can be performed by an electronic device 100. For example, the determination of the first composite layer may include:

[0222] S1501: The launcher layer module in the application processor core sends load and initialization instructions to the Gaussian blur layer module in the application processor core.

[0223] S1502-S1503: In response to a user's instruction to open the launcher layer module, the launcher layer module in the application processor core sends a notification to the screenshot module in the application processor core to take a screenshot.

[0224] S1504: The screenshot module in the application processor core sends a screenshot command to the dial layer module.

[0225] S1505: The dial layer module in the application processor core returns the dial layer to the screenshot module in the application processor core.

[0226] S1506: The screenshot module in the application processor core sends a command to the Gaussian blur layer module to set the background.

[0227] S1507: The microcontroller core responds to a user command to open the launcher layer module.

[0228] It is understandable that the user's command to open the launcher layer module indicates that the user is running a cross-core application.

[0229] S1508-S1509: The screenshot module in the application processor core responds to the user's notification to take a screenshot by sending a screenshot command to the Gaussian blur layer module in the application processor core.

[0230] S1510: The Gaussian Blur Layer module in the application processor core returns a blurred background layer to the screenshot module in the application processor core.

[0231] S1511: The screenshot module in the application processor core sends a screenshot instruction to the launcher layer module in the application processor core.

[0232] S1512: The launcher layer module in the application processor core returns the foreground layer to the screenshot module in the application processor core.

[0233] S1513: The screenshot module in the application processor core performs composite processing on the foreground layer and the blurred background layer.

[0234] It is understandable that S1501 to S1513 are essentially the same as S402 to S403. Therefore, the specific implementation of S1501 to S1513 can be referred to S402 to S403. To avoid repetition, it will not be elaborated here.

[0235] This application provides a computer program product that, when run on a device, causes the device to execute the technical solutions described in the above embodiments. Its implementation principle and technical effects are similar to those of the related embodiments described above, and will not be repeated here.

[0236] This application provides a readable storage medium containing instructions that, when executed on a device, cause the device to perform the technical solutions described in the above embodiments. The implementation principle and technical effects are similar and will not be repeated here.

[0237] This application provides a chip for executing instructions. When the chip is running, it executes the technical solutions described in the above embodiments. Its implementation principle and technical effects are similar and will not be repeated here.

[0238] It is understood that the various embodiments of the mechanisms disclosed in this application can be implemented in hardware, software, firmware, or a combination of these implementation methods. Embodiments of this application can be implemented as computer programs or program code executable on a programmable system, the programmable system including at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device.

[0239] Program code can be applied to input instructions to execute the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, the processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application-specific integrated circuit (ASIC), or a microprocessor.

[0240] The program code can be implemented using a high-level procedural language or an object-oriented programming language to communicate with the processing system. Assembly language or machine language can also be used when needed. In fact, the mechanisms described in this application are not limited to any particular programming language. In either case, the language can be a compiled language or an interpreted language.

[0241] It should be noted that in the examples and description of this patent, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one" does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the aforementioned element.

[0242] Although this application has been illustrated and described with reference to certain embodiments thereof, those skilled in the art will understand that various changes in form and detail may be made thereto without departing from the scope of this application.

Claims

1. A display method, characterized in that, Applied to electronic devices, the method includes: The first interface is displayed; the first interface includes a background layer. In response to the first operation, the background layer is captured and blurred to obtain a blurred background layer, and a second interface displayed by the first operation instruction is shown; the second interface includes a foreground layer and the background layer, and the foreground layer includes a first application component; In response to the second operation, the foreground layer and the blurred background layer are subjected to a screenshot compositing process to obtain a first composite layer, and the third interface indicated by the second operation is displayed; the third interface includes the first application layer of the first application corresponding to the first application component; In response to a third operation, a fourth interface is displayed; the third operation instructs the third interface to be closed, and the fourth interface includes the first composite layer.

2. The method according to claim 1, characterized in that, Before displaying the third interface showing the second operation instruction, the method further includes: A first transition interface is displayed, which includes a first application layer, a foreground layer, and a background layer, wherein the area of ​​the first application layer in the first transition interface is smaller than the area of ​​the first application layer in the third interface.

3. The method according to claim 2, characterized in that, Before displaying the fourth interface, the method further includes: A second transition interface is displayed, which includes the first application layer and the first composite layer, and the area of ​​the first application layer in the second transition interface is smaller than the area of ​​the first application layer in the third interface.

4. The method according to claim 3, characterized in that, After displaying the fourth interface, the method further includes: The second interface is displayed.

5. The method according to claim 4, characterized in that, The first application is a first type of application, and the interface corresponding to the first type of application can be displayed through the first processor core or the second processor core in the electronic device; The first interface is displayed through the first processor core. The second interface is displayed through the first processor core. The first transition interface is displayed through the first processor core. The third interface is displayed through the second processor core. The second transition interface is displayed through the second processor core. The fourth interface is displayed through the second processor core.

6. The method according to any one of claims 1 to 5, characterized in that, The method further includes: In response to a first display command, the fifth interface corresponding to the second application, as instructed by the first display command, is displayed; The fifth interface includes a second application layer corresponding to the second application, a first application layer, a foreground layer, and a background layer.

7. The method according to claim 6, characterized in that, The method further includes: In response to the second display command, the second application layer, the foreground layer and the blurred background layer are subjected to screenshot compositing to obtain a second composite layer, and the sixth interface corresponding to the third application, as indicated by the second display command, is displayed. The second application is a second type of application, and the interface corresponding to the second type of application can be displayed through the first processor core in the electronic device. The sixth interface includes the third application layer corresponding to the third application, the second application layer, the first application layer, the foreground layer, and the background layer. The third application is a first type of application.

8. The method according to claim 7, characterized in that, The method further includes: In response to the fourth operation, the fifth interface is displayed; the fourth operation instructs the sixth interface to be closed, the fifth interface including the second composite layer.

9. The method according to claim 8, characterized in that, Before displaying the fifth interface, the method further includes: The third transition interface is displayed, which includes the third application layer and the second composition layer.

10. The method according to claim 8 or 9, characterized in that, The method further includes: In response to the fifth operation, the foreground layer and the blurred background layer are subjected to a screenshot composite processing to obtain a third composite layer, and the third interface is displayed, the third interface including the first application layer and the third composite layer.

11. A display system, characterized in that, include: Screenshot module, background layer module, Gaussian blur layer module, and foreground layer module; The screenshot module is used to take a screenshot of the background layer in the background layer module and send it to the Gaussian blur layer module; The Gaussian blur layer module is used to apply Gaussian blur to the background layer obtained from the screenshot processing to obtain a blurred background layer; wherein, the blur parameters in the Gaussian blur layer module are the same as the blur parameters in the foreground layer module; The screenshot module is also used to perform screenshot compositing on the foreground layer and the blurred background layer in the foreground layer module to obtain a first composite layer.

12. An electronic device, characterized in that, Includes: a memory for storing instructions executed by one or more processors of the electronic device. And a processor, which is one or more processors of the electronic device, for performing the display method according to any one of claims 1 to 10.

13. A readable storage medium, characterized in that, The readable storage medium stores instructions that, when executed on an electronic device, cause the electronic device to perform the display method according to any one of claims 1 to 10.

14. A computer program product, characterized in that, The computer program product includes computer instructions that, when executed by an electronic device, enable the electronic device to perform the display method as described in any one of claims 1 to 10.

15. A chip, characterized in that, The chip includes a processor coupled to a memory for executing a computer program or instructions stored in the memory, such that the chip implements the display method according to any one of claims 1 to 10.