Data list display method and device, electronic equipment and storage medium

The method stabilizes data list updates by using a state sequence to determine when to update sub-data lists, addressing the flashing issue and improving user experience.

CN119127031APending Publication Date: 2024-12-13GREAT WALL MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411353376.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

Existing data list display methods cause sub-data lists to flash due to continuous updates when the main data list is scrolled, affecting user experience.

Method used

A method that obtains a state sequence corresponding to the main data list when it stops scrolling, determines if it belongs to a predefined state sequence set, and updates the sub-data list content only when the state sequence matches the set, thereby avoiding unnecessary updates during scrolling.

Benefits of technology

Prevents the flashing of sub-data list content by optimizing the update process based on the state sequence, enhancing user experience by maintaining stable data display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119127031A_ABST
    Figure CN119127031A_ABST
Patent Text Reader

Abstract

The invention provides a data list display method and device, electronic equipment and a storage medium, the method is applied to the technical field of data processing, the method comprises the steps that under the condition that a main data list stops rolling, a state sequence corresponding to the main data list is acquired, and the state sequence is used for storing multiple rolling states when the main data list rolls; determining whether the state sequence belongs to a state sequence set, wherein the state sequence set comprises a plurality of candidate state sequences; and under the condition that the state sequence belongs to the state sequence set, updating the data content displayed by the sub-data list corresponding to the main data list based on the selected data content in the main data list. According to the method, the state sequence corresponding to the main data list can be obtained, and under the condition that the state sequence belongs to the state sequence set, the data content displayed by the sub-data list corresponding to the main data list is updated, so that the sub-data list is prevented from being updated along with updating of the main data list, and the problem that the sub-data list flashes is prevented.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and more specifically, to a data list display method, device, electronic device and storage medium in the field of data processing technology. Background Art

[0002] With the current surge in data, it is difficult to display all data in a single page in various application interfaces. Since a data list can include multiple sub-data lists and a main data list to form a multi-dimensional data structure, all data can be displayed through the structure of the data list.

[0003] In the related art, when a user scrolls a main data list, a sub-data list corresponding to the main data list is continuously updated, so the sub-data list is displayed visually in a flashing manner, affecting the user experience. Summary of the invention

[0004] The present application provides a data list display method, device, electronic device and storage medium. The method can obtain a state sequence corresponding to a main data list, and when the state sequence belongs to a state sequence set, update the data content displayed in a sub-data list corresponding to the main data list, thereby avoiding the sub-data list from being updated as the main data list is updated, and preventing the problem of the sub-data list flashing.

[0005] In a first aspect, a data list display method is provided, the method comprising:

[0006] When the main data list stops scrolling, a state sequence corresponding to the main data list is obtained, where the state sequence is used to store multiple scrolling states when the main data list is scrolling;

[0007] Determine whether the state sequence belongs to a state sequence set, the state sequence set including multiple candidate state sequences;

[0008] In the case where the state sequence belongs to a state sequence set, based on the data content selected in the main data list, the data content displayed in the sub-data list corresponding to the main data list is updated.

[0009] Through the above technical solution, when the main data list stops scrolling, the state sequence corresponding to the main data list is obtained, the state sequence is used to store multiple scrolling states when the main data list is scrolling, and it is determined whether the state sequence belongs to a state sequence set, and the state sequence set includes multiple candidate state sequences. When the main data list stops scrolling, it is determined whether to update the data displayed in the sub-data list corresponding to the main data list. When the state sequence belongs to the state sequence set, based on the selected data content in the main data list, the data content displayed in the sub-data list corresponding to the main data list is updated. That is, when the main data list stops scrolling, it is determined to update the data content displayed in the sub-data list corresponding to the main data list, thereby avoiding multiple updates of the data content of the sub-data list when the main data list is scrolling, so as to solve the flashing problem of the data content displayed in the sub-data list.

[0010] In combination with the first aspect, in some possible implementations, when the main data list stops scrolling, before acquiring the state sequence corresponding to the main data list, the method includes:

[0011] During the scrolling of the master data list, determining at least one scrolling state of the master data list;

[0012] In response to the main data list stopping scrolling, a state sequence corresponding to the main data list is generated based on at least one scroll state.

[0013] In conjunction with the first aspect, in some possible implementations, determining a similarity between the state sequence and any candidate state sequence in the state sequence set;

[0014] When the similarity is greater than the similarity threshold, it is determined that the state sequence belongs to the state sequence set.

[0015] In conjunction with the first aspect, in some possible implementations, when loading data of the main data list, data of the sub-data list corresponding to the main data list is pre-loaded;

[0016] Based on the data content selected in the main data list, update the data content displayed in the sub-data list corresponding to the main data list, including:

[0017] Based on the data content selected in the main data list, the data content of the pre-loaded sub-data list is displayed.

[0018] In conjunction with the first aspect, in some possible implementations, based on the data content selected in the main data list, a keyword corresponding to the sub-data list is searched in an index table of the main data list, and the index table is used to determine the sub-data list corresponding to the data content selected in the main data list;

[0019] Based on the keyword, the data content displayed in the sub-data list corresponding to the data content selected in the main data list is obtained.

[0020] In combination with the first aspect, in some possible implementations, when the state sequence belongs to a state sequence set, basic information of a target user and data content displayed in the historical sub-data list are obtained, and the target user is an executing user who scrolls the main data list;

[0021] Analyze the basic information of the target user and the data content of the historical information of the sub-data list to obtain the browsing preference information of the target user for the data content displayed in the sub-data list;

[0022] Determine the arrangement order of the sub-data lists based on the data content selected in the main data list and the browsing preference information;

[0023] Based on the arrangement order of the sub-data lists, the data content displayed in the sub-data list corresponding to the data content selected in the main data list is displayed.

[0024] In combination with the first aspect, in some possible implementations, when the state sequence does not belong to the state sequence set, updating of the data content displayed in the sub-data list corresponding to the main data list is stopped.

[0025] In a second aspect, an electronic device is provided, comprising a memory and a processor, wherein the memory is used to store executable program codes, and the processor is used to call and run the executable program codes from the memory, so that the electronic device executes the method executed by the above data list display method.

[0026] In a third aspect, a computer program product is provided, which includes: a computer program code, which, when executed on a computer, enables the computer to execute the method executed by the above-mentioned data list display method.

[0027] In a fourth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the method executed by the above-mentioned data list display method. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 It is a structural diagram of a data list provided in an embodiment of the present application;

[0029] Figure 2 It is a structural diagram of another data list provided in an embodiment of the present application;

[0030] Figure 3 It is a schematic diagram of an implementation environment of a data list display method provided in an embodiment of the present application;

[0031] Figure 4 is a schematic flow chart of a data list display method provided in an embodiment of the present application;

[0032] Figure 5 is a schematic flow chart of another data list display method provided in an embodiment of the present application;

[0033] Figure 6 is a schematic diagram of a state sequence provided in an embodiment of the present application;

[0034] Figure 7 It is a structural diagram of another data list provided in an embodiment of the present application;

[0035] Figure 8 It is a structural schematic diagram of a data list display device provided in an embodiment of the present application;

[0036] Fig. 9 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

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

[0039] In the related art, multiple data are displayed on the application software in the form of a data list, and the data list can be scrolled up and down to provide users with different city options. Figure 1 As shown in the figure, the data list on the left is the main data list, which is used to display provinces. The data list on the right is the sub-data list, which is used to display the city list corresponding to the province selected in the main data list. Each main data list and sub-data list displays 5 data vertically. For example, Figure 1As shown, the main data list includes province A, province B, province C, province D and province E; the province selected in the main data list is province C. The sub-data list includes city C1, city C2 and city C3; the city selected in the sub-data list is city C1.

[0040] However, if Figure 2 As shown in the figure, when the main data list is dragged or slid, the sub-data list will be updated to the data content of the sub-data corresponding to the data content of the main data list. In other words, the sub-data list will be updated as the main data list is slid or dragged. However, if the main data list is dragged or slid all the time, and the data content displayed in the sub-data list is not fully displayed, the sub-data list will change to display other data content corresponding to the main data list, so the sub-data list will flash. For example, Figure 2 As shown in the figure, when the province list on the left is slid, the city list on the right will also be updated along with the province list. If the province list on the left switches from province B to province C, the sub-data list will switch from city B1 to city C1 accordingly. When the sub-data list has not yet fully displayed the cities B1, B2, and B3 corresponding to province B, the sub-data list will switch from city B1 to city C1, so the sub-data list will flash.

[0041] Therefore, in order to solve the above technical problems, an embodiment of the present application provides a data list display method. When the main data list stops scrolling, a state sequence corresponding to the main data list is obtained. The state sequence is used to store multiple scrolling states when the main data list is scrolling, and it is determined whether the state sequence belongs to a state sequence set. The state sequence set includes multiple candidate state sequences. When the main data list stops scrolling, it is determined whether to update the data displayed in the sub-data list corresponding to the main data list. When the state sequence belongs to the state sequence set, based on the data content selected in the main data list, the data content displayed in the sub-data list corresponding to the main data list is updated. That is, when the main data list stops scrolling, it is determined to update the data content displayed in the sub-data list corresponding to the main data list, thereby avoiding multiple updates of the data content of the sub-data list when the main data list is scrolling, so as to solve the flashing problem of the data content displayed in the sub-data list.

[0042] Figure 3 It is a schematic diagram of an implementation environment of a data list display method provided in an embodiment of the present application.

[0043] For example, Figure 3 As shown, the implementation environment includes an electronic device 301 and a display 302 .

[0044] The electronic device 301 is a device for interacting with the user. For example, the electronic device 301 includes a mobile terminal, a personal computer, or a vehicle-mounted device. In some embodiments, the electronic device 301 is used to instruct the user to input data related to the city map, and the electronic device 301 performs corresponding operations based on the data. For example, based on the historical data of the user's selection of the city map, the electronic device 301 analyzes the data and generates a user portrait corresponding to the user.

[0045] The display 302 is a device for projecting and displaying data information. In some embodiments, the display 302 is connected to the electronic device 301, and the display 302 receives data sent by the electronic device 301. For example, the display 302 receives city data sent by the electronic device 301, and displays the city data for user selection.

[0046] Figure 4 It is a schematic flow chart of a data list display method provided in an embodiment of the present application.

[0047] For example, Figure 4 As shown, taking the execution subject as an electronic device as an example, the method 400 includes:

[0048] Step 401: when the main data list stops scrolling, a state sequence corresponding to the main data list is obtained, where the state sequence is used to store a plurality of scrolling states when the main data list is scrolling.

[0049] The main data list is a list containing main information or data items. Figure 2 As shown, the master data list is a list of provinces in a city selection list. The state sequence is a storage unit for storing multiple scrolling states when the master data list is scrolled.

[0050] It should be understood that when the main data list is scrolled, multiple scrolling states will be generated. To determine the generation sequence of the multiple scrolling states, the multiple scrolling states are sequentially stored in a state sequence.

[0051] In some embodiments, the plurality of scrolling states include a dragging state, a sliding state, and a stop state. The dragging state is the state in which the user performs a dragging operation on the main data list; the sliding state is the state in which the user performs a dragging operation on the main data list and releases the main data list; and the stop state is the state in which the main data list stops sliding.

[0052] For example, the scrolling state of the main data list includes a dragging state, a sliding state, and a stop state. If the dragging state is state 1, the sliding state is state 2, and the stop state is state 0, the state sequence of the main data list may include dragging state-sliding state (state 1-state 2), sliding state-drag state (state 2-state 1), dragging state-stop state (state 1-state 0), etc.

[0053] In some embodiments, before the main data list stops scrolling, the state sequence is stored in a state sequence storage unit. For example, the state sequence storage unit includes a memory.

[0054] That is, the state sequence is stored in the memory to obtain the state sequence corresponding to the main data list.

[0055] In this implementation, when the main data list stops scrolling, the state sequence corresponding to the main data list is acquired so that the user can understand the current operation state of the main data list to facilitate continued analysis.

[0056] Step 402: determine whether the state sequence belongs to a state sequence set, where the state sequence set includes multiple candidate state sequences.

[0057] The candidate state sequence is a state sequence used to determine whether to update the data content displayed in the sub-data list.

[0058] For example, if the dragging state is state 1, the sliding state is state 2, and the stop state is state 0, the state sequence set includes a first candidate state sequence (state 1-state 0), a second candidate state sequence (state 1-state 2-state 0), and a third candidate state sequence (state 2-state 0).

[0059] It should be understood that, since the state sequence set includes multiple candidate state sequences, it is determined whether the state sequence corresponding to the main data list matches any one of the multiple candidate state sequences.

[0060] That is, it is determined whether the state sequence matches any candidate state sequence among the first candidate state sequence, the second candidate state sequence, or the third candidate state sequence in the state sequence set.

[0061] In this implementation, it is determined whether the state sequence belongs to the state sequence set to further determine whether to update the sub-data list corresponding to the main data list.

[0062] Step 403: When the state sequence belongs to a state sequence set, based on the data content selected in the main data list, update the data content displayed in the sub-data list corresponding to the main data list.

[0063] It should be understood that when the main data list stops scrolling, the main data list currently displays multiple data contents. However, in order to determine the data content displayed in the sub-data list corresponding to the main data list that needs to be updated, it is necessary to determine the data content displayed in the sub-data list based on the data content selected in the main data.

[0064] For example, Figure 2 As shown, the master data list is a province list, and the data content selected in the master data list is Province C. Based on the province C selected in the master data list, the city list corresponding to Province C is updated.

[0065] It should also be understood that when the state sequence belongs to the state sequence set, it means that when the main data list stops scrolling, it is determined whether to update the data content displayed in the sub-data list corresponding to the main data list. That is, when the main data list is scrolling, the data content displayed in the sub-data list corresponding to the main data list is not updated, so as to avoid the sub-data list being updated as the data list scrolls, so as to solve the problem of flashing of the data content displayed in the sub-data list.

[0066] An embodiment of the present application provides a method for displaying a data list. When a main data list stops scrolling, a state sequence corresponding to the main data list is obtained. The state sequence is used to store multiple scrolling states when the main data list scrolls, and it is determined whether the state sequence belongs to a state sequence set. The state sequence set includes multiple candidate state sequences. When the main data list stops scrolling, it is determined whether to update the data displayed in the sub-data list corresponding to the main data list. When the state sequence belongs to the state sequence set, the data content displayed in the sub-data list corresponding to the main data list is updated based on the data content selected in the main data list. That is, when the main data list stops scrolling, it is determined to update the data content displayed in the sub-data list corresponding to the main data list, thereby avoiding multiple updates of the data content of the sub-data list when the main data list scrolls, so as to solve the flashing problem of the data content displayed in the sub-data list.

[0067] Figure 5 It is a schematic flow chart of another data list display method provided in an embodiment of the present application.

[0068] It should be noted that the above steps 401-403 are a simple description of a data list display method provided in an embodiment of the present application. The following will provide a more detailed description of a data list display method provided in an embodiment of the present application in combination with some examples. Figure 5 Taking the execution subject as an electronic device as an example, the method includes the following steps.

[0069] Step 501: During the scrolling of the main data list, a state sequence corresponding to the main data list is generated.

[0070] It should be understood that when a user operates the main data list, the main data list will appear in a dragging state, a sliding state and a stopped state.

[0071] In a possible implementation, during the scrolling of the main data list, at least one scrolling state of the main data list is determined; in response to the main data list stopping scrolling, a state sequence corresponding to the main data list is generated based on the at least one scrolling state.

[0072] It should be understood that when the main data list starts to scroll, the state sequence storage unit records at least one scrolling state of the main data list.

[0073] In some embodiments, in response to a triggering operation on the master data list, the master data list is scrolled; during the scrolling of the master data list, at least one scrolling state of the master data list is determined.

[0074] For example, Figure 2 As shown, when "Province C" is triggered, drag "Province C" to the black selection box to make sure that the main data list is in the dragging state.

[0075] It should be understood that after the main data list is in the dragging state, if "Province C" in the main data list is not completely selected by the black selection box, the main data list is corrected by sliding so that "Province C" is selected by the black selection box. Therefore, it is determined that the main data list is in the sliding state.

[0076] In some embodiments, in response to the main data list stopping scrolling, a state sequence corresponding to the main data list is generated based on at least one scroll state.

[0077] In some embodiments, when the main data list stops scrolling, the main data list is in a stopped state; based on the main data list from scrolling to stopping scrolling, a state sequence corresponding to the main data list is generated.

[0078] Figure 6 is a schematic diagram of a state sequence provided in an embodiment of the present application, such as Figure 6 As shown, when the main data starts to scroll, the state sequence of the main data list includes dragging state (state 1), sliding state (state 2), stop state (state 0), dragging state-sliding state (state 1-state 2), dragging state-sliding state-stop state (state 1-state 2-state 0), sliding state-stop state (state 2-state 0), dragging state-stop state (state 1-state 0).

[0079] It should be understood that since the state sequence is a sequential list of the scrolling states of the main data list, in order to store the scrolling states of the main data list in sequence, the state sequence is stored in the form of a data queue.

[0080] It should also be understood that since the queue is a first-in, first-out linear data structure, multiple scrolling states of the main data list can be stored in sequence based on the queue.

[0081] In some embodiments, when the main data list starts to scroll, the dragging state or sliding state of the main data list is stored first, and the stop state of the main data list is stored last, thereby obtaining a state sequence corresponding to the main data list.

[0082] In some embodiments, multiple scrolling states of the main data list are monitored by monitoring events. That is, during the scrolling of the main data list, the monitoring event is called to determine the current scrolling state of the main data list.

[0083] In some embodiments, a listener is set to determine whether the main data list starts to scroll; and a listener callback function is called to calculate the scroll distance of the main data list, thereby determining the scroll state of the main data list.

[0084] In some embodiments, when the main data list starts to scroll, the scrolling state of the main data list is determined by comparing the initial scrolling position of the main data list with the current scrolling position.

[0085] For example, when the main data list starts to scroll, the initial scroll position coordinates of the main data list are (1, 1), and the current scroll position coordinates of the main data list are (1, 10), then the scroll state of the main data list is determined to be the drag state; when the main data list starts to scroll, the initial scroll position coordinates of the main data list are (1, 1), and the current scroll position coordinates of the main data list are (1, 2), then the scroll state of the main data list is determined to be the sliding state; when the main data list starts to scroll, the initial scroll position coordinates of the main data list are (1, 3), and the current scroll position coordinates of the main data list are (1, 3), then the scroll state of the main data list is determined to be the stopped state.

[0086] In this embodiment, during the scrolling of the main data list, at least one scrolling state of the main data list is determined, and in response to the main data list stopping scrolling, a state sequence corresponding to the main data list is generated based on at least one sliding state, so as to accurately obtain the state sequence corresponding to the main data list.

[0087] Step 502: when the main data list stops scrolling, a state sequence corresponding to the main data list is obtained, where the state sequence is used to store a plurality of scrolling states when the main data list is scrolling.

[0088] It can be understood that the specific implementation of obtaining the state sequence corresponding to the main data list can refer to the relevant description of the aforementioned step 401, which will not be repeated here.

[0089] Among them, the data structure of the state sequence is queue data.

[0090] It should be understood that, since the data structure of the state sequence is queue data, the state sequence of the master data list is read from the state sequence storage unit in the order in which the multiple scrolling states of the master data are stored.

[0091] In some embodiments, when the main data list stops scrolling, the state sequence corresponding to the main data list is read from the state sequence storage unit.

[0092] For example, Figure 6 As shown, when the main data list stops scrolling, the state sequence corresponding to reading the main data list from the memory is state 2-state 0.

[0093] In this implementation, when the main data list stops scrolling, the state corresponding to the main data list is obtained so that the user can understand the current operation state of the main data list, which is convenient for subsequent analysis.

[0094] Step 503: determine whether the state sequence belongs to a state sequence set, where the state sequence set includes multiple candidate state sequences.

[0095] It should be understood that, since the state sequence set includes multiple candidate state sequences, it is determined whether the state sequence corresponding to the main data list matches any one of the multiple candidate state sequences.

[0096] In some embodiments, the state sequence set includes a first candidate state sequence (state 1-state 0), a second candidate state sequence (state 1-state 2-state 0), and a third candidate state sequence (state 2-state 0); if the state sequences corresponding to the main data list are dragging state-stop state, dragging state-sliding state-stop state, and sliding state-stop state, respectively, then the state sequence corresponding to the main data list belongs to the state sequence set.

[0097] In some embodiments, it is detected whether the state sequence is within a list of state sequence sets.

[0098] For example, if the state sequence corresponding to the main data list is drag state-stop state (state 1-state 0), it is determined that the state sequence belongs to the state sequence set. If the state sequence corresponding to the main data list is drag state-slide state (state 1-state 2), it is determined that the state sequence does not belong to the state sequence set.

[0099] In some embodiments, the state sequence set is traversed to determine whether the state sequence belongs to the state sequence set.

[0100] For example, if the state sequence corresponding to the main data list is drag state-slide state (state 1-state 2), all candidate state sequences in the state sequence set are traversed to determine that the state sequence does not belong to the state sequence set.

[0101] In this implementation, it is determined whether the state sequence belongs to the state sequence set to determine whether to update the sub-data list, thereby avoiding the problem of the sub-data list being updated as the main data list scrolls.

[0102] In a possible implementation, the similarity between the state sequence and any candidate state sequence in the state sequence set is determined; when the similarity is greater than a similarity threshold, it is determined that the state sequence belongs to the state sequence set.

[0103] In some embodiments, the similarity between the state sequence and any candidate state sequence in the state sequence set is determined based on cosine similarity.

[0104] Among them, cosine similarity is used to measure the cosine value of the angle between the state sequence and the candidate sequence.

[0105] In some embodiments, the state sequence corresponding to the main data list is converted into a first numerical vector; for example, the state sequence corresponding to the main data list is converted into the first numerical vector based on One-Hot Encoding.

[0106] In some embodiments, a plurality of candidate state sequences in the state sequence set are converted into a plurality of second numerical vectors; for example, the plurality of candidate state sequences are converted into the second numerical vectors based on one-hot encoding.

[0107] It should be understood that cosine similarity is a commonly used vector similarity measurement method, which calculates the cosine value of the angle between the state sequence and the candidate sequence, and the cosine value of the angle is between [-1,1]. If the cosine value of the angle is closer to 1, it means that the state sequence is more similar to the candidate sequence. If the cosine value of the angle is closer to 0, it means that the state sequence is less related to the candidate sequence. If the cosine value of the angle is negative, it means that the first numerical vector of the state sequence is in the opposite direction to the second numerical vector of the candidate sequence.

[0108] In some embodiments, when the similarity between the state sequence and any candidate sequence in the state sequence set is greater than a similarity threshold, it is determined that the state sequence matches the candidate sequence in the state sequence set, thereby determining that the state sequence belongs to the state sequence set.

[0109] For example, the similarity threshold is 0.8, and when the similarity between the state sequence and any candidate sequence in the state sequence set is greater than 0.8, it is determined that the state sequence belongs to the state sequence set.

[0110] In this implementation, the similarity between the state sequence and any candidate state sequence in the state sequence set is determined based on the cosine similarity, with high accuracy.

[0111] Optionally, before executing step 503, the following steps may also be executed.

[0112] It should be understood that after the main data list stops scrolling, if the data of the sub-data list is read from the storage unit at this time, the display time of the subsequent sub-data list will be increased. Therefore, in order to avoid the time of updating the sub-data list being too long, when loading the main data list, the data of the sub-data list corresponding to the main data list is pre-loaded, thereby reducing the time of displaying the data content of the sub-data list.

[0113] In a possible implementation, when loading the data of the main data list, the data of the sub-data list corresponding to the main data list is pre-loaded.

[0114] In some embodiments, after the main data list is loaded, the sub-data list corresponding to the main data list is loaded immediately to reduce the time for displaying the data content of the sub-data list.

[0115] In this implementation, when loading the data of the main data list, the data of the sub-data list corresponding to the main data list is pre-loaded, so that the problem of taking too long to update the sub-data list can be avoided.

[0116] Optionally, after step 503, execute the following step 504 or execute the following step 505 according to actual conditions.

[0117] Step 504: when the state sequence belongs to a state sequence set, based on the data content selected in the main data list, update the data content displayed in the sub-data list corresponding to the main data list.

[0118] It should be understood that when the main data list stops scrolling, the main data list currently displays multiple data contents. However, when the state sequence corresponding to the main data list belongs to the state sequence set, it means that the main data list has stopped sliding and there is selected data content in the main data list.

[0119] The content displayed in the main data list includes multiple data contents, and the data content selected in the main data list is the data content corresponding to the data content displayed in the sub-data list.

[0120] For example, Figure 2As shown, the provinces currently displayed in the main data list include Province A, Province B, Province C, Province D and Province E. If the selected data content does not exist in the main data list, the sub-data list cannot determine the data content corresponding to the data content in the main data list. Therefore, it is necessary to determine the selected data content in the main data list before the sub-data list can display the data content corresponding to the main data list. Figure 2 The selected data content in the master data list shown is Province C.

[0121] In some embodiments, when the state sequence belongs to a state sequence set, the main data list stops scrolling, so there is selected data content in the main data list.

[0122] For example, Figure 2 As shown, when the main data list (province list) stops scrolling, the province list currently displays Province A, Province B, Province C, Province D and Province E. However, when the state sequence of the province list belongs to the state sequence set, the selected data content in the province list is Province C.

[0123] In some embodiments, based on the data content selected in the main data list, the data content displayed in the sub-data list corresponding to the main data list is obtained and updated.

[0124] For example, Figure 2 As shown, when it is determined that the data content selected in the province list is province C, a city list corresponding to province C is obtained. The city list includes city C1, city C2 and city C3.

[0125] It should be understood that in the related art, as the amount of data increases dramatically, a single data container cannot meet the demand, and therefore multiple data containers need to be combined to form a composite data structure.

[0126] The data container is a data structure for managing the master data list.

[0127] For example, the data content of the main data list is stored in the main data container, and the data content of the sub-data list is stored in the sub-data container.

[0128] In some embodiments, a reference from the main data list to the sub-data list is stored based on a dictionary, so as to determine the sub-data list corresponding to the main data list by using the data content selected from the main data list through the dictionary.

[0129] It should be understood that in order to improve the efficiency of updating the sub-data list corresponding to the data content selected in the main data list, an index table can be created to correspond each data content in the main data list to the keyword of the sub-data list.

[0130] The following describes the contents related to updating the data content displayed in the sub-data list corresponding to the data content selected in the main data list based on the index table.

[0131] In one possible implementation, based on the data content selected in the main data list, a keyword corresponding to the sub-data list is queried in the index table of the main data list, and the index table is used to determine the sub-data list corresponding to the data content selected in the main data list; based on the keyword, the data content displayed in the sub-data list corresponding to the data content selected in the main data list is obtained.

[0132] In some embodiments, an index table corresponding to the main data list and the sub-data list is created, wherein each data in the main data list corresponds to a keyword in the sub-data list.

[0133] It should be understood that the index table divides the data set into a data structure of several blocks of data, and creates an index item for each block of data to speed up the query of data. The index item includes a keyword and a pointer to the starting position of the data block. When searching based on the index table, the data block where the data is located is located through the keyword in the index table, and the search is performed within the data block.

[0134] In some embodiments, according to the index of the data content selected in the main data list, a keyword corresponding to the sub-data list is searched in the index table, and the data content to be displayed in the sub-data list is obtained from the storage unit based on the keyword.

[0135] In some embodiments, the data content in the main data list and the data content in the sub-data list are divided into city data blocks corresponding to multiple provinces according to provinces, and an index item is established for each province, which includes a keyword of the province to which the city data belongs and a pointer to the starting position of the city data.

[0136] For example, Figure 2 As shown, "Province A", "Province B", "Province C", "Province D" and "Province E" in the main data list are divided according to provinces, and the data content in the sub-data list is the city data block corresponding to each province. When "Province C" in the main data is selected, the keyword of "Province C" and the pointer to the city list under "Province C" are searched, so as to find the city list "City C1", "City C2" and "City C3" of "Province C".

[0137] In some embodiments, based on the data content selected in the main data list, the data content displayed in the sub-data list is updated.

[0138] For example, Figure 2As shown, after finding the city list "City C1", "City C2" and "City C3" of "Province C", the data content of the city list is displayed.

[0139] In this implementation, based on the data content selected in the main data list, the keyword corresponding to the sub-data list is queried in the index table of the main data list, and the index table is used to determine the sub-data list corresponding to the data content selected in the main data list; based on the keyword, the data content displayed in the sub-data list corresponding to the data content selected in the main data list is obtained, which can improve the efficiency of searching for data content displayed in the sub-data list and provide users with a better experience.

[0140] The following describes the updating of data contents displayed in the sub-data list corresponding to the data contents selected in the main data list based on the browsing preference information of the target user.

[0141] In a possible implementation, based on the basic information of the target user and the data content displayed in the historical sub-data list, the data content displayed in the sub-data list corresponding to the data content selected in the main data list is updated.

[0142] The target user is the user who executes the scrolling of the master data list. The basic information of the target user is the information used to classify the target object.

[0143] For example, the basic information of the target user is that the target user is male, and the city where the target user is located is city C3.

[0144] The data content displayed in the history sub-data list is the data content displayed in the history update sub-data list when the main data list stops scrolling.

[0145] For example, if "Province C" in the master data list is selected multiple times, the city list corresponding to "Province C" will also be updated multiple times.

[0146] It should be understood that the city lists in the related art are arranged in alphabetical order. If the city preferred by the target user is the last one in the city list, the target user needs to slide the city list to the bottom every time to select the city he or she prefers, thus bringing a bad experience to the target user.

[0147] In some embodiments, when the state sequence belongs to a state sequence set, basic information of the target user and data content displayed in the historical sub-data list are obtained.

[0148] In some embodiments, when the state sequence belongs to a state sequence set, basic information of the target object is obtained based on the personal account page of the display screen; and data content displayed in the historical sub-data list is obtained from the storage unit.

[0149] For example, based on the personal account page of the display screen, the target object submits basic information corresponding to the target object on the personal account page; the city selected multiple times by the target object is obtained from the storage unit as "City C3".

[0150] In some embodiments, the basic information of the target user and the data content displayed in the historical sub-data list are analyzed to obtain the browsing preference information of the target user for the data content displayed in the sub-data list.

[0151] In some embodiments, the basic information of the target user and the data content displayed in the historical sub-data list are cleaned and preprocessed to remove invalid data and duplicate data in the basic information of the target user and the data content displayed in the historical sub-data list.

[0152] In some embodiments, preference features corresponding to the target user are extracted from the target user's basic information and the data content displayed in the historical sub-data list, and the preference features are used to describe the frequency of the target user selecting city data or the target user's stay time in the selected city.

[0153] In some embodiments, based on the characteristics corresponding to the target user, the flow preference information of the target user for the data content displayed in the sub-data list is determined.

[0154] For example, the city where the target user is located is "City C3", and the city that the target user often clicks is "City C1", then it is determined that the target user's data content flow preference information displayed in the sub-data list is that the target user prefers "City C1".

[0155] In some embodiments, the arrangement order of the sub-data lists is determined based on the content of the data selected in the main data list and the browsing preference information.

[0156] For example, Figure 7 As shown, if the data content selected in the main data list is "Province C", the arrangement order of the sub-data list corresponding to "Province C" is determined based on the browsing preference information of the target user. For example, if the city that the target user often clicks is "City C3", the arrangement order of the sub-data list is determined to be "City C3", "City C2", "City C1", so that the cities that the target user often clicks are preferentially displayed to the target user.

[0157] In some embodiments, based on the arrangement order of the sub-data lists, the data content displayed in the sub-data list corresponding to the data content selected in the main data list is displayed.

[0158] For example, Figure 7As shown, after the arrangement order of the sub-data lists is determined, the data content of the city list is displayed based on the order of "city C3", "city C2", and "city C1".

[0159] In this implementation, based on the basic information of the target user and the data content displayed in the historical sub-data list, the data content displayed in the sub-data list corresponding to the data content selected in the main data list is updated. When the city list preferred by the target user is at the lowest end of the list, the target user is prevented from sliding the city list to the lowest end to select his preferred city, thereby providing a better experience for the target user.

[0160] In a possible implementation, when loading data in the main data list, data in the sub-data list corresponding to the main data list is preloaded; based on the selected data content in the main data list, the content of the pre-loaded sub-data list is displayed.

[0161] It is understandable that, in the case of loading the data of the main data list, the specific implementation of pre-loading the data of the sub-data list corresponding to the main data list can refer to the relevant description of the aforementioned step 502, which will not be repeated here.

[0162] It should be understood that when the data of the sub-data list corresponding to the main data list is preloaded, after the selected data content in the main data list is determined, the content of the sub-data list corresponding to the selected data content in the main data list can be displayed.

[0163] For example, Figure 2 As shown, when the province list is loaded, the data of the city list corresponding to the province list is pre-loaded, and when it is determined that the selected data content in the province list is "Province C", the data content of the city list corresponding to "Province C" can be displayed.

[0164] In this implementation, when loading the data of the main data list, the data of the sub-data list corresponding to the main data list is pre-loaded; based on the selected data content in the main data list, the content of the pre-loaded sub-data list is displayed, which can improve the efficiency of loading the data content of the sub-data list.

[0165] Step 505: when the state sequence does not belong to the state sequence set, stop updating the data content displayed in the sub-data list corresponding to the main data list.

[0166] It should be understood that when the state sequence does not belong to the state sequence set, it means that the currently selected data content in the main data list has not been updated, or the main data list has not stopped scrolling. Therefore, in order to avoid flashing or freezing when updating the data content displayed in the sub-data list, the data content displayed in the sub-data list corresponding to the main data list is stopped from being updated.

[0167] In some embodiments, if the state sequence corresponding to the main data list does not belong to the state sequence set, the state sequence corresponding to the main data list does not include any one of dragging state-sliding state-stop state (state 1-state 2-state 0), sliding state-stop state (state 2-state 0), and dragging state-stop state (state 1-state 0).

[0168] In a possible implementation, the similarity between the state sequence and any candidate state sequence in the state sequence set is determined; when the similarity is less than or equal to a similarity threshold, it is determined that the state sequence does not belong to the state sequence set.

[0169] It can be understood that the specific implementation of determining the similarity between the state sequence and each candidate state sequence in the state sequence set can refer to the related description of the aforementioned step 503, which will not be described in detail here.

[0170] In some embodiments, when the similarity between the state sequence and each candidate state sequence in the state sequence set is less than or equal to a similarity threshold, it is determined that the state sequence does not match the candidate sequence in the state sequence set, thereby determining that the state sequence does not belong to the state sequence set.

[0171] For example, the similarity threshold is 0.8, and when the similarity between the state sequence and each candidate state sequence in the state sequence set is less than 0.8, it is determined that the state sequence does not belong to the state sequence set.

[0172] In this implementation, the similarity between the state sequence and any candidate state sequence in the state sequence set is determined; when the similarity is less than or equal to the similarity threshold, it is determined that the state sequence does not belong to the state sequence set. That is, when the state sequence does not match any candidate state sequence in the state sequence set, in order to avoid flashing or freezing when updating the data content displayed in the sub-data list, the data content displayed in the sub-data list corresponding to the main data list is stopped from being updated.

[0173] The embodiment of the present application provides a data list display method. In the process of scrolling the main data list, a state sequence corresponding to the main data list is generated. When the main data list stops scrolling, the state sequence corresponding to the main data list is obtained. The state sequence is used to store multiple scrolling states when the main data list is scrolling, and it is determined whether the state sequence belongs to a state sequence set, and the state sequence set includes multiple candidate state sequences. That is, when the main data list stops scrolling, it is determined whether to update the data displayed in the sub-data list corresponding to the main data list. In the case where the state sequence belongs to the state sequence set, based on the data content selected in the main data list, the data content displayed in the sub-data list corresponding to the main data list is updated, that is, when the main data list stops scrolling, it is determined to update the data content displayed in the sub-data list corresponding to the main data list. In the case where the state sequence does not belong to the state sequence set, the data content displayed in the sub-data list corresponding to the main data list is stopped. In other words, when the main data list does not stop scrolling, the data content displayed in the sub-data list corresponding to the data list is not updated, thereby avoiding multiple updates of the data content of the sub-data list when the main data list is scrolling, so as to solve the flashing problem of the data content displayed in the sub-data list.

[0174] Figure 8 It is a structural schematic diagram of a data list display device provided in an embodiment of the present application.

[0175] For example, Figure 8 As shown, the device 800 includes:

[0176] An acquisition module 801 is used to acquire a state sequence corresponding to the main data list when the main data list stops scrolling, and the state sequence is used to store multiple scrolling states when the main data list scrolls;

[0177] A determination module 802 is used to determine whether the state sequence belongs to a state sequence set, where the state sequence set includes multiple candidate state sequences;

[0178] The updating module 803 is used to update the data content displayed in the sub-data list corresponding to the main data list based on the data content selected in the main data list when the state sequence belongs to the state sequence set.

[0179] In a possible implementation manner, the device 800 further includes:

[0180] A scrolling state determination module, used to determine at least one scrolling state of the main data list during the scrolling of the main data list;

[0181] The generating module is used for generating a state sequence corresponding to the main data list based on at least one scrolling state in response to the main data list stopping scrolling.

[0182] In a possible implementation manner, the device 800 further includes:

[0183] A similarity determination module is used to determine the similarity between the state sequence and any candidate state sequence in the state sequence set;

[0184] The determination module 802 is used to determine whether the state sequence belongs to the state sequence set when the similarity is greater than a similarity threshold.

[0185] In a possible implementation manner, the device 800 further includes:

[0186] A loading module, used for pre-loading the data of the sub-data list corresponding to the main data list when loading the data of the main data list;

[0187] The apparatus 800 further comprises:

[0188] The display module is used to display the data content of the pre-loaded sub-data list based on the data content selected in the main data list.

[0189] In a possible implementation manner, the device 800 further includes:

[0190] A query module, used to query the index table of the main data list for keywords corresponding to the sub-data list based on the data content selected in the main data list, and the index table is used to determine the sub-data list corresponding to the data content selected in the main data list;

[0191] The module for obtaining the sub-data list is used to obtain the data content displayed in the sub-data list corresponding to the data content selected in the main data list based on the keyword.

[0192] In a possible implementation manner, the device 800 further includes:

[0193] The user information acquisition module is used to acquire the basic information of the target user and the data content displayed in the historical sub-data list when the state sequence belongs to the state sequence set. The target user is the executing user who scrolls the main data list;

[0194] An analysis module is used to analyze the basic information of the target user and the data content displayed in the historical sub-data list to obtain the browsing preference information of the target user for the data content displayed in the sub-data list;

[0195] A sub-data list determination module is used to determine the arrangement order of the sub-data list based on the data content selected in the main data list and the browsing preference information;

[0196] The display module is used to display the data content displayed in the sub-data list corresponding to the data content selected in the main data list based on the arrangement order of the sub-data list.

[0197] In a possible implementation manner, the device 800 further includes:

[0198] The stop updating module is used to stop updating the data content displayed in the sub-data list corresponding to the main data list when the state sequence does not belong to the state sequence set.

[0199] Fig. 9 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.

[0200] For example, Fig. 9 As shown, the electronic device 900 includes: a memory 901 and a processor 902, wherein the memory 901 stores an executable program code 903, and the processor 902 is used to call and execute the executable program code 903 to perform a data list display method.

[0201] In addition, an embodiment of the present application also protects a device, which may include a memory and a processor, wherein the memory stores an executable program code, and the processor is used to call and execute the executable program code to perform a data list display method provided by an embodiment of the present application.

[0202] In this embodiment, the functional modules of the device can be divided according to the above method example. For example, each functional module can be corresponded, 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.

[0203] In the case of dividing each functional module according to each function, the device may also include a loading module, a display module, a similarity determination module, etc. 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, which will not be repeated here.

[0204] It should be understood that the device provided in this embodiment is used to execute the above-mentioned data list display method, and thus can achieve the same effect as the above-mentioned implementation method.

[0205] In the case of an integrated unit, the device may include a processing module and a storage module. When the device is applied to an electronic device, the processing module may be used to control and manage the actions of the electronic device. The storage module may be used to support the electronic device in executing related program codes, etc.

[0206] The processing module may be a processor or a controller, which may implement or execute various exemplary logic blocks, modules and circuits shown in conjunction with the disclosure of the present application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module may be a memory.

[0207] In addition, the device provided in the embodiments of the present application may specifically be a chip, component or module, and the chip may include a connected processor and memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute a data list display method provided in the above embodiments.

[0208] This embodiment also provides a computer-readable storage medium, in which a computer program code is stored. When the computer program code is executed on a computer, the computer executes the above-mentioned related method steps to implement a data list display method provided in the above embodiment.

[0209] This embodiment further provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement a data list display method provided by the above-mentioned embodiment.

[0210] Among them, the device, computer-readable storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

[0211] 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.

[0212] In the 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.

[0213] 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. A data list display method, It is characterized in that The method comprises: When the main data list stops scrolling, acquiring a state sequence corresponding to the main data list, wherein the state sequence is used to store a plurality of scrolling states when the main data list is scrolling; determining whether the state sequence belongs to a state sequence set, the state sequence set including a plurality of candidate state sequences; In the case that the state sequence belongs to the state sequence set, based on the data content selected in the main data list, the data content displayed in the sub-data list corresponding to the main data list is updated.

2. The method according to claim 1, It is characterized in that Before acquiring the state sequence corresponding to the main data list when the main data list stops scrolling, the method includes: During the scrolling of the master data list, determining at least one scrolling state of the master data list; In response to the main data list stopping scrolling, a state sequence corresponding to the main data list is generated based on the at least one scroll state.

3. The method according to claim 1, It is characterized in that The determining whether the state sequence belongs to a state sequence set includes: Determining a similarity between the state sequence and any candidate state sequence in the state sequence set; When the similarity is greater than a similarity threshold, it is determined that the state sequence belongs to the state sequence set.

4. The method according to claim 1, It is characterized in that Before determining whether the state sequence belongs to a state sequence set, the method includes: In case of loading the data of the main data list, pre-loading the data of the sub-data list corresponding to the main data list; The updating of the data content displayed in the sub-data list corresponding to the main data list based on the data content selected in the main data list includes: Based on the data content selected in the main data list, the data content of the pre-loaded sub-data list is displayed.

5. The method according to claim 1, It is characterized in that The updating of the data content displayed in the sub-data list corresponding to the main data list based on the data content selected in the main data list includes: Based on the data content selected in the main data list, searching the index table of the main data list for a keyword corresponding to the sub-data list, the index table being used to determine the sub-data list corresponding to the data content selected in the main data list; Based on the keyword, the data content displayed in the sub-data list corresponding to the data content selected in the main data list is obtained.

6. The method according to claim 1, It is characterized in that When the state sequence belongs to the state sequence set, updating the data content displayed in the sub-data list corresponding to the main data list based on the data content selected in the main data list includes: In the case where the state sequence belongs to the state sequence set, basic information of a target user and data content displayed in a historical sub-data list are acquired, wherein the target user is an executing user who scrolls the main data list; Analyze the basic information of the target user and the data content of the sub-data list historical information to obtain the target user's browsing preference information for the data content displayed in the sub-data list; Determining the arrangement order of the sub-data lists based on the content of the data selected in the main data list and the browsing preference information; Based on the arrangement order of the sub-data lists, the data content displayed in the sub-data list corresponding to the data content selected in the main data list is displayed.

7. The method according to claim 1, It is characterized in that The method further comprises: When the state sequence does not belong to the state sequence set, the updating of the data content displayed in the sub-data list corresponding to the main data list is stopped.

8. A data list display device, It is characterized in that The device comprises: An acquisition module, used for acquiring a state sequence corresponding to the main data list when the main data list stops scrolling, wherein the state sequence is used for storing a plurality of scrolling states when the main data list scrolls; A determination module, used to determine whether the state sequence belongs to a state sequence set, wherein the state sequence set includes a plurality of candidate state sequences; An updating module is used to update the data content displayed in the sub-data list corresponding to the main data list based on the data content selected in the main data list when the state sequence belongs to the state sequence set.

9. An electronic device, It is characterized in that The electronic device comprises: A memory for storing executable program codes; A processor, configured to call and run the executable program code from the memory, so that the electronic device executes the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 7 is implemented.