Interface display method and electronic device

By loading image files and view templates in advance, optimizing data filling and differential data processing, the problem of slow display speed of the instant messaging application interface is solved and the user experience is improved.

CN117707662BActive Publication Date: 2024-10-11HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311071325.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-23
Publication Date
2024-10-11
Estimated Expiration
2043-08-23

AI Technical Summary

Technical Problem

Existing instant messaging applications require many steps and take a long time to display the interface, resulting in poor user experience.

Method used

By loading image files and view templates in advance, data filling and differential data processing are optimized, view template association time is reduced, and interface display speed is improved.

Benefits of technology

The entire process time of interface display is shortened, the interface display speed is improved, and the user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117707662B_ABST
    Figure CN117707662B_ABST
Patent Text Reader

Abstract

The present application provides an interface display method and an electronic device, the method is applied to an electronic device, the electronic device includes a first application, the method includes: obtaining first data, the first data includes text data and / or image data related to the first interface, the first interface is the interface of the first application; determining whether there is a first view template, and loading an image file; if there is no first view template, creating a first view template, the first view template is a view template related to the first interface; running the image file, filling the first data into the first view template, and obtaining second data; displaying the first interface according to the second data. Therefore, the present application saves the time of loading the image file by loading the image file in advance, shortens the time of displaying the first interface, and improves the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminals, and in particular to an interface display method and an electronic device. Background Art

[0002] An instant messaging application (APP) is usually installed in electronic devices such as smart watches. The instant messaging application can provide users with functions such as logging in and sending template messages through the software development kit (SDK) of the instant messaging application.

[0003] Currently, instant messaging applications have multiple interfaces such as an interface for displaying an address book list, an interface for displaying a message list, and an interface for displaying chat conversation content; however, when displaying any of the aforementioned interfaces, current instant messaging applications need to perform many steps in a preset order, which takes a long time and has a poor user experience. Summary of the invention

[0004] The present application provides an interface display method and an electronic device, which can shorten the interface display time of the electronic device as much as possible and ensure the user experience.

[0005] In a first aspect, the present application provides an interface display method, which is applied to an electronic device, the electronic device including a first application, and the method including:

[0006] Acquire first data, where the first data includes text data and / or image data related to a first interface, where the first interface is an interface of a first application program;

[0007] Determine whether the first view template exists and load the image file;

[0008] If the first view template does not exist, create the first view template, where the first view template is a view template related to the first interface;

[0009] Run the image file, fill the first data into the first view template, and obtain the second data;

[0010] The first interface is displayed according to the second data.

[0011] The first application may be an instant messaging application.

[0012] In the above method, after obtaining the first data related to the first interface, the electronic device determines whether there is a first view template, and loads the image file in the process of determining whether there is the first view template. That is to say, the steps of determining whether there is a first view template and loading the image file can be performed simultaneously. In this way, the electronic device can load the image file in advance, and thus can run the image file in advance, fill the first data into the view template related to the first interface, and obtain the second data for displaying the first interface. As a result, the time for loading the image file is saved, the time for the entire process of displaying the first interface is shortened, and the speed of displaying the first interface is improved.

[0013] In combination with the first aspect, in some implementations of the first aspect, running the image file, filling the first data into the first view template, and obtaining the second data includes:

[0014] Determine whether there is a difference between the first data and the third data, where the third data includes text data and / or image data related to the first interface acquired last time;

[0015] When there is a difference between the first data and the third data, determining difference data between the first data and the third data;

[0016] Run the image file, fill the difference data into the first view template, and obtain the second data.

[0017] In the above method, when there is a difference between the first data related to the first interface currently obtained and the third data related to the first interface last obtained, since the first data pulled last time has been filled into the view template related to the first interface during the process of displaying the first interface last time, when there is a difference, the electronic device can determine that the difference data is new data. Then, the electronic device only needs to run the mirror file and fill the difference data into the first view template to obtain the second data, without filling all the first data into the view template associated with the first interface, thereby reducing the data associated with the view template, saving the time associated with the view template, and further improving the speed of interface display of the instant messaging application.

[0018] In combination with the first aspect, in some implementations of the first aspect, the method further includes:

[0019] When there is no difference between the first data and the third data, fourth data is obtained, where the fourth data is data obtained by filling the third data into the first view template when the image file is run last time;

[0020] Update the fourth data to the second data.

[0021] In the above method, when there is no difference between the first data related to the first interface obtained for the current time and the third data related to the first interface obtained for the last time, the electronic device can directly read the data saved for the last time, that is, the fourth data, as the second data for the current time, without having to execute the running image file again to fill the obtained first data related to the first interface into the view template related to the first interface, thereby saving the time for filling the data into the view template and improving the speed of the interface display of the instant messaging application.

[0022] In combination with the first aspect, in some implementations of the first aspect, after running the image file and filling the first data into the first view template to obtain the second data, the method further includes:

[0023] The second data is saved.

[0024] In the above method, the mirror file is run to fill the first data into the first view template. After obtaining the second data, the electronic device saves the second data, which can facilitate the first interface to be displayed more quickly based on the second data saved the next time the first interface is displayed.

[0025] In combination with the first aspect, in some implementations of the first aspect, the method further includes:

[0026] If the first view template exists, the image file is run, and the first data is filled into the first view template to obtain the second data.

[0027] In the above method, if there is a first view template, the electronic device can directly run the image file, fill the first data into the first view template, and obtain the second data, which saves the time of creating the view template and further improves the interface display speed of the instant messaging application.

[0028] In conjunction with the first aspect, in some implementations of the first aspect, determining whether a first view template exists includes:

[0029] Determine whether a view array template exists, the first view template being a view template in the view array template;

[0030] If the first view template does not exist, create the first view template, including:

[0031] If the view array template does not exist, create a view array template;

[0032] If the first view template exists, run the image file, fill the first data into the first view template, and obtain the second data, including:

[0033] If the view array template exists, the image file is run, and the first data is filled into the first view template in the view array template to obtain the second data.

[0034] In the above method, it is determined whether a view array template exists. If the view array template does not exist, the view array template is created. Since the view array template includes multiple view templates corresponding to the multiple interfaces of the first application, the view array template can be created when the interface of the first application is displayed for the first time. There is no need to create a view template when displaying each of the multiple interfaces of the first application. This saves the time for creating view templates, shortens the time for displaying any interface of the first application, and improves the speed of displaying any interface of the instant messaging application.

[0035] In combination with the first aspect, in certain implementations of the first aspect, the first application has multiple interfaces, the view array template includes multiple view templates, the multiple view templates correspond one-to-one to the multiple interfaces respectively, and one of the multiple view templates is the first view template.

[0036] In the above method, if the first application includes three interfaces, the three interfaces are respectively an address book list display interface, a message list display interface, and a chat conversation content display interface; the view module template includes three view templates, the three view templates are respectively a view template related to the address book list display interface, a view template related to the message list display interface, and a view template related to the chat conversation content display interface.

[0037] Then, when the first interface is an address book list display interface, the first view template is a view template related to the address book list display interface; when the first interface is a message list display interface, the first view template is a view template related to the message list display interface; when the first interface is a chat conversation content display interface, the first view template is a view template related to the chat conversation content display interface.

[0038] In conjunction with the first aspect, in some implementations of the first aspect, obtaining first data includes:

[0039] Displaying a second interface, the second interface including an identification of the first application;

[0040] In response to a first operation on the second interface, first data is acquired.

[0041] In the above method, the second interface may be the main interface of the electronic device, which includes the logo of the first application, and the first operation may be a click operation on the logo of the first application; in other words, the first data may be obtained according to the operation of starting the first application.

[0042] In conjunction with the first aspect, in some implementations of the first aspect, obtaining first data includes:

[0043] Displaying a third interface, where the third interface is an interface of the first application;

[0044] In response to a first operation on the third interface, first data is acquired.

[0045] In the above method, the third interface may be the interface of the first application, and the first operation may be a click operation on the return control in the third interface of the first application; in other words, the first data may be obtained according to the operation of switching the interface of the first application.

[0046] In a second aspect, the present application provides an electronic device, the electronic device including a first application, a first creation module, an engine module, a second creation module and a display module, including:

[0047] The first application is used to obtain first data, the first data includes text data and / or image data related to the first interface, and the first interface is the interface of the first application;

[0048] The first application is also used to send first data to the first creation module;

[0049] The first creation module is used to determine whether a first view template exists when receiving the first data, and the engine module loads the image file in response to the event that the first creation module receives the first data, and the first view template is a view template related to the first interface;

[0050] The first creation module is also used to initiate a first view template creation event when the first view template does not exist;

[0051] The engine module is further used to call the second creation module to create the first view template in response to initiating the event of creating the first view template;

[0052] The engine module is also used to read the first data from the first creation module, run the image file, fill the first data into the first view template, and obtain the second data;

[0053] The engine module is also used to send the second data to the display module through the first creation module;

[0054] The display module is used to display the first interface according to the second data when receiving the second data.

[0055] In conjunction with the second aspect, in some implementations of the second aspect, the engine module is further configured to perform the following steps:

[0056] Determine whether there is a difference between the first data and the third data, where the third data is text data and / or image data related to the first interface acquired last time;

[0057] When there is a difference between the first data and the third data, determining difference data between the first data and the third data;

[0058] Run the image file, fill the difference data into the first view template, and obtain the second data.

[0059] In conjunction with the second aspect, in some implementations of the second aspect, the engine module is further configured to perform the following steps:

[0060] When there is no difference between the first data and the third data, fourth data is obtained, where the fourth data is data obtained by filling the third data into the first view template when the image file is run last time;

[0061] Update the fourth data to the second data.

[0062] In a third aspect, the present application provides an electronic device comprising one or more processors, a memory and one or more computer programs, wherein the one or more computer programs are stored in the memory, and when the computer programs are executed by one or more processors, the electronic device executes the interface display method in the first aspect and any possible implementation of the first aspect.

[0063] In a fourth aspect, the present application provides a chip system, which includes a processor for calling and running a computer program from a memory, so that an electronic device equipped with the chip system executes the interface display method in the first aspect and any possible implementation of the first aspect.

[0064] In a fifth aspect, the present application provides a computer-readable storage medium, including a computer program. When the computer program runs on an electronic device, the electronic device executes the interface display method in the first aspect and any possible implementation of the first aspect.

[0065] In a sixth aspect, the present application provides a computer program product. When the computer program product runs on a computer, it enables the computer to execute the interface display method in the first aspect and any possible implementation of the first aspect.

[0066] It can be understood that the beneficial effects of the second to sixth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] Figure 1 A flowchart of an interface display method provided by the prior art of this application;

[0068] Figure 2 A schematic diagram of an application scenario provided by an embodiment of the present application;

[0069] Figure 3 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application;

[0070] Figure 4 A schematic diagram of a software architecture of an electronic device provided in one embodiment of the present application;

[0071] Figure 5 A flowchart of an interface display method provided in one embodiment of the present application;

[0072] Figure 6 A flowchart of an interface display method provided in accordance with an embodiment of the present application. DETAILED DESCRIPTION

[0073] In this application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c alone can represent: a, b, c, a and b, a and c, or a, b, and c, where a, b, and c can be single or multiple. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.

[0074] Electronic devices such as smart watches are usually installed with applications such as instant messaging applications (applications, APPs), health management applications, calendar applications, etc.

[0075] Among them, the instant messaging application corresponds to multiple interfaces, for example, an interface for displaying an address book list, an interface for displaying a message list, and an interface for displaying chat conversation content.

[0076] The software development kit (SDK) of the instant messaging application provides a series of development tools, interfaces and documents, allowing developers to integrate the functions and services of the instant messaging application in their applications. Through the SDK of the instant messaging application, users can perform operations related to the instant messaging application, such as logging in and sending template messages.

[0077] In this way, the instant messaging application can display the above-mentioned multiple interfaces through the software development kit of the instant messaging application.

[0078] The software development kit of the instant messaging application is written in JavaScript, and the code is relatively long. For example, the code corresponding to the JS file for displaying the interface of the instant messaging application exceeds 2,000 lines.

[0079] Among them, the software architecture system of electronic devices such as smart watches includes an application layer and an application framework layer. The application layer may include an instant messaging application. The application framework layer may include a JavaScript application framework sublayer and a C++ application framework sublayer. The JavaScript application framework sublayer may include a creation module 1. The C++ application framework sublayer may include an engine module, a creation module 2, and a display module.

[0080] At present, in one possible implementation, Figure 1 As shown in S11-S24 in the illustrated embodiment, the interface display method includes the following steps:

[0081] S11 . The instant messaging application program pulls data 1 (text and / or image data) related to interface 1 .

[0082] For example, when interface 1 is a message list display interface, data 1 may include the name of each user among multiple users, the most recent message sent by each user among multiple users through their electronic device at the current moment, and the time when the most recent message was received.

[0083] S12, the instant messaging application sends data 1 to the creation module 1 of the JavaScript application framework sublayer. S13, the creation module 1 initiates a view template creation event.

[0084] Among them, the template required to create the view template event is the view template related to interface 1.

[0085] For example, when interface 1 is a message list display interface, the template that needs to be created for creating a view template event is a view template related to the message list display interface.

[0086] S14. The engine module of the C++ application framework sublayer responds to the view template creation event initiated by the creation module 1, and calls the creation module 2 of the C++ application framework sublayer to create a view template.

[0087] After the creation module 1 initiates a view template creation event, the engine module can respond to the view template creation event initiated by the creation module 1 and call the creation module 2 of the C++ application framework sublayer to create a view template.

[0088] For example, when interface 1 is a message list display interface, the view template created by creation module 2 is a view template related to the message list display interface.

[0089] S15. The engine module loads the image file through the JS file code.

[0090] The image file includes bytecode data. Loading the image file can read and run the bytecode data in the image file for the engine module, and fill the data 1 into the view template to prepare the data.

[0091] S16. The engine module reads data 1 from the creation module 1.

[0092] S17. The engine module reads the bytecode data in the image file through the JS file code.

[0093] The bytecode data is instruction data, and the bytecode data is used to fill the data 1 related to the interface 1 into the view template related to the interface 1.

[0094] S18. The engine module runs the bytecode data through the JS file code, fills data 1 into the view template, and obtains data 2.

[0095] It can be seen that the engine module needs to load the image file through the JS file code, read the bytecode data in the image file through the JS file code, and run the bytecode data through the JS file code. The JS file code is long, and it takes a long time to load the image file in a preset order, read the bytecode data in the image file, and run the bytecode data in the image file.

[0096] S19. The engine module saves data 2.

[0097] S20. The engine module sends data 2 to the creation module 1.

[0098] S21. The engine module deletes the data 2 related to the interface 2 obtained last time.

[0099] Among them, the engine module deletes the data 2 related to interface 2 obtained last time. When the electronic device needs to display interface 2 next time, it needs to create module 1 to recreate the view template related to interface 2. The engine module needs to run the bytecode data in the image file and fill the entire data 1 related to interface 2 pulled into the view template related to interface 2.

[0100] S22. The creation module 1 sends data 2 related to the interface 1 to the display module.

[0101] That is to say, after the engine module obtains and saves the data 2 , it can send the data 2 to the display module through the creation module 1 , so that the display module can display the interface 1 according to the data 2 .

[0102] S23 . The display module displays the interface 1 according to the data 2 related to the interface 1 .

[0103] Based on the above description, it can be known that the data 2 related to interface 1 includes data 1 related to interface 1 and a view template related to interface 1, and the data 1 related to interface 1 is filled in the view template related to interface 1, so that the display module can display interface 1 according to the data 2 related to interface 1.

[0104] However, in the above implementation method, the JS file code file used to load the image file, read the bytecode data in the image file, and run the image file is relatively long. In one possible case, the chip, memory and other specifications of electronic devices such as smart watches are relatively low. Therefore, it takes a long time to load the image file, read the bytecode data in the image file, and run the image file, resulting in a long time to load the aforementioned interface 1 to be displayed, and a poor user experience.

[0105] In view of the above problems, the present application can provide an interface display method, an electronic device, a chip system, a computer-readable storage medium and a computer program product. After pulling data 1 related to interface 1, a view template creation event can be initiated, and in the process of creating the view template, the image file can be loaded in advance. In this way, after the view template is created, the image file has been loaded, and the bytecode data in the image file can be directly read, and the bytecode data in the image file can be run, and the pulled data related to interface 1 can be filled into the created view template to obtain data 2, and interface 1 can be displayed according to the data 2; thereby, the time for loading the image file can be saved, the time for the entire process of displaying the interface can be shortened, and the speed of displaying the interface can be improved, thereby ensuring the user experience.

[0106] The above interface display method is applied to an electronic device, which may be an electronic device having display screen hardware and corresponding software support.

[0107] For example, the electronic device may be a mobile phone, a tablet computer, a vehicle-mounted device, a laptop computer, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a smart car, a smart TV, a robot, or the like.

[0108] It should be pointed out that in some possible implementations, the electronic device may also be called a terminal device, user equipment (UE), etc., which is not limited in the embodiments of the present application.

[0109] See also Figure 2 , Figure 2 A schematic diagram of an application scenario provided by an embodiment of the present application is shown.

[0110] like Figure 2 As shown in (a) in FIG. 1 , the electronic device can display an interface 11, and the interface 11 is used to display icons of various application programs (applications, APPs) installed in the electronic device.

[0111] The interface 11 may include an icon of an instant messaging application, an icon of a calendar application, an icon of a clock application, and an icon of a health management application.

[0112] When a user clicks on the "chat" icon of the instant messaging application, the electronic device may display Figure 2 The display interface 12 shown in (b) is used to display the message list of the instant messaging application.

[0113] Among them, interface 12 may include the name of user a and the message sent by user a to the instant messaging application through his electronic device, the name of user b and the message sent by user b to the instant messaging application through his electronic device, the name of user c and the message sent by user c to the instant messaging application through his electronic device, and the name of user d and the message sent by user d to the instant messaging application through his electronic device.

[0114] The user clicks on one of the messages. For example, the user clicks on the message of user a, and the electronic device displays the following Figure 2 The display interface 13 shown in (c) in the figure displays the chat conversation content between the user and user a in the instant messaging application.

[0115] After receiving a user triggering operation on the icon of the instant messaging application in interface 11, the electronic device may change from display interface 11 to display interface 12. After receiving a user triggering operation on the area corresponding to the name of user a and the message sent by user a to the instant messaging application through the electronic device to which he belongs in interface 12, the electronic device may change from display interface 12 to display interface 13.

[0116] After receiving an operation of triggering a return control in interface 13 by the user, the electronic device may change from display interface 13 to display interface 12 .

[0117] Based on the above description, in the process of an electronic device changing from display interface 11 to display interface 12, from display interface 12 to display interface 13, or from display interface 13 to display interface 12, data 1 related to the interface to be displayed can be pulled, a template creation event can be initiated, a view template can be created, and in the process of creating the view template, an image file can be loaded. After the view template is created, the bytecode data in the image file can be directly read, and according to the created view template and the pulled data 1 related to the interface to be displayed, the bytecode data in the image file can be run to obtain data 2 related to the interface to be displayed, and the interface to be displayed can be displayed according to the data 2.

[0118] It should be understood that the above is an example of a scenario and does not limit the scenario of the present application.

[0119] For ease of explanation, Figure 3 In the figure, the electronic device 100 is taken as a smart watch as an example.

[0120] like Figure 3 As shown, the electronic device 100 may include a processor 101, a communication module 102, a display screen 103, a camera 104, a sensor 105, an internal memory 106, a USB interface 107, an external memory interface 108, a charging management module 109, a power management module 110, and a battery 111, etc.

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

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

[0123] The processor 101 may also be provided with a memory for storing instructions and data.

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

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

[0126] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 103. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 101 and be set in the same device as the mobile communication module 150 or other functional modules.

[0127] The communication module 102 may include antenna 1 and antenna 2, a mobile communication module, and / or a wireless communication module.

[0128] Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

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

[0130] The wireless communication module can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module can be one or more devices integrating at least one communication processing module. The wireless communication module receives electromagnetic waves via antenna 2, modulates and filters the electromagnetic wave signals, and sends the processed signals to processor 101. The wireless communication module can also receive the signal to be sent from processor 101, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through antenna 2.

[0131] The display screen 103 is used to display images or videos in the human-computer interaction interface. The display screen 103 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), MiniLED, MicroLED, Micro-OLED, quantum dot light emitting diodes (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 103, where N is a positive integer greater than 1.

[0132] The camera 104 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 104, where N is a positive integer greater than 1.

[0133] The charging management module 109 is used to receive charging input from a charger, where the charger can be a wireless charger or a wired charger.

[0134] In some wired charging embodiments, the charging management module 109 may receive charging input from a wired charger through the USB interface 107 .

[0135] In some wireless charging embodiments, the charging management module 109 may receive wireless charging input via a wireless charging coil of the electronic device 100. While the charging management module 109 charges the battery 111, it may also power the electronic device 100 via the power management module 110.

[0136] The power management module 110 is used to connect the battery 111, the charging management module 109 and the processor 101. The power management module 110 receives input from the battery 111 and / or the charging management module 109, and supplies power to the processor 101, the internal memory 106, the external memory, and the communication module 102. The power management module 110 can also be used to monitor parameters such as battery capacity, battery cycle number, and battery health status (leakage, impedance).

[0137] In some other embodiments, the power management module 110 may also be disposed in the processor 101 .

[0138] In other embodiments, the power management module 110 and the charging management module 109 may also be disposed in the same device.

[0139] The external memory interface 108 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 101 through the external memory interface 108 to implement a data storage function. For example, files such as music and video streams are stored in the external memory card.

[0140] The internal memory 106 can be used to store computer executable program codes, which include instructions. The processor 101 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 106. The internal memory 106 can include a program storage area and a data storage area.

[0141] The program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 106 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0142] The sensor 105 in the electronic device 100 may include image sensors, touch sensors, pressure sensors, gyroscope sensors, air pressure sensors, magnetic sensors, acceleration sensors, distance sensors, proximity light sensors, ambient light sensors, fingerprint sensors, temperature sensors, bone conduction sensors and other components to realize sensing and / or acquisition functions for different signals.

[0143] Optionally, the electronic device 100 may further include peripheral devices, such as a mouse, buttons, indicator lights, a keyboard, a speaker, a microphone, etc.

[0144] The buttons include a power button, a volume button, etc. The buttons may be mechanical buttons or touch buttons. The electronic device 100 may receive button inputs and generate key signal inputs related to user settings and function controls of the electronic device 100.

[0145] The indicator may be a light indicator, which may be used to indicate the charging status and the change in the power level, and may also be used to indicate messages, missed calls, and notifications, etc.

[0146] It can be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100 .

[0147] In other embodiments, the electronic device 100 may include more or fewer components than shown, or combine some components, or separate some components, or arrange the components differently. The components shown may be implemented in hardware, software, or a combination of software and hardware.

[0148] Please refer to Figure 4 , is a schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application. The interface display method provided in an embodiment of the present application is applied to Figure 3When the electronic device 100 is shown, the software in the electronic device 100 can be divided into the following Figure 4 The illustrated application layer 201 , application framework layer (framework, FWK) 202 , hardware abstraction layer (HAL) 203 , and driver layer 204 .

[0149] Multiple applications may be installed in the application layer 201, for example, an instant messaging application.

[0150] Instant messaging applications can provide users with instant messaging, group chats, voice calls, video calls, file transfers, payment capabilities, etc.

[0151] In the embodiment of the present application, the instant messaging application may have multiple user interfaces.

[0152] The application framework layer (framework, FWK) 202 provides an application programming interface (application programming interface, API) and a programming framework for the application programs of the application layer. The application framework layer 202 includes some predefined functions.

[0153] The application framework layer 202 includes a JavaScript application framework sublayer and a C++ application framework sublayer.

[0154] The JavaScript application framework sublayer includes a creation module 1. The C++ application framework sublayer includes an engine module, a creation module 2 and a display module.

[0155] Among them, the creation module 1 is used to initiate a create view template event; the creation module 2 is used to create a view template. The display module is used to display the interface. The engine module is used to load the image file in response to the creation module 1 receiving the data sent by the first application, and in response to the creation module 1 initiating a create view template event, call the creation module 2 to create the view template.

[0156] The hardware abstraction layer 203 is a software located between the operating system kernel and the hardware circuit, and is generally used to abstract the hardware to enable the interaction between the operating system and the hardware circuit at the logical layer. In the embodiment of the present application, the hardware abstraction layer 203 may include a camera hardware abstraction layer (camera HAL) that enables the interaction between the camera application and the image sensor at the logical layer.

[0157] The driver layer 204 may be installed with a plurality of drivers for driving the hardware.

[0158] It should be noted that the application layer 201, the application framework layer 202, the hardware abstraction layer 203, and the driver layer 204 may also include other contents, which are not specifically limited here.

[0159] Based on the above scenario description, below, this application takes an electronic device as an example, combined with the accompanying drawings and application scenarios, to elaborate on the interface display method provided in the embodiment of the present application.

[0160] See also Figure 5 , Figure 5 A flow chart of an interface display method provided in an embodiment of the present application is shown.

[0161] like Figure 5 As shown, the interface display method provided by the present application may include:

[0162] S31. The instant messaging application program pulls data 1 related to interface 1.

[0163] Among them, the electronic device may include a variety of applications, such as instant messaging applications, calendar applications, clock applications, and health management applications.

[0164] Instant messaging applications can provide users with functions such as instant messaging, group chats, voice calls, video calls, file transfers, payment functions, etc., to facilitate users to communicate in real time, share information and engage in social exchanges with other users through instant messaging applications.

[0165] For an instant messaging application, there are multiple interfaces corresponding to the instant messaging application, for example, an address book list display interface, a message list display interface, and a chat conversation content display interface.

[0166] If the electronic device needs to display an interface of an instant messaging application, the instant messaging application needs to first pull data related to the interface.

[0167] In some embodiments, when the electronic device needs to display interface 1 , the data related to interface 1 may include text data and / or image data.

[0168] Among them, the instant messaging application can pull data 1 related to the interface 1 in various situations.

[0169] In some embodiments, when the instant messaging application is started, at this time, the interface 1 is the main interface of the instant messaging application, and the instant messaging application needs to pull data 1 related to the main interface of the instant messaging application.

[0170] Specifically, the electronic device has a main interface, which is used to display icons of multiple applications in the electronic device. After receiving an operation by the user to trigger the icon of the instant messaging application in the main interface, the instant messaging application needs to display the main interface of the instant messaging application, and the instant messaging application pulls data related to the main interface of the instant messaging application 1.

[0171] For example, when interface 1 is a message list display interface, data 1 may include the name of each user among multiple users, the most recent message sent by each user among multiple users through their electronic device at the current moment, and the time when the most recent message was received.

[0172] In other embodiments, when the interface corresponding to the instant messaging application is switched, at this time, interface 1 is the interface to be switched by the instant messaging application, and the instant messaging application needs to pull data 1 related to the interface to be switched.

[0173] Specifically, the electronic device can display interface 2, which is an interface for displaying the chat conversation content of the instant messaging application. Interface 2 includes a return control. After receiving the user's operation of triggering the return control in interface 2, the instant messaging application needs to display the interface to be switched by the instant messaging application, and the instant messaging application pulls data 1 related to the interface to be switched by the instant messaging application.

[0174] In combination with the above example, when interface 1 is a message list display interface, data 1 may include the name of each user among multiple users, the most recent message sent by each user among multiple users through their electronic device at the current moment, and the time when the most recent message was received.

[0175] It should be understood that data 1 is data related to interface 1; this application does not limit the type of data 1.

[0176] Among them, according to whether a new message is received or whether the address book list is changed, the instant messaging application can pull data 1 related to the interface 1 in two ways.

[0177] In some embodiments, if the instant messaging application has not received any new message and the address book list has not changed, then the instant messaging application pulls data 1 related to the interface 1 from the memory of the electronic device.

[0178] In other embodiments, if the instant messaging application receives a new message and / or the address book list changes, in this case, the content that needs to be displayed in interface 1 may include unupdated content and updated content, and data 1 related to interface 1 may include data 11 and data 12, wherein data 11 includes data corresponding to the unupdated content, and data 12 includes data corresponding to the updated content; the instant messaging application can pull the original data related to interface 1, namely data 11, from the memory of the electronic device; the instant messaging application can pull new data related to interface 1, namely data 12, from the server; then, the instant messaging application can obtain data 1 based on data 11 and data 12.

[0179] The instant messaging application can pull new data related to interface 1 from the server. For example, if interface 1 is a message list display interface, when user 1 sends chat message data to the instant messaging application in electronic device 2 belonging to user 2 through the instant messaging application in electronic device 1, electronic device 1 first sends the chat message data to the server. After receiving the chat message data, the server sends a notification to electronic device 2. After electronic device 2 receives the notification, the instant messaging application pulls the chat message data from the server to obtain new data related to the message list display interface.

[0180] S32. The instant messaging application sends data 1 to the creation module 1.

[0181] The JavaScript application framework sublayer may include a creation module 1, and the creation module 1 is used to initiate an event of creating a view template related to an interface corresponding to an instant messaging application.

[0182] Based on S31 , after receiving data 1 related to interface 1 , the instant messaging application sends data 1 to creation module 1 , so that creation module 1 can perform the next operation according to data 1 .

[0183] S33: The engine module loads the image file in response to the creation module 1 receiving the data 1.

[0184] The C++ application framework sublayer may include an engine module and a creation module 2, wherein the engine module is used to read and process data received by the creation module 1, call the creation module 2 in the C++ application framework sublayer to perform operations, and load and run image files. The creation module 2 is used to create a view template related to the interface corresponding to the instant messaging application.

[0185] Each time an electronic device is turned on or restarted, the system files in the electronic device are started. When the system files in the electronic device are started, the system files of the electronic device can create a JavaScript environment capable of parsing and executing the JavaScript code of the JavaScript application framework sublayer through the interface provided by the engine module of the C++ application framework sublayer. Thus, the engine module can parse and execute the code in the JavaScript application framework sublayer based on the JavaScript environment, and the C++ application framework sublayer can execute operations corresponding to the code in the JavaScript application framework sublayer through the interface provided by the engine module.

[0186] In this way, the interaction between the creation module 1 of the JavaScript application framework sublayer and the creation module 2 of the C++ application framework sublayer can be realized through the engine module.

[0187] Therefore, when the creation module 1 of the JavaScript application framework sublayer receives data 1, the engine module of the C++ application framework sublayer can determine that the creation module has received data 1 and start executing the next related operation, such as loading the image file.

[0188] A snapshot file is a file converted from a code form to a binary form. The snapshot file may include bytecode description information and bytecode data.

[0189] Based on the above description, the engine module loading the image file can prepare data in advance for the engine module to read the bytecode data in the image file in the subsequent steps.

[0190] S34. Create module 1 to determine whether a view array template exists.

[0191] Among them, the view array template is the core component for displaying the various interfaces corresponding to the instant messaging application. The view array template can be used to determine the position and layout of various elements in the interface, such as the position and layout of buttons, text boxes, images, etc. in the interface.

[0192] Among them, a view array template may include multiple view templates.

[0193] For example, the view array template includes three view templates, namely view01, view02 and view03.

[0194] view01 is a message list template corresponding to the instant messaging application. view01 is used to display the position and layout of various elements in the message list interface corresponding to the instant messaging application.

[0195] Among them, the various elements in the message list interface may include multiple blank message list cards, each blank message list card is used to display messages sent by each user of multiple users in the address book of the instant messaging application through his or her electronic device, as well as the name of each user.

[0196] view02 is a contact list template corresponding to the instant messaging application. view02 is used to display the position and layout of various elements in the contact list interface corresponding to the instant messaging application.

[0197] Among them, the various elements in the address book list interface may include a plurality of blank name list cards, each blank name list card is used to display the name of each user of the plurality of users in the address book of the instant messaging application.

[0198] view03 is a chat conversation content template corresponding to the instant messaging application. view03 is used to display the position and layout of various elements in the chat conversation content interface corresponding to the instant messaging application.

[0199] Among them, the various elements in the chat content interface may include a blank card for user name, a blank card for chat conversation content, and a reply control. The blank card for user name is used to display the user's name, the blank card for chat conversation content is used to display specific chat conversation messages, and the reply control is used to reply to chat conversation messages.

[0200] It should be understood that when the electronic device is turned on or restarted and the interface corresponding to the instant messaging application is displayed for the first time, the view array template does not exist in the electronic device. After the electronic device has displayed the interface corresponding to the instant messaging application, the view array template exists in the electronic device. Therefore, the creation module 1 needs to determine whether the view array template exists.

[0201] Specifically, after the electronic device is turned on or restarted, when the electronic device displays the interface corresponding to the instant messaging application for the first time, the creation module 1 executes S34 for the first time. The creation module 1 can determine that the view array template does not exist, so that the creation module 1 initiates a view array template creation event when it determines that the view array template does not exist.

[0202] Similarly, after executing S34 for the first time, creation module 1 can initiate a view array template creation event, and the view array template can be created through creation module 2 in the C++ application framework sublayer. Therefore, when executing S34 for the second time and the Nth time, creation module 1 can determine that the view array template exists and does not initiate a view array template creation event.

[0203] When the view array template does not exist, the creation module 1 executes S35; when the view array template exists, the engine module executes S37.

[0204] Among them, S33 and S34 can be executed simultaneously.

[0205] When S33 and S34 are executed simultaneously, the creation module 1 determines whether a view array template exists while the engine module loads the image file, or the engine module determines whether a view array template exists while loading the image file.

[0206] S35. Creation module 1 initiates a view array template creation event.

[0207] Creation module 1 can initiate a view array template creation event to facilitate the creation of a view array template by creation module 2 in the C++ application framework sublayer. The view array template can be prepared for data to be filled with data 1 in the view template in the view array template for subsequent engine module execution of the bytecode data in the image file.

[0208] S36: In response to the event of creating a view array template initiated by the creation module 1, the engine module calls the creation module 2 to create a view array template.

[0209] Based on S33, it can be known that the engine module is associated with the creation module 1 in the JavaScript application framework sublayer and the creation module 2 in the C++ application framework sublayer. Therefore, after the creation module 1 initiates the create view array template event, the engine module can receive the create view array template event.

[0210] Therefore, the engine module can search for the function for creating a view array template. Since the function for creating a view array template is written in C++ programming language and belongs to the C++ application framework sublayer, the engine module can call the function for creating a view array template in the C++ application framework sublayer, so that the creation module 2 creates the view array template.

[0211] Based on this, creation module 2 creates a view array template, which can prepare data for the subsequent engine module to fill data 1 into the view template in the view array template.

[0212] S37. The engine module reads data 1 from the creation module 1.

[0213] Based on S33, it can be known that the engine module is associated with the creation module 1 in the JavaScript application framework sublayer and the creation module 2 in the C++ application framework sublayer. Therefore, the engine module can call data 1 from the creation module 1 to the engine module, so that the engine module can perform the next step of processing on the data 1.

[0214] S38. The engine module reads the bytecode data in the image file.

[0215] Based on S33, it can be known that the image file includes bytecode description information and bytecode data.

[0216] In some embodiments, the bytecode data is a kind of instruction data, and the engine module can run the bytecode data by executing the JS file, thereby performing operations on data 1 and filling data 1 into the view template related to interface 1 in the view array template.

[0217] Based on this, the engine module reads the bytecode data in the image file, and can prepare data for the subsequent engine module to fill data 1 into the view template in the view array template by running the bytecode data.

[0218] S39, the engine module scans data 1, and determines whether data 1 is different from data 1 related to interface 1 pulled last time.

[0219] When data 1 is data related to interface 1 pulled by the instant messaging application for the i-th time, data 1 related to interface 1 pulled last time is data related to interface 1 pulled for the (i-1)th time.

[0220] It is understandable that there are differences between data 1 and the data related to interface 1 pulled last time, and there are at least three situations:

[0221] Case 1: data 1 related to interface 1 is data related to interface 1 of the instant messaging application that is pulled for the first time when the interface of the instant messaging application is displayed for the first time after the electronic device is turned on or restarted. Since the data related to interface 1 pulled last time is empty, there is a difference between the data 1 related to interface 1 currently pulled and the data 1 related to interface 1 pulled last time.

[0222] Case 2: The instant messaging application receives a new message, so that the currently pulled data 1 related to the interface 1 is different from the data related to the interface 1 pulled last time.

[0223] Case 3: The address book list in the instant messaging application has changed, that is, an address book contact has been added or deleted, resulting in a difference between the currently pulled data 1 related to the interface 1 and the last pulled data 1 related to the interface 1.

[0224] For example, when interface 1 is the message list interface corresponding to the instant messaging application, if the instant messaging application receives a new message (data 1 includes the new message), then there is a difference between the message list interface to be displayed and the message list interface displayed last, that is, the data 1 related to the message list interface currently pulled has changed from the data 1 related to the message list interface pulled last time, that is, there is a difference.

[0225] In a specific embodiment, it is assumed that the data 1 related to the message list interface pulled last time includes messages sent by electronic devices belonging to user a, user b, user c and user d respectively, and the data 1 related to the message list interface pulled currently includes messages sent by electronic devices belonging to user a, user b, user c, user d and user e respectively.

[0226] Then, the engine module can determine that there is a difference between the data 1 related to the message list interface currently pulled and the data 1 related to the message list interface pulled last time.

[0227] For example, when interface 1 is a message list interface corresponding to an instant messaging application, if the instant messaging application has not received a new message, then there is no difference between the data 1 currently pulled related to the message list interface and the data 1 last pulled related to the message list interface.

[0228] In a specific embodiment, it is assumed that the data 1 related to the message list interface pulled last time includes messages sent by electronic devices belonging to user a, user b, user c and user d respectively, and the data 1 related to the message list interface pulled currently includes messages sent by electronic devices belonging to user a, user b, user c and user d respectively.

[0229] Then, the engine module can determine that there is no difference between the data 1 related to the message list interface currently pulled and the data 1 related to the message list interface pulled last time.

[0230] When there is a difference, the engine module executes S40-S45; when there is no difference, the engine module executes S46-S48.

[0231] S40, the engine module determines data 2.

[0232] Among them, when there is a difference between the data 1 related to interface 1 currently pulled and the data 1 related to interface 1 pulled last time, data 2 is the difference data between the data 1 related to interface 1 currently pulled and the data 1 related to interface 1 pulled last time.

[0233] For example, when interface 1 is a message list interface corresponding to an instant messaging application, if the data 1 related to the message list interface pulled last time includes messages sent by electronic devices belonging to users a, b, c, and d respectively, the data 1 related to the message list interface pulled currently includes messages sent by electronic devices belonging to users a, b, c, d, and e respectively.

[0234] Then, the engine module can determine that data 2 is a message sent by the electronic device to which user e belongs.

[0235] S41. The engine module runs the bytecode data, fills data 2 into the view template related to interface 1 in the view array template, and obtains data 3.

[0236] Based on S40, the engine module can obtain data 2, thereby, the engine module can run the bytecode data, associate data 2 with the view template corresponding to interface 1 in the view array template, that is, fill data 2 into the view template related to interface 1 in the view array template to obtain data 3.

[0237] In some embodiments, when this is the first time that the instant messaging application pulls data related to interface 1, the view template corresponding to interface 1 is a blank view template. The engine module can directly associate data 2 with the blank view template, that is, fill data 2 into the blank view template to obtain data 3.

[0238] In other embodiments, this is the Nth time (N is greater than or equal to 2) that the instant messaging application has pulled data related to interface 1, and the view template corresponding to interface 1 has been associated with the data. The engine module can associate data 2 with the view template, and the engine module will fill data 2 into the view template that has been associated with the data to obtain data 3.

[0239] For example, when the current process is the first time to start the instant messaging application after the electronic device is turned on or restarted, and the interface displayed after the instant messaging application is started is the message list display interface, the instant messaging application pulls the data 01 corresponding to the message list (messages sent by the electronic devices to which users a, b and c belong respectively), and the view array template created by the creation module 1 includes the view template corresponding to the message list display interface. The engine module can run the bytecode data to associate the data 01 corresponding to the message list with the message list template in the view array template, that is, to associate the messages sent by the electronic devices to which users a, b and c belong respectively with the message list template. The associated data is data 03, and the engine module saves the data 03 corresponding to the message list display interface.

[0240] In combination with the above example, when the electronic device displays the message list display interface, the electronic device receives a message sent by the electronic device to which user d belongs, and the user performs an interface switching operation. After receiving the interface switching operation indicated by the user, the electronic device displays the address book list display interface.

[0241] During the process of the electronic device displaying the address list display interface, the user performs an interface switching operation. After receiving the interface switching operation instructed by the user, the electronic device starts to change from displaying the address list display interface to displaying the message list display interface. The instant messaging application pulls the data 001 corresponding to the message list (messages sent by the electronic devices belonging to user a, user b, user c and user d respectively). Since the data 03 corresponding to the message list display interface has been saved before, the electronic device runs the bytecode data again and associates the data 02 (messages sent by the electronic device belonging to user d) with the message list template.

[0242] Since in the above example, the electronic device has associated the messages sent by the electronic devices belonging to users a, b and c respectively with the message list template when displaying the address list display interface for the first time, then after the engine module associates the messages sent by the electronic device belonging to user d with the message list template, the messages sent by the electronic devices belonging to users a, b, c and d respectively are associated with the message list template, and the associated data is data 003.

[0243] S42: The engine module saves data 3.

[0244] After obtaining data 3, the engine module saves data 3 to facilitate the engine module to send data 3 to creation module 1. It is also convenient for the engine module to pull data 1 related to interface 1 next time, and after obtaining new data 2, when running the bytecode data according to the new data 2, directly fill the new data 2 into the view template of the currently associated data 2 to obtain new data 3.

[0245] In some embodiments, when the electronic device is turned on or restarted so that the system files in the electronic device are started, the engine module creates a context array (frame context array) module so that when the engine module obtains data 3, the context array module saves and manages data 3.

[0246] The context array module includes a plurality of context modules, and each of the plurality of context modules is used to manage data corresponding to a different interface 3.

[0247] Furthermore, the multiple context modules correspond one-to-one to the multiple view templates included in the view array template.

[0248] Assume that the view array template includes three view templates, namely view01, view02 and view03, view01 is the message list template corresponding to the instant messaging application, view02 is the address book list template corresponding to the instant messaging application, and view03 is the chat content template corresponding to the instant messaging application; data 031 includes view01 and data 2 associated with view01; data 032 includes view02 and data 2 associated with view012; data 033 includes view03 and data 2 associated with view03.

[0249] Then, the context array module includes three context modules, namely model01, model02 and model03; model01 is used to save and manage data 031; model02 is used to save and manage data 032; model03 is used to save and manage data 033.

[0250] In addition, after receiving data 3, the display module does not delete the data 3 related to interface 2 obtained last by the instant messaging application. Therefore, when the engine module needs the display module to display the interface 2 next time, it can directly obtain the data related to interface 2 and send it to the display module through the creation module 1, so that the display module can display interface 2 more quickly.

[0251] For example, when interface 1 is the address book list display interface of the instant messaging application and interface 2 is the message list display interface, if the electronic device displays the message list display interface, after receiving the user's operation to trigger the message list display interface, the instant messaging application starts to change from displaying the message list display interface to displaying the address book list display interface. As a result, the instant messaging application can pull data 1 related to the address book list display interface to be displayed, start the process of displaying the address book list display interface, the engine module saves data 3 related to the address book list display interface, and displays the address book list display interface.

[0252] Furthermore, the engine module sends the data 3 related to the address book list display interface to the display module through the creation module 1, so that before the display module displays the address book list display interface, the display module does not delete the data 3 related to the message list display interface originally displayed.

[0253] The data 3 related to the message list display interface may include a view template corresponding to the message list display interface and a user a associated with the view template.

[0254] In combination with the above example, after receiving the user's triggering operation on the interface 1 of the instant messaging application, the instant messaging application can start to change from displaying the address book list display interface to the message list display interface, thereby, the instant messaging application can pull the data 1 related to the message list display interface of the instant messaging application to be displayed, and start the process of displaying the message list display interface. The display module does not delete the data 3 related to the message list display interface, thereby, the engine module can directly associate the message sent by the electronic device to which user e belongs with the view template corresponding to the message list display interface. Since in the process of displaying the message list display interface last time, the engine module has associated the messages sent by the electronic devices to which users a, b, c and d belong respectively with the view template, then, after associating the messages sent by the electronic device to which user e belongs with the view template corresponding to the message list display interface this time, the data 3 obtained is the data obtained after the engine module associates the messages sent by the electronic devices to which users a, b, c, d and e belong respectively with the view template.

[0255] S43, the engine module sends data 3 to the creation module 1.

[0256] After the engine module obtains data 3, the display module needs to display the interface 1 corresponding to the data 3. Therefore, the engine module can first send data 3 to the creation module 1, and the creation module 1 sends data 3 to the display module after receiving the data 3.

[0257] S44, the creation module 1 sends data 3 to the display module.

[0258] Based on S43 , the creation module 1 may receive the data 3 , and thus, the creation module 1 may continue to transmit the data 3 to the display module, so as to prepare data for the display module to display the interface 1 according to the data 3 .

[0259] S45, the display module displays interface 1.

[0260] The C++ application framework sublayer may also include a display module, and the display module is used to draw and display the interface of the electronic device.

[0261] Based on this, after receiving data 3, the display module can display interface 1 according to data 3.

[0262] For example, when interface 1 is a message list display interface and data 3 includes messages sent by electronic devices belonging to users a, b, c, d and e respectively, and view templates related to the message list display interface, the display module can display interface 1 based on the messages sent by the electronic devices belonging to users a, b, c, d and e respectively, and the view templates associated with the messages sent by the electronic devices belonging to users a, b, c, d and e respectively.

[0263] In some embodiments, after receiving data 3, the display module may draw the data included in data 3, that is, draw data 2 included in data 3 onto the view template in data 3, obtain interface 1, and display interface 1.

[0264] S46, data 4 obtained by reading the bytecode data in the image file in the last operation.

[0265] Among them, when there is no difference between the data 1 related to interface 1 pulled this time and the data 1 related to interface 1 pulled last time, the engine module can determine that interface 1 has been displayed before the current display of interface 1, and the data 1 related to interface 1 pulled during the last display of interface 1 is the same as the data 1 related to interface 1 pulled this time. During the last display of interface 1, the engine module has run the bytecode data to associate the pulled data 1 related to interface 1 with the view template corresponding to interface 1 to obtain data 4.

[0266] S47, the engine module sends data 4 to the creation module 1.

[0267] Based on S46, the engine module can obtain data 4. After the engine module obtains data 4, the display module can display the interface 1 corresponding to the data 4. In this way, the engine module can first send data 4 to the creation module 1, and the creation module 1 sends data 4 to the display module after receiving the data 4.

[0268] In addition, after receiving data 4, the display module does not delete the data 4 related to interface 2 obtained last by the instant messaging application. Therefore, when the engine module needs the display module to display the interface 2 next time, it can directly obtain the data related to interface 2 and send it to the display module through the creation module 1, so that the display module can display interface 2 more quickly.

[0269] S48. The creation module 1 sends data 4 to the display module.

[0270] Based on S47 , the creation module 1 is able to receive the data 4 , and thus, the creation module 1 can continue to transmit the data 3 to the display module, so as to prepare data for the display module to display the interface 1 according to the data 4 .

[0271] S49, the display module displays interface 1.

[0272] Based on S48 , after receiving data 4 , the display module may display interface 1 according to data 4 .

[0273] In the present application, the engine module loads the image file in advance, that is, after the creation module 1 receives the data 1, the engine module starts loading the image file in the process of determining whether there is a view array template, so that the engine module can load the image file in advance. In this way, the engine module can read and run the bytecode data in the image file in advance, associate the pulled data with the view template, and obtain data 3 related to the interface to be displayed. This saves the time for the engine module to load the image file, shortens the time of the entire process of displaying the interface 1, and improves the speed of displaying the interface 1.

[0274] Furthermore, after the electronic device is turned on or restarted, when the interface of the instant messaging application is displayed for the first time, the creation module 1 determines that there is no creation view module template, and thus, the creation template 1 initiates a creation view template event, and the creation module 2 creates the view module template. The view module template created by the creation module 2 includes multiple view templates, and the multiple view templates correspond one-to-one to the multiple interfaces of the instant messaging application. In this way, the creation module 2 does not need to create a view template when displaying each of the multiple interfaces of the instant messaging application, which saves the time of displaying any interface of the instant messaging application and improves the speed of displaying any interface of the instant messaging application.

[0275] Furthermore, after obtaining data 3, the engine module can save data 3, which can facilitate the next display of interface 1. When there is no difference between the data 1 related to interface 1 read next time and the data 1 related to interface 1 read currently, the engine module can directly read the data 3 saved currently as the data 3 related to interface 1 obtained by the engine module next time, without executing the step of associating the pulled data 1 related to interface 1 with the view template related to interface 1, thereby saving the time of associating data with view templates and improving the speed of interface display of the instant messaging application.

[0276] Based on this, since the engine module has associated the data 1 related to interface 1 pulled out last time with the view template related to interface 1 in the data 3 saved currently, when there is a difference between the data 1 related to interface 1 read next time and the data 1 related to interface 1 read currently, the engine module only needs to associate the data 2 corresponding to the difference data with the view template related to interface 1 again to obtain the data 3 related to interface 1, without associating the entire data 1 with the view template, which reduces the data associated with the view template, saves the time of associating the data with the view template, and further improves the speed of interface display of the instant messaging application.

[0277] Based on the above description, before displaying interface 1, the display module does not delete the data 3 related to interface 2 displayed before displaying interface 1. This can facilitate the next display of interface 2. When there is no difference between the data 1 related to interface 2 read next time and the data 1 related to interface 2 read currently, the engine module can directly read the data 3 related to interface 2 that has not been deleted currently as the data 3 related to interface 2 obtained by the engine module next time, without having to execute the step of associating the pulled data 1 related to interface 2 with the view template related to interface 2, thereby saving the time of associating data with view templates and improving the speed of interface display of instant messaging applications.

[0278] Based on this, since the engine module has associated the data 1 related to interface 2 pulled currently with the view template related to interface 2 in the data 3 related to interface 2 that has not been deleted this time, when there is a difference between the data 1 related to interface 2 read next time and the data 1 related to interface 2 read currently, the engine module only needs to associate the data 2 corresponding to the difference data with the view template related to interface 2 again to obtain the data 3 related to interface 2, without associating the entire data 1 with the view template, which reduces the data associated with the view template, saves the time of associating the data with the view template, and further improves the speed of interface display of the instant messaging application.

[0279] Based on some of the aforementioned embodiments, the interface display method provided by the present application is introduced below.

[0280] Exemplarily, the present application provides an interface display method.

[0281] For the sake of convenience, the interface display method of the present application can be Figure 2 The electronic device is executed in the electronic device, and the electronic device includes a first application.

[0282] In some embodiments, the first application is an instant messaging application.

[0283] See also Figure 6 , Figure 6 A flow chart of an interface display method provided in an embodiment of the present application is shown.

[0284] like Figure 6 As shown, the interface display method provided by the present application may include:

[0285] S301. Acquire first data, where the first data includes text data and / or image data related to a first interface, and the first interface is an interface of a first application.

[0286] The specific implementation of the first data can be found in Figure 5 The description of data 1 related to interface 1 is not repeated here.

[0287] For the specific implementation of the first interface, please refer to Figure 4 The description of interface 12 or interface 13 in , and Figure 5 The description of interface 1 in FIG. 1 is omitted here.

[0288] For the specific implementation of S301, please refer to Figure 5 The relevant description of S31 in is not repeated here.

[0289] S302: Determine whether a first view template exists, and load an image file.

[0290] The specific implementation of the first view template can be found in Figure 5 The description of the view template in the view array template is not repeated here.

[0291] For the specific implementation of S302, please refer to Figure 5 The description of S34 and S33 in the description will not be repeated here.

[0292] S303: If the first view template does not exist, create a first view template, where the first view template is a view template related to the first interface.

[0293] The specific implementation of S303 can be found in Figure 5 The description of S35 and S36 in the description will not be repeated here.

[0294] S304: Run the image file, fill the first data into the first view template, and obtain second data.

[0295] The specific implementation of the image file can be found in Figure 5 The description of the image file in is not repeated here.

[0296] For the specific implementation of S304, please refer to Figure 5The description of S38-S41 in the description will not be repeated here.

[0297] S305. Display the first interface according to the second data.

[0298] The specific implementation of the second data can be found in Figure 5 The description of data 3 related to interface 1, or data 4 related to interface 1, will not be repeated here.

[0299] For the specific implementation of S305, please refer to Figure 5 The relevant descriptions of S43-S45 and S46-S48 are not repeated here.

[0300] The interface display method of the present application, after acquiring the first data related to the first interface, the electronic device determines whether the first view template exists, and in the process of determining whether the first view template exists, loads the image file in advance, that is, the electronic device can simultaneously execute the determination whether the first view template exists and load the image file. In this way, the electronic device can run the image file in advance, fill the first data into the view template related to the first interface, and obtain the second data for displaying the first interface. As a result, the time for loading the image file is saved, the time for the entire process of displaying the first interface is shortened, and the speed of displaying the first interface is improved.

[0301] In some embodiments, the interface display method of the present application may include:

[0302] Determine whether there is a difference between the first data and the third data, where the third data includes text data and / or image data related to the first interface acquired last time;

[0303] When there is a difference between the first data and the third data, determining difference data between the first data and the third data;

[0304] Run the image file, fill the difference data into the first view template, and obtain the second data.

[0305] The specific implementation of the third data can be found in Figure 5 The relevant description of the data 1 related to the interface 1 read last time is not repeated here.

[0306] For details on how to implement differential data, see Figure 5 The description of data 2 in is not repeated here.

[0307] The specific implementation of the above steps can be found in Figure 5 The description of S39-S44 in the description will not be repeated here.

[0308] In the present application, when there is a difference between the first data related to the first interface currently acquired and the third data related to the first interface last acquired, since the electronic device has filled the first data pulled last time into the view template related to the first interface during the last display of the first interface by the electronic device, when there is a difference, the electronic device can determine that the difference data is new data. Then, the electronic device only needs to run the image file and fill the difference data into the first view template to obtain the second data, without having to fill all the first data into the view template associated with the first interface, thereby reducing the data associated with the view template, saving the time associated with the view template, and further improving the speed of interface display of the instant messaging application.

[0309] In some embodiments, the interface display method of the present application may include:

[0310] When there is no difference between the first data and the third data, fourth data is obtained, where the fourth data is data obtained by filling the third data into the first view template when the image file is run last time;

[0311] Update the fourth data to the second data.

[0312] The specific implementation method of the fourth data can be found in Figure 5 The relevant description of the data 4 related to the interface 1 obtained last time will not be repeated here.

[0313] The specific implementation of the above steps can be found in Figure 5 The description of S46-S48 in the description will not be repeated here.

[0314] In the present application, when there is no difference between the first data related to the first interface obtained for the current time and the third data related to the first interface obtained for the last time, the electronic device can directly read the data saved for the last time, that is, the fourth data, as the second data for the current time, without having to execute the running image file again to fill the obtained first data related to the first interface into the view template related to the first interface, thereby saving the time for filling the data into the view template and improving the speed of the interface display of the instant messaging application.

[0315] In some embodiments, the interface display method of the present application may include:

[0316] The second data is saved.

[0317] The specific implementation of the above steps can be found in Figure 5 The description of S42 in is not repeated here.

[0318] In the present application, the mirror file is run, the first data is filled into the first view template, and after obtaining the second data, the electronic device saves the second data. Thus, when there is no difference between the first data related to the first interface read next time and the first data related to the first interface read currently, the engine module can directly read the second data saved currently as the second data related to the first interface obtained by the engine module next time, without having to execute the step of filling the pulled first data related to the first interface into the view template related to the first interface, thereby saving the time of filling the data into the view template and improving the speed of the interface display of the instant messaging application.

[0319] Based on this, since the engine module has associated the first data related to the first interface pulled currently and the view template related to the first interface in the second data saved currently, when there is a difference between the first data related to the first interface read next time and the first data related to the first interface read currently, the engine module only needs to associate the difference data with the view template related to the first interface again to obtain the second data related to the first interface, without having to fill the entire first data into the view template, thereby reducing the data filled into the view template, saving the time to fill the data into the view template, and further improving the speed of interface display of the instant messaging application.

[0320] In some embodiments, the interface display method of the present application may include:

[0321] If the first view template exists, the image file is run, and the first data is filled into the first view template to obtain the second data.

[0322] The specific implementation of the above steps can be found in Figure 5 The description of S34, S37-S48 in the description will not be repeated here.

[0323] In the present application, if a first view template exists, the electronic device can directly run the image file, fill the first data into the first view template, and obtain the second data, thereby saving the time of creating the view template and further improving the interface display speed of the instant messaging application.

[0324] In some embodiments, the interface display method of the present application may include:

[0325] Determine whether the first view template exists, including:

[0326] Determine whether a view array template exists, the first view template being a view template in the view array template;

[0327] If the first view template does not exist, create the first view template, including:

[0328] If the view array template does not exist, create a view array template;

[0329] If the first view template exists, run the image file, fill the first data into the first view template, and obtain the second data, including:

[0330] If the view array template exists, the image file is run, and the first data is filled into the first view template in the view array template to obtain the second data.

[0331] In the present application, the electronic device determines whether a view array template exists. If the view array template does not exist, it creates the view array template. Since the view array template includes multiple view templates corresponding to the multiple interfaces of the first application, the electronic device creates the view array template when displaying the interface of the first application for the first time. The electronic device does not need to create a view template when displaying each of the multiple interfaces of the first application, which saves the time of displaying any interface of the first application and improves the speed of displaying any interface of the instant messaging application.

[0332] In some embodiments, the first application has multiple interfaces, the view array template includes multiple view templates, the multiple view templates correspond one-to-one to the multiple interfaces respectively, and one of the multiple view templates is the first view template.

[0333] For example, the first application has three interfaces, namely, an address book list display interface, a message list display interface, and a chat conversation content display interface.

[0334] For example, the view array template includes three view templates, which are a view template corresponding to the address book list display interface, a view template corresponding to the message list display interface, and a view template corresponding to the chat conversation content display interface.

[0335] Among them, when the first interface is an address book list display interface, the first view template is a view template corresponding to the address book list display interface; when the first interface is a message list display interface, the first view template is a view template corresponding to the message list display interface; when the first interface is a chat conversation content display interface, the first view template is a view template corresponding to the chat conversation content display interface.

[0336] In some embodiments, the interface display method of the present application may include:

[0337] Displaying a second interface, the second interface including an identification of the first application;

[0338] In response to a first operation on the second interface, first data is acquired.

[0339] The specific implementation of the second interface can be found in Figure 2 The description of interface 11 in FIG. 1 is omitted here.

[0340] For example, in the second interface Figure 2 When the interface 11 is displayed, the first operation is to click the icon "chat" of the first application, that is, to start the first application.

[0341] For example, in the second interface Figure 2 When the interface 11 in the first interface is Figure 2 The interface 12 in the example may also be Figure 2 If according to the preset display order, when receiving the user's click operation on the icon "chat" of the first application, the electronic device needs to display Figure 2 Interface 12 in, then the first interface is Figure 2 If according to the preset display order, when receiving the user's click operation on the icon "chat" of the first application, the electronic device needs to display Figure 2 Interface 13 in, then the first interface is Figure 2 The interface in 13.

[0342] In some embodiments, the interface display method of the present application may include:

[0343] Displaying a third interface, where the third interface is an interface of the first application;

[0344] In response to a first operation on the third interface, first data is acquired.

[0345] The specific implementation of the third interface can be found in Figure 2 The related description of interface 12 or interface 13 is not repeated here.

[0346] For example, in the third interface Figure 2 When the interface 12 in the first interface can be Figure 2 In the interface 13, in the third interface is Figure 2 When the interface 13 in the first interface is Figure 2 In the interface 12. If according to the preset display order, after receiving the user's Figure 2 When user a clicks on a message in interface 12, the electronic device needs to display Figure 2 Interface 13 in, then the first interface is Figure 2 interface 13 in; if according to the preset display order, upon receiving the user's Figure 2 When the return control of interface 13 is clicked, the electronic device needs to display Figure 2Interface 12 in, then the first interface is Figure 2 The interface 12.

[0347] Exemplarily, the present application provides an electronic device, the electronic device comprising a first application, a first creation module, an engine module, a second creation module and a display module, wherein:

[0348] The first application is used to obtain first data, the first data includes text data and / or image data related to the first interface, and the first interface is the interface of the first application;

[0349] The first application is also used to send first data to the first creation module;

[0350] The first creation module is used to determine whether a first view template exists when receiving the first data, and the engine module loads the image file in response to the event that the first creation module receives the first data, and the first view template is a view template related to the first interface;

[0351] The first creation module is also used to initiate a first view template creation event when the first view template does not exist;

[0352] The engine module is further used to call the second creation module to create the first view template in response to initiating the event of creating the first view template;

[0353] The engine module is also used to read the first data from the first creation module, run the image file, fill the first data into the first view template, and obtain the second data;

[0354] The engine module is also used to send the second data to the display module through the first creation module;

[0355] The display module is used to display the first interface according to the second data when receiving the second data.

[0356] The functions implemented by the first application, the first creation module, the engine module, the second creation module and the display module can be specifically referred to in Figure 5 The description of S31-S48 in the description will not be repeated here.

[0357] In some embodiments, the engine module is further configured to perform the following steps:

[0358] Determine whether there is a difference between the first data and the third data, where the third data is text data and / or image data related to the first interface acquired last time;

[0359] When there is a difference between the first data and the third data, determining difference data between the first data and the third data;

[0360] Run the image file, fill the difference data into the first view template, and obtain the second data.

[0361] The functions implemented by the above engine modules can be found in Figure 5 The description of S39-S44 in the description will not be repeated here.

[0362] In some embodiments, the engine module is further configured to perform the following steps:

[0363] When there is no difference between the first data and the third data, fourth data is obtained, where the fourth data is data obtained by filling the third data into the first view template when the image file is run last time;

[0364] Update the fourth data to the second data.

[0365] The functions implemented by the above engine modules can be found in Figure 5 The description of S46-S48 in the description will not be repeated here.

[0366] In some embodiments, the engine module is further configured to perform the following steps:

[0367] The second data is saved.

[0368] The functions implemented by the above engine modules can be found in Figure 5 The relevant description of S42 is not repeated here.

[0369] In some embodiments, the engine module is further configured to perform the following steps:

[0370] If the first view template exists, the image file is run, and the first data is filled into the first view template to obtain the second data.

[0371] In some embodiments, the first creation module is further configured to perform the following steps:

[0372] Determine whether a view array template exists, the first view template being a view template in the view array template.

[0373] In some embodiments, if the view array template does not exist, the second creation module is further used to create a view array template.

[0374] In some embodiments, if a view array template exists, the engine module is further used to run the image file, fill the first data into the first view template in the view array template, and obtain the second data.

[0375] The functions implemented by the first creation module, the engine module and the second creation module can be specifically referred to in Figure 5 The description of S34, S37-S48 in the description will not be repeated here.

[0376] In some embodiments, the display module is further used to display a second interface, where the second interface includes an identifier of the first application.

[0377] In some embodiments, the first application is specifically used to obtain the first data in response to the first operation on the second interface.

[0378] In some embodiments, the display module is also used to display a third interface, which is an interface of the first application.

[0379] In some embodiments, the first application is specifically used to obtain the first data in response to a first operation on the third interface.

[0380] The functions implemented by the first application and the display module can be specifically referred to in Figure 5 S31 in, and Figure 2 The related descriptions of the middle interface 11, the interface 12 and the interface 13 are not repeated here.

[0381] Exemplarily, the present application provides an electronic device, comprising one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and when the computer programs are executed by the one or more processors, the electronic device executes the interface display method in the foregoing embodiments.

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

[0383] In this embodiment, the electronic device can be divided into functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0384] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0385] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0386] The electronic device provided in this embodiment is used to execute the above-mentioned interface display method, and thus can achieve the same effect as the above-mentioned implementation method.

[0387] Exemplarily, the present application provides a chip system, which includes a processor for calling and running a computer program from a memory, so that an electronic device equipped with the chip system executes the interface display method in the foregoing embodiment.

[0388] Exemplarily, the present application provides a computer-readable storage medium, in which codes or instructions are stored. When the codes or instructions are run on an electronic device, the electronic device implements the interface display method in the foregoing embodiment when executing.

[0389] Exemplarily, the present application provides a computer program product, which, when executed on a computer, enables an electronic device to implement the interface display method in the foregoing embodiment.

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

[0391] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0392] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

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

[0394] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0395] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0396] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. An interface display method, characterized in that: Applied to an electronic device, the electronic device includes a first application program, and the method includes: Acquire first data, where the first data includes text data and / or image data related to a first interface, where the first interface is an interface of the first application; Determine whether a first view template exists, and load an image file, wherein the image file includes bytecode data, the bytecode data is instruction data, and the bytecode data is used to fill the first data into the first view template; If the first view template does not exist, create the first view template, where the first view template is a view template related to the first interface; Reading and running the bytecode data in the image file, filling the first data into the first view template, and obtaining second data; Display the first interface according to the second data.

2. The method according to claim 1, characterized in that The reading and running the bytecode data in the image file, filling the first data into the first view template, and obtaining the second data includes: determining whether there is a difference between the first data and third data, the third data comprising text data and / or image data related to the first interface acquired last time; When there is a difference between the first data and the third data, determining difference data between the first data and the third data; The bytecode data in the image file is read and executed, and the difference data is filled into the first view template to obtain the second data.

3. The method according to claim 2, characterized in that The method further comprises: When there is no difference between the first data and the third data, fourth data is obtained, where the fourth data is data obtained by filling the third data into the first view template when the image file is run last time; Update the fourth data to the second data.

4. The method according to claim 1, characterized in that: After reading and running the bytecode data in the image file and filling the first data into the first view template to obtain the second data, the method further includes: The second data is saved.

5. The method according to any one of claims 2 to 4, characterized in that The method further comprises: If the first view template exists, the bytecode data in the image file is read and executed, and the first data is filled into the first view template to obtain the second data.

6. The method according to claim 5, characterized in that The determining whether the first view template exists includes: Determine whether a view array template exists, the first view template being a view template in the view array template; If the first view template does not exist, creating the first view template includes: If the view array template does not exist, create the view array template; If the first view template exists, reading and running the bytecode data in the image file, filling the first data into the first view template, and obtaining second data, including: If the view array template exists, read and run the bytecode data in the image file, fill the first data into the first view template in the view array template, and obtain the second data.

7. The method according to claim 6, characterized in that The first application has multiple interfaces, and the view array template includes multiple view templates. The multiple view templates correspond to the multiple interfaces one by one, respectively, and one of the multiple view templates is the first view template.

8. The method according to claim 6 or 7, characterized in that: The obtaining of the first data includes: Displaying a second interface, wherein the second interface includes an identifier of the first application; The first data is acquired in response to a first operation on the second interface, where the first operation is an operation on an identifier of the first application.

9. The method according to claim 6 or 7, characterized in that: The obtaining of the first data includes: Displaying a third interface, where the third interface is the interface of the first application; The first data is acquired in response to a second operation on the third interface, where the second operation is an operation of switching the interface of the first application from the third interface to the first interface.

10. An electronic device, characterized in that: The electronic device includes a first application, a first creation module, an engine module, a second creation module and a display module, including: The first application is used to obtain first data, the first data includes text data and / or image data related to a first interface, and the first interface is an interface of the first application; The first application is further used to send the first data to the first creation module; The first creation module is used to determine whether a first view template exists when receiving the first data, and the engine module loads a mirror file in response to an event that the first creation module receives the first data, wherein the first view template is a view template related to the first interface, and the mirror file includes bytecode data, wherein the bytecode data is instruction data, and the bytecode data is used to fill the first data into the first view template; The first creation module is further used to initiate a first view template creation event when the first view template does not exist; The engine module is further used for invoking the second creation module to create the first view template in response to initiating the event of creating the first view template; The engine module is further used to read the first data from the first creation module, read and run the bytecode data in the image file, fill the first data into the first view template, and obtain the second data; The engine module is further used to send the second data to the display module through the first creation module; The display module is used to display a first interface according to the second data when the second data is received.

11. The electronic device according to claim 10, characterized in that: The engine module is also used to perform the following steps: Determine whether there is a difference between the first data and third data, where the third data is text data and / or image data related to the first interface acquired last time; When there is a difference between the first data and the third data, determining difference data between the first data and the third data; The bytecode data in the image file is read and executed, and the difference data is filled into the first view template to obtain the second data.

12. The electronic device according to claim 11, characterized in that: The engine module is also used to perform the following steps: When there is no difference between the first data and the third data, fourth data is obtained, where the fourth data is data obtained by filling the third data into the first view template when the image file is run last time; Update the fourth data to the second data.

13. An electronic device, characterized in that: include: One or more processors, a memory, and one or more computer programs; wherein the one or more computer programs are stored in the memory, and when the computer programs are executed by the one or more processors, the electronic device executes the interface display method as described in any one of claims 1 to 9.

14. A chip system, characterized in that: The chip system includes a processor for calling and running a computer program from a memory, so that an electronic device equipped with the chip system executes the interface display method as described in any one of claims 1 to 9.

15. A computer-readable storage medium comprising a computer program, characterized in that: When the computer program runs on a terminal device, the electronic device executes the interface display method as claimed in any one of claims 1 to 9.