Method, device and electronic device for sliding display of list data
The method and device improve the efficiency and user experience of sliding display by adaptively responding to user interactions, optimizing slider and data positioning, and reducing errors in large data sets.
Patent Information
- Application Number
- CN202210582317.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-26
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2042-05-26
AI Technical Summary
Traditional methods for sliding display of list data on electronic devices are inefficient and provide a poor user experience, especially when dealing with large amounts of data, requiring frequent and repetitive page sliding.
A method and device that adaptively slide and display list data based on user interactions with a slider, determining sliding ratios and positions to optimize display, and include real-time updates and comparisons to improve accuracy and efficiency.
Enhances the efficiency of sliding display and user experience by accurately adapting to user inputs, reducing errors, and optimizing resource usage when handling large data sets.
Smart Images

Figure CN115061618B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data visualization technology, and in particular to a method, device, equipment, storage medium and program product for sliding display of list data. Background Art
[0002] With the improvement of computer processing power and the popularization of portable terminal devices such as mobile phones, the software on various devices has developed rapidly, and the amount of information that can be displayed on the software has also increased dramatically. Therefore, long pages often appear in the list display data of the device. In the prior art, when users want to view such pages, they generally click, touch and slide directly on the page. When the amount of data on the page is large, they need to slide the page frequently to reach the position where the slide needs to be positioned and then stop. This viewing method is extremely inefficient and has a poor user experience. It can be seen that the prior art has defects that need to be solved urgently. Summary of the invention
[0003] The present invention provides a method, device, equipment, storage medium and program product for sliding display of list data, which can effectively improve the efficiency of sliding display and bring better operation experience to users compared with traditional sliding methods.
[0004] In order to solve the above technical problems, the first aspect of the present invention discloses a method for sliding display of list data, which is applied to an electronic device having a display interface, and the display interface at least includes a slider for sliding data in the display interface, and the method includes:
[0005] In response to a sliding trigger operation of the slider by a user, determining a first sliding amount of the slider;
[0006] Determining a first sliding ratio parameter corresponding to the slider according to a first sliding amount of the slider and a first maximum sliding amount corresponding to the slider;
[0007] Determine a first display position corresponding to the list data according to the first sliding ratio parameter and a first current position parameter of the list data corresponding to the slider;
[0008] A sliding response operation is performed on the list data to display the list data at the first display position.
[0009] As an optional embodiment, in the first aspect of the present invention, the method further comprises:
[0010] In response to a sliding trigger operation of the user on the list data, determining a second sliding amount of the list data;
[0011] Determining a second sliding ratio parameter corresponding to the list data according to the second sliding amount of the list data and the second maximum sliding amount corresponding to the list data;
[0012] Determining a second display position corresponding to the slider according to the second sliding ratio parameter and a second current position parameter of the slider;
[0013] A sliding response operation is performed on the slider to display the slider to the second display position.
[0014] As an optional implementation, in the first aspect of the present invention, the slider includes a slider component and a slider label; and the method further includes:
[0015] During the sliding of the slider, determining a first real-time position of the slider component;
[0016] Determine the real-time data identifier corresponding to the slider component according to the first real-time position of the slider component and the list data; the real-time data identifier is used to indicate the data characteristics of the content corresponding to the first real-time position of the slider component in the list data;
[0017] The slider label is updated in real time and displayed as the real-time data mark.
[0018] As an optional implementation, in the first aspect of the present invention, determining the real-time data identifier corresponding to the slider component according to the first real-time position of the slider component and the list data includes:
[0019] Determine a data portion in the list data corresponding to the first real-time position of the slider component;
[0020] Determine, according to the data in the data part, a data identifier corresponding to the data part; the data identifier includes at least one of a data type parameter, a data time parameter, and a data category parameter of the data in the data part;
[0021] The data identifier corresponding to the data portion is determined as the real-time data identifier corresponding to the slider component.
[0022] As an optional implementation manner, in the first aspect of the present invention, the list data includes a plurality of pictures; and displaying the list data at the first display position includes:
[0023] During the sliding process of the list data, determining in real time a second real-time position of the list data;
[0024] According to the second real-time position of the list data and the preset position relationship of the picture identifiers, determining in real time at least one picture identifier corresponding to the second real-time position;
[0025] The list data is displayed at the first display position, and according to at least one picture identifier corresponding to the second real-time position, the corresponding picture is loaded and displayed.
[0026] As an optional implementation manner, in the first aspect of the present invention, loading and displaying the corresponding picture according to at least one picture identifier corresponding to the second real-time position includes:
[0027] Preloading at least one of the pictures corresponding to the first display position;
[0028] Comparing at least one picture identifier corresponding to the second real-time position with at least one picture corresponding to the first display position to obtain a comparison result;
[0029] According to the comparison result, the corresponding picture is loaded and displayed.
[0030] As an optional implementation manner, in the first aspect of the present invention, loading and displaying the corresponding picture according to the comparison result includes:
[0031] If the comparison result shows that at least one picture identifier corresponding to the second real-time position is consistent with at least one picture corresponding to the first display position, displaying at least one picture corresponding to the first display position;
[0032] Otherwise, discard at least one of the pictures corresponding to the first display position;
[0033] and / or,
[0034] According to the comparison result, determining at least one target picture among the at least one picture corresponding to the first display position, which has a consistent picture identifier with at least one picture corresponding to the second real-time position;
[0035] The at least one target picture is displayed.
[0036] A second aspect of the present invention discloses a device for sliding display of list data, which is applied to an electronic device having a display interface, and the display interface includes at least one slider for sliding data in the display interface, and the device includes:
[0037] a sliding determination module, configured to determine a first sliding amount of the slider in response to a sliding trigger operation of the slider by a user;
[0038] A parameter determination module, configured to determine a first sliding ratio parameter corresponding to the slider according to a first sliding amount of the slider and a first maximum sliding amount corresponding to the slider;
[0039] a position determination module, configured to determine a first display position corresponding to the list data according to the first sliding ratio parameter and a first current position parameter of the list data corresponding to the slider;
[0040] The sliding display module is used to perform a sliding response operation on the list data to display the list data at the first display position.
[0041] As an optional implementation, in the second aspect of the present invention, the sliding determination module is further used to determine a second sliding amount of the list data in response to a sliding trigger operation of the user on the list data;
[0042] The parameter determination module is further used to determine a second sliding ratio parameter corresponding to the list data according to the second sliding amount of the list data and the second maximum sliding amount corresponding to the list data;
[0043] The position determination module is further used to determine a second display position corresponding to the slider according to the second sliding ratio parameter and a second current position parameter of the slider;
[0044] The sliding display module is further used to perform a sliding response operation on the slider, so that the slider is displayed to the second display position.
[0045] As an optional implementation, in the second aspect of the present invention, the slider includes a slider component and a slider label; the device also includes a label update module, which is used to perform the following steps:
[0046] During the sliding of the slider, determining a first real-time position of the slider component;
[0047] Determine the real-time data identifier corresponding to the slider component according to the first real-time position of the slider component and the list data; the real-time data identifier is used to indicate the data characteristics of the content corresponding to the first real-time position of the slider component in the list data;
[0048] The slider label is updated in real time and displayed as the real-time data mark.
[0049] As an optional implementation, in the second aspect of the present invention, the label update module determines the specific manner of the real-time data identifier corresponding to the slider component according to the first real-time position of the slider component and the list data, including:
[0050] Determine a data portion in the list data corresponding to the first real-time position of the slider component;
[0051] Determine, according to the data in the data part, a data identifier corresponding to the data part; the data identifier includes at least one of a data type parameter, a data time parameter, and a data category parameter of the data in the data part;
[0052] The data identifier corresponding to the data portion is determined as the real-time data identifier corresponding to the slider component.
[0053] As an optional implementation, in the second aspect of the present invention, the list data includes a plurality of pictures; and the specific manner in which the sliding display module displays the list data to the first display position includes:
[0054] During the sliding process of the list data, determining in real time a second real-time position of the list data;
[0055] According to the second real-time position of the list data and the preset position relationship of the picture identifiers, determining in real time at least one picture identifier corresponding to the second real-time position;
[0056] The list data is displayed at the first display position, and according to at least one picture identifier corresponding to the second real-time position, the corresponding picture is loaded and displayed.
[0057] As an optional implementation, in the second aspect of the present invention, the specific manner in which the sliding display module loads and displays the corresponding picture according to at least one picture identifier corresponding to the second real-time position includes:
[0058] Preloading at least one of the pictures corresponding to the first display position;
[0059] Comparing at least one picture identifier corresponding to the second real-time position with at least one picture corresponding to the first display position to obtain a comparison result;
[0060] According to the comparison result, the corresponding picture is loaded and displayed.
[0061] As an optional implementation, in the second aspect of the present invention, the specific manner in which the sliding display module loads and displays the corresponding picture according to the comparison result includes:
[0062] If the comparison result shows that at least one picture identifier corresponding to the second real-time position is consistent with at least one picture corresponding to the first display position, displaying at least one picture corresponding to the first display position;
[0063] Otherwise, discard at least one of the pictures corresponding to the first display position;
[0064] and / or,
[0065] According to the comparison result, determining at least one target picture among the at least one picture corresponding to the first display position, which has a consistent picture identifier with at least one picture corresponding to the second real-time position;
[0066] The at least one target picture is displayed.
[0067] A third aspect of the present invention discloses an electronic device, comprising:
[0068] A memory storing executable program code;
[0069] a processor coupled to the memory;
[0070] The processor calls the executable program code stored in the memory to execute part or all of the steps in the method for sliding display of list data disclosed in the first aspect of the present invention.
[0071] The fourth aspect of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute part or all of the steps in the method for sliding display of list data disclosed in the first aspect of the present invention.
[0072] The fifth aspect of the present invention discloses a computer program product, which includes a computer program / instructions, and when the computer program / instructions are executed by a processor, they implement part or all of the steps in the method for sliding display of list data disclosed in the first aspect of the present invention.
[0073] Compared with the prior art, the present invention has the following beneficial effects:
[0074] The present invention can adaptively slide and display list data based on the user's sliding trigger operation on the slider. When dealing with list data with a large amount of data, compared with the traditional sliding method, it can effectively improve the efficiency of sliding display and bring a better operating experience to the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0076] Figure 1It is a flowchart of a method for sliding display of list data disclosed in an embodiment of the present invention;
[0077] Figure 2 It is a flowchart diagram of another method for sliding display list data disclosed in an embodiment of the present invention;
[0078] Figure 3 It is a structural diagram of a device for sliding display of list data disclosed in an embodiment of the present invention;
[0079] Figure 4 It is a structural schematic diagram of another device for sliding display of list data disclosed in an embodiment of the present invention;
[0080] Figure 5 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0081] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0082] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or end including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or ends.
[0083] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0084] The present invention discloses a method, device, equipment, storage medium and program product for sliding display of list data, which can adaptively slide and display list data based on the user's sliding trigger operation on a slider, and when dealing with list data with a large amount of data, compared with the traditional sliding method, can effectively improve the efficiency of sliding display and bring better operation experience to users. The following are detailed descriptions.
[0085] Embodiment 1
[0086] See also Figure 1 , Figure 1 1 is a flow chart of a method for sliding display of list data disclosed in an embodiment of the present invention. Figure 1 The described method can be applied to a corresponding data display device, such as a data display terminal, a data display device or a data display server, and the server can be a cloud server or a local server, which is not limited in the embodiment of the present invention. Specifically, the method of sliding display list data is applied to an electronic device with a display interface, and the display interface of the electronic device includes at least one slider for sliding the data in the display interface, such as Figure 1 As shown, it may include the following operations:
[0087] 101. In response to a sliding trigger operation of a slider by a user, determine a first sliding amount of the slider.
[0088] Optionally, the slider of the present invention may be an indicator with a fixed shape, such as a rectangular or circular display component, set in a specific area of the display interface, for receiving a sliding trigger operation by the user. Optionally, the sliding trigger operation of the user on the slider may be triggered by a human-computer interaction device such as a mouse, or may be triggered by the user directly operating the slider through a touch screen, which is not limited by the present invention.
[0089] Optionally, the first sliding amount of the slider can be a sliding distance of the slider in a specific area, such as a sliding distance on a sliding rail corresponding to the slider, or a track length or track area corresponding to the sliding track of the slider, which is not limited in the present invention. Optionally, the first sliding amount of the slider can be directly retrieved through a corresponding API, or can be calculated based on the position of the slider before and after the sliding trigger operation, which is not limited in the present invention.
[0090] 102. Determine a first sliding ratio parameter corresponding to the slider according to a first sliding amount of the slider and a first maximum sliding amount corresponding to the slider.
[0091] Optionally, the first maximum sliding amount corresponding to the slider can be the maximum sliding distance of the slider in a specific area, such as the maximum sliding distance on the sliding rail corresponding to the slider. For example, it can be equal to the length of the sliding rail minus the length of the slider itself, or it can be the maximum length of the specific area corresponding to the slider in the sliding direction corresponding to the first sliding amount. The present invention is not limited to this.
[0092] Optionally, the first sliding ratio parameter is a ratio of the first sliding amount to the first maximum sliding amount, which may be a percentage or a value accurate to a specific decimal place, and the present invention is not limited thereto.
[0093] 103. Determine a first display position corresponding to the list data according to the first sliding ratio parameter and a first current position parameter of the list data corresponding to the slider.
[0094] Optionally, the second maximum sliding amount of the list data corresponding to the slider can be determined first, and then the product of the first sliding ratio parameter and the second maximum sliding amount can be calculated to obtain the sliding amount corresponding to the list data, and finally the first display position corresponding to the list data can be determined according to the first current position parameter of the list data and the sliding amount.
[0095] Optionally, the second maximum sliding amount corresponding to the list data can be the maximum distance or maximum data amount that the list data can slide, which can be the difference between the total data amount of the list data and the current displayed data amount of the list data, or the difference between the total pixel amount of the list data and the current displayed pixel amount of the list data.
[0096] 104. Perform a sliding response operation on the list data to display the list data at a first display position.
[0097] Optionally, performing a sliding response operation on the list data may be performed by calling a corresponding function according to the first display position, or may be performed by calling a corresponding function according to a sliding amount of the list data corresponding to the first display position. This depends on the input parameters required by the corresponding function, and the present invention does not limit this.
[0098] It can be seen that the method described in the embodiment of the present invention can adaptively slide and display list data based on the user's sliding trigger operation on the slider. When dealing with list data with a large amount of data, compared with the traditional sliding method, it can effectively improve the efficiency of sliding display and bring a better operating experience to the user.
[0099] As an optional embodiment, the method further includes:
[0100] In response to a sliding trigger operation of the user on the list data, determining a second sliding amount of the list data;
[0101] Determine a second sliding ratio parameter corresponding to the list data according to the second sliding amount of the list data and the second maximum sliding amount corresponding to the list data;
[0102] Determine a second display position corresponding to the slider according to the second sliding ratio parameter and the second current position parameter of the slider;
[0103] A sliding response operation is performed on the slider to display the slider to a second display position.
[0104] One of the purposes of this optional embodiment is that when the user performs a sliding trigger operation directly on the list data, the position of the slider is adjusted accordingly so that the position correspondence between the slider and the list data is maintained. At the same time, the user's sliding trigger operation on the list data may also be a sliding response operation on the list data performed in steps 101-104. At this time, one of the purposes of this optional embodiment is that when the system drives the list data to slide and display according to the user's sliding of the slider, since there may be deviations in the position calculation of the sliding display, or there are some rules and restrictions on the display of the system, the first display position where the list data is finally displayed may not correspond to the current position of the slider. Therefore, it is necessary to adjust the position of the slider according to the current sliding amount of the list data so that the position correspondence between the slider and the list data is maintained.
[0105] Optionally, the sliding trigger operation of the user on the list data may be triggered by a human-computer interaction device such as a mouse, or may be triggered by the user directly operating the list data through a touch screen, which is not limited in the present invention.
[0106] Optionally, the parameter details of the first maximum slidable amount and the second maximum slidable amount may refer to the description in the previous embodiment, and will not be repeated here.
[0107] Optionally, the second sliding ratio parameter is a ratio of the second sliding amount to the second maximum sliding amount, which may be a percentage or a value accurate to a specific decimal place, and the present invention is not limited thereto.
[0108] Optionally, the first maximum sliding amount corresponding to the slider can be determined first, and then the product of the second sliding ratio parameter and the first maximum sliding amount can be calculated to obtain the sliding amount corresponding to the slider, and finally the second display position corresponding to the slider can be determined according to the second current position parameter of the slider and the sliding amount.
[0109] Optionally, performing a sliding response operation on the slider may be performed by calling a corresponding function according to the second display position, or may be performed by calling a corresponding function according to the sliding amount of the slider corresponding to the second display position. This depends on the input parameters required by the corresponding function, and the present invention is not limited thereto.
[0110] It can be seen that by executing this optional embodiment, the slider can be adjusted to the corresponding second display position according to the second sliding amount of the list data, so that the position correspondence between the slider and the list data can be maintained, thereby effectively improving the accuracy of subsequent further sliding displays and bringing better operating experience to users.
[0111] As an optional embodiment, the slider may include a slider component and a slider label, wherein specifically, the slider label may be a display component partially connected to the slider component, such as a dialog-style display component whose tail is connected to the edge of the slider component, so that the user can clearly understand the relationship between the two.
[0112] Accordingly, the method further includes:
[0113] During the sliding of the slider, determining a first real-time position of the slider component;
[0114] Determine the real-time data identifier corresponding to the slider component according to the first real-time position of the slider component and the list data;
[0115] Displays the slider label as a real-time data indicator in real time.
[0116] Specifically, the real-time data identifier is used to indicate the data characteristics of the content corresponding to the first real-time position of the slider component in the list data.
[0117] Optionally, the sliding process of the slider may be caused by performing a sliding trigger operation or a sliding response operation on the slider according to the steps in the above embodiments, or may be caused by performing other operations, which is not limited in the present invention.
[0118] It can be seen that through this optional embodiment, during the sliding of the slider, the slider label can be updated in real time and displayed as a real-time data identifier according to the first real-time position of the slider component, so that the user can perceive the data characteristics of the list data at this time in real time during the sliding of the slider. On the one hand, it can effectively reduce user misoperations and improve the accuracy of sliding display. On the other hand, it can bring users a better and more intuitive operating experience.
[0119] As an optional embodiment, in the above step, determining the real-time data identifier corresponding to the slider component according to the first real-time position of the slider component and the list data includes:
[0120] Determine the data portion corresponding to the first real-time position of the slider component in the list data;
[0121] Determine, according to the data in the data part, a data identifier corresponding to the data part;
[0122] The data identifier corresponding to the data part is determined as the real-time data identifier corresponding to the slider component.
[0123] Optionally, the data identifier may include at least one of a data type parameter, a data time parameter, and a data category parameter of the data in the data portion.
[0124] Optionally, the data type parameter may be a preset data type to which the data belongs, such as a file type, an audio type, a video type, or an image type. Optionally, the data time parameter may be a time parameter such as the last modification time, the acquisition time, or the creation time corresponding to the data.
[0125] Optionally, the data category parameter may be a category to which the data belongs in at least one preset classification dimension, and the classification dimension may be a classification dimension based on the purpose of the data, a classification dimension based on the life scenario corresponding to the data, or other classification dimensions, and the present invention is not limited here.
[0126] Optionally, determining the data portion corresponding to the first real-time position of the slider component in the list data may include:
[0127] Determine a display interface corresponding to the first real-time position of the slider component;
[0128] The portion of the list data displayed in the specific area of the display interface is determined as the data portion corresponding to the first real-time position of the slider component in the list data.
[0129] Optionally, the specific area is a top area or a middle area of the display interface.
[0130] Optionally, determining the data portion corresponding to the first real-time position of the slider component in the list data may include:
[0131] Determining a position ratio corresponding to the slider component according to a ratio of the first real-time position of the slider component to the maximum position corresponding to the slider component;
[0132] Determine the corresponding list position in the list data according to the product of the position ratio and the maximum position of the list data;
[0133] According to the list position, the corresponding data part in the list data is determined.
[0134] The list data may be divided in advance to obtain a plurality of preset data parts, and a preset data part that intersects with the list position among the plurality of preset data parts is determined as the data part corresponding to the list position in the list data.
[0135] Optionally, determining the data identifier corresponding to the data portion according to the data in the data portion may include:
[0136] Determine all target data included in the data section;
[0137] Obtaining a parameter value of each target data in at least one data parameter category, and determining a common data identifier corresponding to all target data according to a preset commonality calculation algorithm;
[0138] The common data identifier is determined as the data identifier corresponding to the data portion.
[0139] Among them, the commonality calculation algorithm can be to determine the parameter value corresponding to the data parameter category in which the parameter values of all target data in all data parameter categories are exactly the same as the common data identifier corresponding to all target data, or it can be to calculate the same rate corresponding to each data parameter category and determine the parameter value that appears the most times in the data parameter category with the highest same rate as the common data identifier corresponding to all target data.
[0140] Optionally, the data parameter category may include at least one of a data type parameter, a data time parameter and a data category parameter, and the data details may refer to the above description.
[0141] Specifically, the same rate corresponding to each data parameter category is the ratio of the maximum number of identical parameter values among the parameter values of all target data corresponding to each data parameter category to the total number of all target data.
[0142] It can be seen that through this optional embodiment, the real-time data identifier corresponding to the slider component can be determined according to the data identifier corresponding to the data part corresponding to the first real-time position of the slider component in the list data, so that the data identifier that can characterize the data characteristics of the list data at this time can be determined more accurately. On the one hand, it can effectively reduce user misoperations and improve the accuracy of sliding display. On the other hand, it can bring users a better and more intuitive operating experience.
[0143] Embodiment 2
[0144] See also Figure 2 , Figure 2 1 is a flow chart of another method for sliding display of list data disclosed in an embodiment of the present invention. Figure 2 The described method can be applied to a corresponding data display device, such as a data display terminal, a data display device or a data display server, and the server can be a cloud server or a local server, which is not limited in the embodiment of the present invention. Specifically, the method of sliding display list data is applied to an electronic device with a display interface, and the display interface of the electronic device includes at least one slider for sliding the data in the display interface, such as Figure 2 As shown, it may include the following operations:
[0145] 201. In response to a sliding trigger operation of a slider by a user, determine a first sliding amount of the slider.
[0146] 202. Determine a first sliding ratio parameter corresponding to the slider according to a first sliding amount of the slider and a first maximum sliding amount corresponding to the slider.
[0147] 203. Determine a first display position corresponding to the list data according to the first sliding ratio parameter and a first current position parameter of the list data corresponding to the slider.
[0148] Optionally, the list data includes multiple pictures, for example, it can be list data with pictures displayed in some columns or rows, or it can be list data composed entirely of pictures, which is not limited in the present invention.
[0149] 204. Perform a sliding response operation on the list data.
[0150] The specific technical details in steps 201-204 may refer to the corresponding descriptions of steps 101-104 in the first embodiment, and will not be elaborated in this embodiment.
[0151] 205. During the sliding process of the list data, determine a second real-time position of the list data in real time.
[0152] Optionally, the second real-time position of the list data may be a position corresponding to display data of the list data in a preset area of the currently displayed page, such as a position corresponding to data displayed at the top or bottom, which may be obtained through a preset API function.
[0153] 206. Determine in real time at least one picture identifier corresponding to the second real-time position according to the second real-time position of the list data and a preset picture identifier position relationship.
[0154] Optionally, the preset image identifier position relationship stores multiple image identifiers and corresponding list data positions, and the corresponding at least one image identifier can be directly determined according to the second real-time position of the list data. Optionally, the image identifier is an identifier used to indicate the corresponding image data, which can be a data parameter such as an ID value, or can be in other forms, which is not limited by the present invention.
[0155] 207 . Display the list data at the first display position, and load and display the corresponding picture according to at least one picture identifier corresponding to the second real-time position.
[0156] It can be seen that the method described in the embodiment of the present invention can continuously update the corresponding image identification during the list sliding, and then directly display the image according to the latest image identification when the sliding ends. When applied to displaying list data with a large number of images, compared with the traditional method of continuously updating and loading images in real time according to the position of the list data, it can effectively reduce errors or flickers during image display, and can effectively reduce the operating resources of the equipment and reduce costs.
[0157] As an optional embodiment, in step 207, loading and displaying a corresponding picture according to at least one picture identifier corresponding to the second real-time position includes:
[0158] Preloading at least one image corresponding to the first display position;
[0159] Comparing at least one picture identifier corresponding to the second real-time position with at least one picture corresponding to the first display position to obtain a comparison result;
[0160] According to the comparison results, the corresponding pictures are loaded and displayed.
[0161] Optionally, the picture identifier corresponding to the at least one picture corresponding to the first display position may be compared with the at least one picture identifier corresponding to the second real-time position.
[0162] It can be seen that by implementing this optional embodiment, the picture identifier corresponding to the second real-time position can be compared with the picture corresponding to the first display position to obtain a comparison result, and then based on the comparison result, the corresponding picture is loaded and displayed, so that data can be verified through these comparisons when loading the picture, which can effectively reduce errors in picture display.
[0163] As an optional embodiment, in the above step, loading and displaying the corresponding picture according to the comparison result includes:
[0164] If the comparison result shows that at least one picture identifier corresponding to the second real-time position is consistent with at least one picture corresponding to the first display position, displaying at least one picture corresponding to the first display position;
[0165] Otherwise, at least one picture corresponding to the first display position is discarded.
[0166] It can be seen that by implementing this optional embodiment, when the comparison result shows that the image identifier corresponding to the second real-time position is consistent with the image corresponding to the first display position, at least one image corresponding to the first display position can be displayed; otherwise, the loaded image is discarded. Therefore, by verifying the data through these comparisons when loading images, errors in image display can be effectively reduced.
[0167] As an optional embodiment, in the above step, loading and displaying the corresponding picture according to the comparison result includes:
[0168] According to the comparison result, determining at least one target picture in the at least one picture corresponding to the first display position, which has a consistent identifier with at least one picture corresponding to the second real-time position;
[0169] Display at least one target image.
[0170] Optionally, all pictures whose identifiers are inconsistent with at least one picture corresponding to the second real-time position in the at least one picture corresponding to the first display position may be further discarded.
[0171] It can be seen that by implementing this optional embodiment, the target picture corresponding to the first display position and having the same picture identifier as the picture corresponding to the second real-time position can be displayed, so that when some pictures are consistent, they can be directly displayed to improve display efficiency.
[0172] Embodiment 3
[0173] See also Figure 3 , Figure 3 : is a schematic diagram of a structure of a device for sliding display of list data disclosed in an embodiment of the present invention. Figure 3 The described device can be applied to a corresponding data display device, such as a data display terminal, a data display device or a data display server, which can be a cloud server or a local server. The device is applied to an electronic device with a display interface, and the display interface of the electronic device at least includes a slider for sliding the data in the display interface, such as Figure 3 As shown, it may include:
[0174] The sliding determination module 301 is used to determine a first sliding amount of the slider in response to a sliding trigger operation of the user on the slider.
[0175] Optionally, the slider of the present invention may be an indicator with a fixed shape, such as a rectangular or circular display component, set in a specific area of the display interface, for receiving a sliding trigger operation by the user. Optionally, the sliding trigger operation of the user on the slider may be triggered by a human-computer interaction device such as a mouse, or may be triggered by the user directly operating the slider through a touch screen, which is not limited by the present invention.
[0176] Optionally, the first sliding amount of the slider can be a sliding distance of the slider in a specific area, such as a sliding distance on a sliding rail corresponding to the slider, or a track length or track area corresponding to the sliding track of the slider, which is not limited in the present invention. Optionally, the first sliding amount of the slider can be directly retrieved through a corresponding API, or can be calculated based on the position of the slider before and after the sliding trigger operation, which is not limited in the present invention.
[0177] The parameter determination module 302 is used to determine a first sliding ratio parameter corresponding to the slider according to a first sliding amount of the slider and a first maximum sliding amount corresponding to the slider.
[0178] Optionally, the first maximum sliding amount corresponding to the slider can be the maximum sliding distance of the slider in a specific area, such as the maximum sliding distance on the sliding rail corresponding to the slider. For example, it can be equal to the length of the sliding rail minus the length of the slider itself, or it can be the maximum length of the specific area corresponding to the slider in the sliding direction corresponding to the first sliding amount. The present invention is not limited to this.
[0179] Optionally, the first sliding ratio parameter is a ratio of the first sliding amount to the first maximum sliding amount, which may be a percentage or a value accurate to a specific decimal place, and the present invention is not limited thereto.
[0180] The position determination module 303 is used to determine a first display position corresponding to the list data according to a first sliding ratio parameter and a first current position parameter of the list data corresponding to the slider.
[0181] Optionally, the second maximum sliding amount of the list data corresponding to the slider can be determined first, and then the product of the first sliding ratio parameter and the second maximum sliding amount can be calculated to obtain the sliding amount corresponding to the list data, and finally the first display position corresponding to the list data can be determined according to the first current position parameter of the list data and the sliding amount.
[0182] Optionally, the second maximum sliding amount corresponding to the list data can be the maximum distance or maximum data amount that the list data can slide, which can be the difference between the total data amount of the list data and the current displayed data amount of the list data, or the difference between the total pixel amount of the list data and the current displayed pixel amount of the list data.
[0183] The sliding display module 304 is used to perform a sliding response operation on the list data and display the list data at a first display position.
[0184] Optionally, performing a sliding response operation on the list data may be performed by calling a corresponding function according to the first display position, or may be performed by calling a corresponding function according to a sliding amount of the list data corresponding to the first display position. This depends on the input parameters required by the corresponding function, and the present invention does not limit this.
[0185] It can be seen that the device described in the embodiment of the present invention can adaptively slide and display list data based on the user's sliding trigger operation on the slider. When dealing with list data with a large amount of data, compared with the traditional sliding method, it can effectively improve the efficiency of sliding display and bring a better operating experience to the user.
[0186] As an optional embodiment, the sliding determination module 301 is further configured to determine a second sliding amount of the list data in response to a sliding trigger operation of the user on the list data;
[0187] The parameter determination module 302 is further configured to determine a second sliding ratio parameter corresponding to the list data according to the second sliding amount of the list data and the second maximum sliding amount corresponding to the list data;
[0188] The position determination module 303 is further used to determine a second display position corresponding to the slider according to the second sliding ratio parameter and the second current position parameter of the slider;
[0189] The sliding display module 304 is further configured to perform a sliding response operation on the slider, so that the slider is displayed to a second display position.
[0190] One of the purposes of this optional embodiment is that when the user performs a sliding trigger operation directly on the list data, the position of the slider is adjusted accordingly so that the position correspondence between the slider and the list data is maintained. At the same time, the user's sliding trigger operation on the list data may also be a sliding response operation on the list data performed in steps 101-104. At this time, one of the purposes of this optional embodiment is that when the system drives the list data to slide and display according to the user's sliding of the slider, since there may be deviations in the position calculation of the sliding display, or there are some rules and restrictions on the display of the system, the first display position where the list data is finally displayed may not correspond to the current position of the slider. Therefore, it is necessary to adjust the position of the slider according to the current sliding amount of the list data so that the position correspondence between the slider and the list data is maintained.
[0191] Optionally, the sliding trigger operation of the user on the list data may be triggered by a human-computer interaction device such as a mouse, or may be triggered by the user directly operating the list data through a touch screen, which is not limited in the present invention.
[0192] Optionally, the parameter details of the first maximum slidable amount and the second maximum slidable amount may refer to the description in the previous embodiment, and will not be repeated here.
[0193] Optionally, the second sliding ratio parameter is a ratio of the second sliding amount to the second maximum sliding amount, which may be a percentage or a value accurate to a specific decimal place, and the present invention is not limited thereto.
[0194] Optionally, the first maximum sliding amount corresponding to the slider can be determined first, and then the product of the second sliding ratio parameter and the first maximum sliding amount can be calculated to obtain the sliding amount corresponding to the slider, and finally the second display position corresponding to the slider can be determined according to the second current position parameter of the slider and the sliding amount.
[0195] Optionally, performing a sliding response operation on the slider may be performed by calling a corresponding function according to the second display position, or may be performed by calling a corresponding function according to the sliding amount of the slider corresponding to the second display position. This depends on the input parameters required by the corresponding function, and the present invention is not limited thereto.
[0196] It can be seen that by executing this optional embodiment, the slider can be adjusted to the corresponding second display position according to the second sliding amount of the list data, so that the position correspondence between the slider and the list data can be maintained, thereby effectively improving the accuracy of subsequent further sliding displays and bringing better operating experience to users.
[0197] As an optional embodiment, the slider may include a slider component and a slider label, wherein specifically, the slider label may be a display component partially connected to the slider component, such as a dialog-style display component whose tail is connected to the edge of the slider component, so that the user can clearly understand the relationship between the two.
[0198] Correspondingly, such as Figure 4 As shown, the device also includes a label updating module 305, which is used to perform the following steps:
[0199] During the sliding of the slider, determining a first real-time position of the slider component;
[0200] Determine the real-time data identifier corresponding to the slider component according to the first real-time position of the slider component and the list data;
[0201] Displays the slider label as a real-time data indicator in real time.
[0202] Specifically, the real-time data identifier is used to indicate the data characteristics of the content corresponding to the first real-time position of the slider component in the list data.
[0203] Optionally, the sliding process of the slider may be caused by performing a sliding trigger operation or a sliding response operation on the slider according to the steps in the above embodiments, or may be caused by performing other operations, which is not limited in the present invention.
[0204] It can be seen that through this optional embodiment, during the sliding of the slider, the slider label can be updated in real time and displayed as a real-time data identifier according to the first real-time position of the slider component, so that the user can perceive the data characteristics of the list data at this time in real time during the sliding of the slider. On the one hand, it can effectively reduce user misoperations and improve the accuracy of sliding display. On the other hand, it can bring users a better and more intuitive operating experience.
[0205] As an optional embodiment, the label updating module 305 determines the specific manner of the real-time data identifier corresponding to the slider component according to the first real-time position of the slider component and the list data, including:
[0206] Determine the data portion corresponding to the first real-time position of the slider component in the list data;
[0207] Determine, according to the data in the data part, a data identifier corresponding to the data part;
[0208] The data identifier corresponding to the data part is determined as the real-time data identifier corresponding to the slider component.
[0209] Optionally, the data identifier may include at least one of a data type parameter, a data time parameter, and a data category parameter of the data in the data portion.
[0210] Optionally, the data type parameter may be a preset data type to which the data belongs, such as a file type, an audio type, a video type, or an image type. Optionally, the data time parameter may be a time parameter such as the last modification time, the acquisition time, or the creation time corresponding to the data.
[0211] Optionally, the data category parameter may be a category to which the data belongs in at least one preset classification dimension, and the classification dimension may be a classification dimension based on the purpose of the data, a classification dimension based on the life scenario corresponding to the data, or other classification dimensions, and the present invention is not limited here.
[0212] Optionally, the label updating module 305 determines the data portion corresponding to the first real-time position of the slider component in the list data, which may include:
[0213] Determine a display interface corresponding to the first real-time position of the slider component;
[0214] The portion of the list data displayed in the specific area of the display interface is determined as the data portion corresponding to the first real-time position of the slider component in the list data.
[0215] Optionally, the specific area is a top area or a middle area of the display interface.
[0216] Optionally, the label updating module 305 determines the data portion corresponding to the first real-time position of the slider component in the list data, which may include:
[0217] Determining a position ratio corresponding to the slider component according to a ratio of the first real-time position of the slider component to the maximum position corresponding to the slider component;
[0218] Determine the corresponding list position in the list data according to the product of the position ratio and the maximum position of the list data;
[0219] According to the list position, the corresponding data part in the list data is determined.
[0220] The list data may be divided in advance to obtain a plurality of preset data parts, and a preset data part that intersects with the list position among the plurality of preset data parts is determined as the data part corresponding to the list position in the list data.
[0221] Optionally, the tag updating module 305 determines the data identifier corresponding to the data portion according to the data in the data portion, which may include:
[0222] Determine all target data included in the data section;
[0223] Obtaining a parameter value of each target data in at least one data parameter category, and determining a common data identifier corresponding to all target data according to a preset commonality calculation algorithm;
[0224] The common data identifier is determined as the data identifier corresponding to the data portion.
[0225] Among them, the commonality calculation algorithm can be to determine the parameter value corresponding to the data parameter category in which the parameter values of all target data in all data parameter categories are exactly the same as the common data identifier corresponding to all target data, or it can be to calculate the same rate corresponding to each data parameter category and determine the parameter value that appears the most times in the data parameter category with the highest same rate as the common data identifier corresponding to all target data.
[0226] Optionally, the data parameter category may include at least one of a data type parameter, a data time parameter and a data category parameter, and the data details may refer to the above description.
[0227] Specifically, the same rate corresponding to each data parameter category is the ratio of the maximum number of identical parameter values among the parameter values of all target data corresponding to each data parameter category to the total number of all target data.
[0228] It can be seen that through this optional embodiment, the real-time data identifier corresponding to the slider component can be determined according to the data identifier corresponding to the data part corresponding to the first real-time position of the slider component in the list data, so that the data identifier that can characterize the data characteristics of the list data at this time can be determined more accurately. On the one hand, it can effectively reduce user misoperations and improve the accuracy of sliding display. On the other hand, it can bring users a better and more intuitive operating experience.
[0229] As an optional embodiment, the list data includes multiple pictures, for example, it can be list data with pictures displayed in some columns or rows, or it can be list data composed entirely of pictures, and the present invention is not limited thereto.
[0230] Accordingly, the specific manner in which the sliding display module 304 displays the list data at the first display position includes:
[0231] During the sliding process of the list data, determining the second real-time position of the list data in real time;
[0232] Determine in real time at least one picture identifier corresponding to the second real-time position according to the second real-time position of the list data and a preset picture identifier position relationship;
[0233] The list data is displayed at the first display position, and according to at least one picture identifier corresponding to the second real-time position, a corresponding picture is loaded and displayed.
[0234] Optionally, the second real-time position of the list data may be a position corresponding to display data of the list data in a preset area of the currently displayed page, such as a position corresponding to data displayed at the top or bottom, which may be obtained through a preset API function.
[0235] Optionally, the preset image identifier position relationship stores multiple image identifiers and corresponding list data positions, and the corresponding at least one image identifier can be directly determined according to the second real-time position of the list data. Optionally, the image identifier is an identifier used to indicate the corresponding image data, which can be a data parameter such as an ID value, or can be in other forms, which is not limited by the present invention.
[0236] It can be seen that through this optional embodiment, the corresponding image identification can be continuously updated during the list sliding, and the image can be displayed directly according to the latest image identification when the sliding ends. When applied to displaying list data with a large number of images, compared with the traditional method of continuously updating and loading images in real time according to the position of the list data, it can effectively reduce errors or flickers during image display, and can effectively reduce the operating resources of the equipment and reduce costs.
[0237] As an optional embodiment, the specific manner in which the sliding display module 304 loads and displays the corresponding picture according to at least one picture identifier corresponding to the second real-time position includes:
[0238] Preloading at least one image corresponding to the first display position;
[0239] Comparing at least one picture identifier corresponding to the second real-time position with at least one picture corresponding to the first display position to obtain a comparison result;
[0240] According to the comparison results, the corresponding pictures are loaded and displayed.
[0241] Optionally, the picture identifier corresponding to the at least one picture corresponding to the first display position may be compared with the at least one picture identifier corresponding to the second real-time position.
[0242] It can be seen that by implementing this optional embodiment, the picture identifier corresponding to the second real-time position can be compared with the picture corresponding to the first display position to obtain a comparison result, and then based on the comparison result, the corresponding picture is loaded and displayed, so that data can be verified through these comparisons when loading the picture, which can effectively reduce errors in picture display.
[0243] As an optional embodiment, the specific manner in which the sliding display module 304 loads and displays the corresponding picture according to the comparison result includes:
[0244] If the comparison result shows that at least one picture identifier corresponding to the second real-time position is consistent with at least one picture corresponding to the first display position, displaying at least one picture corresponding to the first display position;
[0245] Otherwise, at least one picture corresponding to the first display position is discarded.
[0246] It can be seen that by implementing this optional embodiment, when the comparison result shows that the image identifier corresponding to the second real-time position is consistent with the image corresponding to the first display position, at least one image corresponding to the first display position can be displayed; otherwise, the loaded image is discarded. Therefore, by verifying the data through these comparisons when loading images, errors in image display can be effectively reduced.
[0247] As an optional embodiment, the specific manner in which the sliding display module 304 loads and displays the corresponding picture according to the comparison result includes:
[0248] According to the comparison result, determining at least one target picture in the at least one picture corresponding to the first display position, which has a consistent identifier with at least one picture corresponding to the second real-time position;
[0249] Display at least one target image.
[0250] Optionally, all pictures whose identifiers are inconsistent with at least one picture corresponding to the second real-time position in the at least one picture corresponding to the first display position may be further discarded.
[0251] It can be seen that by implementing this optional embodiment, the target picture corresponding to the first display position and having the same picture identifier as the picture corresponding to the second real-time position can be displayed, so that when some pictures are consistent, they can be directly displayed to improve display efficiency.
[0252] Embodiment 4
[0253] See also Figure 4 , Figure 4 Schematic diagram of the structure of an electronic device disclosed in an embodiment of the present invention. Figure 4 As shown, the electronic device may include:
[0254] A memory 401 storing executable program codes;
[0255] a processor 402 coupled to the memory 401;
[0256] The processor 402 calls the executable program code stored in the memory 401 to execute part or all of the steps in the method for sliding display of list data disclosed in the first and second embodiments of the present invention.
[0257] The specific technical details of implementing the sliding display list data when the above-mentioned electronic device executes the computer program have been discussed in detail in the aforementioned method steps, so they will not be repeated here.
[0258] Embodiment 5
[0259] An embodiment of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute part or all of the steps in the method for sliding display list data disclosed in embodiments 1 and 2 of the present invention.
[0260] Embodiment 6
[0261] An embodiment of the present invention discloses a computer program product, including a computer program / instruction, which, when executed by a processor, implements part or all of the steps in the method for sliding display of list data disclosed in Embodiments 1 and 2 of the present invention.
[0262] The above describes specific embodiments of the present specification, and other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily have to be performed in the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0263] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer-readable storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0264] The apparatus, device, non-volatile computer-readable storage medium and method provided in the embodiments of this specification correspond to each other, and therefore, the apparatus, device, and non-volatile computer storage medium also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the corresponding apparatus, device, and non-volatile computer storage medium will not be repeated here.
[0265] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0266] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0267] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0268] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0269] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, the embodiments of this specification may be in the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the embodiments of this specification may be in the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0270] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0271] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0272] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0273] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0274] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0275] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0276] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0277] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0278] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0279] Finally, it should be noted that the method, device, equipment, storage medium and program product for sliding display of list data disclosed in the embodiments of the present invention are only preferred embodiments of the present invention, which are only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for sliding display of list data, applied to an electronic device with a display interface, wherein the display interface includes at least one slider for sliding the data in the display interface, characterized in that: The method comprises: In response to a sliding trigger operation of the slider by a user, determining a first sliding amount of the slider; Determining a first sliding ratio parameter corresponding to the slider according to a first sliding amount of the slider and a first maximum sliding amount corresponding to the slider; Determine a first display position corresponding to the list data according to the first sliding ratio parameter and a first current position parameter of the list data corresponding to the slider; Performing a sliding response operation on the list data to display the list data at the first display position; The list data includes a plurality of pictures; and displaying the list data at the first display position includes: During the sliding process of the list data, determining in real time a second real-time position of the list data; According to the second real-time position of the list data and the preset position relationship of the picture identifiers, determining in real time at least one picture identifier corresponding to the second real-time position; Display the list data at the first display position, and load and display the corresponding picture according to at least one picture identifier corresponding to the second real-time position; The step of loading and displaying the corresponding picture according to at least one picture identifier corresponding to the second real-time position includes: Preloading at least one of the pictures corresponding to the first display position; Comparing at least one picture identifier corresponding to the second real-time position with at least one picture corresponding to the first display position to obtain a comparison result; According to the comparison result, the corresponding picture is loaded and displayed.
2. The method for sliding display list data according to claim 1, characterized in that: The method further comprises: In response to a sliding trigger operation of the user on the list data, determining a second sliding amount of the list data; Determining a second sliding ratio parameter corresponding to the list data according to the second sliding amount of the list data and the second maximum sliding amount corresponding to the list data; Determining a second display position corresponding to the slider according to the second sliding ratio parameter and a second current position parameter of the slider; A sliding response operation is performed on the slider to display the slider to the second display position.
3. The method for sliding display list data according to claim 1 or 2, characterized in that: The slider includes a slider component and a slider label; the method further includes: During the sliding of the slider, determining a first real-time position of the slider component; Determine the real-time data identifier corresponding to the slider component according to the first real-time position of the slider component and the list data; the real-time data identifier is used to indicate the data characteristics of the content corresponding to the first real-time position of the slider component in the list data; The slider label is updated in real time and displayed as the real-time data mark.
4. The method for sliding display list data according to claim 3, characterized in that: Determining the real-time data identifier corresponding to the slider component according to the first real-time position of the slider component and the list data includes: Determine a data portion in the list data corresponding to the first real-time position of the slider component; Determine, according to the data in the data part, a data identifier corresponding to the data part; the data identifier includes at least one of a data type parameter, a data time parameter, and a data category parameter of the data in the data part; The data identifier corresponding to the data portion is determined as the real-time data identifier corresponding to the slider component.
5. The method for sliding display list data according to claim 1, characterized in that: The step of loading and displaying the corresponding picture according to the comparison result includes: If the comparison result shows that at least one picture identifier corresponding to the second real-time position is consistent with at least one picture corresponding to the first display position, displaying at least one picture corresponding to the first display position; Otherwise, discard at least one of the pictures corresponding to the first display position; and / or, According to the comparison result, determining at least one target picture among the at least one picture corresponding to the first display position, which has a consistent picture identifier with at least one picture corresponding to the second real-time position; The at least one target picture is displayed.
6. A device for sliding display of list data, applied to an electronic device with a display interface, wherein the display interface includes at least one slider for sliding the data in the display interface, characterized in that: The device comprises: a sliding determination module, configured to determine a first sliding amount of the slider in response to a sliding trigger operation of the slider by a user; A parameter determination module, configured to determine a first sliding ratio parameter corresponding to the slider according to a first sliding amount of the slider and a first maximum sliding amount corresponding to the slider; a position determination module, configured to determine a first display position corresponding to the list data according to the first sliding ratio parameter and a first current position parameter of the list data corresponding to the slider; A sliding display module, used for performing a sliding response operation on the list data to display the list data at the first display position; The list data includes a plurality of pictures; the specific manner in which the sliding display module displays the list data at the first display position includes: During the sliding process of the list data, determining in real time a second real-time position of the list data; According to the second real-time position of the list data and the preset position relationship of the picture identifiers, determining in real time at least one picture identifier corresponding to the second real-time position; Display the list data at the first display position, and load and display the corresponding picture according to at least one picture identifier corresponding to the second real-time position; The specific manner in which the sliding display module loads and displays the corresponding picture according to at least one picture identifier corresponding to the second real-time position includes: Preloading at least one of the pictures corresponding to the first display position; Comparing at least one picture identifier corresponding to the second real-time position with at least one picture corresponding to the first display position to obtain a comparison result; According to the comparison result, the corresponding picture is loaded and displayed.
7. An electronic device, characterized in that: The electronic device comprises: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the method for sliding display of list data as described in any one of claims 1-5.
8. A computer storage medium, characterized in that The computer storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the method for sliding display list data as described in any one of claims 1-5.
9. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the computer program / instruction implements the method for sliding display of list data as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Page positioning method and device
CN104238900A
Method and device for loading content in page
CN104933076A
List control display method and system
CN106227560A
Fast scroll realization method and apparatus
CN106598427A
Method for detecting position change of electronic terminal and electronic terminal
CN107566649A
