Display method, electronic device, and storage medium

By saving and modifying the drawing information of the user interface, electronic devices can directly synthesize a similar interface when receiving an operation, solving the problems of latency and power consumption in generation and display at high resolution and refresh rate, and achieving faster interface display and energy saving.

WO2026237939A1PCT designated stage Publication Date: 2026-11-19HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2026/096429
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-05-13
Filing Date
2026-05-12
Publication Date
2026-11-19

AI Technical Summary

Technical Problem

As the screen resolution and refresh rate of electronic devices increase, the requirements for latency, smoothness, and power consumption in generating and displaying user interfaces also increase, which existing technologies struggle to address effectively.

Method used

By saving the drawing information of the first user interface, the electronic device can directly or after modification synthesize a second user interface that is the same as or similar to it when it receives an operation, thereby reducing the steps of repeatedly generating drawing information and improving display speed.

Benefits of technology

It speeds up the process of electronic devices resuming the display of the same or similar user interface, reduces user waiting time, and saves power consumption and operating resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2026096429_19112026_PF_FP_ABST
    Figure CN2026096429_19112026_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application are a display method, an electronic device, and a storage medium. On the basis of stored rendering information of a first user interface, the electronic device may restore a second user interface identical or similar to the first user interface, or restore a third view control identical or similar to a first view control in the first user interface, such that the speed at which the electronic device restores and displays the second user interface identical or similar to the first user interface can be increased, or the speed at which the electronic device restores and displays the third view control identical or similar to the first view control can be increased, thereby shortening user waiting time.
Need to check novelty before this filing date? Find Prior Art

Description

A display method, an electronic device, and a storage medium

[0001] This application claims priority to Chinese Patent Application No. 202510614939.5, filed on May 13, 2025, with the Chinese National Intellectual Property Administration, entitled “A Display Method, Electronic Device and Storage Medium”, the entire contents of which are incorporated herein by reference. Technical Field

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

[0003] With the development of electronic technology, the screen resolution and refresh rate of electronic devices affect the time it takes for the device to generate a single frame of the user interface. A higher screen resolution contains more pixels in a single frame, resulting in a longer time to generate that frame. Conversely, a higher screen refresh rate reduces the time required to refresh the user interface. As the screen resolution and refresh rate of electronic devices increase, the requirements for latency, smoothness, and power consumption in generating and displaying user interfaces become increasingly stringent. Summary of the Invention

[0004] This application provides a display method, an electronic device, and a storage medium. The electronic device can restore a second user interface that is the same as or similar to the first user interface, or restore a third view control that is the same as or similar to the first view control in the first user interface, based on the saved drawing information of the first user interface. This can speed up the speed at which the electronic device restores and displays the second user interface that is the same as or similar to the first user interface, or speed up the speed at which the electronic device restores and displays the third view control that is the same as or similar to the first view control, reducing the user's waiting time.

[0005] In a first aspect, this application provides a display method. The method includes: a first electronic device synthesizing and displaying a first user interface based on drawing information of a first user interface, the drawing information of the first user interface including drawing instructions for the first user interface; the first electronic device receiving a first operation to stop displaying the first user interface; and after the first electronic device stops displaying the first user interface, the first electronic device receiving and responding to a second operation, synthesizing and displaying a second user interface based on the drawing information of the first user interface, wherein the content of the second user interface is entirely or partially the same as the content of the first user interface.

[0006] Optionally, the first electronic device can reconstruct the second user interface based on the drawing information of the first user interface. In some embodiments, the first electronic device may not modify the drawing information of the first user interface, but directly synthesize and display the second user interface based on the drawing information of the first user interface. The content in the second user interface is completely identical to the content in the first user interface. In other embodiments, the first electronic device may modify the drawing information of the first user interface to obtain the drawing information of the second user interface, and then synthesize and display the second user interface based on the drawing information of the second user interface. The content in the second user interface is partially identical to the content in the first user interface. For example, refer to the description in the embodiment of FIG7A.

[0007] Optionally, the first electronic device can recover the third view control based on the drawing information of the first view control in the drawing information of the first user interface. In some embodiments, the first electronic device may not modify the drawing information of the first view control, but directly synthesize and display the third view control in the second user interface based on the drawing information of the first view control. The content in the third view control is completely the same as the content in the first view control. In other embodiments, the first electronic device may modify the drawing information of the first view control to obtain the drawing information of the third view control, and then synthesize and display the third view control in the second user interface based on the drawing information of the third view control. The content in the third view control is partially the same as the content in the first view control. For example, refer to the description in the embodiment of FIG9A.

[0008] By implementing this method, the first electronic device can restore a second user interface that is the same as or similar to the first user interface based on the saved drawing information of the first user interface, or restore a third view control that is the same as or similar to the first view control in the first user interface, without having to generate drawing information for the second user interface separately, or without having to generate drawing information for the third view control separately. This can speed up the speed at which the electronic device restores and displays a second user interface that is the same as or similar to the first user interface, or speed up the speed at which the electronic device restores and displays a third view control that is the same as or similar to the first view control, thereby reducing the user's waiting time.

[0009] In conjunction with the first aspect, in one possible implementation, the method further includes: the first electronic device storing drawing information of the first user interface. Thus, after the first electronic device stores the drawing information of the first user interface, it can synthesize and display the second user interface based on that information.

[0010] In conjunction with the first aspect, in one possible implementation, the first electronic device saves the drawing information of the first user interface, specifically including: saving the drawing information of the first user interface before the first electronic device stops displaying the first user interface; or saving the drawing information of the first user interface after the first electronic device stops displaying the first user interface.

[0011] In conjunction with the first aspect, in one possible implementation, when the content in the second user interface is completely identical to the content in the first user interface, the first electronic device synthesizes and displays the second user interface based on the drawing information of the first user interface. Specifically, this includes: the first electronic device acquiring the UI layout information of both the first and second user interfaces; if the UI layout information of the first and second user interfaces is identical, the first electronic device synthesizes and displays the second user interface based on the information of the first user interface. In this way, the first electronic device can synthesize and display the second user interface directly based on the drawing information of the first user interface without modifying it.

[0012] In conjunction with the first aspect, in one possible implementation, when the content in the second user interface is partially the same as the content in the first user interface, the first electronic device synthesizes and displays the second user interface based on the drawing information of the first user interface. Specifically, this includes: the first electronic device acquiring UI layout information of both the first and second user interfaces. The UI layout information of the first user interface includes the UI layout information of a first part of the content and the UI layout information of a second part of the content. The UI layout information of the second user interface includes the UI layout information of a third part of the content and the UI layout information of a fourth part of the content. If the UI layout information of the first part of the content and the UI layout information of the third part of the content are the same, and the UI layout information of the second part of the content and the UI layout information of the fourth part of the content are different, the first electronic device determines the drawing information of the second user interface based on the UI layout information of the second part of the content, the UI layout information of the fourth part of the content, and the drawing information of the first user interface. The drawing information of the second user interface includes drawing instructions for the second user interface. The first electronic device then synthesizes and displays the second user interface based on the drawing information of the second user interface. In this way, the first electronic device can modify the drawing information of the first user interface to obtain the drawing information of the second user interface, and then synthesize and display the second user interface based on the drawing information of the second user interface.

[0013] In conjunction with the first aspect, in one possible implementation, the first user interface includes a first view control and a second view control, and the drawing information of the first user interface includes the drawing information of the first view control and the drawing information of the second view control; the first electronic device synthesizes and displays the second user interface based on the information of the first user interface, specifically including: the first electronic device synthesizes and displays a third view control in the second user interface based on the drawing information of the first view control, and the content in the third view control is completely or partially the same as the content in the first view control.

[0014] By implementing this method, the first electronic device can restore some view controls in the first user interface based on the saved drawing information of the first user interface, without having to generate drawing information for the view controls in the first user interface separately. This can speed up the process of restoring and displaying the view controls in the first user interface and reduce the user's waiting time. For example, please refer to the description in the embodiment shown in Figure 9A.

[0015] In conjunction with the first aspect, in one possible implementation, when the content in the third view control is completely identical to the content in the first view control, the first electronic device synthesizes and displays the third view control in the second user interface based on the drawing information of the first view control. Specifically, this includes: the first electronic device acquiring the attributes of the first view control and the third view control; if the attributes of the first view control and the third view control are identical, the first electronic device synthesizes and displays the third view control in the second user interface based on the drawing information of the first view control. In this way, the first electronic device can synthesize and display the third view control in the second user interface directly based on the drawing information of the first view control without modifying it.

[0016] In conjunction with the first aspect, in one possible implementation, when the content in the third view control is partially the same as the content in the first view control, the first electronic device synthesizes and displays the third view control in the second user interface based on the drawing information of the first view control. Specifically, this includes: the first electronic device acquiring the attributes of the first view control and the third view control; if the attributes of the first view control and the third view control are different, the first electronic device determines the drawing information of the third view control based on the attributes of the first view control, the attributes of the third view control, and the drawing information of the first view control; and the first electronic device synthesizes and displays the third view control in the second user interface based on the drawing information of the third view control. In this way, the first electronic device can modify the drawing information of the first view control to obtain the drawing information of the third view control, and then synthesize and display the third view control in the second user interface based on the drawing information of the third view control.

[0017] In conjunction with the first aspect, in one possible implementation, the drawing information of the first user interface further includes drawing resource information of the first user interface; wherein, the drawing resource information of the first user interface includes any one or more of the following: the storage address of the drawing resource of the first user interface in the first electronic device, and the download address of the drawing resource of the first user interface on the server.

[0018] In conjunction with the first aspect, in one possible implementation, the first electronic device includes a first memory and a second memory, wherein the read speed of the first memory is faster than that of the second memory; the first electronic device stores the drawing information of the first user interface, specifically including: if a first condition is met, the first electronic device stores the drawing information of the first user interface in the first memory; if the first condition is not met, the first electronic device stores the drawing information of the first user interface in the second memory or a server.

[0019] In conjunction with the first aspect, in one possible implementation, the first condition includes: the usage frequency of the first user interface is greater than a first value; or, the first user interface is a user interface in a first application, and the first electronic device displays a task management center interface, which includes the task window of the first application; or, the first user interface is a user interface in a first application, and the first electronic device displays an application recommendation window, which includes the icon of the first application.

[0020] In conjunction with the first aspect, in one possible implementation, the first memory includes a cache, and the second memory includes main memory; or, the first memory includes main memory, and the second memory includes a hard disk; or, the first memory includes a cache, and the second memory includes a hard disk. The cache can be memory located inside the processor. Main memory is memory located outside the processor. The hard disk is also memory located outside the processor.

[0021] In conjunction with the first aspect, in one possible implementation, the first electronic device includes a first memory, a second memory, and a third memory. The read speed of the first memory is faster than that of the second memory, and the read speed of the second memory is faster than that of the third memory. The first electronic device stores the drawing information of the first user interface, specifically including: if a first condition is met, the first electronic device stores the drawing information of the first user interface in the first memory; if the first condition is met but the second condition is not met, the first electronic device stores the drawing information of the first user interface in the second memory; if neither the first nor the second condition is met, the first electronic device stores the drawing information of the first user interface in the third memory or in a server.

[0022] In conjunction with the first aspect, in one possible implementation, the usage frequency of the first user interface is greater than the first value, and the second condition includes: the usage frequency of the first user interface is greater than the second value and less than the first value.

[0023] In conjunction with the first aspect, in one possible implementation, the first memory includes a cache, the second memory includes RAM, and the third memory includes a hard disk.

[0024] The first electronic device has limited storage space. If it stores too much user interface rendering information, it can adjust the storage locations of multiple user interface rendering information to ensure sufficient storage space for the necessary data during operation, thus guaranteeing normal operation. By implementing this method, the first electronic device stores the rendering information of user interfaces with higher probability of use in a faster-access memory, accelerating the synthesis and display of that user interface.

[0025] Optionally, and not limited to two or three memories, the first electronic device may also include other memories, which is not limited in this application.

[0026] In conjunction with the first aspect, in one possible implementation, when the first electronic device stores the drawing information of the first user interface in the first memory, the method further includes: detecting that a third condition of the first electronic device being powered off is met, the first electronic device stores the drawing information of the first user interface stored in the first memory in a third memory or a server. This is because, after the first electronic device is powered off, the data stored in the first memory is deleted, but the data stored in the third memory is not deleted. Thus, upon detecting that the third condition of the first electronic device being powered off is met, the first electronic device can store the drawing information of the user interface stored in one or more memories in a server or a memory where the data stored after the first electronic device is powered off is not deleted, thus preventing the deletion of the drawing information of the user interface stored in one or more memories of the first electronic device after power-off.

[0027] Secondly, this application provides a display method applied to a system including a first electronic device and a second electronic device, wherein the first electronic device and the second electronic device establish a communication connection. The method includes: the first electronic device synthesizing and displaying a first user interface based on drawing information of a first user interface, wherein the drawing information of the first user interface includes drawing instructions of the first user interface; the first electronic device sending the drawing information of the first user interface to the second electronic device through the communication connection; and the second electronic device synthesizing and displaying a second user interface based on the drawing information of the first user interface, wherein the content of the second user interface is entirely or partially the same as the content of the first user interface.

[0028] Optionally, the drawing information of the first user interface can be sent directly from the first electronic device to the second electronic device, or the first electronic device can upload the drawing information of the first user interface to the server, and the second electronic device can obtain the drawing information of the first user interface from the server.

[0029] According to this method, the second electronic device can reconstruct a second user interface that is the same as or similar to the first user interface based on the drawing information of the first user interface. The second electronic device does not need to generate its own drawing information for the second user interface, which speeds up the process of reconstructing and displaying a second user interface that is the same as or similar to the first user interface, reducing user waiting time. For example, please refer to the descriptions in Figures 8 and 10.

[0030] In conjunction with the second aspect, in one possible implementation, the method further includes: the first electronic device storing drawing information of the first user interface.

[0031] In conjunction with the second aspect, in one possible implementation, the second user interface is the user interface in the first application; the drawing information of the first user interface also includes the metadata of the first user interface; the second electronic device synthesizes and displays the second user interface based on the drawing information of the first user interface, specifically including: if it is confirmed based on the metadata of the first user interface that the drawing information of the first user interface is available in the second electronic device, the second electronic device synthesizes the second user interface based on the drawing information of the first user interface.

[0032] In conjunction with the second aspect, in one possible implementation, the metadata of the first user interface includes any one or more of the following: the identifier of the first application, the version number of the first application, the device identifier of the first electronic device, and the device account information logged in on the first electronic device.

[0033] In conjunction with the second aspect, in one possible implementation, when the content in the second user interface is completely identical to the content in the first user interface, the second electronic device synthesizes and displays the second user interface based on the drawing information of the first user interface. Specifically, this includes: the second electronic device acquiring the UI layout information of the first user interface and the UI layout information of the second user interface; if the UI layout information of the first user interface and the UI layout information of the second user interface are identical, the second electronic device synthesizes and displays the second user interface based on the information of the first user interface.

[0034] In conjunction with the second aspect, in one possible implementation, when the content in the second user interface is partially the same as the content in the first user interface, the second electronic device synthesizes and displays the second user interface based on the drawing information of the first user interface. Specifically, this includes: the second electronic device acquiring the UI layout information of the first user interface and the UI layout information of the second user interface. The UI layout information of the first user interface includes the UI layout information of the first part of the content and the UI layout information of the second part of the content. The UI layout information of the second user interface includes the UI layout information of the third part of the content and the UI layout information of the fourth part of the content. If the UI layout information of the first part of the content and the UI layout information of the third part of the content are the same, and the UI layout information of the second part of the content and the UI layout information of the fourth part of the content are different, the second electronic device determines the drawing information of the second user interface based on the UI layout information of the second part of the content, the UI layout information of the fourth part of the content, and the drawing information of the first user interface. The drawing information of the second user interface includes the drawing instructions of the second user interface. Based on the drawing information of the second user interface, the second electronic device synthesizes and displays the second user interface.

[0035] In conjunction with the second aspect, in one possible implementation, the first user interface includes a first view control and a second view control, and the drawing information of the first user interface includes the drawing information of the first view control and the drawing information of the second view control; the second electronic device synthesizes and displays the second user interface based on the information of the first user interface, specifically including: the second electronic device synthesizes and displays a third view control in the second user interface based on the drawing information of the first view control, and the content in the third view control is completely or partially the same as the content in the first view control.

[0036] In conjunction with the second aspect, in one possible implementation, when the content in the third view control is completely identical to the content in the first view control, the second electronic device synthesizes and displays the third view control in the second user interface based on the drawing information of the first view control. Specifically, this includes: the second electronic device obtaining the attributes of the first view control and the attributes of the third view control; if the attributes of the first view control and the attributes of the third view control are identical, the second electronic device synthesizes and displays the third view control in the second user interface based on the drawing information of the first view control.

[0037] In conjunction with the second aspect, in one possible implementation, when the content in the third view control is partially the same as the content in the first view control, the second electronic device synthesizes and displays the third view control in the second user interface based on the drawing information of the first view control. Specifically, this includes: the second electronic device obtaining the attributes of the first view control and the third view control; if the attributes of the first view control and the third view control are different, the first electronic device determines the drawing information of the third view control based on the attributes of the first view control, the attributes of the third view control, and the drawing information of the first view control; and the second electronic device synthesizes and displays the third view control in the second user interface based on the drawing information of the third view control.

[0038] It should be noted that any one or more possible implementations provided in the first aspect can also be applied to a display method provided in the second aspect. For details, please refer to the introduction of any one or more possible implementations provided in the first aspect, which will not be repeated here.

[0039] Thirdly, this application provides an electronic device, including a first electronic device, which includes a memory and a processor; wherein the memory and the processor are coupled, the memory is used to store a computer program, and when the processor executes and calls the computer program, the first electronic device performs a display method provided in any possible implementation of any of the above aspects.

[0040] Fourthly, this application provides a computer-readable storage medium including instructions that, when executed on a first electronic device, cause the first electronic device to perform a display method provided in any possible implementation of any of the above aspects.

[0041] Fifthly, this application provides a chip system including one or more processors, which are used to invoke computer instructions to cause a first electronic device to execute a display method provided in any possible implementation of any of the above aspects.

[0042] Sixthly, this application provides a computer program product containing instructions that, when the computer program product is run on a first electronic device, causes the first electronic device to execute a display method provided in any possible implementation of any of the above aspects.

[0043] For a description of the beneficial effects in aspects two through six, please refer to the description of the beneficial effects in aspect one; this application will not repeat them here. Attached Figure Description

[0044] Figure 1 illustrates a schematic diagram of the specific steps involved in generating a user interface for an electronic device;

[0045] Figure 2A shows a schematic diagram of the hardware structure of an electronic device 100;

[0046] Figure 2B shows a schematic diagram of the software structure of an electronic device 100;

[0047] Figures 3A-3C and 4A-4C show schematic diagrams of a scenario where two sets of electronic devices 100 store drawing information of the first user interface;

[0048] Figures 5A-5C and 6A-6C show schematic diagrams of a scenario where two sets of electronic devices store drawing information of the user interface in 100 levels.

[0049] Figure 7A shows a schematic flowchart of a method for an electronic device 100 to synthesize and display a second user interface;

[0050] Figures 7B-7D illustrate a set of electronic devices 100 synthesizing and displaying a second user interface based on the drawing information of a first user interface;

[0051] Figure 8 shows a flowchart of a method for an electronic device 200 to synthesize and display a second user interface based on the drawing information of a first user interface stored in an electronic device 100;

[0052] Figure 9A shows a flowchart of a method for an electronic device 100 to synthesize and display a third view control;

[0053] Figures 9B-9E show a schematic diagram of a group of electronic devices 100 combined and displaying a third view control;

[0054] Figure 10 shows a flowchart of a method for an electronic device 200 to synthesize and display a third view control;

[0055] Figure 11 shows a schematic diagram of a display method;

[0056] Figure 12 shows a schematic diagram of another display method. Detailed Implementation

[0057] The technical solutions in the embodiments of this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the word "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0058] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Therefore, features defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.

[0059] The term "user interface (UI)" used in the following embodiments of this application refers to the medium interface through which an application or operating system interacts and exchanges information with a user. It realizes the conversion between the internal form of information and the form that the user can accept. The most common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be visual interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets displayed on the screen of a wearable device.

[0060] As the medium for interaction and information exchange between an application and a user, an electronic device needs to generate the user interface of the application in front of it in order to present the application's user interface to the user.

[0061] As shown in Figure 1, the specific steps for generating a user interface on an electronic device can be divided into four steps: step 1, step 2, step 3, and step 4.

[0062] Step 1: The electronic device obtains the UI layout information of the user interface.

[0063] UI layout information can refer to the properties of one or more view controls in the user interface. These properties can include, but are not limited to, any one or more of the following: shape, size, transparency, color, position, and the elements filled within the view control. The elements filled within the view control can include, but are not limited to, text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets. UI layout information can be a relative layout between multiple user interfaces or an absolute layout of the user interface relative to the display screen.

[0064] Optionally, the electronic device also needs to obtain information about the drawing resources.

[0065] Drawing resources can be resources needed to draw the user interface, such as text resources, image resources, video resources, animation resources, textures, 3D models, vertices, meshes, etc.

[0066] Optionally, the drawing resources can be stored in the memory of the electronic device. The information of the drawing resources can be the ID / index / store pointer of the drawing resources. The electronic device can store the drawing resources from the memory of the electronic device through the ID / index / store pointer of the drawing resources.

[0067] Optionally, the drawing resources can also be obtained from a server. The information of the drawing resources can be the network address of the drawing resources. Electronic devices can obtain the drawing resources from the server through the network address of the drawing resources.

[0068] In addition to the methods mentioned above, electronic devices can also acquire drawing resources through other means.

[0069] Optionally, the UI layout information of the user interface can be obtained by the application or by the operating system of the electronic device calling the central processing unit (CPU).

[0070] Optionally, step 1 can be performed at the application layer of the electronic device.

[0071] Step 2: The electronic device generates a rendering tree based on the UI layout information.

[0072] Optionally, the electronic device can also generate a rendering tree based on UI layout information and drawing resource information.

[0073] After obtaining the UI layout information of the user interface, or the UI layout information and the drawing resource information, the electronic device can generate a drawing rendering tree based on the UI layout information of the user interface, or the UI layout information and the drawing resource information.

[0074] A render tree is a data structure used to generate user interfaces. A user interface consists of nested view controls with parent-child relationships. The parent-child relationships between rendering nodes in the render tree generated by traversing the view controls are the same as those between the view controls. These parent-child relationships determine the nesting relationships between different rendering nodes, allowing the electronic device to correctly render the application's interface when generating a bitmap based on the render tree. A view control can correspond to one or more rendering nodes, with the root view control (DecorView) corresponding to the root rendering node (RootRenderNode). Rendering nodes also include rendering properties, which determine the position, size, transparency, color, brightness, and fill elements of the view control corresponding to that rendering node on the surface during bitmap rendering.

[0075] Optionally, the render tree can be generated by the application's main process calling the CPU or by the operating system's rendering service.

[0076] Optionally, step 2 can be performed in the framework layer / system service layer of the electronic device.

[0077] Step 3: The electronic device generates drawing instructions based on the rendering tree.

[0078] After obtaining the rendering tree, the electronic device can generate drawing instructions that the graphics drawing hardware can understand based on the rendering tree.

[0079] The drawing instruction is a data structure used to draw graphics, such as lines, rectangles, and text. It includes the drawing operation and related parameters. Electronic devices can convert rendering nodes in the rendering tree into application programming interfaces (APIs) of image processing libraries adapted to the graphics drawing hardware, such as OpenGLES or Vulcan APIs, to obtain the drawing instructions. For example, `DrawLineOp` is a data structure containing drawing data, such as line length and width.

[0080] Optionally, the graphics rendering hardware may include, but is not limited to, any one or more of the following: CPU, GPU (graphics processing unit), integrated circuit unit, etc. This application uses a GPU as an example for illustration.

[0081] The drawing instruction list can be a buffer that records all drawing instructions included in the user interface or their identifiers, such as addresses and sequence numbers. If the view controls remain unchanged or only partially change, the drawing instructions can be reused or modified.

[0082] Optionally, step 3 can be performed in the framework layer / system service layer of the electronic device.

[0083] Step 4: The electronic device draws the user interface based on the drawing instructions.

[0084] During step 4, the electronic device can draw a user interface based on drawing instructions, or based on drawing instructions and drawing resources. The user interface is then sent to the display screen for display.

[0085] Optionally, the electronic device can transmit drawing instructions, or drawing instructions and drawing resources, to the GPU via the CPU. The electronic device then uses the GPU to draw the user interface based on the drawing instructions, or based on the drawing instructions and drawing resources.

[0086] Optionally, step 4 can be performed at the hardware layer of the electronic device.

[0087] It should be noted that each step is only used to explain the steps involved in generating the user interface and does not constitute a limitation.

[0088] As can be seen from the above steps, generating a single user interface frame requires an electronic device to perform multiple steps. With the development of electronic technology, the screen resolution and refresh rate of an electronic device affect the time it takes to generate a single user interface frame. Specifically, the higher the screen resolution, the more pixels a single user interface frame contains, and the longer it takes to generate that frame. Conversely, the higher the screen refresh rate, the shorter the time it takes to refresh the user interface. As the screen resolution and refresh rate of electronic devices increase, the requirements for latency, smoothness, and power consumption in generating and displaying user interfaces become increasingly stringent.

[0089] Based on the above analysis, this application provides an interface generation method, comprising: after an electronic device displays a first user interface of a first application, the electronic device acquires and saves the drawing information of the first user interface; the electronic device receives a first operation input by a user and stops displaying the first user interface of the first application; after the electronic device stops displaying the first user interface of the first application, the electronic device receives a second operation input by the user, the second operation being used to trigger the electronic device to display a second user interface of the first application; in response to the second operation, the electronic device can acquire the drawing information of the first user interface, synthesize the second user interface based on the drawing information of the first user interface, and display the second user interface, wherein the interface content of the second user interface is completely or partially the same as the interface content of the first user interface.

[0090] The drawing information of the first user interface may include any one or more of the following: drawing instructions for the first user interface, metadata information of the first user interface, UI layout information of the first user interface, and drawing resource information of the first user interface.

[0091] Using this method, the electronic device can save the drawing information of the first user interface. When it receives an operation to display a second user interface that is the same as the first user interface, the electronic device does not need to calculate the drawing information for calculating the second user interface. Instead, it can reuse the saved drawing information of the first user interface to synthesize the second user interface. This method can not only save the operation of the electronic device and save power consumption, but also speed up the synthesis of the second user interface and reduce the latency of the electronic device in displaying the second user interface.

[0092] In some embodiments, when receiving an operation to display a second user interface that is partially identical to the first user interface, the electronic device may not need to recalculate the drawing information of the second user interface. Instead, it can reuse the saved drawing information of the first user interface, modify the drawing information of the first user interface, and obtain the drawing information of the second user interface. The electronic device can synthesize the second user interface based on the drawing information of the second user interface and display the second user interface, wherein the interface content of the second user interface is partially identical to the interface content of the first user interface.

[0093] In this way, electronic devices can also modify the drawing information of the saved first user interface, and then synthesize the user interface to be displayed based on the modified drawing information of the first user interface.

[0094] Specifically, for how an electronic device saves the drawing information of the user interface, and how the electronic device synthesizes the user interface to be displayed based on the stored drawing information of the user interface, please refer to the description below, which will not be repeated here.

[0095] Figure 2A shows a schematic diagram of the hardware structure of an electronic device 100.

[0096] Electronic device 100 may include a processor 110, a memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a sensor module 180, a display screen 194, a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include one or more sensors, such as a gyroscope sensor 180B, a magnetic sensor 180D, an accelerometer sensor 180E, a proximity sensor 180F, a touch sensor 180K, etc. In some embodiments, the sensor module 180 may also include one or more of the following sensors: a pressure sensor, a barometric pressure sensor, a proximity sensor, a fingerprint sensor, a temperature sensor, an ambient light sensor, a bone conduction sensor, etc.

[0097] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more 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.

[0098] Processor 110 may include one or more processing units, such as application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.

[0099] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.

[0100] In some embodiments, the processor 110 may include one or more interfaces, such as a universal serial bus (USB) interface.

[0101] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, or USB Type-C port. USB port 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.

[0102] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.

[0103] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, memory 121, display 194, and wireless communication module 160, etc.

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

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

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

[0107] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, demodulates and filters the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, frequency modulate and amplify them, and then convert them into electromagnetic waves for radiation via antenna 2.

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

[0109] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0110] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel.

[0111] The memory 121 is used to store the drawing information of the user interface, which includes any one or more of the following: drawing instructions of the user interface, metadata information of the user interface, UI layout information of the user interface, drawing resource information of the user interface, etc.

[0112] In some embodiments, the memory 121 in the electronic device 100 may include, but is not limited to, any one or more of the following: cache, memory, hard disk.

[0113] Optionally, the cache can also be referred to as a high-speed buffer memory.

[0114] Memory can include random access memory (RAM), etc.

[0115] Hard disks can include read-only memory (ROM), etc.

[0116] Among them, the data read speed of the cache is faster than that of the memory, the data read speed of the memory is faster than that of the hard disk, and the data read speed of the hard disk is faster than that of the server.

[0117] The storage space of the cache is less than the storage space of the memory, the storage space of the memory is less than the storage space of the hard disk, and the storage space of the hard disk is less than the storage space of the server.

[0118] Electronic device 100 can implement audio functions, such as making calls and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, and application processor.

[0119] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.

[0120] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.

[0121] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.

[0122] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C.

[0123] The gyroscope sensor 180B can be used to determine the motion attitude of the electronic device 100.

[0124] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip cover.

[0125] The accelerometer 180E can detect the magnitude of acceleration of electronic device 100 in various directions (generally three axes).

[0126] Touch sensor 180K, also known as a "touch device," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touchscreen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can then transmit the detected touch operation to the application processor to determine the type of touch event.

[0127] In some embodiments, the electronic device 100 may further include one or more of buttons, motors, and indicators. Buttons may include a power button, volume buttons, etc. Buttons may be mechanical buttons or touch-sensitive buttons.

[0128] The SIM card interface 195 is used to connect the SIM card.

[0129] Please refer to Figure 2B, which exemplarily illustrates the software structure block diagram of electronic device 100.

[0130] The electronic device provided in this application embodiment can run an operating system (OS). This operating system can be various operating systems used in industry, such as operating systems developed based on OpenHarmony, like HarmonyOS; or other operating systems such as Android and iOS mobile operating systems; it can also be various open-source operating systems or their derivatives, such as Linux OS, and other embedded operating systems; or it can be a future new operating system, such as an AI operating system based on artificial intelligence. An operating system is a set of interconnected system software programs that manage and control the operation of electronic devices, utilize and run hardware and software resources, and provide public services to organize user interaction. In electronic devices, the operating system connects downwards to the physical devices at the hardware layer and provides a runtime environment for application software upwards.

[0131] An operating system typically includes a kernel layer, a middleware layer, and an application layer. The application layer includes applications, which can include system applications and third-party applications. The middleware layer includes a suite of software providing various services to application developers, or frameworks providing services such as databases, multimedia, and graphics, or capabilities such as distributed scheduling and system scaling. For example, the middleware layer may include a framework layer and / or a system service layer. The framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The system service layer includes the system's core capabilities, providing services to applications through the framework layer. The kernel layer is the layer between hardware and software. The kernel layer may include hardware drivers and the operating system kernel. In addition to providing hardware drivers, the kernel layer also supports functions such as memory management and system process management.

[0132] The electronic devices we use in our daily lives come in various types and forms, and are applied in a wide range of scenarios. Therefore, based on the different forms and functions of electronic devices, different application scenarios, and different user needs, the operating systems used in these devices may also differ. The basic functions implemented by the electronic device provided in this application can be implemented using a general-purpose operating system or a dedicated operating system. To more clearly illustrate the implementation of the embodiments of this application under a specific operating system, the architecture of HarmonyOS is shown below. Those skilled in the art can deduce the implementation of the embodiments of this application under other specific operating systems, such as Android.

[0133] As shown in Figure 2B, the software architecture of an electronic device can be divided into several layers. In some embodiments, from bottom to top, these layers are: kernel layer, system service layer, framework layer, and application layer. Layers communicate with each other through software interfaces. System functions can be tailored, added, or combined at the subsystem level depending on the deployment scenario of different device forms. Each subsystem can also be tailored, added, or combined at the functional level.

[0134] The Kernel Abstraction Layer (KAL) provides basic kernel capabilities to upper layers by shielding the differences between multiple kernels, including but not limited to process / thread management, memory management, file system, network management, and peripheral device management.

[0135] Kernel Subsystem: Supports the selection of a suitable OS kernel for different resource-constrained devices, including but not limited to Linux kernel, HarmonyOS kernel, LiteOS (Lite Operating System), etc.

[0136] Driver Subsystem: The driver framework is the foundation for the open system hardware ecosystem, providing unified peripheral access capabilities and a framework for driver development and management. The driver framework includes: display drivers, camera drivers, audio drivers, Bluetooth drivers, sensor drivers, etc.

[0137] The system service layer comprises the core capabilities of the system, providing services to applications through the framework layer. This layer includes, but is not limited to, the following subsystems:

[0138] The system's basic capability subsystem set provides fundamental capabilities for the operation, scheduling, and migration of distributed applications across multiple devices. This set may include distributed soft bus, distributed data management, distributed task scheduling, and Ark multi-language runtime; it may also include multi-modal input subsystem, graphics subsystem, security subsystem, and AI business subsystem.

[0139] Basic software service subsystem set: provides public and general software services; the basic software service subsystem set may include event notification subsystem, telephone service subsystem, multimedia subsystem, etc.

[0140] Enhanced software service subsystem suite: Provides differentiated enhanced software services for different devices; the enhanced software service subsystem suite may include smart screen proprietary business subsystem, wearable proprietary business subsystem, IoT proprietary business subsystem, etc.

[0141] Hardware service subsystem set: Provides hardware services; the hardware service subsystem set may include location service subsystem, user IAM (Identity and Access Management) subsystem, wearable proprietary hardware service subsystem, biometric identification, IoT proprietary hardware service subsystem, etc.

[0142] Distributed task scheduling enables distributed service management (discovery, synchronization, registration, and invocation), supporting remote startup, remote invocation, remote connection, and migration of applications across devices.

[0143] Distributed data management enables data synchronization, data storage, data sharing, and data access across all scenarios and devices.

[0144] The distributed soft bus provides communication-related capabilities for seamless interconnection between multiple devices, including: WLAN service capabilities, Bluetooth service capabilities, soft bus, inter-process communication (IPC), and StarFlash communication capabilities.

[0145] Ark Multilingual Runtime is a unified compilation runtime platform designed to support the joint compilation and execution of multiple programming languages ​​and multiple chip platforms.

[0146] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The framework layer includes: the ArkUI framework (which provides a complete infrastructure for UI development of system applications, including UI functions such as components, layouts, animations, and interactive events, as well as a real-time interface preview tool), the user application framework, and the Ability framework (an Ability is a lightweight application; the Ability framework schedules and manages the operation and lifecycle of Abilities). Different devices may have different operating systems, and the APIs they support may also differ.

[0147] The HarmonyOS API is a series of open capabilities provided to support HarmonyOS application development. The HarmonyOS API can be set at the framework layer or independently of the framework layer. The HarmonyOS API includes the Audio API (audio service), Push API (push service), and Account API (account service), among others.

[0148] Applications can include system apps and extended / third-party apps. System apps can include the desktop, control bar, settings, contacts, phone, camera, etc., while extended / third-party apps can include social apps, travel apps, etc.

[0149] The following section provides a detailed description of a user interface generation method provided in this application.

[0150] 1. Electronic device 100 stores the drawing information of the first user interface.

[0151] If the first user interface meets the third condition, the electronic device 100 can save the drawing information of the first user interface. When the electronic device 100 displays a second user interface that is entirely or partially the same as the first user interface, the electronic device 100 can reuse the saved drawing information of the first user interface, and based on the saved drawing information of the first user interface, synthesize the second user interface and display the second user interface. The content of the second user interface is entirely or partially the same as the content of the first user interface. The drawing information of the first user interface may include any one or more of the following: drawing instructions for the first user interface, metadata information of the first user interface, UI layout information of the first user interface, and drawing resource information of the first user interface.

[0152] The third condition may include, but is not limited to, any of the following:

[0153] A. The third condition includes: the first user interface is the user interface displayed in the foreground when the electronic device 100 switches the first application to be displayed in the background.

[0154] Optionally, the third condition may also include: the first user interface may be the last user interface that the electronic device 100 displayed in the foreground when the first application is switched to be displayed in the background.

[0155] When the electronic device 100 displays the first user interface, the electronic device 100 receives a user operation to switch the first user interface to the background display. In response to the user operation, the electronic device 100 stops displaying the first user interface and saves the drawing information of the first user interface.

[0156] When the electronic device 100 switches the first user interface to the background, the user will most likely switch it back to the foreground. Therefore, after receiving the user's operation to switch the first user interface to the background, the electronic device 100 can save the drawing information of the first user interface. This reduces the time it takes for the electronic device 100 to draw the first user interface when it displays it again, and also speeds up the process of displaying the first user interface again.

[0157] In some embodiments, after receiving a user operation to switch the first user interface to the background, when the duration of the first user interface being switched to the background reaches a preset duration, or when the memory usage exceeds a threshold, the electronic device 100 stops refreshing the user interface of the first application, the process of the first application enters a dormant state, and the electronic device 100 can save the drawing information of the first user interface.

[0158] B. The third condition includes: the first user interface is the homepage of the first application.

[0159] When the first application is closed, the electronic device 100 can receive user operation to open the first application. In response to the user operation, the electronic device 100 can display the first user interface of the first application. The first user interface is the home page of the first application. The electronic device 100 can save the drawing information of the first user interface.

[0160] When the first application is closed, the electronic device 100 can receive user input to open the first application and display the homepage of the first application. Therefore, the electronic device 100 can save the rendering information of the first application's homepage. The next time the first application is opened from its closed state, the electronic device 100 can retrieve the saved rendering information of the first application's homepage and quickly recreate the homepage based on that information. This reduces the time it takes for the electronic device 100 to render the homepage and speeds up the display of the first application's homepage.

[0161] Optionally, after each time the electronic device 100 stops displaying the homepage of the first application, the electronic device 100 can update the rendering information of the homepage of the first application to the memory.

[0162] C. The third condition includes: the first user interface is the system interface of the electronic device 100.

[0163] Electronic device 100 can receive user operations and display a first user interface. When the first user interface is the system interface of electronic device 100, the user may frequently view the system interface of electronic device 100. Therefore, when electronic device 100 displays the system interface of electronic device 100, electronic device 100 can save the drawing information of the system interface of electronic device 100.

[0164] Optionally, the system interface of the electronic device 100 may include, but is not limited to, any one or more of the following: the negative one screen interface, the pull-down notification bar interface, the system settings interface, the voice assistant interface, etc.

[0165] Optionally, after the electronic device 100 stops displaying its system interface, the electronic device 100 may save the drawing information of its system interface.

[0166] D. The third condition includes: the first user interface is the user interface used more frequently than the first frequency in the first application.

[0167] Electronic device 100 can count the number of times the same user interface is used in various applications within a first time period to determine the usage frequency of the same user interface in each application. If the usage frequency of the first user interface in the first application is greater than a first frequency, the first user interface in the first application is the user interface that the user frequently uses. Therefore, when electronic device 100 displays the first user interface of the first application, electronic device 100 can save the drawing information of the first user interface. When displaying the first user interface of the first application again, electronic device 100 can reuse the saved drawing information of the first user interface, and based on the saved drawing information, synthesize the first user interface and display it. This can reduce the time it takes for electronic device 100 to draw the first user interface and speed up the speed at which electronic device 100 displays the first user interface again.

[0168] E. The third condition includes: the first user interface may be a non-home page of the first application that is triggered by the icon of the first application to be displayed on the electronic device 100.

[0169] For example, the first application can be an instant messaging application, and the first user interface can be the Moments interface within the instant messaging application.

[0170] As shown in Figure 3A, the electronic device 100 displays a desktop, which may include: a status bar, a calendar indicator, a weather indicator, a tray with icons for frequently used applications, and other application icons. Among them:

[0171] Other application icons may include the Weather app icon, Huawei App Store icon, Smart Home app icon, Health app icon, Notes app icon, Calendar app icon, Lifestyle Services app icon, and Instant Messaging app icon. Below these application icons, a page indicator may also be displayed to show the position of the currently displayed page relative to other pages. Below the page indicator is a tray icon displaying frequently used application icons, which may include the Camera app icon, Contacts app icon, Phone app icon, and Messages app icon. This tray icon display remains visible when switching pages.

[0172] As shown in Figures 3A and 3B, the electronic device 100 can receive user input operations on the instant messaging application icon, such as a long press. In response to the user's input, the electronic device 100 can display a prompt bar 301 as shown in Figure 3B. The prompt bar 301 includes multiple options, such as "Delete App," "Share App," "Scan QR Code," and "Display Moments" interface. Users can delete the installation package of the instant messaging application installed on the electronic device 100 using the "Delete App" option. Users can share the download link of the instant messaging application to other applications on the electronic device 100 or to other devices near the electronic device 100 using the "Share App" option. Users can display the QR code scanning interface of the instant messaging application on the electronic device 100 using the "Scan QR Code" option to obtain the information corresponding to the QR code. Users can display the Moments interface on the electronic device 100 using the "Display Moments" option, where they can view media content shared by contacts in the instant messaging application. Media content can include, but is not limited to, text, images, and videos.

[0173] As shown in Figures 3B-3C, the electronic device 100 can receive input operations from the user regarding the options for displaying the Moments interface, such as a click operation. In response to the user's input operation, the electronic device 100 can display the Moments interface 330 shown in Figure 3C.

[0174] As shown in Figure 3C, the Moments interface 330 includes the user's name "AAA" and media content posted by multiple contacts of the user, such as picture 302 posted by contact "Henry" and picture 303 posted by contact "Lucy".

[0175] Using the method shown in Figures 3A-3C, users can trigger the display of the instant messaging application's Moments interface on the electronic device 100 by clicking the instant messaging application's icon. This requires only one step to trigger the display of the instant messaging application's non-homepage on the electronic device 100, saving users time and effort.

[0176] Optionally, in response to an operation on the icon of the first application, when the electronic device 100 displays a non-homepage of the first application, the electronic device 100 can save the drawing information of the non-homepage of the first application. Thus, the next time the non-homepage of the first application is displayed, the electronic device 100 can retrieve the saved drawing information of the non-homepage of the first application, synthesize and display the non-homepage of the first application, which can speed up the synthesis and display of the non-homepage of the first application by the electronic device 100.

[0177] F. The third condition includes: the first user interface is a non-home page of the first application that can be triggered by an operation in the second application to be displayed on the electronic device 100.

[0178] The non-homepage of the first application may include, but is not limited to, the sharing interface of the first application, the payment interface of the first application, the interface associated with the bottom shortcut key, the interface associated with the top shortcut key, etc.

[0179] For example, the first application can be the Huawei Video application, the second application can be the news application, and the first user interface can be the first video playback interface in the Huawei Video application.

[0180] As shown in Figure 4A, the electronic device 100 displays an interface with a news application. This interface displays multiple news items and links 401. Link 401 displays the text "This video is good, click to play," which prompts the user that clicking link 401 will redirect to the corresponding application to play the video. Link 401 also displays a close option 402, which the user can use to stop the electronic device 100 from displaying link 401.

[0181] As shown in Figures 4A and 4B, the electronic device 100 can receive input operations from the link 401, such as a long press operation. In response to the user's input operation, the electronic device 100 can display the prompt information shown in Figure 4B. The prompt information includes the text "Redirecting to Huawei Video...". This prompt information is used to inform the user that they are about to be redirected to the Huawei Video application.

[0182] As shown in Figure 4C, after the electronic device 100 has prepared the video resources, the electronic device 100 can display the video playback interface 403 shown in Figure 4C. The video playback interface 403 includes the video content played by the Huawei video application.

[0183] Using the method shown in Figures 4A-4C, users can trigger the electronic device 100 to jump to play videos in the Huawei Video application by performing an operation within the news application. This requires only one operation to trigger the electronic device 100 to play videos in the Huawei Video application, saving users time and effort.

[0184] Optionally, in response to an operation within the second application, when the electronic device 100 switches to displaying a non-homepage of the first application, the electronic device 100 can save the drawing information of the non-homepage of the first application. Thus, the next time the non-homepage of the first application is displayed, the electronic device 100 can retrieve the saved drawing information, synthesize and display the non-homepage of the first application, thereby speeding up the synthesis and display of the non-homepage of the first application by the electronic device 100.

[0185] It should be noted that the first condition is not limited to the above-mentioned types, and may also include other times when drawing information of the first user interface is saved, which is not limited in this application.

[0186] 2. Hierarchical storage of user interface rendering information, and dynamic adjustment of the storage location of user interface rendering information.

[0187] In some embodiments, the storage space of the electronic device 100 is limited. If the electronic device 100 stores too much user interface drawing information, the electronic device 100 can adjust the storage location of multiple user interface drawing information to ensure that the electronic device 100 has enough storage space to store the necessary data required by the electronic device 100 during operation, and to ensure the normal operation of the electronic device 100.

[0188] Example 1: If the probability of using the user interface is greater than a first value, the drawing information of the user interface can be stored in the first memory. If the probability of using the user interface is less than the first value, the drawing information of the user interface can be stored in the second memory or the server, wherein the read speed of the first memory is greater than the read speed of the second memory or the server.

[0189] In this way, the electronic device 100 can store the drawing information of the user interface corresponding to the user interface that is more likely to be used in a faster memory, which can speed up the process of the electronic device 100 to synthesize and display the user interface.

[0190] Optionally, the electronic device 100 may determine the probability of use of each user interface based on the user's personal data.

[0191] In some embodiments, if the first user interface meets a first condition, the electronic device 100 can obtain the usage frequency of the first user interface. If the usage frequency of the first user interface is greater than a first value, the electronic device 100 can store the drawing information of the first user interface in a first memory. If the usage frequency of the first user interface is less than the first value, the electronic device 100 can store the drawing information of the first user interface in a second memory or a server.

[0192] In some embodiments, if the usage frequency of the first user interface is less than a first value, the electronic device 100 can store the drawing information of the first user interface in a second memory or a server, and save the storage address (or memory pointer) of the drawing information of the first user interface in the second memory or server in the first memory. Thus, when it is necessary to retrieve the drawing information of the user interface from a memory or server with a slower read speed, the electronic device 100 does not need to traverse the storage units in the slower memory or the server; it can quickly retrieve the storage address of the drawing information of the first user interface in the second memory or server from the faster-reading memory, and quickly retrieve the drawing information of the first user interface based on the storage address of the first user interface in the second memory or server.

[0193] In some embodiments, after the electronic device 100 stores the drawing information of the first user interface in the second memory or server, the electronic device 100 can periodically / irregularly obtain the usage frequency of the first user interface. If the usage frequency of the first user interface is greater than a first value, the electronic device 100 can store the drawing information of the first user interface in the first memory and delete the drawing information of the first user interface stored in the second memory or server.

[0194] For example, if electronic device 100 includes a cache, in some embodiments the first memory may be a cache and the second memory may be RAM. In other embodiments, the first memory may be a cache and the second memory may be a hard disk.

[0195] For example, if the electronic device 100 does not include a cache, in some embodiments the first memory may be RAM and the second memory may be a hard disk.

[0196] Optionally, in addition to the first and second memories, other memories may be included, and the usage probability of the user interface may be divided into more levels, with each level corresponding to a type of memory. The electronic device 100 may store the user interface rendering information in the corresponding memory based on the usage probability of the user interface.

[0197] For example, the electronic device 100 may also include a third memory. The read speed of the first memory is greater than that of the second memory, and the read speed of the second memory is greater than that of the third memory. The electronic device 100 can divide the usage frequency of the user interface into three levels, with each level corresponding to a memory. The electronic device 100 can store the drawing information of the user interface in the corresponding memory based on the usage probability of the user interface.

[0198] For example, if the probability of using the first user interface is greater than a first value, the drawing information of the first user interface can be stored in the first memory. If the probability of using the first user interface is greater than a second value but less than the first value, the drawing information of the first user interface can be stored in the second memory. If the probability of using the first user interface is less than the second value, the drawing information of the first user interface can be stored in the third memory or the server.

[0199] For example, if electronic device 100 includes a cache, the first memory may be a cache, the second memory may be RAM, and the third memory may be a hard disk.

[0200] Example 2: If the first application meets the first condition, the electronic device 100 stores the drawing information of the first user interface in the first memory. The reading speed of the first memory is greater than the reading speed of the second memory. The first user interface is the user interface in the first application.

[0201] If the first application meets the first condition, the user will likely trigger the electronic device 100 to display the first user interface of the first application. The electronic device 100 can store the drawing information of the first user interface in the first memory. When the operation to display the first user interface of the first application is received, the electronic device 100 can obtain the drawing information of the first user interface from the first memory more quickly, synthesize and display the first user interface, which can speed up the display speed of the electronic device 100 of the first user interface and respond to user operations more quickly.

[0202] The first condition may include, but is not limited to, any one or more of the following:

[0203] A. The first condition includes: the electronic device 100 displays a multi-tasking window management interface, and the multi-tasking window management interface displays the task window of the first application.

[0204] In some embodiments, the electronic device 100 can receive user operations and display a multi-task window management interface, which displays task windows of one or more applications that are currently open on the electronic device 100. The electronic device 100 can store the user interface rendering information of the one or more applications in a first memory. When the user clicks on the task window of any application, the electronic device 100 can quickly retrieve the rendering information of the application's user interface from the first memory, thereby speeding up the process of composing and displaying the application's user interface and also accelerating the response speed of the electronic device 100 to user operations.

[0205] As shown in Figure 5A, the electronic device 100 displays a desktop with icons for multiple applications. The electronic device 100 can receive swiping operations performed by the user on the desktop, such as swiping up from the bottom of the desktop. In response to this operation, the electronic device 100 can display the multitasking management center interface shown in Figure 5B.

[0206] Optionally, the user operation that enables the electronic device 100 to display the multi-task management center interface can be other operations, which are not limited in this application.

[0207] As shown in Figure 5B, the multitasking management center interface includes task windows for multiple open applications. For example, task windows for Huawei Video, Email, Instant Messaging, and Contacts applications. The electronic device 100 can receive swiping operations from the user on the multitasking management center interface, such as swiping left or right, to display task windows for other applications within the multitasking management center interface.

[0208] Optionally, the task windows of multiple applications displayed in the multitasking management center interface can be sorted sequentially according to the last time the user operated on the application. For example, the task windows of multiple applications displayed from left to right in the multitasking management center interface can be sorted from latest to earliest according to the last time the user operated on the application. Among them, the last time the user operated on the Huawei Video application is closest to the current time, the last time the user operated on the Huawei Video application is later than the last time the user operated on the Email application, the last time the user operated on the Email application is later than the last time the user operated on the Notes application, and so on.

[0209] After the electronic device 100 displays the multitasking management center interface, it can store the drawing information of the user interfaces of the multiple open applications in a first memory. For example, the electronic device 100 can store the drawing information of the user interface of the Huawei Video application, the email application, the instant messaging application, and the contacts application in the first memory. Optionally, the electronic device 100 may also include other open applications, and it can also store the drawing information of the user interfaces of these other open applications in the first memory.

[0210] As shown in Figures 5B and 5C, the electronic device 100 can receive user input operations on the task window of the Huawei Video application, such as a click operation. The electronic device 100 can then display the video playback interface shown in Figure 5C. The video playback interface shown in Figure 5C can be synthesized by the electronic device 100 based on the drawing information of the video playback interface in the Huawei Video application stored in the first memory. This can speed up the display speed of the video playback interface in the Huawei Video application by the electronic device 100, and also speed up the response speed of the electronic device 100 to user operations.

[0211] B. The first condition includes: the electronic device 100 displays a first window, which displays icons of one or more applications recommended by the electronic device 100.

[0212] In some embodiments, the electronic device 100 can receive user operations and display an application recommendation window, which includes icons of one or more applications whose user usage probability is greater than a first value. The electronic device 100 can store the drawing information of the user interface of the one or more applications in a first memory. When the user clicks on the icon of any application, the electronic device 100 can quickly retrieve the drawing information of the user interface of that application from the first memory, thereby speeding up the process of composing and displaying the user interface of the application and also speeding up the response time of the electronic device 100 to user operations.

[0213] As shown in Figure 6A, the electronic device 100 displays a desktop with icons for multiple applications. The electronic device 100 can receive swiping operations performed by the user on the desktop, such as swiping left on the desktop. In response to this operation, the electronic device 100 can display the negative one screen interface shown in Figure 6B.

[0214] Optionally, the user operation that enables the electronic device 100 to display the negative one screen interface can be other operations, and this application does not limit this.

[0215] As shown in Figure 6B, the negative one screen interface includes an application recommendation window, which includes icons of one or more applications whose user usage probability is greater than a first value, such as icons of music applications, Huawei video applications, sports and health applications, email applications, etc.

[0216] After the electronic device 100 displays the application recommendation window, it can store the drawing information of the user interface of one or more applications in the recommendation window in a first memory. For example, the electronic device 100 can store the drawing information of the user interface of a music video application, the drawing information of the user interface of a Huawei video application, the drawing information of the user interface of a sports and health application, and the drawing information of the user interface of an email application in the first memory. Optionally, the application recommendation window may also include icons of other applications, and the electronic device 100 can also store the drawing information of the user interface of these other applications in the application recommendation window in the first memory.

[0217] As shown in Figures 6B and 6C, the electronic device 100 can receive user input operations on the email application icon, such as a click operation. The electronic device 100 can then display the main interface of the email application shown in Figure 6C. The main interface of the email application shown in Figure 6C can be synthesized by the electronic device 100 based on the drawing information of the main interface of the email application stored in the first memory. This can speed up the display speed of the main interface of the email application by the electronic device 100, and also speed up the response speed of the electronic device 100 to user operations.

[0218] It should be noted that the second condition is not limited to the above-mentioned types, and may also include other occasions in which the drawing information of the first user interface is stored in the first memory with a fast read speed. This application does not limit this.

[0219] Example 3: Upon detecting that the third condition for electronic device 100 to be powered off is met, electronic device 100 stores the user interface drawing information stored in one or more memories in a server or in a memory where data stored after electronic device 100 is powered off will not be deleted. For example, the memory where data stored after electronic device 100 is powered off can be a hard disk.

[0220] In some embodiments, upon detecting that a third condition for the electronic device 100 to be powered off is met, the electronic device 100 may store the user interface rendering information stored in one or more memories in a server or in a memory where data stored after the electronic device 100 is powered off will not be deleted. The one or more memories may include any one or more of memory and / or cache, and the data stored in the one or more memories will be deleted after the electronic device 100 is powered off. This avoids the situation where the user interface rendering information stored in one or more memories of the electronic device 100 is deleted after the electronic device 100 is powered off.

[0221] Optionally, the third condition may include, but is not limited to: the battery level of the electronic device 100 is below a threshold, or the user presses and holds the power button.

[0222] It should be noted that the third condition for powering down the electronic device 100 may include other conditions, which are not limited in this application.

[0223] In some embodiments, after the electronic device 100 is powered off and then powered on again, the electronic device 100 can retrieve the drawing information of the user interface from a server or a memory where data stored after the electronic device 100 is powered off will not be deleted, and then store the drawing information of the user interface back into one or more pre-stored memories. The read speed of one or more memories is faster than the read speed of the server or the memory where data stored after the electronic device 100 is powered off will not be deleted. In this way, when the electronic device 100 receives user input to display the user interface of the application, the electronic device 100 can quickly retrieve the drawing information of the user interface from one or more memories, thereby speeding up the process of composing and displaying the user interface.

[0224] For example, before the electronic device 100 is powered off, the drawing information of the first user interface is stored in the first memory. After the electronic device 100 is powered off, the drawing information of the first user interface is stored in a server or a memory where the data stored after the electronic device 100 is powered off will not be deleted. After the electronic device 100 is powered on again, the electronic device 100 can retrieve the drawing information of the first user interface from the server or the memory where the data stored after the electronic device 100 is powered off will not be deleted, and store it again in the first memory. Note that the data stored in the first memory is deleted after the electronic device is powered off, and the data read speed of the first memory is faster than the data read speed of the server or the data read speed of the memory where the data stored after the electronic device 100 is powered off will not be deleted.

[0225] III. Restore user interface information.

[0226] Example 1: Electronic device 100 can synthesize and display a second user interface based on the drawing information of the first user interface stored in electronic device 100.

[0227] Optionally, the drawing information of the first user interface may include drawing information of a first part of the content in the first user interface and drawing information of a first part of the content in the second user interface. The electronic device 100 may synthesize and display the first part of the content based on the drawing information of the first part of the content.

[0228] Optionally, the electronic device 100 can also modify the drawing information of the first part of the content to obtain the drawing information of the third part of the content. The electronic device 100 can then synthesize and display the third part of the content based on the drawing information of the third part of the content.

[0229] In some embodiments, after the electronic device 100 stores the drawing information of the first user interface in the memory, the electronic device 100 can receive user operations, and based on the stored information for the first composite user interface, synthesize and display the second user interface. The content in the second user interface may be the same as or different from the content in the first user interface.

[0230] Figure 7A shows a schematic flowchart of a method for an electronic device 100 to synthesize and display a second user interface.

[0231] S7001, Electronic device 100 receives a second operation, the second operation being used to display a second user interface of the first application.

[0232] The second operation is used to trigger the electronic device 100 to display the second user interface of the first application.

[0233] S7002, the electronic device 100 acquires the drawing information of the first user interface, and based on the drawing information of the first user interface, synthesizes and displays the second user interface, wherein the drawing information of the first user interface is saved when the electronic device 100 displays the first user interface.

[0234] In response to the second operation, the electronic device 100 can acquire the drawing information of the first user interface, which is saved when the electronic device 100 displays the first user interface. The electronic device 100 can synthesize and display a second user interface based on the drawing information of the first user interface. The content of the second user interface is the same as or similar to the content of the first user interface. S7002, the electronic device 100 synthesizes and displays the second user interface based on the drawing information of the first user interface.

[0235] In some embodiments, the electronic device 100 may also determine whether the drawing information of the first user interface can be used to synthesize the second user interface based on the metadata of the first user interface. The drawing information of the first user interface can be used to synthesize the second user interface if: the version of the first application is the same as the version of the first application when the electronic device 100 displays the first user interface; or the version of the operating system of the electronic device 100 is the same as the version of the operating system when the electronic device 100 displays the first user interface; or the device account information logged in by the electronic device 100 is the same as the device account information logged in by the electronic device 100 when the electronic device 100 displays the first user interface. Specifically, please refer to the description of S8003 in the embodiment of FIG8, which will not be repeated here.

[0236] In some embodiments, the electronic device 100 synthesizes and displays a second user interface based on the drawing information of the first user interface. This can mean that the electronic device 100 does not need to obtain the drawing information of other user interfaces, but only synthesizes and displays the second user interface based on the drawing information of the first user interface. Alternatively, it can mean that the electronic device 100 also needs to obtain the drawing information of other user interfaces, and synthesizes and displays the second user interface based on the drawing information of the first user interface and the drawing information of other user interfaces.

[0237] In some embodiments, when the display screen configuration of the electronic device 100 remains unchanged, the electronic device 100 can synthesize and display a second user interface based on the drawing information of the first user interface. In other embodiments, when the display screen configuration of the electronic device 100 changes, the electronic device 100 can also synthesize and display a second user interface based on the drawing information of the first user interface. The display screen configuration of the electronic device 100 may include any one or more of the following: folded state, intermediate state, and unfolded state, wherein the intermediate state may be a display screen configuration between the folded state and the unfolded state. The display screen configuration of the electronic device 100 may also include any one or more of the following: landscape display state and portrait display state. The electronic device 100 can be rotated 90 degrees counterclockwise or clockwise, and the electronic device 100 can switch between the landscape display state and the portrait display state.

[0238] It should be noted that the first user interface includes a first part of content and a second part of content, and the drawing information of the first user interface includes the drawing information of the first part of content and the drawing information of the second part of content. The electronic device 100 synthesizes and displays a second user interface based on the drawing information of the first user interface, which may include, but is not limited to, any one or more of the following:

[0239] Scenario 1: Electronic device 100 does not need to modify the drawing information of the first user interface. Based on the drawing information of the first part of the content and the drawing information of the second part of the content, it synthesizes the second user interface. The content of the second user interface is exactly the same as the content of the first user interface.

[0240] Scenario 2: Electronic device 100 does not need to modify the drawing information of the first user interface. Based on the drawing information of the first part of the content, it synthesizes the second user interface. The content of the second user interface is exactly the same as the first part of the content of the first user interface.

[0241] Scenario 3: Electronic device 100 can modify the drawing information of the first part of the content to obtain the drawing information of the third part of the content, and then synthesize the second user interface based on the drawing information of the third part of the content. The content in the second user interface is partially the same as the first part of the content in the first user interface.

[0242] Scenario 4: Electronic device 100 can modify the drawing information of the first part of the content to obtain the drawing information of the third part of the content, and then synthesize the second user interface based on the drawing information of the third part of the content and the drawing information of the second part of the content. The third part of the content in the second user interface is partially the same as the first part of the content in the first user interface, and the fourth part of the content in the second user interface is completely the same as the second part of the content in the first user interface.

[0243] Scenario 5: Electronic device 100 can modify the drawing information of the first part of the content to obtain the drawing information of the third part of the content, then modify the drawing information of the second part of the content to obtain the drawing information of the fourth part of the content, and then synthesize a second user interface based on the drawing information of the third part of the content and the drawing information of the fourth part of the content. The third part of the content in the second user interface is partially the same as the first part of the content in the first user interface, and the fourth part of the content in the second user interface is partially the same as the second part of the content in the first user interface.

[0244] The following examples illustrate how electronic device 100 synthesizes and displays a second user interface based on the drawing information of the first user interface.

[0245] After obtaining the drawing information of the first user interface, the electronic device 100 can synthesize and display the second user interface based on the drawing information of the first user interface.

[0246] In some embodiments, before executing S7002, the electronic device 100 may obtain UI layout information of the first user interface and UI layout information of the second user interface, and confirm whether the UI layout information of the first user interface and UI layout information of the second user interface are the same.

[0247] When the UI layout information of the first user interface and the UI layout information of the second user interface are the same, the electronic device 100 can directly synthesize the second user interface based on the drawing information of the first user interface, and the content in the second user interface is completely the same as the content in the first user interface.

[0248] Figure 7B shows a schematic diagram of an electronic device 100 synthesizing and displaying a second user interface based on drawing information from a first user interface.

[0249] As shown in Figure 7B(a), the electronic device 100 displays a user interface 7100 for an instant messaging application, and the electronic device 100 also stores drawing information of the user interface 7100.

[0250] As shown in Figures 7B(a) and 7B(b), the electronic device 100 can receive user operations. When the electronic device 100 switches from a folded state to an unfolded state, it can acquire the UI layout information of the user interface 7100 and the user interface 7200. If the UI layout information of the user interface 7200 is the same as that of the user interface 7100, the electronic device 100 can synthesize the user interface 7200 based on the drawing information of the user interface 7100 and display the user interface 7200 shown in Figure 7B(b). The content in the user interface 7200 is completely identical to the content in the user interface 7100.

[0251] In this way, after the display screen of the electronic device 100 changes, the electronic device 100 can directly reuse the stored drawing information of the first user interface to synthesize the second user interface without generating the drawing information of the second user interface, which can speed up the synthesis and display of the second user interface by the electronic device 100.

[0252] In some embodiments, when the display screen of the electronic device 100 remains unchanged, the electronic device 100 can also directly reuse the drawing information of the stored first user interface to synthesize the second user interface.

[0253] When the UI layout information of the first user interface and the UI layout information of the second user interface are different, the electronic device 100 can obtain the drawing information of the second user interface based on the UI layout information of the first user interface, the UI layout information of the second user interface, and the drawing information of the first user interface, and then synthesize the second user interface based on the drawing information of the second user interface.

[0254] In some embodiments, if the UI layout information of the first user interface and the UI layout information of the second user interface are different, the electronic device 100 needs to confirm whether the first user interface and the second user interface are partially the same.

[0255] If the first user interface and the second user interface are the same, it means that the first user interface and the second user interface include the same content. Then, the electronic device 100 can obtain the drawing information of the second user interface based on the UI layout information of the first user interface, the UI layout information of the second user interface, and the drawing information of the first user interface, and then synthesize the second user interface based on the drawing information of the second user interface.

[0256] For example, the UI layout information of the first user interface includes the UI layout information of the first part of the content and the UI layout information of the second part of the content in the first user interface, and the UI layout information of the second user interface includes the UI layout information of the third part of the content and the UI layout information of the fourth part of the content in the second user interface. If the UI layout information of the first part of the content and the UI layout information of the third part of the content are the same, and the UI layout information of the second part of the content and the UI layout information of the fourth part of the content are different, the electronic device 100 can determine the drawing information of the second user interface based on the UI layout information of the second part of the content, the UI layout information of the fourth part of the content, and the drawing information of the first user interface.

[0257] For example, the electronic device 100 can determine the difference between the UI layout information of the fourth part and the UI layout information of the second part, and then modify the corresponding drawing information of the second part in the drawing information of the first user interface based on the difference, so that the drawing information corresponding to the modified second part is the same as the drawing information corresponding to the fourth part, thus obtaining the drawing information of the second user interface.

[0258] For example, the UI layout information of the first user interface includes the UI layout information of the first part of the content in the first user interface, and the UI layout information of the second user interface includes the UI layout information of the third part of the content and the UI layout information of the fourth part of the content in the second user interface. If the UI layout information of the first part of the content and the UI layout information of the third part of the content are the same, the electronic device 100 can obtain the drawing information of the fourth part of the content based on the UI layout information of the fourth part of the content, and then determine the drawing information of the second user interface based on the drawing information of the first user interface and the drawing information of the fourth part of the content.

[0259] In this way, when the second user interface includes the content of the first user interface, the electronic device 100 can reuse the drawing information of the first user interface, and can also speed up the process of the electronic device 100 to synthesize and display the second user interface.

[0260] Figure 7C shows a schematic diagram of another electronic device 100 synthesizing and displaying a second user interface based on the drawing information of a first user interface.

[0261] As shown in Figure 7C(a), the electronic device 100 displays a user interface 7100 for an instant messaging application, and the electronic device 100 also stores drawing information of the user interface 7100.

[0262] As shown in Figure 7C(a) and Figure 7C(b), the electronic device 100 can receive user operations. The electronic device 100 switches from a folded state to an unfolded state. After the electronic device 100 switches to the unfolded state, the electronic device 100 not only displays the content in the user interface 7100, but also displays the content in other user interfaces, such as the content displayed on the right side of the display screen as shown in Figure 7C(b).

[0263] Electronic device 100 can acquire the drawing information of user interface 7100 and other user interfaces, and based on the drawing information of user interface 7100 and other user interfaces, obtain the drawing information of user interface 7300. Electronic device 100 then synthesizes user interface 7300 based on the drawing information of user interface 7300, and displays user interface 7300 as shown in Figure 7C(b). The content in user interface 7300 is different from the content in user interface 7100.

[0264] In some embodiments, if the UI layout information of the first user interface and the UI layout information of the second user interface are different, and if the first user interface and the second user interface are completely different, the electronic device 100 also needs to confirm whether the types of view controls in the first user interface and the types of view controls in the second user interface are partially the same or completely the same. If the types of view controls in the first user interface and the types of view controls in the second user interface are completely different, then there is no need to modify the drawing information of the first user interface, and the drawing information of the second user interface is directly generated. The electronic device 100 then synthesizes the second user interface based on the drawing information of the second user interface.

[0265] Optionally, the type of view control can refer to the elements filled in the view control. The elements filled in the view control can include, but are not limited to, any one or more of the following: text, images, icons, etc.

[0266] For example, the first user interface includes a first view control, and the second user interface includes a third view control. The types of the first view control and the third view control are different, and the electronic device 100 needs to generate drawing information for the third view control to obtain drawing information for the second user interface.

[0267] In some embodiments, if the types of view controls in the first user interface and the types of view controls in the second user interface are partially the same or completely identical, but their display characteristics are different, the display characteristics include, but are not limited to, any one or more of the following: display position, size, color, transparency, etc. The electronic device 100 can modify the drawing information of the first user interface based on the UI layout information of the first user interface and the UI layout information of the second user interface to obtain the drawing information of the second user interface. The electronic device 100 then synthesizes the second user interface based on the drawing information of the second user interface, and the content in the second user interface is different from the content in the first user interface.

[0268] For example, a first user interface includes a first view control, and a second user interface includes a third view control. The first view control and the third view control are of the same type, but their display characteristics are different. The electronic device 100 can determine the first view control and the third view control with different display characteristics in the first and second user interfaces based on the UI layout information of the first and second user interfaces. Based on the display characteristics of the third view control in the second user interface, the electronic device 100 modifies the drawing information corresponding to the first view control in the drawing information of the first user interface, making the modified drawing information corresponding to the first view control the same as the drawing information corresponding to the third view control, thus obtaining the drawing information of the second user interface.

[0269] Figure 7D shows a schematic diagram of another electronic device 100 synthesizing and displaying a second user interface based on the drawing information of a first user interface.

[0270] As shown in Figure 7D(a), the electronic device 100 displays a user interface 7100 for an instant messaging application, and the electronic device 100 also stores drawing information of the user interface 7100.

[0271] As shown in Figures 7D(a) and 7D(b), the electronic device 100 can receive user operations. When the electronic device 100 switches from a folded state to an unfolded state, it can acquire the UI layout information of the user interface 7100 and the user interface 7300. If the UI layout information of the user interface 7300 differs from that of the user interface 7100—for example, if the display positions and sizes of view controls of the same type differ between the two interfaces—the electronic device 100 can modify the drawing information of the user interface 7100 based on the UI layout information of the user interface 7300 and the user interface 7100. For example, it can modify the display positions and sizes of view controls to obtain the drawing information of the user interface 7300. The electronic device 100 then synthesizes the user interface 7300 based on the drawing information of the user interface 7300 and displays the user interface 7300 shown in Figure 7D(b). The content in the user interface 7300 differs from the content in the user interface 7100.

[0272] Example 2: Electronic device 200 can synthesize and display a second user interface based on the drawing information of the first user interface stored in electronic device 100.

[0273] Optionally, the drawing information of the first user interface may include drawing information of a first part of the content in the first user interface and drawing information of a first part of the content in the second user interface. The electronic device 200 may synthesize and display the first part of the content based on the drawing information of the first part of the content.

[0274] Optionally, the electronic device 200 can also modify the drawing information of the first part to obtain the drawing information of the third part, and the electronic device 200 can synthesize and display the third part based on the drawing information of the third part.

[0275] Example 2 is similar to Example 1, except that Example 1 synthesizes and displays the second user interface in electronic device 100, while Example 2 synthesizes and displays the second user interface in electronic device 200. The principle is similar, and you can refer to the introduction in Example 1.

[0276] In Example 2, electronic device 200 can obtain the drawing information of the first user interface stored in electronic device 100, and synthesize and display the second user interface based on the drawing information of the first user interface in electronic device 200, so as to realize the restoration and display of the user interface across devices.

[0277] Figure 8 shows a flowchart illustrating a method for an electronic device 200 to synthesize and display a second user interface based on the drawing information of a first user interface stored in an electronic device 100.

[0278] S8001, electronic device 100 and electronic device 200 establish a communication connection.

[0279] Optionally, electronic device 100 can establish a communication connection with electronic device 200 via a wired connection (e.g., a USB data cable) or a wireless connection. The wireless connection can include any of the following: Bluetooth, Wi-Fi, NFC, etc.

[0280] Optionally, the communication connection may include, but is not limited to, screen mirroring connections, multi-screen interaction connections, etc.

[0281] S8002, Electronic device 100 sends the drawing information of the first user interface to electronic device 200.

[0282] Optionally, the electronic device 200 can receive user operations and obtain drawing information of the first user interface.

[0283] Optionally, electronic device 100 can receive user operations and send messages to electronic device 200, which instruct electronic device 200 to obtain drawing information of the first user interface.

[0284] Optionally, the electronic device 200 may obtain the drawing information of the first user interface through, but not limited to, any of the following methods.

[0285] Method 1: Electronic device 100 sends the drawing information of the first user interface to electronic device 200 through a communication connection.

[0286] Method 2: Electronic device 100 stores the drawing information of the first user interface in the server, and electronic device 200 can obtain the drawing information of the first user interface from the server.

[0287] Optionally, the electronic device 200 may also obtain the storage location of the drawing information of the first user interface in the electronic device 100 and store the drawing information of the first user interface in the corresponding storage location in the electronic device 200.

[0288] For example, in electronic device 100, the drawing information of the first user interface is stored in a memory with a fast read speed (e.g., a first memory). Similarly, in electronic device 200, the first user interface drawing information can also be stored in a memory with a fast read speed, such as a fourth memory.

[0289] S8003, electronic device 200 confirms whether the drawing information of the first user interface is available based on the metadata of the first user interface.

[0290] Optionally, the metadata of the first user interface may be obtained by the electronic device 200 from the drawing information of the first user interface.

[0291] Optionally, the metadata of the first user interface can also be sent additionally from electronic device 100 to electronic device 200.

[0292] The metadata of the first user interface may include, but is not limited to, any one or more of the following: the identifier of the first application (e.g., the ID of the first application), the version number of the first application, the hierarchical position of the first user interface among the multiple user interfaces of the first application, the timestamp of the most recent update of the first user interface, the operation path of the most recent access to the first user interface, the device identifier of the electronic device 100 (e.g., the ID of the electronic device 100), and the device account information logged in to the electronic device 100, etc.

[0293] Electronic device 200 can determine whether the drawing information of the first user interface is available on electronic device 200 based on one or more pieces of information in the metadata of the first user interface, such as the identifier of the first application, the version number of the first application, the device identifier of electronic device 100, and the device account information logged in on electronic device 100. For example, electronic device 200 can determine whether the drawing information of the first user interface is compatible with the first application installed on electronic device 200, or whether it is compatible with the operating system of electronic device 200, or whether the device account logged in on electronic device 100 is associated with the device account logged in on electronic device 200. If any one or more of the above conditions are met, then the drawing information of the first user interface is available on electronic device 200.

[0294] Optionally, the version number of the first application can be used to confirm whether the drawing information of the first user interface is compatible with the first application installed on the electronic device 200. Compatibility of the drawing information of the first user interface with the first application installed on the electronic device 200 can mean that the version of the first application installed on the electronic device 100 is the same as the version of the first application installed on the electronic device 200, or that the version logged in on the electronic device 100 is compatible.

[0295] Optionally, the device identifier of electronic device 100 can be used to confirm whether the drawing information of the first user interface is compatible with the operating system installed on electronic device 200. Whether the drawing information of the first user interface is compatible with the operating system of electronic device 200 can refer to whether the version of the operating system installed on electronic device 100 is the same as the version of the first application installed on electronic device 200.

[0296] Optionally, the device account information logged in on electronic device 100 can be used to confirm whether the device account logged in on electronic device 100 is associated with the device account logged in on electronic device 200. The association between the device account logged in on electronic device 100 and the device account logged in on electronic device 200 can mean that the device account logged in on electronic device 100 is the same as the device account logged in on electronic device 200, or that the device account logged in on electronic device 100 is different from the device account logged in on electronic device 200, but the device account logged in on electronic device 100 is associated with the device account logged in on electronic device 200.

[0297] The timestamp of the most recent update of the first user interface is used by the electronic device to confirm whether to update the drawing information of the first user interface stored locally. In some embodiments, after the electronic device 100 makes changes to the drawing information of the first user interface, the electronic device 100 can save the changed drawing information of the first user interface locally or on a server, and save the timestamp of the update of the drawing information of the first user interface. The electronic device can save the latest drawing information of the user interface locally based on this timestamp.

[0298] The most recent operation path to the first user interface is used to record the operation path of the electronic device 100 when displaying the first user interface. The electronic device can also return to the parent interface of the first user interface based on this operation path.

[0299] The hierarchical position of the first user interface among the multiple user interfaces in the first application is used to determine the display position of the synthesized second user interface. Optionally, the display position can be a relative position to other user interfaces in the first application.

[0300] If it is confirmed that the drawing information for the first user interface is available, then execute S8005.

[0301] If it is confirmed that the drawing information for the first user interface is unavailable, then execute S8004.

[0302] S8004, the electronic device 200 generates drawing information for the second user interface, and synthesizes and displays the second user interface based on the drawing information of the second user interface.

[0303] If it is confirmed that the drawing information of the first user interface is unavailable, the electronic device 200 can generate the drawing information of the second user interface, and synthesize and display the second user interface based on the drawing information of the second user interface.

[0304] Optionally, after generating the drawing information of the second user interface, the electronic device 200 can save the drawing information of the second user interface. For details on how the electronic device 200 saves the drawing information of the second user interface, please refer to the description of how the electronic device 100 saves the drawing information of the first user interface in the above embodiments; this application will not repeat it here.

[0305] In some embodiments, the resource information of electronic device 100 and electronic device 200 can be compared. If the resource information of electronic device 100 is better than that of electronic device 200, electronic device 100 can generate drawing information for the second user interface, synthesize the second user interface based on the drawing information of the second user interface, and then send the second user interface to electronic device 200, which displays the second user interface.

[0306] Resource information of electronic devices includes, but is not limited to, any one or more of the following: processor workload and remaining battery power. The lower the processor workload and the higher the remaining battery power, the better the resource information of the electronic device.

[0307] S8005, electronic device 200 synthesizes and displays a second user interface based on the drawing information of the first user interface.

[0308] If the drawing information of the first user interface is confirmed to be available, the electronic device 200 can synthesize and display the second user interface based on the drawing information of the first user interface.

[0309] In some embodiments, referring to the description in S8004, if the resource information of electronic device 100 is better than that of electronic device 200, electronic device 100 can synthesize a second user interface based on the drawing information of the first user interface, and then send the second user interface to electronic device 200, and electronic device 200 displays the second user interface.

[0310] For an introduction to S8005, please refer to the description in S7002; this application will not repeat it here.

[0311] Example 3: The first user interface includes a first view control and a second view control. The drawing information of the first user interface includes the drawing of the first view control and the drawing of the second view control. The electronic device 100 can synthesize and display a third view control based on the drawing information of the first view control stored in the electronic device 100.

[0312] Optionally, the electronic device 100 may also synthesize and display the third and fourth view controls based on the drawing information of the first and second view controls stored in the electronic device 100.

[0313] In some embodiments, when the display screen form of the electronic device 100 remains unchanged, the electronic device 100 can synthesize and display view controls based on the drawing information of some or all view controls in the first user interface. In other embodiments, when the display screen form of the electronic device 100 changes, the electronic device 100 can also synthesize and display view controls based on the drawing information of some or all view controls in the first user interface. For a description of the display screen form of the electronic device 100, please refer to the actual description of the embodiment in FIG7A.

[0314] It should be noted that the electronic device 100 synthesizes and displays view controls based on the drawing information of some or all view controls in the first user interface. This can mean that the electronic device 100 does not need to obtain the drawing information of other view controls, but only synthesizes and displays view controls based on the drawing information of some or all view controls in the first user interface. Alternatively, it can mean that the electronic device 100 also needs to obtain the drawing information of other view controls, and synthesizes and displays view controls based on the drawing information of some or all view controls in the first user interface and the drawing information of other view controls.

[0315] It should be noted that the first user interface includes a first view control and a second view control, and the drawing information of the first user interface includes the drawing information of the first view control and the second view control. The electronic device 100 synthesizes and displays the view controls based on the drawing information of some or all of the view controls in the first user interface, which may include, but is not limited to, any one or more of the following:

[0316] Scenario 1: Electronic device 100 does not need to modify the drawing information of the first view control and the second view control. Based on the drawing information of the first view control and the second view control, it synthesizes the third view control and the fourth view control. The third view control is exactly the same as the first view control, and the fourth view control is exactly the same as the second view control.

[0317] Scenario 2: Electronic device 100 does not need to modify the drawing information of the first view control. Based on the drawing information of the first view control, a third view control is synthesized. The third view control is exactly the same as the first view control.

[0318] Scenario 3: Electronic device 100 can modify the drawing information of the first view control to obtain the drawing information of the third view control, and then synthesize the third view control based on the drawing information of the third view control. The third view control is partially the same as the first view control.

[0319] Scenario 4: Electronic device 100 can modify the drawing information of the first view control to obtain the drawing information of the third view control, and then synthesize the third view control and the fourth view control based on the drawing information of the third view control and the second view control. The third view control and the first view control are partially the same, and the fourth view control and the second view control are completely identical.

[0320] Scenario 5: Electronic device 100 can modify the drawing information of the first view control to obtain the drawing information of the third view control, then modify the drawing information of the second view control to obtain the drawing information of the fourth view control, and then synthesize the third view control and the fourth view control based on the drawing information of the third view control and the fourth view control. The third view control and the first view control are partially the same, and the fourth view control and the second view control are partially the same.

[0321] The following embodiments of this application illustrate how an electronic device 100 synthesizes and displays a third view control based on the drawing information of a first view control.

[0322] Figure 9A shows a flowchart illustrating a method for an electronic device 100 to synthesize and display a third-view control.

[0323] S9001, the first user interface includes a first view control and a second view control, and the drawing information of the first user interface includes the drawing information of the first view control and the drawing information of the second view control.

[0324] In some embodiments, the first user interface may include multiple view controls, such as a first view control and a second view control, and the drawing information of the first user interface includes the drawing information of the first view control and the drawing information of the second view control.

[0325] S9002, Electronic device 100 receives a second operation to obtain the properties of the first view control and the properties of the third view control.

[0326] The properties of a view control can include its type and display characteristics. The type of a view control can include the elements displayed within it, which can include, but are not limited to, any one or more of the following: text, images, charts, etc. The display characteristics of a view control can include, but are not limited to, any one or more of the following: display position, size, color, transparency, etc.

[0327] Electronic device 100 receives a second operation to obtain the properties of the first view control and the third view control. The second operation is used to restore and display the third view control.

[0328] S9003, Electronic device 100 confirms whether the properties of the first view control and the third view control are the same.

[0329] After obtaining the properties of the first view control and the third view control, the electronic device 100 needs to confirm whether the properties of the first view control and the third view control are the same.

[0330] When the properties of the first view control and the third view control are different, the electronic device 100 can obtain the drawing information of the third view control, synthesize and display the third view control, that is, execute S9004.

[0331] When the properties of the first view control and the third view control are the same, the electronic device 100 can directly reuse the drawing information of the first view control to synthesize and display the third view control without needing to obtain the drawing information of the third view control, i.e., execute S9005.

[0332] S9004, Electronic device 100 generates drawing information for the third view control, and synthesizes and displays the third view control based on the drawing information of the third view control. The content in the third view control is different from the content in the first view control.

[0333] When the properties of the first view control and the third view control are different, the electronic device 100 cannot directly reuse the drawing information of the first view control to synthesize the third view control.

[0334] The third-view controls may be partially the same as or completely different from the first-view controls.

[0335] Optionally, the third view control and the first view control being partially identical can mean that the type of the third view control is the same as the type of the first view control, or that the display characteristics of the third view control are the same as the display characteristics of the first view control. Wherein, "the display characteristics of the third view control are the same as the display characteristics of the first view control" can mean that at least one display characteristic of the third view control is the same as at least one display characteristic of the first view control.

[0336] Optionally, the third-view control and the first-view control are completely different, which can refer to the fact that the type and display characteristics of the third-view control are different from those of the first-view control.

[0337] In some embodiments, the electronic device 100 can modify the drawing information of the first view control based on the attributes of the third view control to obtain the drawing information of the third view control, and then synthesize and display the third view control based on the drawing information of the third view control. For example, refer to the description in the embodiment of FIG7A.

[0338] Optionally, if the third view control and the first view control are partially the same, the electronic device 100 can modify the drawing information of the first view control based on the properties of the third view control to obtain the drawing information of the third view control.

[0339] In other embodiments, the electronic device 100 can directly generate drawing information of the third view control, and synthesize and display the third view control based on the drawing information of the third view control.

[0340] Optionally, if the third view control is completely different from the first view control, the electronic device 100 can directly generate the drawing information of the third view control.

[0341] S9005, Electronic device 100 synthesizes and displays a third view control based on the drawing information of the first view control, and the content in the third view control is exactly the same as the content in the first view control.

[0342] Optionally, the third view control can be completely identical to the first view control, meaning that the type and display characteristics of the third view control are the same as those of the first view control.

[0343] When the properties of the first view control and the third view control are the same, the electronic device 100 can directly reuse the drawing information of the first view control to synthesize and display the third view control without generating the drawing information of the third view control. The third view control is exactly the same as the first view control.

[0344] In S9004 and S9005, in some embodiments, the electronic device 100 can display a third view control floating above other view controls in the user interface. In other embodiments, the electronic device 100 can also include the third view control as part of other user interfaces. This application does not limit the display form of the third view control and may include other more display forms.

[0345] Figure 9B shows a schematic diagram of an electronic device 100 assembling and displaying a third view control.

[0346] For example, the third view control is exactly the same as the first view control.

[0347] As shown in Figure 9B(a), the electronic device 100 displays a first user interface, which includes a first view control and a second view control.

[0348] In some embodiments, the electronic device 100 may receive user input to restore and display some view controls in the first user interface.

[0349] As shown in Figure 9B(a) and Figure 9B(b), the electronic device 100 can acquire the drawing information of the first view control, synthesize the third view control based on the drawing information of the first view control, and display the third view control shown in Figure 9B(b).

[0350] In some embodiments, the electronic device 100 may use a third view control as part of a third user interface.

[0351] In other embodiments, the electronic device 100 may also display a third view control floating above other view controls in a third user interface.

[0352] Figure 9C shows a schematic diagram of another electronic device 100 assembling and displaying a third view control.

[0353] For example, the third view control is exactly the same as the first view control, and the first user interface does not include a fourth view control that is exactly the same as or partially the same as the fourth view control.

[0354] As shown in Figure 9C(a), the electronic device 100 displays a first user interface, which includes a first view control and a second view control.

[0355] In some embodiments, the electronic device 100 may receive user input to restore and display some view controls in the first user interface.

[0356] As shown in Figures 9C(a) and 9C(b), the electronic device 100 can acquire the drawing information of the first view control and then acquire the drawing information of the fourth view control. Based on the drawing information of the first view control and the fourth view control, the electronic device 100 can synthesize the third view control and the fourth view control, and display the third view control and the fourth view control shown in Figure 9C(b).

[0357] In some embodiments, the electronic device 100 may include a third view control and / or a fourth view control as part of a third user interface.

[0358] In other embodiments, the electronic device 100 may also display a third view control and / or a fourth view control floating above other view controls in a third user interface.

[0359] Figure 9D shows a schematic diagram of another electronic device 100 that synthesizes and displays a third view control.

[0360] For example, the third view control is partially the same as the first view control.

[0361] As shown in Figure 9D(a), the electronic device 100 displays a first user interface, which includes a first view control and a second view control.

[0362] In some embodiments, the electronic device 100 may receive user input to restore and display some view controls in the first user interface.

[0363] As shown in Figure 9D(a) and Figure 9D(b), the electronic device 100 can obtain the drawing information of the first view control, modify the drawing information of the first view control, and obtain the drawing information of the third view control. The electronic device 100 then synthesizes the third view control based on the drawing information of the third view control and displays the third view control shown in Figure 9D(b).

[0364] In some embodiments, the electronic device 100 may use a third view control as part of a third user interface.

[0365] In other embodiments, the electronic device 100 may also display a third view control floating above other view controls in a third user interface.

[0366] Figure 9E shows a schematic diagram of another electronic device 100 assembling and displaying a third view control.

[0367] For example, the third view control is partially identical to the first view control, and the first user interface does not include a fourth view control that is exactly the same as or partially identical to the fourth view control.

[0368] As shown in Figure 9E(a), the electronic device 100 displays a first user interface, which includes a first view control and a second view control.

[0369] In some embodiments, the electronic device 100 may receive user input to restore and display some view controls in the first user interface.

[0370] As shown in Figures 9E(a) and 9E(b), the electronic device 100 can acquire the drawing information of the first view control, modify the drawing information of the first view control, and obtain the drawing information of the third view control. The electronic device 100 then acquires the drawing information of the fourth view control. Based on the drawing information of the third view control and the fourth view control, the electronic device 100 can synthesize the third view control and the fourth view control, and display the third view control and the fourth view control shown in Figure 9E(b).

[0371] In some embodiments, the electronic device 100 may include a third view control and / or a fourth view control as part of a third user interface.

[0372] In other embodiments, the electronic device 100 may also display a third view control and / or a fourth view control floating above other view controls in a third user interface.

[0373] Example 4: The drawing information of the first user interface includes the drawing of the first view control and the drawing of the second view control. The electronic device 200 can synthesize and display the third view control based on the drawing of the first view control stored in the electronic device 100.

[0374] Optionally, the electronic device 200 may also synthesize and display a third view control and a fourth view control based on the drawing information of the first view control and the drawing information of the second view control.

[0375] The following embodiments of this application illustrate how an electronic device 200 synthesizes and displays a third view control based on the drawing information of a first view control.

[0376] Figure 10 shows a flowchart of a method for an electronic device 200 to synthesize and display a third view control.

[0377] S1001, electronic device 100 and electronic device 200 establish a communication connection.

[0378] S1002, Electronic device 200 acquires information for synthesizing the first user interface.

[0379] S1003, the electronic device 200 confirms whether the information used to synthesize the first user interface is available based on the metadata of the first user interface in the information of the first user interface.

[0380] For a description of S1001-S1003, please refer to the introduction of S8001-S8003. This application will not repeat it here.

[0381] S1004, Electronic device 200 generates information for composing a third view control, and composing and displaying a third view control based on the information for composing the third view control. The content in the third view control is different from the content in the first view control.

[0382] If it is confirmed that the drawing information of the first user interface is not available in the electronic device 200, the electronic device 200 can generate the drawing information of the third view control, and synthesize and display the third view control based on the drawing information of the third view control. The content in the third view control is different from the content in the first view control.

[0383] In some embodiments, referring to the description in S8004, if the resource information of electronic device 100 is better than that of electronic device 200, electronic device 100 can generate drawing information of third view control, and based on the drawing information of third view control, synthesize third view control, and then send the third view control to electronic device 200, and electronic device 200 displays the third view control.

[0384] S1005, Electronic device 200 obtains the properties of the first view control and the third view control.

[0385] S1006. Electronic device 200 confirms whether the properties of the first view control and the third view control are the same.

[0386] If it is confirmed that the drawing information of the first user interface is available in the electronic device 200, the electronic device 200 can obtain the properties of the first view control and the third view control to confirm whether the drawing information of the first view control in the drawing information of the first user interface can be directly reused.

[0387] When the properties of the first view control and the third view control are the same, the electronic device 200 can directly reuse the drawing information of the first view control in the drawing information of the first user interface, that is, execute S1007.

[0388] When the properties of the first view control and the third view control are different, the electronic device 200 cannot directly reuse the drawing information of the first view control in the drawing information of the first user interface, that is, execute S1008.

[0389] S1007, Electronic device 200 synthesizes and displays a third view control based on the information used to synthesize the first view control, the content of the third view control being the same as the content of the first view control.

[0390] In some embodiments, the first user interface may include multiple view controls, such as a first view control and a second view control, and the drawing information of the first user interface includes the drawing information of the first view control and the drawing information of the second view control.

[0391] When the properties of the first view control and the third view control are the same, the electronic device 200 can obtain the drawing information of the first view control and synthesize the third view control based on the drawing information of the first view control. The content in the third view control is the same as the content in the first view control.

[0392] In some embodiments, referring to the description in S8004, if the resource information of electronic device 100 is better than that of electronic device 200, a third view control can be synthesized from the drawing information of the first view control of electronic device 100, and then the third view control can be sent to electronic device 200, and electronic device 200 can display the third view control.

[0393] S1008, Electronic device 200 generates information for composing a third view control, and composing and displaying a third view control based on the information for composing the third view control. The content in the third view control is different from the content in the first view control.

[0394] When the properties of the first view control and the third view control are different, the electronic device 200 cannot directly reuse the drawing information of the first view control to synthesize the third view control.

[0395] In some embodiments, the electronic device 200 can modify the drawing information of the first view control based on the attributes of the third view control to obtain the drawing information of the third view control, and then synthesize and display the third view control based on the drawing information of the third view control. For example, refer to the description in the embodiment of FIG7A.

[0396] In other embodiments, the electronic device 200 can directly generate drawing information of the third view control, and synthesize and display the third view control based on the drawing information of the third view control.

[0397] In some embodiments, referring to the description in S8004, if the resource information of electronic device 100 is better than that of electronic device 200, electronic device 100 can generate drawing information of third view control, synthesize third view control based on the drawing information of third view control, and then send the third view control to electronic device 200, and electronic device 200 displays the third view control.

[0398] Figure 11 shows a schematic diagram of the method flow for a display method.

[0399] S1101. The first electronic device synthesizes and displays the first user interface based on the drawing information of the first user interface, wherein the drawing information of the first user interface includes the drawing instructions of the first user interface.

[0400] S1102, The first electronic device receives the first operation and stops displaying the first user interface.

[0401] S1103. After the first electronic device stops displaying the first user interface, the first electronic device receives and responds to the second operation, and synthesizes and displays the second user interface based on the drawing information of the first user interface. The content of the second user interface is completely or partially the same as the content of the first user interface.

[0402] Optionally, the first electronic device can reconstruct the second user interface based on the drawing information of the first user interface. In some embodiments, the first electronic device may not modify the drawing information of the first user interface, but directly synthesize and display the second user interface based on the drawing information of the first user interface. The content in the second user interface is completely identical to the content in the first user interface. In other embodiments, the first electronic device may modify the drawing information of the first user interface to obtain the drawing information of the second user interface, and then synthesize and display the second user interface based on the drawing information of the second user interface. The content in the second user interface is partially identical to the content in the first user interface. For example, refer to the description in the embodiment of FIG7A.

[0403] Optionally, the first electronic device can recover the third view control based on the drawing information of the first view control in the drawing information of the first user interface. In some embodiments, the first electronic device may not modify the drawing information of the first view control, but directly synthesize and display the third view control in the second user interface based on the drawing information of the first view control. The content in the third view control is completely the same as the content in the first view control. In other embodiments, the first electronic device may modify the drawing information of the first view control to obtain the drawing information of the third view control, and then synthesize and display the third view control in the second user interface based on the drawing information of the third view control. The content in the third view control is partially the same as the content in the first view control. For example, refer to the description in the embodiment of FIG9A.

[0404] By implementing this method, the first electronic device can restore a second user interface that is the same as or similar to the first user interface based on the saved drawing information of the first user interface, or restore a third view control that is the same as or similar to the first view control in the first user interface, without having to generate drawing information for the second user interface separately, or without having to generate drawing information for the third view control separately. This can speed up the speed at which the electronic device restores and displays a second user interface that is the same as or similar to the first user interface, or speed up the speed at which the electronic device restores and displays a third view control that is the same as or similar to the first view control, thereby reducing the user's waiting time.

[0405] In one possible implementation, the method further includes: the first electronic device storing drawing information of the first user interface. Thus, after the first electronic device stores the drawing information of the first user interface, it can synthesize and display the second user interface based on that information.

[0406] In one possible implementation, the first electronic device saves the drawing information of the first user interface, specifically including: saving the drawing information of the first user interface before the first electronic device stops displaying the first user interface; or saving the drawing information of the first user interface after the first electronic device stops displaying the first user interface.

[0407] In one possible implementation, when the content in the second user interface is completely identical to the content in the first user interface, the first electronic device synthesizes and displays the second user interface based on the drawing information of the first user interface. Specifically, this includes: the first electronic device acquiring the UI layout information of both the first and second user interfaces; if the UI layout information of the first and second user interfaces is identical, the first electronic device synthesizes and displays the second user interface based on the information of the first user interface. In this way, the first electronic device can synthesize and display the second user interface directly based on the drawing information of the first user interface without modifying it.

[0408] In one possible implementation, when the content in the second user interface is partially the same as the content in the first user interface, the first electronic device synthesizes and displays the second user interface based on the drawing information of the first user interface. Specifically, this includes: the first electronic device acquiring UI layout information of both the first and second user interfaces. The UI layout information of the first user interface includes the UI layout information of a first part of the content and the UI layout information of a second part of the content. The UI layout information of the second user interface includes the UI layout information of a third part of the content and the UI layout information of a fourth part of the content. If the UI layout information of the first part of the content and the UI layout information of the third part of the content are the same, and the UI layout information of the second part of the content and the UI layout information of the fourth part of the content are different, the first electronic device determines the drawing information of the second user interface based on the UI layout information of the second part of the content, the UI layout information of the fourth part of the content, and the drawing information of the first user interface. The drawing information of the second user interface includes drawing instructions for the second user interface. The first electronic device then synthesizes and displays the second user interface based on the drawing information of the second user interface. In this way, the first electronic device can modify the drawing information of the first user interface to obtain the drawing information of the second user interface, and then synthesize and display the second user interface based on the drawing information of the second user interface.

[0409] In one possible implementation, the first user interface includes a first view control and a second view control, and the drawing information of the first user interface includes the drawing information of the first view control and the drawing information of the second view control; the first electronic device synthesizes and displays the second user interface based on the information of the first user interface, specifically including: the first electronic device synthesizes and displays a third view control in the second user interface based on the drawing information of the first view control, and the content in the third view control is completely or partially the same as the content in the first view control.

[0410] By implementing this method, the first electronic device can restore some view controls in the first user interface based on the saved drawing information of the first user interface, without having to generate drawing information for the view controls in the first user interface separately. This can speed up the process of restoring and displaying the view controls in the first user interface and reduce the user's waiting time. For example, please refer to the description in the embodiment shown in Figure 9A.

[0411] In one possible implementation, when the content in the third view control is identical to the content in the first view control, the first electronic device synthesizes and displays the third view control in the second user interface based on the drawing information of the first view control. Specifically, this includes: the first electronic device acquiring the attributes of the first view control and the third view control; if the attributes of the first view control and the third view control are identical, the first electronic device synthesizes and displays the third view control in the second user interface based on the drawing information of the first view control. In this way, the first electronic device can synthesize and display the third view control in the second user interface directly based on the drawing information of the first view control without modifying it.

[0412] In one possible implementation, when the content in the third view control is partially the same as the content in the first view control, the first electronic device synthesizes and displays the third view control in the second user interface based on the drawing information of the first view control. Specifically, this includes: the first electronic device acquiring the attributes of the first view control and the third view control; if the attributes of the first view control and the third view control are different, the first electronic device determines the drawing information of the third view control based on the attributes of the first view control, the attributes of the third view control, and the drawing information of the first view control; and the first electronic device synthesizes and displays the third view control in the second user interface based on the drawing information of the third view control. In this way, the first electronic device can modify the drawing information of the first view control to obtain the drawing information of the third view control, and then synthesize and display the third view control in the second user interface based on the drawing information of the third view control.

[0413] In one possible implementation, the drawing information of the first user interface further includes drawing resource information of the first user interface; wherein, the drawing resource information of the first user interface includes any one or more of the following: the storage address of the drawing resource of the first user interface in the first electronic device, and the download address of the drawing resource of the first user interface on the server.

[0414] In one possible implementation, the first electronic device includes a first memory and a second memory, wherein the read speed of the first memory is faster than that of the second memory; the first electronic device stores the drawing information of the first user interface, specifically including: if a first condition is met, the first electronic device stores the drawing information of the first user interface in the first memory; if the first condition is not met, the first electronic device stores the drawing information of the first user interface in the second memory or a server.

[0415] In one possible implementation, the first condition includes: the usage frequency of the first user interface is greater than a first value; or, the first user interface is a user interface in a first application, and the first electronic device displays a task management center interface, which includes the task window of the first application; or, the first user interface is a user interface in a first application, and the first electronic device displays an application recommendation window, which includes the icon of the first application.

[0416] In one possible implementation, the first memory includes a cache, and the second memory includes main memory; alternatively, the first memory includes main memory, and the second memory includes a hard disk; or alternatively, the first memory includes a cache, and the second memory includes a hard disk. The cache can be memory located inside the processor. Main memory is memory located outside the processor. The hard disk is also memory located outside the processor.

[0417] In one possible implementation, the first electronic device includes a first memory, a second memory, and a third memory. The read speed of the first memory is faster than that of the second memory, and the read speed of the second memory is faster than that of the third memory. The first electronic device stores drawing information of the first user interface, specifically including: if a first condition is met, the first electronic device stores the drawing information of the first user interface in the first memory; if the first condition is met but the second condition is not met, the first electronic device stores the drawing information of the first user interface in the second memory; if neither the first nor the second condition is met, the first electronic device stores the drawing information of the first user interface in the third memory or in a server.

[0418] In one possible implementation, the usage frequency of the first user interface is greater than a first value, and the second condition includes: the usage frequency of the first user interface is greater than a second value but less than a first value.

[0419] In one possible implementation, the first memory includes a cache, the second memory includes RAM, and the third memory includes a hard disk.

[0420] The first electronic device has limited storage space. If it stores too much user interface rendering information, it can adjust the storage locations of multiple user interface rendering information to ensure sufficient storage space for the necessary data during operation, thus guaranteeing normal operation. By implementing this method, the first electronic device stores the rendering information of user interfaces with higher probability of use in a faster-access memory, accelerating the synthesis and display of that user interface.

[0421] Optionally, and not limited to two or three memories, the first electronic device may also include other memories, which is not limited in this application.

[0422] In one possible implementation, when the first electronic device stores the drawing information of the first user interface in the first memory, the method further includes: detecting that a third condition of powering off the first electronic device is met, the first electronic device stores the drawing information of the first user interface stored in the first memory in a third memory or a server. This is because, after the first electronic device is powered off, the data stored in the first memory is deleted, but the data stored in the third memory is not deleted. Thus, upon detecting that the third condition of powering off the first electronic device is met, the first electronic device can store the drawing information of the user interface stored in one or more memories in a server or a memory where the data stored after powering off is not deleted, thus preventing the deletion of the drawing information of the user interface stored in one or more memories of the first electronic device after power-off.

[0423] Figure 12 shows a schematic diagram of another display method.

[0424] S1201. The first electronic device synthesizes and displays the first user interface based on the drawing information of the first user interface, wherein the drawing information of the first user interface includes the drawing instructions of the first user interface.

[0425] S1202, the first electronic device sends the drawing information of the first user interface to the second electronic device through a communication connection.

[0426] S1203. The second electronic device synthesizes and displays the second user interface based on the drawing information of the first user interface. The content of the second user interface is completely or partially the same as the content of the first user interface.

[0427] Optionally, the drawing information of the first user interface can be sent directly from the first electronic device to the second electronic device, or the first electronic device can upload the drawing information of the first user interface to the server, and the second electronic device can obtain the drawing information of the first user interface from the server.

[0428] According to this method, the second electronic device can reconstruct a second user interface that is the same as or similar to the first user interface based on the drawing information of the first user interface. The second electronic device does not need to generate its own drawing information for the second user interface, which speeds up the process of reconstructing and displaying a second user interface that is the same as or similar to the first user interface, reducing user waiting time. For example, please refer to the descriptions in Figures 8 and 10.

[0429] In one possible implementation, the method further includes: the first electronic device storing drawing information of the first user interface.

[0430] In one possible implementation, the second user interface is the user interface in the first application; the drawing information of the first user interface also includes the metadata of the first user interface; the second electronic device synthesizes and displays the second user interface based on the drawing information of the first user interface, specifically including: if it is confirmed based on the metadata of the first user interface that the drawing information of the first user interface is available in the second electronic device, the second electronic device synthesizes the second user interface based on the drawing information of the first user interface.

[0431] In one possible implementation, the metadata of the first user interface includes one or more of the following: the identifier of the first application, the version number of the first application, the device identifier of the first electronic device, and the device account information logged in on the first electronic device.

[0432] In one possible implementation, if the content in the second user interface is completely identical to the content in the first user interface, the second electronic device synthesizes and displays the second user interface based on the drawing information of the first user interface. Specifically, the second electronic device obtains the UI layout information of the first user interface and the UI layout information of the second user interface; if the UI layout information of the first user interface and the UI layout information of the second user interface are identical, the second electronic device synthesizes and displays the second user interface based on the information of the first user interface.

[0433] In one possible implementation, when the content in the second user interface is partially the same as the content in the first user interface, the second electronic device synthesizes and displays the second user interface based on the drawing information of the first user interface. Specifically, this includes: the second electronic device acquiring UI layout information of the first user interface and UI layout information of the second user interface. The UI layout information of the first user interface includes UI layout information of a first part of the content and UI layout information of a second part of the content in the first user interface. The UI layout information of the second user interface includes UI layout information of a third part of the content and UI layout information of a fourth part of the content in the second user interface. If the UI layout information of the first part of the content and the UI layout information of the third part of the content are the same, and the UI layout information of the second part of the content and the UI layout information of the fourth part of the content are different, the second electronic device determines the drawing information of the second user interface based on the UI layout information of the second part of the content, the UI layout information of the fourth part of the content, and the drawing information of the first user interface. The drawing information of the second user interface includes drawing instructions for the second user interface. Based on the drawing information of the second user interface, the second electronic device synthesizes and displays the second user interface.

[0434] In one possible implementation, the first user interface includes a first view control and a second view control, and the drawing information of the first user interface includes the drawing information of the first view control and the drawing information of the second view control; the second electronic device synthesizes and displays the second user interface based on the information of the first user interface, specifically including: the second electronic device synthesizes and displays a third view control in the second user interface based on the drawing information of the first view control, and the content in the third view control is completely or partially the same as the content in the first view control.

[0435] In one possible implementation, when the content in the third view control is completely identical to the content in the first view control, the second electronic device synthesizes and displays the third view control in the second user interface based on the drawing information of the first view control. Specifically, this includes: the second electronic device obtaining the properties of the first view control and the third view control; if the properties of the first view control and the third view control are identical, the second electronic device synthesizes and displays the third view control in the second user interface based on the drawing information of the first view control.

[0436] In one possible implementation, when the content in the third view control is partially the same as the content in the first view control, the second electronic device synthesizes and displays the third view control in the second user interface based on the drawing information of the first view control. Specifically, this includes: the second electronic device obtaining the attributes of the first view control and the third view control; if the attributes of the first view control and the third view control are different, the first electronic device determines the drawing information of the third view control based on the attributes of the first view control, the attributes of the third view control, and the drawing information of the first view control; and the second electronic device synthesizes and displays the third view control in the second user interface based on the drawing information of the third view control.

[0437] It should be noted that any one or more possible implementations provided in the embodiment of Figure 11 can also be applied to a display method provided in the embodiment of Figure 12. For details, please refer to the description of any one or more possible implementations provided in the embodiment of Figure 11, which will not be repeated here.

[0438] This application provides an electronic device, including a first electronic device, which includes a memory and a processor; wherein the memory and the processor are coupled, the memory is used to store a computer program, and when the processor executes and calls the computer program, the first electronic device performs a display method provided in any one or more of the above embodiments.

[0439] This application provides a computer-readable storage medium including instructions that, when executed on a first electronic device, cause the first electronic device to perform a display method provided in any one or more of the above embodiments.

[0440] This application provides a chip system including one or more processors, which are used to invoke computer instructions to cause a first electronic device to execute a display method provided in any one or more of the above embodiments.

[0441] This application provides a computer program product containing instructions that, when run on a first electronic device, causes the first electronic device to execute a display method provided in any one or more of the above embodiments.

[0442] It should be noted that the above embodiments can be combined in any two or more ways to achieve the display method provided in this application.

[0443] The above are merely some embodiments and implementation methods of this application. The scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0444] It is understood that the user interfaces described in the embodiments of this application are merely example interfaces and do not constitute a limitation on the solution of this application. In other embodiments, the user interface may adopt different interface layouts, may include more or fewer controls, and may add or remove other functional options, as long as they are based on the same inventive concept provided in this application, they are all within the protection scope of this application.

[0445] It should be noted that, without causing contradictions or conflicts, any feature in any embodiment of this application, or any part of any feature, can be combined, and the combined technical solution is also within the scope of the embodiments of this application.

[0446] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A display method characterized by comprising: The method includes: The first electronic device synthesizes and displays the first user interface based on the drawing information of the first user interface, wherein the drawing information of the first user interface includes the drawing instructions of the first user interface. The first electronic device receives the first operation and stops displaying the first user interface; After the first electronic device stops displaying the first user interface, the first electronic device receives and responds to the second operation, and based on the drawing information of the first user interface, synthesizes and displays the second user interface, the content of the second user interface being all or partly the same as the content of the first user interface.

2. The method of claim 1, wherein, The method further includes: The first electronic device stores the drawing information of the first user interface.

3. The method of claim 2, wherein, The first electronic device stores the drawing information of the first user interface, specifically including: Before the first electronic device stops displaying the first user interface, the first electronic device saves the drawing information of the first user interface; or, After the first electronic device stops displaying the first user interface, the first electronic device saves the drawing information of the first user interface.

4. The method according to any one of claims 1 to 3, characterized in that, When the content in the second user interface is completely identical to the content in the first user interface, the first electronic device synthesizes and displays the second user interface based on the drawing information of the first user interface, specifically including: The first electronic device acquires the UI layout information of the first user interface and the UI layout information of the second user interface; If the UI layout information of the first user interface is the same as that of the second user interface, the first electronic device synthesizes and displays the second user interface based on the information of the first user interface.

5. The method according to any one of claims 1 to 3, characterized in that, When the content in the second user interface is partially the same as the content in the first user interface, the first electronic device synthesizes and displays the second user interface based on the drawing information of the first user interface, specifically including: The first electronic device acquires the UI layout information of the first user interface and the UI layout information of the second user interface. The UI layout information of the first user interface includes the UI layout information of the first part of the content and the UI layout information of the second part of the content in the first user interface. The UI layout information of the second user interface includes the UI layout information of the third part of the content and the UI layout information of the fourth part of the content in the second user interface. If the UI layout information of the first part of the content is the same as the UI layout information of the third part of the content, and the UI layout information of the second part of the content is different from the UI layout information of the fourth part of the content, the first electronic device determines the drawing information of the second user interface based on the UI layout information of the second part of the content, the UI layout information of the fourth part of the content, and the drawing information of the first user interface. The drawing information of the second user interface includes the drawing instructions of the second user interface. The first electronic device synthesizes and displays the second user interface based on the drawing information of the second user interface.

6. The method according to any one of claims 1 to 3, characterized in that, The first user interface includes a first view control and a second view control, and the drawing information of the first user interface includes the drawing information of the first view control and the drawing information of the second view control. The first electronic device synthesizes and displays a second user interface based on information from the first user interface, specifically including: The first electronic device synthesizes and displays a third view control in the second user interface based on the drawing information of the first view control. The content of the third view control is completely or partially the same as the content of the first view control.

7. The method of claim 6, wherein, When the content in the third view control is completely identical to the content in the first view control, the first electronic device synthesizes and displays the third view control in the second user interface based on the drawing information of the first view control, specifically including: The first electronic device acquires the properties of the first view control and the properties of the third view control; If the properties of the first view control and the third view control are the same, the first electronic device synthesizes and displays the third view control in the second user interface based on the drawing information of the first view control.

8. The method according to claim 6 or 7, characterized in that, When the content in the third view control is partially the same as the content in the first view control, the first electronic device synthesizes and displays the third view control in the second user interface based on the drawing information of the first view control, specifically including: The first electronic device acquires the properties of the first view control and the properties of the third view control; If the properties of the first view control and the properties of the third view control are different, the first electronic device determines the drawing information of the third view control based on the properties of the first view control, the properties of the third view control, and the drawing information of the first view control. The first electronic device synthesizes and displays the third view control in the second user interface based on the drawing information of the third view control.

9. The method according to any one of claims 1 to 8, characterized in that, The drawing information of the first user interface also includes the drawing resource information of the first user interface; The rendering resource information of the first user interface includes any one or more of the following: the storage address of the rendering resource of the first user interface in the first electronic device, and the download address of the rendering resource of the first user interface on the server.

10. The method of claim 2 or 3, wherein, The first electronic device includes a first memory and a second memory, wherein the read speed of the first memory is faster than the read speed of the second memory; The first electronic device stores the drawing information of the first user interface, specifically including: If the first condition is met, the first electronic device saves the drawing information of the first user interface in the first memory; If the first condition is not met, the first electronic device will save the drawing information of the first user interface in the second memory or server.

11. The method of claim 10, wherein, The first condition includes: The frequency of use of the first user interface is greater than the first value; or, The first user interface is the user interface in the first application, and the first electronic device displays a task management center interface, which includes the task window of the first application; or, The first user interface is the user interface in the first application, and the first electronic device displays an application recommendation window, which includes the icon of the first application.

12. The method according to claim 10 or 11, characterized in that, The first memory includes a cache, and the second memory includes main memory; or, The first memory includes RAM, and the second memory includes a hard disk; or, The first memory includes a cache, and the second memory includes a hard disk.

13. The method of claim 2 or 3, wherein, The first electronic device includes a first memory, a second memory, and a third memory. The read speed of the first memory is faster than that of the second memory, and the read speed of the second memory is faster than that of the third memory. The first electronic device stores the drawing information of the first user interface, specifically including: If the first condition is met, the first electronic device saves the drawing information of the first user interface in the first memory; If the first condition is met but the second condition is not met, the first electronic device will save the drawing information of the first user interface in the second memory; If neither the first condition nor the second condition is met, the first electronic device will save the drawing information of the first user interface in the third memory or server.

14. The method of claim 13, wherein, The first condition includes: the usage frequency of the first user interface is greater than a first value; the second condition includes: the usage frequency of the first user interface is greater than a second value and less than a first value.

15. The method according to claim 13 or 14, characterized in that, The first memory includes a cache, the second memory includes RAM, and the third memory includes a hard disk.

16. The method according to any one of claims 13-15, characterized in that, When the first electronic device saves the drawing information of the first user interface in the first memory, the method further includes: If the third condition for the first electronic device to be powered off is detected, the first electronic device saves the drawing information of the first user interface stored in the first memory to the third memory or the server. After the first electronic device is powered off, the data stored in the first memory will be deleted, but the data stored in the third memory will not be deleted.

17. A display method characterized by comprising: The method is applied to a system including a first electronic device and a second electronic device, wherein the first electronic device and the second electronic device establish a communication connection, and the method includes: The first electronic device synthesizes and displays the first user interface based on the drawing information of the first user interface, wherein the drawing information of the first user interface includes the drawing instructions of the first user interface. The first electronic device sends the drawing information of the first user interface to the second electronic device through the communication connection; The second electronic device synthesizes and displays a second user interface based on the drawing information of the first user interface, and the content in the second user interface is completely or partially the same as the content in the first user interface.

18. The method of claim 17, wherein, The method further includes: The first electronic device stores the drawing information of the first user interface.

19. The method of claim 17 or 18, wherein, The second user interface is the user interface in the first application; the drawing information of the first user interface also includes the metadata of the first user interface; the second electronic device synthesizes and displays the second user interface based on the drawing information of the first user interface, specifically including: If the metadata of the first user interface confirms that the drawing information of the first user interface is available in the second electronic device, the second electronic device synthesizes the second user interface based on the drawing information of the first user interface.

20. The method of claim 19, wherein, The metadata of the first user interface includes any one or more of the following: the identifier of the first application, the version number of the first application, the device identifier of the first electronic device, and the device account information logged in on the first electronic device.

21. The method according to any one of claims 17-20, characterized by, When the content in the second user interface is completely identical to the content in the first user interface, the second electronic device synthesizes and displays the second user interface based on the drawing information of the first user interface, specifically including: The second electronic device acquires the UI layout information of the first user interface and the UI layout information of the second user interface; If the UI layout information of the first user interface is the same as that of the second user interface, the second electronic device synthesizes and displays the second user interface based on the information of the first user interface.

22. The method according to any one of claims 17-20, characterized by, When the content in the second user interface is partially the same as the content in the first user interface, the second electronic device synthesizes and displays the second user interface based on the drawing information of the first user interface, specifically including: The second electronic device acquires the UI layout information of the first user interface and the UI layout information of the second user interface. The UI layout information of the first user interface includes the UI layout information of the first part of the content and the UI layout information of the second part of the content in the first user interface. The UI layout information of the second user interface includes the UI layout information of the third part of the content and the UI layout information of the fourth part of the content in the second user interface. If the UI layout information of the first part of the content is the same as the UI layout information of the third part of the content, and the UI layout information of the second part of the content is different from the UI layout information of the fourth part of the content, the second electronic device determines the drawing information of the second user interface based on the UI layout information of the second part of the content, the UI layout information of the fourth part of the content, and the drawing information of the first user interface. The drawing information of the second user interface includes the drawing instructions of the second user interface. The second electronic device synthesizes and displays the second user interface based on the drawing information of the second user interface.

23. The method according to any one of claims 17-20, characterized by, The first user interface includes a first view control and a second view control, and the drawing information of the first user interface includes the drawing information of the first view control and the drawing information of the second view control. The second electronic device synthesizes and displays a second user interface based on the information from the first user interface, specifically including: The second electronic device synthesizes and displays a third view control in the second user interface based on the drawing information of the first view control. The content of the third view control is completely or partially the same as the content of the first view control.

24. The method of claim 23, wherein, When the content in the third view control is completely identical to the content in the first view control, the second electronic device synthesizes and displays the third view control in the second user interface based on the drawing information of the first view control, specifically including: The second electronic device acquires the properties of the first view control and the properties of the third view control; If the properties of the first view control and the third view control are the same, the second electronic device synthesizes and displays the third view control in the second user interface based on the drawing information of the first view control.

25. The method of claim 23 or 24, wherein, When the content in the third view control is partially the same as the content in the first view control, the second electronic device synthesizes and displays the third view control in the second user interface based on the drawing information of the first view control, specifically including: The second electronic device acquires the properties of the first view control and the properties of the third view control; If the properties of the first view control and the properties of the third view control are different, the first electronic device determines the drawing information of the third view control based on the properties of the first view control, the properties of the third view control, and the drawing information of the first view control. The second electronic device synthesizes and displays the third view control in the second user interface based on the drawing information of the third view control.

26. An electronic device comprising a first electronic device, the electronic device comprising: The first electronic device includes a memory and a processor; wherein the memory and the processor are coupled, the memory is used to store a computer program, and when the processor executes the computer program, the first electronic device performs the method of any one of claims 1-25.

27. A computer-readable storage medium comprising instructions, wherein: When the instructions are executed on the first electronic device, the first electronic device performs the method of any one of claims 1-25.

28. A computer program product comprising computer programs / instructions, characterized in that, When the computer program / instructions are run on the first electronic device, the first electronic device performs the method of any one of claims 1-25.