Interface display method and device and storage medium
By preloading the first screen data of the user interface when the application is started and displaying it when the trigger operation is received, the problem of long interface switching time is solved, and the convenience and user experience of interface switching are improved.
Patent Information
- Application Number
- CN202411847066.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-03-25
AI Technical Summary
In the prior art, when switching the user interface, it is necessary to wait for the user interface related data to be loaded from the terminal disk to the running memory, resulting in a long interface switching time and poor user experience.
When the application starts, the first screen data of the user interface is preloaded to the running memory, and when a trigger operation is received, the first screen content is displayed based on the preload data, and other data other than the first screen data are loaded to the running memory, so that data adjustments are made when the user adjusts the interface.
By preloading the first screen data, users' waiting time is reduced, interface switching is improved, and user experience is improved, and users' needs for rapid interface operation are met.
Smart Images

Figure CN119690569A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to an interface display method, device, and storage medium. Background Art
[0002] With the development of computer technology, various applications have also entered people's lives. Applications usually provide various user interfaces, and users can switch from one user interface to another.
[0003] In the related technology, after receiving the trigger operation for the first user interface, the first application starts to obtain the relevant data of the first user interface from the terminal disk. The user needs to wait until the relevant data of the first user interface is completely loaded into the first running memory of the first application, and then run and render in the first running memory before it will be displayed. During this period, the loading animation will be displayed in the user interface.
[0004] However, if the first user interface has a lot of relevant data, the user needs to wait longer, and after the relevant data of the first user interface is loaded, the user needs to wait for the loading animation to hide before the first user interface can be displayed. The convenience of interface switching within the application is poor. Summary of the invention
[0005] The embodiment of the present application provides an interface display method, device and storage medium. The technical solution is as follows:
[0006] According to one aspect of an embodiment of the present application, there is provided an interface display method, the method comprising:
[0007] In response to the first application being started, first display data stored in the terminal disk is preloaded into the first running memory, the first display data including first screen data of the first user interface corresponding to a first moment, the first moment being the startup moment of the first application, and the first running memory being the running memory of the terminal device occupied by the first application;
[0008] In response to a trigger operation on the first user interface, based on the first display data in the first running memory, display the first screen content of the first user interface; and load the second display data stored in the terminal disk into the first running memory, wherein the second display data includes other data in the first user interface except the first screen data;
[0009] In response to the adjustment operation on the first user interface, the data content displayed in the first user interface is adjusted based on the second display data in the first running memory.
[0010] According to one aspect of an embodiment of the present application, an interface display device is provided, the device comprising:
[0011] a preloading module, configured to preload first display data stored in a terminal disk into a first running memory in response to a first application being started, wherein the first display data includes first screen data of a first user interface corresponding to a first moment, the first moment being a startup moment of the first application, and the first running memory being a running memory of the terminal device occupied by the first application;
[0012] A display module, configured to display the first screen content of the first user interface based on the first display data in the first running memory in response to a trigger operation on the first user interface; and load the second display data stored in the terminal disk into the first running memory, wherein the second display data includes other data in the first user interface except the first screen data;
[0013] An adjustment module is used to adjust the data content displayed in the first user interface based on the second display data in the first running memory in response to an adjustment operation on the first user interface.
[0014] According to one aspect of an embodiment of the present application, a terminal device is provided, the terminal device comprising a processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor to implement the above-mentioned interface display method.
[0015] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the above-mentioned interface display method.
[0016] According to one aspect of an embodiment of the present application, a computer program product is provided, wherein the computer program product includes a computer program, and the computer program is loaded and executed by a processor to implement the above-mentioned interface display method.
[0017] The technical solution provided in the embodiments of the present application can bring the following beneficial effects:
[0018] When the first application is started, the first display data is preloaded into the first running memory. When a trigger operation for the first user interface is received, the terminal displays the first screen content of the first user interface based on the first display data in the first running memory. In this way, the user does not need to wait for the relevant data of the first user interface to be loaded from the terminal disk into the first running memory, but can directly display the first screen content of the first user interface, which greatly shortens the time required to display the first user interface, improves the convenience of switching interfaces within the application, and improves the user experience. At the same time, the second display data in the terminal disk is loaded into the first running memory. After receiving the adjustment operation for the first user interface, the data content displayed in the first user interface is adjusted based on the second display data, which can also meet the user's operation requirements for the first user interface. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 is a schematic diagram of a computer system provided by an embodiment of the present application;
[0020] Figure 2 is a flow chart of an interface display method provided by an embodiment of the present application;
[0021] Figure 3 is a flow chart of an interface display method provided by another embodiment of the present application;
[0022] Figure 4 It is a flowchart of a method for displaying a music collection interface provided by an embodiment of the present application;
[0023] Figure 5 is a block diagram of an interface display device provided by an embodiment of the present application;
[0024] Figure 6 It is a structural diagram of a terminal device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0026] Please refer to Figure 1 , which shows a schematic diagram of a computer system provided by an embodiment of the present application. The computer system can be implemented as an interface display system. The computer system may include: a terminal device 10 and a server 20.
[0027] The number of terminal devices 10 may be one or more. The terminal device 10 may be an electronic device such as a mobile phone, a tablet computer, a laptop computer, a desktop computer, a game console, an e-book reader, a multimedia player, a wearable device, a smart TV, a vehicle-mounted terminal, etc. A client corresponding to the first application may be installed in the terminal device 10. Optionally, the first application may be an application that needs to be downloaded and installed, or may be a point-and-click application, which is not limited in the embodiment of the present application. In the embodiment of the present application, the above-mentioned first application is an application having a first user interface display function, and the first user interface is a user interface provided by the first application. Of course, the specific type of the first application is not limited, and the type of the first application may be a music application, a video application, a social application, a live broadcast application, a virtual reality application, an augmented reality application, etc., and the embodiment of the present application does not limit the specific category of the first application. In other embodiments, the first application may be considered as a separate functional module, such as being implemented as one of the functional modules for user interface display in a music application. Exemplarily, the above-mentioned client is running in the terminal device 10.
[0028] The server 20 is used to provide background services for the client of the first application installed and running in the terminal device 10. For example, the server 20 can be the background server of the first application mentioned above. The server 20 can be a single server, or a server cluster composed of multiple servers, or a cloud computing service center. Optionally, the server 20 provides background services for the clients of the first application in multiple terminal devices 10 at the same time. The terminal device 10 and the server 20 can communicate with each other through the network.
[0029] In some embodiments, in response to the startup of a first application, the terminal device 10 preloads first display data stored in the terminal disk into a first running memory, the first display data including first-screen data of a first user interface corresponding to a first moment, the first moment being the startup moment of the first application, and the first running memory being the running memory of the terminal device occupied by the first application; in response to a trigger operation on the first user interface, the first-screen content of the first user interface is displayed based on the first display data in the first running memory; and, the second display data stored in the terminal disk is loaded into the first running memory, the second display data including other data in the first user interface except the first-screen data; in response to an adjustment operation on the first user interface, the data content displayed in the first user interface is adjusted based on the second display data in the first running memory.
[0030] In the method provided in the embodiment of the present application, the execution subject of each step may be a terminal device. A terminal device is an electronic device with data storage and processing capabilities. For example, a terminal device may be Figure 1 The terminal device 10 in.
[0031] In some embodiments, the first user interface is a user interface provided by the first application. In some embodiments, the first user interface may be any user interface of the first application. In some embodiments, the first user interface is not the splash screen user interface displayed after the first application is started. The splash screen user interface refers to the first user interface displayed after the first application is started, and may also be referred to as the homepage, main interface, etc. of the first application. In some embodiments, the first user interface may be a sub-user interface triggered by a control in the splash screen user interface, or a link user interface triggered by a link in the splash screen user interface, which is not limited in this application. In some embodiments, the first user interface may also be a user interface triggered or jumped based on other user interfaces provided by the first application other than the splash screen user interface. For example, the first user interface may be triggered to enter based on a control in a sub-user interface of the splash screen user interface.
[0032] In the related technology, after receiving a trigger operation for the first user interface, the first application starts to obtain relevant data of the first user interface from the terminal disk. The user needs to wait until all relevant data of the first user interface are loaded into the first running memory of the first application, and then run and render in the first running memory before it will be displayed. During this period, a loading animation will be displayed in the user interface. However, if there is a lot of relevant data in the first user interface, the user needs to wait longer, and after the relevant data of the first user interface is loaded, it is necessary to wait for the loading animation to hide before the first user interface can be displayed. The convenience of interface switching within the application is poor, and the user experience is not good.
[0033] The embodiment of the present application provides an interface display method, when the first application is started, the first screen data of the first user interface can be preloaded into the first running memory, so that when a trigger operation for the first user interface is received, the terminal can first display the first screen content of the first user interface based on the first screen data in the first running memory, and at the same time load other data in the first user interface in the terminal disk except the first screen data into the first running memory, if an adjustment operation for the first user interface is received, the data content displayed in the first user interface is adjusted based on other data in the first user interface except the first screen data. In this way, the user does not need to wait for the relevant data of the first user interface to be loaded from the terminal disk to the first running memory, but can directly display the first screen content of the first user interface, and the time required to display the first user interface is greatly shortened, which improves the convenience of interface switching within the application and improves the user experience.
[0034] Please refer to Figure 2 , which shows a flow chart of an interface display method provided by an embodiment of the present application. The method is executed by a terminal device. The method includes at least one of the following steps 210 to 230.
[0035] In step 210, in response to the startup of the first application, the terminal device preloads the first display data stored in the terminal disk into the first running memory, where the first display data includes the first screen data of the first user interface corresponding to the first moment, the first moment is the startup moment of the first application, and the first running memory is the running memory of the terminal device occupied by the first application.
[0036] In some embodiments, the first application provides a display function of the first user interface. For example, the first application may be a music application, and the first user interface is a music collection display interface. For example, the first application may be a video application, and the first user interface is a video collection display interface.
[0037] In some embodiments, the first user interface is a user interface provided by the first application. In some embodiments, the first user interface may be any user interface of the first application. In some embodiments, the first user interface is not the opening screen user interface displayed after the first application is started. The opening screen user interface refers to the first user interface displayed after the first application is started, and may also be referred to as the homepage, main interface, etc. of the first application.
[0038] In some embodiments, the relevant data of the first user interface is stored or cached in the terminal disk. The terminal disk generally refers to a hardware device for storing data in a computer system, such as a hard disk drive (HDD) or a solid state drive (SSD). The terminal disk is the main storage medium of the terminal device, which can store a large amount of binary data and keep the data from being lost even after a power outage.
[0039] In some embodiments, the first running memory is the running memory of the terminal device occupied by the first application. The running memory is a volatile memory in the terminal device for temporarily storing data and programs. It allows the CPU to quickly access and process data, and has a direct impact on the performance of the terminal device. The terminal disk and the running memory are two key components in the computer system, which together determine the ability of the terminal device to process data and run programs. The terminal disk is responsible for long-term data storage, while the running memory is responsible for supporting short-term data storage and fast processing of the terminal device.
[0040] In some embodiments, the terminal disk stores first display data and second display data, and in response to the first application being started, the first display data stored in the terminal disk is directly preloaded into the first running memory. The terminal device can directly determine the first display data, and the step of preloading the first display data is simpler, but the first display data cannot be flexibly adjusted based on the display mode of the first user interface, and the flexibility is poor.
[0041] In some embodiments, the terminal disk does not distinguish between the first display data and the second display data, but stores the relevant data of the first user interface. In response to the first application being started, the first display data is determined from the relevant data of the first user interface, and the first display data is preloaded into the first running memory. Although the first display data needs to be determined in the relevant data of the first user interface before preloading the first display data, the content of the first display data can be flexibly determined in combination with the display mode of the first user interface, which is more flexible.
[0042] In some embodiments, the display mode of the first user interface is related to the display style of the first application on the terminal screen. Exemplarily, if the display style of the first application on the terminal screen is full screen display, the font size in the display mode of the first user interface is larger, and the amount of data displayed on the first screen is also larger. Exemplarily, if the display style of the first application on the terminal screen is small window display, the font size in the display mode of the first user interface is smaller, and the amount of data displayed on the first screen is also smaller.
[0043] In some embodiments, the display mode of the first user interface is also related to the display mode of the terminal device. The display mode of the terminal device is the display style of each application in the terminal screen controlled by the operating system of the terminal device. Exemplarily, if the display mode of the terminal device is the elderly mode, then the font in the display mode of the first user interface is larger, and the amount of data displayed on its first screen will also be less. Exemplarily, if the display mode of the terminal device is the youth mode, then the display mode of the first user interface will have more requirements for the displayed data, such as sensitive words need to be blocked or replaced.
[0044] Step 220, the terminal device responds to the trigger operation on the first user interface, displays the first screen content of the first user interface based on the first display data in the first running memory; and loads the second display data stored in the terminal disk into the first running memory, the second display data including other data in the first user interface except the first screen data.
[0045] In some embodiments, after receiving a trigger operation for the first user interface, the terminal device displays the first screen content of the first user interface based on the first display data in the first running memory. The first screen content of the first user interface is displayed after rendering based on the first display data, and the first screen content of the first user interface may include all the data in the first display data, or may only include part of the data in the first display data.
[0046] In some embodiments, due to differences in user habits or terminal device models, the amount of data displayed in the first screen content of the first user interface implemented on different terminal devices is different, and it is obviously unrealistic to configure different amounts of data for the first display data preloaded for different terminal devices. When the first application is started, the amount of data required to load the first display data corresponding to the first user interface is calculated first, which will increase the amount of calculation required to start the first application and affect the startup speed of the first application. Therefore, it is difficult to make the amount of data included in the first display data consistent with the amount of data included in the first screen content of the first user interface.
[0047] In some embodiments, a larger data volume can be configured for the first display data so that it can support the data volume requirements for displaying the first screen content of the first user interface on various display modes or various terminal devices. For example, if the first application is a music application and the first user interface is a music collection interface, the first display data may include 50 pieces of favorite music, and the first screen of the music collection interface displayed on the terminal screen usually includes 5 to 20 pieces of favorite music, so that the first display data can perfectly support the display of the first screen content of the first user interface. Moreover, configuring a uniform data volume for the first display data can effectively reduce the amount of calculation required by the terminal device when preloading the first display data.
[0048] In some embodiments, after receiving a trigger operation for the first user interface, the terminal device loads the second display data stored in the terminal disk into the first running memory. In some embodiments, the second display data includes other data in the first user interface except the first screen data. In some embodiments, the second display data includes at least other data in the first user interface except the first screen data. Exemplarily, the second display data also includes the first screen data of the first user interface.
[0049] In some embodiments, the second display data includes a first portion of data and a second portion of data. The first portion of data includes other data in the first user interface except the first screen data, and the second portion of data includes the first screen data of the first user interface corresponding to the second moment, and the second moment is the moment corresponding to the triggering operation. In some embodiments, the first display data is maintained based on the data during the last operation of the first application, and the second portion of data is maintained based on the data from the first moment to the second moment during the current operation of the first application. If an operation on the data in the first user interface is received between the first moment and the second moment, the terminal device will update the relevant data of the first user interface stored or cached in the terminal disk.
[0050] In some embodiments, if an operation on data in the first user interface is received between the first moment and the second moment, the terminal device may also update the first display data stored in the first running memory to ensure the accuracy of the first screen content of the first user interface.
[0051] In some embodiments, displaying the first screen content of the first user interface and loading the second display data stored in the terminal disk into the first operating memory can be performed simultaneously or sequentially. In some embodiments, for the case of sequential execution, the first screen content of the first user interface is displayed first.
[0052] Step 230: In response to the adjustment operation on the first user interface, the terminal device adjusts the data content displayed in the first user interface based on the second display data in the first running memory.
[0053] In some embodiments, after the first screen content of the first user interface is displayed, in response to an adjustment operation on the first user interface, the data content displayed in the first user interface is adjusted based on the second display data.
[0054] In some embodiments, the adjustment operation includes but is not limited to: clicking, sliding, touching, long pressing, pressing keys, gesture operations, etc., and may also be a combination of one or more of them.
[0055] In some embodiments, the adjustment operation can be used to adjust the specific data displayed in the first user interface, such as sliding down the first user interface to display non-first screen content of the first user interface. For example, click on the first data in the first user interface to display the detailed content of the first data. Taking the first application as a music application and the first user interface as a music collection interface as an example, click on a song in the first user interface to display the playback interface of the song. The playback interface is used to display the playback status, lyrics, song identification, other relevant information of the song, etc. Other relevant information of the song may include at least one of the following: comments, likes, collections, singers, covers, and related songs recommended based on the song.
[0056] In some embodiments, the adjustment operation can be used to adjust the arrangement order of the data displayed in the first user interface, for example, switching the arrangement order of the data displayed in the first user interface from sorting by time to sorting by name. In some embodiments, the arrangement order of the data displayed in the first user interface may include at least one of the following: sorting by time, sorting by name, sorting by data type, and sorting by data features. The data features are set based on the data in the first user interface, and different first applications can set different data features. Taking the first application as a music application and the first user interface as a music collection interface as an example, the data features may be the number of song collections, the number of song comments, the number of song likes, the number of song plays, etc.
[0057] In some embodiments, the adjustment operation can be used to characterize the display style of the data displayed in the first user interface, for example, switching the display style of the data displayed in the first user interface from horizontal display to vertical display. In some embodiments, the display mode of the first user interface is also related to the display style of the data displayed in the first user interface, and the display mode of the first user will be described in detail in the following embodiments. In some embodiments, the display style of the data can include at least one of the following: horizontal display, vertical display, name-based display, and picture-based display.
[0058] The technical solution provided by the embodiment of the present application is to preload the first display data into the first running memory when the first application is started. When a trigger operation for the first user interface is received, the terminal displays the first screen content of the first user interface based on the first display data in the first running memory. In this way, the user does not need to wait for the relevant data of the first user interface to be loaded from the terminal disk into the first running memory, but can directly display the first screen content of the first user interface, greatly shortening the time required to display the first user interface, improving the convenience of switching interfaces within the application, and improving the user experience. At the same time, the second display data in the terminal disk is loaded into the first running memory. After receiving the adjustment operation for the first user interface, the data content displayed in the first user interface is adjusted based on the second display data, which can also meet the user's operation requirements for the first user interface.
[0059] Please refer to Figure 3 , which shows a flow chart of an interface display method provided by another embodiment of the present application. The method is executed by a terminal device. The method may include at least one of the following steps 210 to 240.
[0060] In step 210, in response to the startup of the first application, the terminal device preloads the first display data stored in the terminal disk into the first running memory, where the first display data includes the first screen data of the first user interface corresponding to the first moment, the first moment is the startup moment of the first application, and the first running memory is the running memory of the terminal device occupied by the first application.
[0061] In some embodiments, the terminal disk stores first display data and second display data, and in response to the first application being started, the first display data stored in the terminal disk is directly preloaded into the first running memory. In some embodiments, the data in the first user interface may be arranged in multiple orders, which may result in different first screen contents of the first user interface. There may be the following situations:
[0062] Case 1: The arrangement order of the data displayed after the first user interface is triggered is preset. That is, each time the first user interface is triggered, the arrangement order of the data therein is fixed, so that the terminal disk can only maintain one version of the first display data. If the user needs to adjust the arrangement order of the data, the data content in the first user interface can be adjusted based on the second display data. In this case, the terminal device is relatively simple to implement, but it cannot meet the personalized needs of users and has poor flexibility.
[0063] Case 2: The arrangement order of the data displayed after the first user interface is triggered is determined based on the arrangement order maintained during the last operation of the first application. Different versions of the first display data can be maintained in the terminal disk, corresponding to different arrangement orders. In this way, when the first application is started, the terminal device can determine which version of the first display data to use based on the arrangement order maintained during the last operation of the first application. In this case, the terminal device needs more cost to maintain the first display data, which is a heavy burden on the terminal device, but it can meet the personalized needs of users.
[0064] Case 3: The order of data displayed after the first user interface is triggered is determined based on the user's usage habits. Only one version of the first display data is maintained. If the user needs to adjust the order of data, the data content in the first user interface can be adjusted based on the second display data. In this case, the terminal device is relatively simple to implement and can also meet the personalized needs of users.
[0065] In some embodiments, the terminal disk does not distinguish between the first display data and the second display data, but stores the relevant data of the first user interface. In response to the first application being started, the first display data is determined from the relevant data of the first user interface, and the first display data is preloaded into the first running memory. In some embodiments, the terminal device determines the first display data stored in the terminal disk based on the display mode of the first user interface.
[0066] In some embodiments, the first user interface is in the first display mode, and step 210 can be implemented as the following steps 211 to 213.
[0067] Step 211: The terminal device determines a first data parameter based on the first display mode, where the first data parameter includes at least one of the following: a first data quantity, a first data arrangement order, a first data display mode, and a first data type.
[0068] In some embodiments, the first data quantity is the data quantity included in the first user interface. In some embodiments, the first data quantity is a preset value, and the first data quantity is greater than or equal to the maximum value of the first screen data quantity. In some embodiments, the first data quantity corresponding to different versions of terminal devices is the same. Exemplarily, the maximum value of the first screen data quantity can be determined by the developer based on the screen size of each version of the terminal device on the market and the display style supported by the terminal device. In some embodiments, the first data quantity corresponding to different versions of the terminal device is different. Exemplarily, the maximum value of the first screen data quantity is determined based on the screen size of the terminal device where the first application is located and the display style supported by the terminal device.
[0069] In some embodiments, the first data arrangement order is the display order of the data included in the first user interface. In some embodiments, the first data arrangement order is consistent with the first screen data arrangement order. In some embodiments, the first screen data arrangement order is preset. In some embodiments, the first screen data arrangement order is maintained based on the last running process of the first application. In some embodiments, the first screen data arrangement order is determined based on the user's usage habits.
[0070] In some embodiments, the first data display mode is used to determine the display style of the data in the first user interface. In some embodiments, the first data display mode is consistent with the first screen data display mode. In some embodiments, the first screen data display mode is used to determine the display style of each data in the first screen content, and can be used to determine the display position, font, font size, size, transparency, interval between different data, etc. of each data.
[0071] In some embodiments, the first data type is used to indicate the data types corresponding to the data included in the first user interface. In some embodiments, the first data type includes at least one of the following: picture, text, video.
[0072] Step 212: The terminal device determines the first display data stored in the terminal disk based on the first data parameter.
[0073] Step 213: The terminal device preloads the first display data into the first operating memory.
[0074] In some embodiments, the terminal device determines first display data in relevant data of the first user interface based on the first data parameter, and preloads the first display data into the first running memory.
[0075] Step 220, the terminal device responds to the trigger operation on the first user interface, displays the first screen content of the first user interface based on the first display data in the first running memory; and loads the second display data stored in the terminal disk into the first running memory, the second display data including other data in the first user interface except the first screen data.
[0076] In some embodiments, the amount of data included in the first display data is greater than or equal to the amount of data actually displayed in the first screen content of the first user interface, so the first screen data needs to be determined in the first display data.
[0077] In some embodiments, the above step 220 can be implemented as the following steps 221 to 222.
[0078] Step 221: The terminal device determines first screen data in the first display data based on a display mode of the first user interface, where the display mode is related to a display style of the first application on the terminal screen.
[0079] In some embodiments, the first user interface is in the first display mode, and the above step 221 can be implemented as the following steps a to b.
[0080] In step a, the terminal device determines the first screen data parameters based on the first display mode, and the first screen data parameters include at least one of the following: the number of first screen data, the arrangement order of first screen data, the first screen data display mode, and the first screen data type.
[0081] In some embodiments, the amount of data on the first screen refers to the amount of data supported for display on the first screen of the first user interface. The arrangement order of data on the first screen refers to the arrangement order of data in the content of the first screen of the first user interface. The display mode of data on the first screen refers to the display mode of the first screen of the first user interface. The data type on the first screen refers to the data type of each data on the first screen of the first user interface.
[0082] Step b: determining the first screen data in the first display data based on the first screen data parameters.
[0083] Step 222: The terminal device renders and displays the first screen content of the first user interface.
[0084] In some embodiments, the terminal device set determines the first screen data in the first display data based on the first screen data parameters, and renders and displays the first screen data.
[0085] In some embodiments, the second display data includes a first portion of data and a second portion of data, the first portion of data includes other data in the first user interface except the first screen data, and the second portion of data includes the first screen data of the first user interface corresponding to the second moment, and the second moment is the moment corresponding to the triggering operation. In some embodiments, since the user may operate on the data in the first user interface before triggering the first user interface, which may cause the data in the first user interface to change, the method also includes the following step 240.
[0086] Step 240: When there is a difference between the first display data and the second portion of data, the terminal device updates the first screen content displayed in the first user interface based on the second portion of data.
[0087] In some embodiments, the difference between the first display data and the second portion of data exists in the first screen data, and the first screen content displayed in the first user interface is updated based on the second portion of data. Exemplarily, the first screen data in the second portion of data differs from the first screen data in the first display data by one or more data.
[0088] In some embodiments, if the difference between the first display data and the second portion of data does not exist in the first screen data, there is no need to update the first screen content displayed in the first user interface.
[0089] Step 230: In response to the adjustment operation on the first user interface, the terminal device adjusts the data content displayed in the first user interface based on the second display data in the first running memory.
[0090] In some embodiments, there may be multiple adjustment operations for the first user interface, and different adjustment operations may implement different functions.
[0091] In some embodiments, step 230 may be implemented as at least one of the following steps 231 to 232 .
[0092] Step 231: The terminal device updates the data content displayed in the first user interface based on the first part of data.
[0093] In some embodiments, the adjustment operation can be used to adjust the specific data displayed in the first user interface, such as sliding down the first user interface to display the non-first screen content of the first user interface, and the terminal device displays the non-first screen content in the first user interface based on the first part of the data. For example, click on the first data in the first user interface to display the detailed content of the first data. If the first data is the first screen data, the terminal device displays the detailed content of the first data based on the second part of the data. If the first data is non-first screen data, the terminal device displays the detailed content of the first data based on the first part of the data.
[0094] Step 232, in response to the first user interface switching from the first display mode to the second display mode, the terminal device adjusts the data content displayed in the first user interface based on the second display mode and the second display data, and the first display mode is different from the second display mode.
[0095] In some embodiments, the switching of the display mode of the first user interface may affect the amount of data displayed in the first user interface, the order of data arrangement in the first user interface, etc. Therefore, it is necessary to determine the second data parameter based on the second display mode, and the second data parameter includes at least one of the following: the amount of second data, the order of second data arrangement, the second data display mode, and the second data type.
[0096] The introduction of each of the above second data parameters can refer to the introduction of the first data parameters in the above embodiment, the difference is that the second data parameters are determined based on the second display mode, and the first data parameters are determined based on the first display mode. The terminal device determines the data content displayed in the first user interface in the second display data based on the second data parameters.
[0097] In some embodiments, after the display mode of the first user interface is switched, the home screen data of the first user interface is displayed in the second display mode.
[0098] Through the above method, a specific implementation method for preloading the first display data in the terminal device and solutions for various situations are provided, which provides technical support for the interface display method provided in the embodiment of the present application.
[0099] In some embodiments, the embodiments of the present application also support real-time modification of the second display data stored in the first running memory to ensure the accuracy of the data content of the first user interface.
[0100] In some embodiments, the modification of the second display data may include adding data to the second display data, deleting data in the second display data, or modifying data information in the second display data.
[0101] In some embodiments, in response to the operation of adding the first data to the second display data, the terminal device adds the first data to the second display data in the first running memory and adds the first data to the second display data stored in the terminal disk. Exemplarily, when a new favorite song is added to the favorite music, the data corresponding to the favorite song is added to the data corresponding to the music collection interface.
[0102] In some embodiments, in response to the operation of deleting the second data in the second display data, the terminal device deletes the second data in the second display data in the first running memory and deletes the second data in the second display data stored in the terminal disk. Exemplarily, if a favorite song in the favorite music is deleted, the data corresponding to the favorite song is deleted in the data corresponding to the music collection interface.
[0103] In some embodiments, the terminal device responds to the modification operation on the data information of the third data in the second display data, modifies the data information of the third data in the first running memory, and modifies the data information of the third data stored in the terminal disk. Exemplarily, to modify the data information of the favorite song in the favorite music, the data information corresponding to the favorite song is modified in the data corresponding to the music collection interface.
[0104] In some embodiments, the embodiments of the present application also support real-time modification of the first display data in the first running memory. In some embodiments, the modification of the first display data is not directly for the first display data, but for the modification operation of the related data of the first user interface stored in the terminal disk.
[0105] In some embodiments, the modification of the relevant data of the first user interface may include adding data in the relevant data of the first user interface, deleting data in the relevant data of the first user interface, and modifying data information in the relevant data of the first user interface.
[0106] In some embodiments, the terminal device determines whether the first data needs to be added to the first display data in response to the operation of adding the first data to the related data of the first user interface. If it needs to be added to the first display data, the first data is added to the first display data in the first running memory, and the first data is added to the related data of the first user interface stored in the terminal disk. Exemplarily, when a new favorite song is added to the favorite music, when it is determined that the favorite song needs to be added to the first screen data, the data of the favorite music is added to the first display data in the first running memory.
[0107] In some embodiments, in response to the operation of deleting the second data in the relevant data of the first user interface, the terminal device determines whether the second data is in the first display data, and if the second data is in the first display data, deletes the second data in the first display data in the first running memory, and deletes the second data in the relevant data of the first user interface stored in the terminal disk. Exemplarily, when deleting a favorite song in the favorite music, when it is determined that the favorite song is in the first display data, the data of the favorite music in the first display data is deleted.
[0108] In some embodiments, the terminal device responds to the modification operation of the data information of the third data in the relevant data of the first user interface, determines whether the third data is in the first display data, and if the third data is in the first display data, modifies the data information of the third data in the first running memory, and modifies the data information of the third data stored in the terminal disk. Exemplarily, to modify the data information of the favorite song in the favorite music, when it is determined that the favorite song is in the first display data, the data information corresponding to the favorite song in the first display data is modified.
[0109] Through the above method, the first display data and the second display data can be modified in real time based on the user's operation, thereby ensuring the accuracy of the display of the data content in the first user interface.
[0110] In some embodiments, the embodiments of the present application also provide an exemplary description of the display mode of the first user interface.
[0111] In some embodiments, the display mode of the first user interface affects the data content displayed in the first user interface. In some embodiments, the display mode of the first user interface is related to at least one of the following: the display style of the first application on the terminal screen, the display mode of the terminal device, the display style of the data in the first user interface, and the screen size of the terminal device.
[0112] In some embodiments, the display mode of the first user interface is related to the display style of the first application on the terminal screen. Exemplarily, if the display style of the first application on the terminal screen is full screen display, the font size in the display mode of the first user interface is larger, and the amount of data displayed on the first screen is also larger. Exemplarily, if the display style of the first application on the terminal screen is small window display, the font size in the display mode of the first user interface is smaller, and the amount of data displayed on the first screen is also smaller.
[0113] In some embodiments, the display mode of the first user interface is related to the display mode of the terminal device. The display mode of the terminal device is the display style of each application in the terminal screen controlled by the operating system of the terminal device. Exemplarily, if the display mode of the terminal device is the elderly mode, then the font in the display mode of the first user interface is larger, and the amount of data displayed on its first screen will also be less. Exemplarily, if the display mode of the terminal device is the youth mode, then the display mode of the first user interface will have more requirements for the displayed data, such as sensitive words need to be blocked or replaced.
[0114] In some embodiments, the display mode of the first user interface is related to the display style of the data displayed in the first user interface. Exemplarily, the display style of the data displayed in the first user interface is horizontal display, then the data in the display mode of the first user interface is displayed in horizontal version. Exemplarily, the display style of the data displayed in the first user interface is vertical display, then the data in the display mode of the first user interface is displayed in vertical version.
[0115] In some embodiments, the display mode of the first user interface is related to the size of the terminal screen. Exemplarily, if the size of the terminal screen is larger, the display mode of the first user interface is adapted to the larger screen size, the font size is larger, or the amount of data is larger. Exemplarily, if the size of the terminal screen is smaller, the display mode of the first user interface is adapted to the smaller screen size, the font size is larger, or the amount of data is smaller.
[0116] Please refer to Figure 4 , which shows a flow chart of a method for displaying a music collection interface provided by an embodiment of the present application. The method is executed by a terminal device. In the method, the first application is implemented as a music application, the first user interface is implemented as a music collection interface, the first display data is implemented as the first screen collection songs, and the second display data is implemented as the non-first screen collection songs.
[0117] In response to the launch of a music application, the terminal device preloads the first-screen collection songs stored in the terminal disk into the first running memory. The first-screen collection songs include the first-screen data of the music collection interface corresponding to the first moment. The first moment is the launch moment of the music application. The first running memory is the running memory of the terminal device occupied by the music application.
[0118] In response to the triggering operation on the music collection interface, the terminal device displays the first screen content of the music collection interface based on the first screen collection songs in the first running memory; and loads the non-first screen collection songs stored in the terminal disk into the first running memory, where the non-first screen collection songs include other collection songs in the music collection interface except the first screen collection songs. Here, all the collection songs in the music collection interface can also be loaded.
[0119] In response to the adjustment operation on the music collection interface, the terminal device adjusts the collection songs displayed in the music collection interface based on the non-first screen collection songs in the first running memory.
[0120] Through the above method, the waiting time required for the music collection interface to be displayed can be significantly shortened, the convenience of interface switching within the application can be improved, and the user experience can be improved.
[0121] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0122] Please refer to Figure 5 , which shows a block diagram of an interface display device provided by an embodiment of the present application. The device has the function of implementing the above method example, and the function can be implemented by hardware or by hardware executing corresponding software. The device can be the terminal device described above, or it can be set in the terminal device. Figure 5 As shown, the device 500 may include: a preloading module 510 , a display module 520 and an adjustment module 530 .
[0123] The preloading module 510 is used to preload the first display data stored in the terminal disk into the first running memory in response to the startup of the first application, wherein the first display data includes the first screen data of the first user interface corresponding to the first moment, the first moment is the startup moment of the first application, and the first running memory is the running memory of the terminal device occupied by the first application.
[0124] The display module 520 is used to display the first screen content of the first user interface based on the first display data in the first running memory in response to the trigger operation on the first user interface; and to load the second display data stored in the terminal disk into the first running memory, wherein the second display data includes other data in the first user interface except the first screen data.
[0125] The adjustment module 530 is configured to adjust the data content displayed in the first user interface based on the second display data in the first running memory in response to an adjustment operation on the first user interface.
[0126] In some embodiments, the second display data includes a first portion of data and a second portion of data, the first portion of data includes other data in the first user interface except the first screen data, the second portion of data includes the first screen data of the first user interface corresponding to a second moment, and the second moment is the moment corresponding to the trigger operation;
[0127] The adjustment module 530 is used to update the data content displayed in the first user interface based on the first part of data.
[0128] In some embodiments, the feature module 530 is further configured to update the first screen content displayed in the first user interface based on the second portion of data when there is a difference between the first display data and the second portion of data.
[0129] In some embodiments, the device 500 further includes a processing module (not shown).
[0130] The processing module is configured to, in response to an operation of adding the first data to the second display data, add the first data to the second display data in the first running memory, and add the first data to the second display data stored in the terminal disk; and / or,
[0131] The processing module is used to delete the second data in the second display data in the first running memory and delete the second data in the second display data stored in the terminal disk in response to an operation of deleting the second data in the second display data.
[0132] In some embodiments, the display module 520 is used to determine the first screen data in the first display data based on the display mode of the first user interface, and the display mode is related to the display style of the first application on the terminal screen; and render and display the first screen content of the first user interface.
[0133] In some embodiments, the display module 520 is used to determine the first screen data parameters based on the first display mode, and the first screen data parameters include at least one of the following: the number of first screen data, the arrangement order of the first screen data, the first screen data display mode, and the first screen data type; based on the first screen data parameters, the first screen data is determined in the first display data.
[0134] In some embodiments, the preloading module 510 is used to determine a first data parameter based on the first display mode, and the first data parameter includes at least one of the following: a first data quantity, a first data arrangement order, a first data display mode, and a first data type, wherein the first data quantity is the number of data included in the first user interface, the first data arrangement order is the display order of the data included in the first user interface, the first data display mode is used to determine the display style of the data in the first user interface, and the first data type is used to indicate the data types corresponding to the data included in the first user interface; based on the first data parameter, determine the first display data stored in the terminal disk; and preload the first display data into the first running memory.
[0135] In some embodiments, the first data quantity is a preset value, and the first data quantity is greater than or equal to the maximum value of the first screen data quantity;
[0136] The first data arrangement order is consistent with the first screen data arrangement order;
[0137] The first data display mode is consistent with the first screen data display mode;
[0138] The first data type includes at least one of the following: picture, text, and video.
[0139] In some embodiments, the adjustment module 530 is also used to adjust the data content displayed in the first user interface in response to the first user interface switching from a first display mode to a second display mode, based on the second display mode and the second display data, and the first display mode is different from the second display mode.
[0140] The technical solution provided by the embodiment of the present application is to preload the first display data into the first running memory when the first application is started. When a trigger operation for the first user interface is received, the terminal displays the first screen content of the first user interface based on the first display data in the first running memory. In this way, the user does not need to wait for the relevant data of the first user interface to be loaded from the terminal disk into the first running memory, but can directly display the first screen content of the first user interface, greatly shortening the time required to display the first user interface, improving the convenience of switching interfaces within the application, and improving the user experience. At the same time, the second display data in the terminal disk is loaded into the first running memory. After receiving the adjustment operation for the first user interface, the data content displayed in the first user interface is adjusted based on the second display data, which can also meet the user's operation requirements for the first user interface.
[0141] It should be noted that the device provided in the above embodiment only uses the division of the above-mentioned functional modules as an example to implement its functions. In practical applications, the above-mentioned functions can be assigned to different functional modules according to actual needs, that is, the content structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0142] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0143] Please refer to Figure 6 , which shows a block diagram of a terminal 600 provided in one embodiment of the present application. The terminal 600 may be an electronic device such as a mobile phone, a tablet computer, a game console, an e-book reader, a multimedia player, a wearable device, a PC, etc. The terminal is used to implement the interface display method provided in the above embodiment. The terminal may be Figure 1 The terminal 10 shown. Specifically:
[0144] Typically, the terminal 600 includes a processor 601 and a memory 602 .
[0145] The processor 601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 601 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). The processor 601 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 601 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 601 may also include an AI processor, which is used to process computing operations related to machine learning.
[0146] The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 602 is used to store at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is configured to be executed by one or more processors to implement the above-mentioned virtual object control method.
[0147] In some embodiments, the terminal 600 may further optionally include: a peripheral device interface 603 and at least one peripheral device. The processor 601, the memory 602 and the peripheral device interface 603 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 603 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 604, a display screen 605, a camera 606, an audio circuit 607, a positioning component 608 and a power supply 609.
[0148] Those skilled in the art will understand that Figure 6 The structure shown in the figure does not constitute a limitation on the terminal 600, and the terminal 600 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0149] For details not described in detail in this embodiment, please refer to the above embodiments, which will not be described in detail here.
[0150] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. The computer program is used to be executed by a processor of a terminal device to implement the above-mentioned interface display method.
[0151] Optionally, the computer readable storage medium may include: ROM (Read-Only Memory), RAM (Random-Access Memory), SSD (Solid State Drives) or optical disks, etc. Among them, the random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).
[0152] An embodiment of the present application also provides a computer program product, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the terminal device reads and executes the computer instructions from the computer-readable storage medium to implement the above-mentioned interface display method.
[0153] In the description of the embodiments of the present application, the term "corresponding" may indicate a direct or indirect correspondence between two items, or an association relationship between the two items, or a relationship between indication and being indicated, configuration and being configured, and the like.
[0154] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.
[0155] In addition, the step numbers described in this document only illustrate a possible execution order between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to that shown in the figure. The embodiments of the present application are not limited to this.
[0156] In addition, the embodiments provided herein may be arbitrarily combined to form new embodiments, which are all within the scope of protection of the present application.
[0157] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0158] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. An interface display method, characterized in that: The method comprises: In response to the first application being started, first display data stored in the terminal disk is preloaded into the first running memory, the first display data including first screen data of the first user interface corresponding to a first moment, the first moment being the startup moment of the first application, and the first running memory being the running memory of the terminal device occupied by the first application; In response to a trigger operation on the first user interface, based on the first display data in the first running memory, display the first screen content of the first user interface; and load the second display data stored in the terminal disk into the first running memory, wherein the second display data includes other data in the first user interface except the first screen data; In response to the adjustment operation on the first user interface, the data content displayed in the first user interface is adjusted based on the second display data in the first running memory.
2. The method according to claim 1, characterized in that The second display data includes a first portion of data and a second portion of data, the first portion of data includes other data in the first user interface except the first screen data, the second portion of data includes the first screen data of the first user interface corresponding to a second moment, and the second moment is the moment corresponding to the trigger operation; The adjusting the data content displayed in the first user interface based on the second display data in the first running memory includes: The data content displayed in the first user interface is updated based on the first portion of data.
3. The method according to claim 2, characterized in that The method further comprises: In the case that there is a difference between the first display data and the second portion of data, the first screen content displayed in the first user interface is updated based on the second portion of data.
4. The method according to claim 1, characterized in that: The method further comprises: In response to the operation of adding the first data to the second display data, the first data is added to the second display data in the first running memory, and the first data is added to the second display data stored in the terminal disk; and / or, In response to the operation of deleting the second data in the second display data, the second data in the second display data in the first running memory is deleted, and the second data in the second display data stored in the terminal disk is deleted.
5. The method according to claim 1, characterized in that: The displaying the first screen content of the first user interface based on the first display data in the first running memory includes: Determining the first screen data in the first display data based on a display mode of the first user interface, wherein the display mode is related to a display style of the first application program on a terminal screen; The first screen content of the first user interface is rendered and displayed.
6. The method according to claim 5, characterized in that The first user interface is in a first display mode, and determining the first screen data in the first display data based on the display mode of the first user interface includes: Based on the first display mode, determining a first screen data parameter, wherein the first screen data parameter includes at least one of the following: the number of first screen data, the arrangement order of first screen data, the first screen data display mode, and the first screen data type; The first screen data is determined in the first display data based on the first screen data parameter.
7. The method according to claim 1, characterized in that The first user interface is in a first display mode, and the preloading of the first display data stored in the terminal disk into the first operating memory includes: Based on the first display mode, determine a first data parameter, the first data parameter including at least one of the following: a first data quantity, a first data arrangement order, a first data display mode, and a first data type, wherein the first data quantity is the number of data included in the first user interface, the first data arrangement order is the display order of the data included in the first user interface, the first data display mode is used to determine the display style of the data in the first user interface, and the first data type is used to indicate the data types respectively corresponding to the data included in the first user interface; Based on the first data parameter, determining the first display data stored in the terminal disk; The first display data is preloaded into the first operating memory.
8. The method according to claim 7, characterized in that The first data quantity is a preset value, and the first data quantity is greater than or equal to the maximum value of the first screen data quantity; The first data arrangement order is consistent with the first screen data arrangement order; The first data display mode is consistent with the first screen data display mode; The first data type includes at least one of the following: picture, text, and video.
9. The method according to claim 1, characterized in that: In response to the adjustment operation on the first user interface, adjusting the data content displayed in the first user interface based on the second display data in the first running memory includes: In response to the first user interface switching from a first display mode to a second display mode, the data content displayed in the first user interface is adjusted based on the second display mode and the second display data, the first display mode being different from the second display mode.
10. A terminal device, characterized in that: The terminal device includes a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the interface display method according to any one of claims 1 to 9.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is loaded and executed by a processor to implement the interface display method according to any one of claims 1 to 9.
12. A computer program product, characterized in that The computer program product comprises a computer program, and the computer program is loaded and executed by a processor to implement the interface display method according to any one of claims 1 to 9.