CN109446450B - List browsing method, device, terminal and storage medium based on red dot tracking - Google Patents
List browsing method, device, terminal and storage medium based on red dot tracking Download PDFInfo
- Publication number
- CN109446450B CN109446450B CN201811277318.9A CN201811277318A CN109446450B CN 109446450 B CN109446450 B CN 109446450B CN 201811277318 A CN201811277318 A CN 201811277318A CN 109446450 B CN109446450 B CN 109446450B
- Authority
- CN
- China
- Prior art keywords
- red dot
- red
- list
- tracking
- array
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a list browsing method, a device, a terminal and a storage medium based on red dot tracking, wherein the method comprises the following steps: determining an element with a red dot characteristic in a list page, and enabling the element to display a red dot; creating a red dot array, and storing element information of elements with red dots and position information corresponding to the element information into the red dot array; and traversing the element information in the red point array by using a red point tracking method, indexing the elements in the list page according to the traversal result and the position information corresponding to the element information, and displaying. The red dot array stores the element information of the red dot elements, the element information in the red dot array is traversed one by using a red dot tracking method, a currently traversed target index item in the red dot array is determined, and then the corresponding elements in the list page are directly indexed according to the target index item and the position information of the elements for displaying, so that the elements are positioned at the reading position, and a user can conveniently browse the information.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a list browsing method and apparatus based on red dot tracking, a terminal, and a storage medium.
Background
The conventional list browsing pages are divided into a common browsing page and a list browsing page with red dots, however, both browsing modes have certain defects, and the common list browsing mode cannot highlight key contents to be browsed; the list browsing mode with the red dots enables a user to notice a certain piece of information corresponding to the red dots at the first time in the browsing process, and the corresponding red dots disappear after clicking the piece of information. If the entire red messages are blindly placed on top of the entire list, the experience is poor for the user, since some of them are already what the user is no longer interested in, but they still belong to the category of red messages because the user has not yet read.
Disclosure of Invention
The embodiment of the invention provides a list browsing method, a list browsing device, a list browsing terminal and a list browsing storage medium based on red point tracking, which are used for solving the problem that in the prior art, when red point information is read, the red point information needs to be searched one by one.
In a first aspect, an embodiment of the present invention provides a method, including:
determining an element with a red dot characteristic in a list page, and enabling the element to display a red dot;
creating a red dot array, and storing element information of elements with red dots and position information corresponding to the element information into the red dot array;
and traversing the element information in the red point array by using a red point tracking method, indexing the elements in the list page according to the traversal result and the position information corresponding to the element information, and displaying.
Optionally, the determining an element having a red dot characteristic in the list page and causing the element to display the red dot specifically includes:
receiving a list data protocol, packaging the list page by using the list data protocol, and enabling each element in the list page to have a Boolean-type red dot attribute;
receiving data content and storing the data content in a corresponding element;
determining an element having red dot characteristics according to the data content, and setting a red dot attribute of the element having red dot characteristics to true so that the element displays a red dot.
Optionally, before traversing the element information in the red dot array by using the red dot tracking method, and indexing and displaying the elements in the list page according to the traversal result and the position information of the elements, the method further includes: binding an interface of a red point tracking method associated with the red point array with an interactable component; wherein the interactable component is configured to receive a trigger signal to invoke a red dot tracking method.
Optionally, the traversing the element information in the red dot array by using the red dot tracking method, and indexing and displaying the elements in the list page according to the traversal result and the position information of the elements specifically include:
judging whether the content in the red dot array is empty or not;
if not, determining that the element corresponding to the currently displayed element in the red dot array is an initial index item according to the currently displayed element of the list page, wherein the default index value of the initial index is '0', performing cycle traversal on element information in the red dot array from '0' to the tail one by one to determine a target index item, indexing the element corresponding to the position information in the list page according to the target index item and the position information of the element corresponding to the target index item, and displaying the indexed element.
Optionally, the method further includes: after the data content in the element displaying the red dots is read, deleting the position information corresponding to the element displaying the red dots in the red dot array so as to delete the index of the element.
Optionally, the interaction component includes: click buttons, slide buttons or rocker buttons.
In a second aspect, an embodiment of the present invention provides a list browsing apparatus based on red dot tracking, including:
the determining module is used for determining elements with red dot characteristics in the list page and enabling the elements to display red dots;
the creating module is used for creating a red dot array and storing the element information of the elements with red dots and the position information corresponding to the element information into the red dot array;
and the display module is used for traversing the element information in the red dot array by using a red dot tracking method, indexing the elements in the list page according to the traversal result and the position information corresponding to the element information and displaying the elements.
Optionally, the determining module is specifically configured to: receiving a list data protocol, packaging the list page by using the list data protocol, and enabling each element in the list page to have a Boolean-type red dot attribute;
receiving data content and storing the data content in a corresponding element;
determining an element having red dot characteristics according to the data content, and setting a red dot attribute of the element having red dot characteristics to true so that the element displays a red dot.
Optionally, the system further comprises a binding module, configured to bind, before the presentation module, an interface of the red point tracking method associated with the red point array to the interactive component; wherein the interactable component is configured to receive a trigger signal to invoke a red dot tracking method.
Optionally, the display module is specifically configured to determine whether content in the red dot array is empty;
if not, determining that the element corresponding to the currently displayed element in the red dot array is an initial index item according to the currently displayed element of the list page, wherein the default index value of the initial index is '0', performing cycle traversal on element information in the red dot array from '0' to the tail one by one to determine a target index item, indexing the element corresponding to the position information in the list page according to the target index item and the position information of the element corresponding to the target index item, and displaying the indexed element.
Optionally, the apparatus further comprises: and the deleting module is used for deleting the position information corresponding to the element displaying the red dots in the red dot array so as to delete the index of the element after the data content in the element displaying the red dots is read.
Optionally, the interaction component includes: click buttons, slide buttons or rocker buttons.
In a third aspect, an embodiment of the present invention provides a terminal, where the terminal includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the computer program is executed by the processor, the method implements any one of the above steps of the list browsing method based on red dot tracking.
In a fourth aspect, an embodiment of the present invention provides a storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by the processor, the method implements the steps of any one of the above-mentioned list browsing methods based on red dot tracking.
The invention stores the element information in the element with the red dots by creating the red dot array, traverses the element information in the red dot array one by using a red dot tracking method, determines the position information of the currently traversed target index item in the red dot array, directly indexes the corresponding element in the list page according to the target index item and the position information of the element, and displays the element so that the element is positioned at a reading position, a user can directly click the element to read the data content in the element without sliding or turning the list page to actively search the element with the red dots, thereby providing convenience for the user to read the information.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart of a list browsing method based on red dot tracking according to a first embodiment;
FIG. 2 is a flowchart of a list browsing method based on red dot tracking according to a second embodiment;
FIG. 3 is a flowchart of a list browsing method based on red dot tracking according to a third embodiment;
fig. 4 is a block diagram of a list browsing apparatus based on red dot tracking according to a fourth embodiment;
fig. 5 is a block diagram of a list browsing apparatus based on red dot tracking according to a fifth embodiment;
FIG. 6 is a diagram illustrating browsing a list page based on reddot tracking during chatting according to the sixth embodiment;
fig. 7 is a block diagram of a terminal according to a seventh embodiment.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
A first embodiment of the present invention provides a list browsing method based on red dot tracking, where an execution subject of the method includes but is not limited to a terminal, as shown in fig. 1, the method includes the following specific steps:
step S11, determining elements with red dot characteristics in the list page and enabling the elements to display red dots;
in the step, the element is a component used for storing information in the list page for a user to read the information, when the information stored in the element is updated and modified, the element is determined to have red dot characteristics, then red dots are displayed on the upper right corner of the element, and the specific position for displaying the red dots can be adjusted according to actual needs.
Step S12, creating a red dot array, and storing the element information of the elements with red dots and the position information corresponding to the element information into the red dot array;
in the step, the red dot array is used for specially storing the element information with the red dot characteristic and the position information corresponding to the element, and the elements with the red dot characteristic are uniformly stored, so that the information of each element can be conveniently traversed and searched in the following process; in this step, the element information is the name of the element, and the location information is the location of the element corresponding to the element information in the list page.
And step S13, traversing the element information in the red dot array by using a red dot tracking method, indexing the elements in the list page according to the traversal result and the position information corresponding to the element information, and displaying the elements.
In this step, the element information in the red dot array is traversed one by one to determine the currently traversed element, the element in the list page is indexed according to the determined currently traversed element and the position information of the element in the list page, and then the list page is automatically slid to the position corresponding to the element, so that the element is located at the current reading position.
For example, the list page has six elements a, b, c, d, e and f, wherein the three elements a, d and f have red dot characteristics, and the red dot is displayed at the upper right corner of the list page, in the conventional list browsing method, the list page is turned over after manual sliding required by the user, the three elements a, d and f are found in sequence, and then the data content in the elements is read, but the embodiment of the present invention stores the element information of the three elements a, d and f and the position information of the elements in the list page in a red dot array, and only needs to traverse a, d and f in sequence from the red dot array, so that the list page can jump to the positions corresponding to a, d and f in sequence, for example, when the red dot array is traversed to a, the list page jumps to the position corresponding to element a, so that element a is located at the current reading position, so that the user can directly click element a to read the content in element a, is convenient and quick.
A second embodiment of the present invention provides a list browsing method based on red dot tracking, where an execution subject includes but is not limited to a terminal, as shown in fig. 2, including the following specific steps:
step S21, receiving a list data protocol, packaging the list page by using the list data protocol, and enabling each element in the list page to have a Boolean red dot attribute;
in the step, the corresponding list pages are packaged through a received list data protocol, so that the list pages have a uniform data processing protocol, and elements in the list pages have Boolean-type red dot attributes; because of the Boolean type: there are only true and false values, and not true or false, so the red dot attribute also has two cases of displaying red dots and not displaying red dots.
Step S22, receiving data content, and storing the data content in a corresponding element;
in this step, after receiving the data content from the server, the data content is processed by using the list data protocol, converted into a format supported by the list page, and stored in the corresponding element.
Step S23, determining an element having a red dot characteristic according to the data content, and setting a red dot attribute of the element having the red dot characteristic to true, so that the element displays a red dot.
In this step, the red dot attribute is boolean, since boolean: there are only true and false values, and not true or false, so the red dot attribute has two cases of displaying red dots and not displaying red dots. Specifically, whether an element storing the data content displays red dots or not is determined by receiving the data content sent by the server, and if the data content sent by the server has the red dot characteristic, the red dot attribute of the element is true, that is, the red dots are displayed; if the data content sent by the server side does not have the red dot characteristic, the red dot attribute of the element is false, namely the red dot is not displayed.
Step S24, creating a red dot array, and storing the element information of the elements with red dots and the position information corresponding to the element information into the red dot array;
and step S25, traversing the element information in the red dot array by using a red dot tracking method, indexing the elements in the list page according to the traversal result and the position information corresponding to the element information, and displaying the elements.
In this embodiment, optionally, before step S25, the method further includes binding an interface of the red dot tracking method associated with the red dot array with the interactable component; wherein the interactive component is configured to receive a trigger signal to invoke a red dot tracking method, the interactive component comprising: clicking a button, sliding the button or shaking the button, generating trigger information by clicking the button of the terminal, sliding the button of the terminal or shaking the terminal, and calling a red dot tracking method through the trigger information. For example, eight elements a, b, c, d, e, f, g and h are arranged in a list page, wherein four elements a, d, f and g have red dot characteristics, red dots are displayed on the upper right corner of the list page, when a user reads data in the element f in the list page, only an interaction component needs to be triggered, a red dot tracking method is called, the elements are sequentially and circularly traversed in a red dot array according to the sequence of g, a, d, f and. When the user walks to the position a, the list page jumps to the position corresponding to the element a, so that the element a is positioned at the current reading position, and convenience is provided for the user to browse the information in the list page.
In the embodiment of the invention, the list page is packaged in advance to enable the list page to have a unified list data processing protocol, so that the personalized protocol sent by the server side is processed in a unified manner to obtain data contents, whether the corresponding elements display red points or not is determined according to the data contents, the data contents in the elements displaying the red points are stored in the red point array, the data contents in the red point array are traversed one by one, the list displays the corresponding elements one by one, the user does not need to manually search each red point in the list page, and convenience is provided for the user to browse the list page.
A third embodiment of the present invention provides a list browsing method based on red dot tracking, as shown in fig. 3, including the following steps:
step S31, determining elements with red dot characteristics in the list page and enabling the elements to display red dots;
step S32, creating a red dot array, and storing the element information of the elements with red dots and the position information corresponding to the element information into the red dot array;
step S33, judging whether the content in the red dot array is empty;
if not, determining that the element corresponding to the currently displayed element in the red dot array is an initial index item according to the currently displayed element of the list page, wherein the default index value of the initial index is '0', performing cycle traversal on element information in the red dot array from '0' to the tail one by one to determine a target index item, indexing the element corresponding to the position information in the list page according to the target index item and the position information of the element corresponding to the target index item, and displaying the indexed element.
In this step, the target index item (i.e., the element that needs to be displayed in the list page) is determined by traversing the element information in the red dot array one by one, and the corresponding element in the list page is found by indexing the target index item and the position information of the corresponding element in the list page, so that the list page jumps to the position corresponding to the element, that is, the element is located at the current reading position, and specifically, the element can be located at the top of the list page, so as to facilitate the user to browse the element.
Furthermore, after the data content in the element displaying the red dots is read, the position information corresponding to the red dots in the red dot array is deleted to delete the index of the element. For example, eight elements a, b, c, d, e, f, g and h are in a list page, wherein four elements a, d, f and g have red dot characteristics, and red dots are displayed on the upper right corner of the list page, when a user reads data in the element f in the list page, position information corresponding to f in a red dot array is deleted, at this time, an interactive component is triggered, a red dot tracking method is called, firstly, data content corresponding to f is set as a starting index item, a default index value is '0', and the data content sequentially and circularly traverses in the red dot array according to the sequence of g, a, d and f,. in order to determine a target index item; when the g is traversed, determining the element target index item, finding the element g in the list page, and jumping the list page to a position corresponding to the element to enable the element g to be located at the current reading position; when the element is traversed to a, determining the element as a target index item, finding the element a in the list page, and jumping the list page to a position corresponding to the element to enable the element a to be located at the current reading position; and so on, when the f is traversed, the data content is determined to be the target index item, and since the position information of the corresponding element of the target index item is deleted, the corresponding element f in the list page cannot be found, so that the target index item is skipped to directly traverse the next element.
A fourth embodiment of the present invention provides a list browsing apparatus based on red dot tracking, as shown in fig. 4, including:
a determining module 11, configured to determine an element having a red dot characteristic in a list page, and cause the element to display a red dot;
the creating module 12 is configured to create a red dot array, and store element information of an element on which a red dot is displayed and position information corresponding to the element information into the red dot array;
and the display module 13 is configured to traverse the element information in the red dot array by using a red dot tracking method, index the elements in the list page according to the traversal result and the position information corresponding to the element information, and display the elements.
The device of the embodiment of the invention creates the red dot array through the creation module, stores the element information and the position information of the elements with the red dots by using the red dot array, traverses the element information in the red dot array one by using the red dot tracking method through the display module, determines the currently traversed target index item in the red dot array, and directly displays the element corresponding to the target index item in the list page so that the element is positioned at the reading position, so that a user can directly click the element to read the data content in the element without sliding or turning the list page to actively search the elements with the red dots, thereby providing convenience for the user to read the information.
A fifth embodiment of the present invention provides a list browsing apparatus based on red dot tracking, as shown in fig. 5, including:
the determining module 21 is configured to receive a list data protocol, encapsulate the list page using the list data protocol, and enable each element in the list page to have a boolean red dot attribute;
receiving data content and storing the data content in a corresponding element;
determining an element having red dot characteristics according to the data content, and setting a red dot attribute of the element having red dot characteristics to true so that the element displays a red dot.
The creating module 22 is used for creating a red dot array and storing the element information of the element with the red dots and the position information corresponding to the element information into the red dot array;
a binding module 23, binding the interface of the red point tracking method associated with the red point array with the interactive component; wherein the interactable component is configured to receive a trigger signal to invoke a red dot tracking method;
the display module 24 is used for judging whether the content in the red dot array is empty or not, and if the content in the red dot array is empty, no response is made;
if not, determining that the element corresponding to the currently displayed element in the red dot array is an initial index item according to the currently displayed element of the list page, wherein the default index value of the initial index is '0', performing cycle traversal on element information in the red dot array from '0' to the tail one by one to determine a target index item, indexing the element corresponding to the position information in the list page according to the target index item and the position information of the element corresponding to the target index item, and displaying the indexed element.
In this embodiment, optionally, the apparatus further includes a deleting module, configured to delete the position information corresponding to the red dot in the red dot array to delete the index of the element after the data content in the element in which the red dot is displayed is read. In the module, the position information is deleted to delete the index of the element, so that the element can be skipped when the read element is traversed, the next element is traversed, and the problem that the read element is skipped to the reading position again to cause repeated display when the list page displays the element is solved.
A sixth embodiment of the present invention provides a list browsing apparatus based on red point tracking, where a main carrier of the apparatus is a list page, and a high-level package is performed on a system list control in a design stage, so that the system list control has a uniform data processing protocol, and as long as a data format meets a protocol requirement, a function provided by the apparatus can be directly used, and each element in the list has a boolean redPoint attribute, and it is determined whether the data content has a red point characteristic according to the data content received from a server, and if the data content has the red point characteristic, the current redPoint attribute of the element is set to true, and the apparatus displays a small red point in an upper right corner of the element by default, otherwise, the current point attribute is hidden when the current redPoint attribute is false. In addition, the device also provides an Api method for tracking the red dots and a red dot array, and the element information and the position information of the elements are placed in the red dot array, so that the element information in the red dot array is traversed by using the red dot tracking method, and the next unread element with the red dots in the list page is determined. In the device, the client can bind the method to any interactive component according to the requirement, such as clicking a button, sliding the button or shaking a mobile phone, and then the red dot tracking method is triggered and called.
For example, when a client requests page data from a server, a data processing protocol is first used to format a personalized protocol returned by the server to meet the protocol requirements of the device, and then the device determines whether each item of content in the protocol has a red dot characteristic according to the formatted personalized protocol, and if so, sets the redPoint attribute of the element corresponding to the item of content to true and stores the true attribute in a red dot array, so that a small red dot is displayed in the upper right corner of the element when a list page is displayed.
Specifically, the operation flow of the device comprises:
1. and the server side issues a list page protocol, and the client side performs unified formatting processing and completes assembly after acquiring the list page protocol.
2. The client binds the red point trace Api to any one or more interactable component response events.
3. And analyzing a list protocol and displaying all data contents in the list space, carrying out red dot marking on elements corresponding to the data contents according to the data contents, and storing all red dot element information and corresponding position information in a red dot array from small to large.
4. The user interacts with the bound component, such as double-clicking or long-pressing a button to invoke the red dot tracking method.
5. When the red point tracking method is triggered and called, firstly, whether the red point array is empty or not is judged, and the default index value is 0 "
a) If the number is null, no correspondence is made;
b) if not, the device traverses the content in the red dot array of the list from 0 to the end;
i. if the current index value is the last element of the red dot array, the index value is set to 0, and the step b is executed again)
if the current index value is not the last element of the red dot array, determining that the element corresponding to the currently displayed element in the red dot array is a starting index item and the default index value is '0' according to the currently displayed element of the list page, circularly traversing the element information in the red dot array from '0' to the tail one by one to determine a target index item, indexing the element corresponding to the position information in the list page according to the target index item and the position information of the element corresponding to the target index item, adding 1 to the 'index value', and automatically sliding the list page to the position corresponding to the target index item to enable the item to be positioned at the top of the current reading position.
In the embodiment of the present invention, the process of browsing the list page during chatting includes, in conjunction with fig. 6:
1. entering a list page and requesting a list protocol from a server;
2. after receiving the data return, performing data processing, red point array creation and binding of a tracking interface method API;
3. user click interaction component to trigger tracking operation
4. Judging whether the red dot array is empty:
if the state is empty, no response is made;
if not, traversing the red point array, judging whether the current traversal item is the last element, if so, setting the current index as 0; and if not, adding 1 to the current index, reading the element position corresponding to the current index, and automatically sliding the list page to the element position for display.
In the embodiment of the invention, red dot data information can be more conveniently searched under the condition of not destroying the original data sequence; the whole device band is more complete and flexible by adding and binding the tracking API, and the tracking method can be bound to any interactive component in the embodiment of the invention. In addition, the customization of the universal data protocol enables the set of device to have the compatibility of meeting any interface protocol, and the access party only needs to perform protocol processing and encapsulation according to the protocol requirement and then returns the protocol of the universal format to use the set of device. The device encapsulates the system list component by using the universal data protocol, so that the device has the capability of being written once and being used at any position in a project, and the internal logic of the device does not need to be developed again.
A seventh embodiment of the present invention provides a terminal, as shown in fig. 7, including a memory 1, a processor 2, and a communication bus 3; the communication bus 3 is used for realizing connection communication between the processor 2 and the memory 1;
specifically, in the embodiment of the present invention, the Processor 2 may be a general-purpose Processor, such as a Central Processing Unit (CPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement the embodiment of the present invention. Wherein the memory is used for storing executable instructions of the processor;
a memory 1 for storing the program code and transferring the program code to the processor. The Memory may include Volatile Memory (Volatile Memory), such as Random Access Memory (RAM); the Memory may also include a Non-Volatile Memory (Non-Volatile Memory), such as a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, HDD), or a Solid-State Drive (SSD); the memory may also comprise a combination of memories of the kind described above.
Specifically, in the embodiment of the present invention, the processor is configured to execute a program of a list browsing method based on red dot tracking stored in the memory, and when the program of the list browsing method based on red dot tracking is executed, the following steps are implemented:
determining an element with red dot characteristics in a list page, and enabling the element to display red dots;
creating a red dot array, and storing element information of elements with red dots and position information corresponding to the element information into the red dot array;
and thirdly, traversing the element information in the red point array by using a red point tracking method, and displaying the elements in the index list page according to the traversal result and the position information corresponding to the element information.
The specific embodiment of the steps of the method can be referred to in the first, second and third embodiments, and the detailed description of the embodiment is not repeated here.
An eighth embodiment of the invention provides a storage medium having a computer program stored thereon, which computer program, when being executed by a processor, realizes the method steps of:
determining an element with red dot characteristics in a list page, and enabling the element to display red dots;
creating a red dot array, and storing element information of elements with red dots and position information corresponding to the element information into the red dot array;
and thirdly, traversing the element information in the red point array by using a red point tracking method, and displaying the elements in the index list page according to the traversal result and the position information corresponding to the element information.
The specific embodiment of the steps of the method can be referred to in the first, second and third embodiments, and the detailed description of the embodiment is not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (14)
1. A list browsing method based on red dot tracking is characterized by comprising the following steps:
determining an element with a red dot characteristic in a list page, and enabling the element to display a red dot;
creating a red dot array, and storing element information of elements with red dots and position information corresponding to the element information into the red dot array;
and traversing the element information in the red point array by using a red point tracking method, indexing the elements in the list page according to the traversal result and the position information corresponding to the element information, and displaying.
2. The method for browsing lists based on red dot tracking according to claim 1, wherein the determining an element having a red dot characteristic in a list page and causing the element to display a red dot specifically comprises:
receiving a list data protocol, packaging the list page by using the list data protocol, and enabling each element in the list page to have a Boolean-type red dot attribute;
receiving data content and storing the data content in a corresponding element;
determining an element having red dot characteristics according to the data content, and setting a red dot attribute of the element having red dot characteristics to true so that the element displays a red dot.
3. The list browsing method based on red dot tracking according to claim 1, wherein before traversing the element information in the red dot array by using the red dot tracking method, indexing and displaying the elements in the list page according to the traversal result and the position information of the elements, the method further comprises: binding an interface of a red point tracking method associated with the red point array with an interactable component; wherein the interactable component is configured to receive a trigger signal to invoke a red dot tracking method.
4. The list browsing method based on red dot tracking according to claim 1, wherein the traversing the element information in the red dot array by using the red dot tracking method, and indexing and displaying the elements in the list page according to the traversal result and the position information of the elements specifically comprise:
judging whether the content in the red dot array is empty, and if so, not responding;
if not, determining that the element corresponding to the currently displayed element in the red dot array is an initial index item according to the currently displayed element of the list page, wherein the default index value of the initial index is '0', performing cycle traversal on element information in the red dot array from '0' to the tail one by one to determine a target index item, indexing the element corresponding to the position information in the list page according to the target index item and the position information of the element corresponding to the target index item, and displaying the indexed element.
5. The method for browsing through lists based on red dot tracking according to claim 4, further comprising: after the data content in the element displaying the red dots is read, deleting the position information corresponding to the element displaying the red dots in the red dot array so as to delete the index of the element.
6. The method for browsing through lists based on red dot tracking as recited in claim 3 wherein said interaction component comprises: click buttons, slide buttons or rocker buttons.
7. A list browsing apparatus based on red dot tracking, comprising:
the determining module is used for determining elements with red dot characteristics in the list page and enabling the elements to display red dots;
the creating module is used for creating a red dot array and storing the element information of the elements with red dots and the position information corresponding to the element information into the red dot array;
and the display module is used for traversing the element information in the red dot array by using a red dot tracking method, indexing the elements in the list page according to the traversal result and the position information corresponding to the element information and displaying the elements.
8. The list browsing device based on red dot tracking of claim 7, wherein the determining module is specifically configured to: receiving a list data protocol, packaging the list page by using the list data protocol, and enabling each element in the list page to have a Boolean-type red dot attribute;
receiving data content and storing the data content in a corresponding element;
determining an element having red dot characteristics according to the data content, and setting a red dot attribute of the element having red dot characteristics to true so that the element displays a red dot.
9. The list browsing device based on red point tracking of claim 7, further comprising a binding module for binding an interface of a red point tracking method associated with the red point array with an interactable component before the exposing module; wherein the interactable component is configured to receive a trigger signal to invoke a red dot tracking method.
10. The list browsing device based on red dot tracking of claim 7, wherein the presentation module is specifically configured to determine whether the content in the red dot array is empty;
if not, determining that the element corresponding to the currently displayed element in the red dot array is an initial index item according to the currently displayed element of the list page, wherein the default index value of the initial index is '0', performing cycle traversal on element information in the red dot array from '0' to the tail one by one to determine a target index item, indexing the element corresponding to the position information in the list page according to the target index item and the position information of the element corresponding to the target index item, and displaying the indexed element.
11. The list browsing device based on red dot tracking as claimed in claim 10, wherein said device further comprises: and the deleting module is used for deleting the position information corresponding to the element displaying the red dots in the red dot array so as to delete the index of the element after the data content in the element displaying the red dots is read.
12. The red-dot tracking-based list browsing apparatus according to claim 9, wherein said interaction component comprises: click buttons, slide buttons or rocker buttons.
13. A terminal, characterized in that the terminal comprises a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the list browsing method based on red dot tracking according to any one of claims 1-6.
14. A storage medium having stored thereon a computer program for implementing the steps of the method for browsing lists based on red dot tracking according to any one of claims 1-6 when being executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811277318.9A CN109446450B (en) | 2018-10-30 | 2018-10-30 | List browsing method, device, terminal and storage medium based on red dot tracking |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811277318.9A CN109446450B (en) | 2018-10-30 | 2018-10-30 | List browsing method, device, terminal and storage medium based on red dot tracking |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109446450A CN109446450A (en) | 2019-03-08 |
CN109446450B true CN109446450B (en) | 2022-01-28 |
Family
ID=65549887
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811277318.9A Active CN109446450B (en) | 2018-10-30 | 2018-10-30 | List browsing method, device, terminal and storage medium based on red dot tracking |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109446450B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110215696A (en) * | 2019-07-23 | 2019-09-10 | 网易(杭州)网络有限公司 | Label display methods, device, electronic equipment and the storage medium of game |
CN112286419B (en) * | 2019-07-24 | 2024-03-08 | 腾讯科技(深圳)有限公司 | Method, device, terminal and storage medium for loading list data |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103001850A (en) * | 2012-01-16 | 2013-03-27 | 陈晓亮 | System and method for forwarding messages |
CN103870464A (en) * | 2012-12-10 | 2014-06-18 | 腾讯科技(北京)有限公司 | Unread message processing method, display method and device |
CN104883430A (en) * | 2015-04-16 | 2015-09-02 | 努比亚技术有限公司 | Mobile terminal, processing method of unread superscripts of mobile terminal, and processing device of unread superscripts of mobile terminal |
CN105049594A (en) * | 2015-05-28 | 2015-11-11 | 腾讯科技(深圳)有限公司 | Unread message playing method and unread message playing device |
CN107132963A (en) * | 2017-05-08 | 2017-09-05 | 深圳乐信软件技术有限公司 | Red message display method, elimination method and related device |
CN107609041A (en) * | 2017-08-16 | 2018-01-19 | 北京五八信息技术有限公司 | List page generation method and device |
CN108038362A (en) * | 2017-11-30 | 2018-05-15 | 努比亚技术有限公司 | People of unread information display methods, device and computer-readable recording medium |
CN108459895A (en) * | 2018-03-02 | 2018-08-28 | 深圳前海桔子信息技术有限公司 | Identity configuration method, device, equipment and storage medium are not read |
-
2018
- 2018-10-30 CN CN201811277318.9A patent/CN109446450B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103001850A (en) * | 2012-01-16 | 2013-03-27 | 陈晓亮 | System and method for forwarding messages |
CN103870464A (en) * | 2012-12-10 | 2014-06-18 | 腾讯科技(北京)有限公司 | Unread message processing method, display method and device |
CN104883430A (en) * | 2015-04-16 | 2015-09-02 | 努比亚技术有限公司 | Mobile terminal, processing method of unread superscripts of mobile terminal, and processing device of unread superscripts of mobile terminal |
CN105049594A (en) * | 2015-05-28 | 2015-11-11 | 腾讯科技(深圳)有限公司 | Unread message playing method and unread message playing device |
CN107132963A (en) * | 2017-05-08 | 2017-09-05 | 深圳乐信软件技术有限公司 | Red message display method, elimination method and related device |
CN107609041A (en) * | 2017-08-16 | 2018-01-19 | 北京五八信息技术有限公司 | List page generation method and device |
CN108038362A (en) * | 2017-11-30 | 2018-05-15 | 努比亚技术有限公司 | People of unread information display methods, device and computer-readable recording medium |
CN108459895A (en) * | 2018-03-02 | 2018-08-28 | 深圳前海桔子信息技术有限公司 | Identity configuration method, device, equipment and storage medium are not read |
Also Published As
Publication number | Publication date |
---|---|
CN109446450A (en) | 2019-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101496875B1 (en) | Apparatus and methods for retrieving/downloading content on a communication device | |
US20090307602A1 (en) | Systems and methods for creating and sharing a presentation | |
US6788316B1 (en) | Method of designating multiple hypertext links to be sequentially viewed | |
US8819587B1 (en) | Methods of managing items in a shared workspace | |
US20060155740A1 (en) | Method, System and Program Product for Locating Remote Source Files | |
CN105867714A (en) | Application downloading method, apparatus and system | |
US10375149B2 (en) | Application registration and interaction | |
WO2011140968A1 (en) | Method and device for adding menu items in android menu | |
KR20090025275A (en) | Method, apparatus and computer program product for providing metadata entry | |
CN109446450B (en) | List browsing method, device, terminal and storage medium based on red dot tracking | |
CN103699597A (en) | Method for downloading file through browser and browser | |
CN109361948B (en) | Interface management method, intelligent terminal and readable storage medium | |
CN112689170B (en) | Content playing method of display terminal, display terminal and readable storage medium | |
US8595224B2 (en) | Smart path finding for file operations | |
CN105187560A (en) | Cloud server-based data pushing method and device | |
US8209324B2 (en) | Method and system for providing information in virtual space | |
US20240103928A1 (en) | Information processing method and apparatus for animation resource, device, medium and product | |
CN110825600B (en) | Page information processing method, server and page display device | |
CN110809027A (en) | Information processing method, information processing device and electronic equipment | |
CN104808995B (en) | A kind of method and apparatus for across application collection application content | |
CN103577460B (en) | Method and system for uploading pictures | |
CN109814778B (en) | Method and device for realizing small program tab, electronic equipment and medium | |
CN111666074B (en) | Web application customization method, related device and system | |
CN103593423A (en) | Method and device for loading video file information in browser | |
CN106341449A (en) | Data synchronization method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |