Data display method, device and equipment

By maintaining 2 times the amount of data in the carousel queue and setting the scroll amount to zero when scrolling to the starting position of the extended data, the visual jump problem caused by reset in the data carousel is solved and the user experience is improved.

CN113553527BActive Publication Date: 2024-08-23BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110921243.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-11
Publication Date
2024-08-23
Estimated Expiration
2041-08-11

AI Technical Summary

Technical Problem

In the data carousel display, when the data scrolls to the end, it needs to be reset to the starting position, resulting in inconsistent data before and after the reset, resulting in visual jumps and affecting the user experience.

Method used

By maintaining 2 times the amount of data in the carousel queue, and setting the scroll amount to zero when scrolling to the starting position of the extended data, it avoids resetting to the end of the data, thereby maintaining data consistency and achieving a carousel effect without visual jumps.

Benefits of technology

This ensures the consistency of data before and after reset during the carousel process, avoids visual jumps, and improves the user's browsing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113553527B
    Figure CN113553527B
Patent Text Reader

Abstract

This application discloses a data display method. Starting from the initial state of a carousel, a carousel queue is scrolled and displayed in a carousel area. This carousel queue includes a first data queue and a second data queue, both containing data entries from the original data set. That is, the carousel queue contains twice the number of data entries. When the first data queue scrolls out of the carousel area and the first end of the carousel area aligns with the first data entry of the second data queue, to maintain the twice-sized data volume of the carousel queue, a third data queue is generated by copying data entries from the original data set. This third data queue is then appended to the end of the second data queue, resulting in a new carousel queue composed of the second and third data queues. Simultaneously, the scroll increment of the carousel queue is set to zero, allowing the new carousel queue to scroll and display in the carousel area from the initial state. This process is repeated cyclically to achieve data carousel display without visual jumps.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer processing technology, and in particular to a data display method, device and equipment. Background Art

[0002] With the continuous development of Internet technology, in order to improve the user experience, the data to be displayed is played in a loop on the display end through the carousel technology. Among them, the carousel technology can continuously display the data in the agreed order, giving people an effect of infinite loop and displaying the messages in the first place.

[0003] Currently, when data is displayed in a carousel, when the data scrolls to the end, the scrolling device needs to be reset to the starting position of the data to re-carry the data. This operation will cause the data displayed before and after the reset to be different, resulting in visual jumps and affecting the user's browsing experience. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a data display method, device and equipment, which can achieve infinite carousel without causing visual jumps and improve the user browsing experience.

[0005] To achieve the above purpose, the technical solutions provided by the embodiments of the present application are as follows:

[0006] In a first aspect of an embodiment of the present application, a data display method is provided, the method comprising:

[0007] Scrolling and displaying a carousel queue in the carousel area from the initial state of the carousel, the carousel queue comprising a first data queue and a second data queue, the first data queue and the second data queue both comprising data entries in the original data set;

[0008] When the first data queue scrolls out of the carousel area and the first end of the carousel area is aligned with the first data entry in the second data queue, a third data queue including the data entries in the original data set is generated, and the third data queue is spliced ​​at the end of the second data queue to obtain a new carousel queue composed of the second data queue and the third data queue, wherein the first end of the carousel area refers to an end where the data entry leaves the carousel area;

[0009] The carousel scrolling amount is set to zero, so as to scroll and display the new carousel queue in the carousel area starting from the initial state of the carousel.

[0010] In a second aspect of the embodiments of the present application, a data display device is provided, the device comprising:

[0011] A display unit, configured to scroll and display a carousel queue in a carousel area starting from an initial state of the carousel, wherein the carousel queue includes a first data queue and a second data queue, and both the first data queue and the second data queue include data entries in an original data set;

[0012] a generating unit, configured to generate a third data queue including data entries in the original data set when the first data queue scrolls out of the carousel area and the first end of the carousel area is aligned with the first data entry in the second data queue, and to splice the third data queue at the end of the second data queue to obtain a new carousel queue consisting of the second data queue and the third data queue, wherein the first end of the carousel area refers to an end where the data entry leaves the carousel area;

[0013] The configuration unit is used to set the carousel scrolling amount to zero, so as to scroll and display the new carousel queue in the carousel area starting from the initial state of the carousel.

[0014] In a third aspect of the embodiments of the present application, an electronic device is provided, the device comprising: a processor and a memory;

[0015] The memory is used to store instructions or computer programs;

[0016] The processor is used to execute the instructions or computer programs in the memory so that the electronic device executes the method described in the first aspect.

[0017] In a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided, comprising instructions, which, when executed on a computer, enable the computer to execute the method described in the first aspect above.

[0018] It can be seen that the embodiments of the present application have the following beneficial effects:

[0019] The technical solution provided by the embodiment of the present application realizes infinite carousel of data through carousel queues during data carousel. The carousel queue includes a first data queue and a second data queue, and the data entries included in the first data queue are the same as the data entries included in the second data queue. That is, the carousel queue includes data entries of twice the amount of data. During the carousel display process, the carousel queue is scrolled and displayed in the carousel area from the initial state of the carousel. When the first data queue scrolls out of the carousel area and the first end of the carousel area is aligned with the first data in the second data queue, a third data queue including the data entries in the original data set is generated, and the third data queue is spliced ​​at the end of the second data queue to form a new carousel queue. The new carousel queue includes the second data queue and the third data queue. At the same time, the carousel scrolling amount is set to zero to scroll and display the new carousel queue in the carousel area from the initial state of the carousel. . Since the data entries of the first data queue and the second data queue are the same, when the carousel scroll amount is set to zero, it is no longer the time to scroll to the end of the first data queue, but to start the carousel with the first data entry in the second data queue, so that the data displayed in the carousel area before and after the reset is consistent, and no visual jump occurs.

[0020] When the carousel continues, when the second data queue disappears in the carousel area and the first end of the carousel area is aligned with the first data entry of the third data queue, the data entry is copied from the original data and a fourth data queue is generated, and the fourth data queue is spliced ​​at the end of the third data queue to obtain a new carousel queue composed of the third data queue and the fourth data queue. At the same time, the carousel scrolling amount is set to zero, and the new carousel queue is scrolled and displayed in the carousel area starting from the initial state of the re-carousel. That is, the present application keeps the data entries of twice the amount of data in the carousel queue by repeating the above operations continuously, ensuring that when the carousel scrolling amount is reset, the data in the carousel area before and after the reset does not change, thereby avoiding visual jumps. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 A schematic diagram of a data carousel;

[0022] Figure 2 A flow chart of a data display method provided in an embodiment of the present application;

[0023] Figure 3a A schematic diagram of a 2-fold data volume provided in an embodiment of the present application;

[0024] Figure 3b A schematic diagram of a carousel state provided in an embodiment of the present application;

[0025] Figure 3c A schematic diagram of a timing for resetting the scrolling amount provided in an embodiment of the present application;

[0026] Figure 4 A flow chart of another data display method provided in an embodiment of the present application;

[0027] Figure 5a A schematic diagram of determining a target position provided in an embodiment of the present application;

[0028] Figure 5b A schematic diagram of an instant message insertion provided in an embodiment of the present application;

[0029] Figure 5c A schematic diagram of inserting an instant message into a first data queue provided by an embodiment of the present application;

[0030] Figure 5d A schematic diagram of inserting an instant message into a second data queue provided by an embodiment of the present application;

[0031] Figure 6 A structural diagram of a data display device provided in an embodiment of the present application;

[0032] Figure 7 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the embodiments of the present application are further described in detail below in conjunction with the accompanying drawings and specific implementation methods. It is understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. In addition, it should be noted that, for ease of description, only the parts related to the present application are shown in the accompanying drawings, not all structures.

[0034] To facilitate understanding of the technical solution of the present application, the technical terms involved in the present application will be explained below.

[0035] A marquee is a device used to display data in a carousel, and its effect is similar to the carousel display of messages on an LCD display. The mobile marquee is a control that implements a carousel on the mobile terminal. The carousel control will continuously display the messages to be displayed in an agreed order, giving the effect of an infinite loop and displaying messages one after another.

[0036] In the study of carousel technology, it was found that traditional carousel technology only uses 1x data volume to achieve so-called infinite scrolling. In the case of 1x data volume, when the data scrolls to the end, the scrolling device needs to be reset to the beginning. Since there is no data after the last data, the data displayed on the display screen before and after the reset is inconsistent, resulting in jumps and visual incoherence. For example Figure 1As shown, in display state 2, data n has scrolled to the right edge of the display screen, and there is no data after data n. In order to realize the next round of display, data 1 needs to be reset to the left edge of the display screen, that is, enter display state 3, resulting in a visual jump when switching from display state 2 to display state 3.

[0037] Based on this, an embodiment of the present application provides a data display method, which expands the amount of data, and at the same time no longer uses the time when the data scrolls to the end as the time to reset the scrolling amount, but instead uses the time when the data scrolls to the starting position of the expanded data as the time to reset the scrolling amount, thereby ensuring that the data displayed in the carousel area before and after the reset is consistent, and no visual jump occurs. Specifically, a carousel queue to be displayed is obtained, so as to scroll and display the carousel queue in the carousel area from the initial state of the carousel, and the carousel queue includes a first data queue and a second data queue, and the first data queue and the second data queue include data entries in the original data set. That is, the carousel queue includes data entries with twice the amount of data. When the first data queue scrolls out of the carousel area and the first end of the carousel area is aligned with the first data entry of the second data queue, the scrolling amount of the carousel queue is set to zero. That is, when scrolling to the starting position of the second data queue, the scrolling amount is set to zero. Since the data at the starting position of the first data queue is the same as the data at the starting position of the second data queue, the data before and after the reset does not change. At the same time, when the first data queue leaves the carousel area, in order to ensure twice the amount of data in the carousel queue, data entries are copied from the original data set to generate a third data queue, and the third data queue is spliced ​​at the end of the second data queue to obtain a new carousel queue composed of the second data queue and the third data queue, so as to scroll and display the new carousel queue in the carousel area from the initial state of the carousel, and the above operations are performed in a loop in sequence to achieve data carousel without visual jumps.

[0038] It should be noted that the above solution can be implemented by using the RecyclerView control as the carrier of the carousel data, and continuously scrolling the RecyclerView control to achieve the scrolling effect. Since the RecyclerView control supports the display of different types of data types, it can support the display of different types of data from the underlying mechanism. Among them, the data type can include but is not limited to video, picture, and text.

[0039] It should be noted that the carousel area in this embodiment may be a display screen corresponding to a display device, or the carousel area may be a pre-set area on a web page for displaying information, which is not limited in this embodiment.

[0040] To facilitate understanding of the solutions of the embodiments of the present application, the following description will be provided with reference to the accompanying drawings.

[0041] See also Figure 2, which is a flow chart of a data display method provided in an embodiment of the present application, such as Figure 2 As shown, the method may include:

[0042] S201: Scrolling and displaying the carousel queue in the carousel area from the initial state of the carousel.

[0043] In this embodiment, in order to realize the carousel of data, a corresponding carousel queue can be established in advance for the data to be displayed. Among them, the carousel queue is used to display the data entries in the original data set in a carousel, and includes a first data queue and a second data queue. The first data queue and the second data queue both include the data entries in the original data set. That is, the carousel queue includes at least twice the amount of data to be displayed. For example, the original data set includes n data entries, namely [data entry 1, data entry 2, ..., data entry n], then the first data queue is [data entry 1, data entry 2, ..., data entry n], and the second data queue is [data entry 1, data entry 2, ..., data entry n], such as Figure 3a shown.

[0044] The carousel queue can be carried on a carousel device, such as a marquee, and the carousel device controls the scrolling of the carousel queue. After obtaining the carousel queue, the data items in the carousel queue are scrolled and displayed in the carousel area starting from the initial state of the carousel. The initial state of the carousel refers to the state where the scrolling amount of the carousel device is 0. For example Figure 3b As shown, state 1 is the initial state of the carousel, and state 2 is the state where the scrolling amount of the carousel device is non-zero.

[0045] The original data set includes multiple data entries, and the total length of the multiple data entries is greater than the length of the display screen. The length of each of the multiple data entries can be the same or different, which is not limited in this embodiment.

[0046] S202: In response to the first data queue scrolling out of the carousel area and the first end of the carousel area being aligned with the first data entry in the second data queue, a third data queue including the data entries in the original data set is generated, and the third data queue is spliced ​​to the end of the second data queue to obtain a new carousel queue consisting of the second data queue and the third data queue.

[0047] When the next round of carousel starts from the first data entry of the second data queue, in order to ensure that there is at least twice the amount of data in the carousel queue, the data entry is copied from the original data to generate a third data queue, and the third data queue is spliced ​​at the end of the second data queue to obtain a new carousel queue consisting of the second data queue and the third data queue. Figure 3cIn the example of expanding to twice the data volume, in display state 2, since the left side of the display screen is aligned with the gray data entry 1, in order to ensure twice the data volume, the original data is re-copied and added after the gray data entry n, and a new data queue consisting of the second data queue and the third data queue is obtained, such as display state 3, and the above operations are repeated in sequence to achieve an infinite scrolling effect.

[0048] The first end of the carousel area refers to the end where the data entry leaves the carousel area, and the second end of the carousel area refers to the end where the data enters the carousel area. For example, if the data entry scrolls from right to left, the data entry enters from the right end of the carousel area and disappears from the left end of the carousel area. In this case, the first end of the carousel area is the left end of the carousel area, and the second end of the carousel area is the right end of the display screen. For another example, if the data scrolls from left to right, the data entry enters from the left end of the carousel area and disappears from the right end of the carousel area. In this case, the first end of the carousel area is the right end of the carousel area, and the second end of the carousel area is the left end of the carousel area.

[0049] pass Figure 1 and Figure 3c By comparison, it can be seen that the data volume of the carousel queue is expanded from 1 times the data volume to 2 times the data volume, that is, the carousel queue is expanded from one data queue to two data queues, namely the first data queue and the second data queue. It should be noted that the first data queue and the second data queue are used to illustrate the 2 times data volume, and do not limit the data entries in the data queue. For example, the data of white data entry 1-data entry n in display state 1 and display state 2 in 3c is called the first data queue, and the data of gray data entry 1-data entry n is called the second data queue; in display state 3, the data of gray data entry 1-data entry n can also be called the first data queue, and the data of white data entry 1-data entry n can be called the second data queue.

[0050] Optionally, before splicing the third data queue to the second data queue, the first data queue is deleted first, and then the third data queue is spliced ​​to the end of the second data queue, thereby reducing the occupation of memory space.

[0051] S203: The carousel scrolling amount is set to zero, so as to scroll and display a new carousel queue in the carousel area starting from the initial state of the carousel.

[0052] In this embodiment, the timing for setting the scrolling amount to zero is re-determined, that is, when the first data queue disappears from the carousel area and the first end of the carousel area is aligned with the first data entry in the second data queue. When the carousel scrolling amount is set to zero, a new carousel queue is scrolled and displayed in the carousel area starting from the initial state of the carousel. For example Figure 3cWhen scrolling from display state 1 to display state 2, the left end of the display screen is aligned with data entry 1. At this moment, the carousel scrolling amount is set to zero to enter display state 3 and restart the display of the new carousel queue.

[0053] It should be noted that the execution order of S202 and S203 is not limited to the above, and S203 may be executed first and then S202, or S202 and S203 may be executed simultaneously.

[0054] It can be seen that in order to achieve infinite scrolling without visual jumps, it is necessary to ensure that after the last piece of data scrolls to the end of the screen, it continues to scroll along the original scrolling direction. To achieve the above purpose, the embodiment of the present application expands the data volume and re-determines the timing of resetting the scroll volume to ensure that no visual jump occurs when resetting the scroll volume. At the same time, the data items in the original data set are continuously copied to update the carousel queue, thereby achieving infinite carousel of the data items.

[0055] In some application scenarios, it is necessary to display the instant messages that suddenly appear during the carousel process. Since the traditional carousel function does not support insertion, the instant messages cannot be displayed. Moreover, since the instant messages are time-sensitive, it is necessary to achieve the effect that the message will not be displayed again after being displayed once. Based on this, the embodiment of the present application provides a technical solution for inserting instant messages, which will be explained below in conjunction with the accompanying drawings.

[0056] See also Figure 4 , which is a flow chart of a data display method provided in an embodiment of the present application, such as Figure 1 As shown, the method may include:

[0057] S401: During the carousel, the appearance of instant messages is monitored in real time.

[0058] In this embodiment, when the carousel area displays the data items in the original data set in a carousel, the processor can monitor in real time whether an instant message appears. The carousel area displays the data items in the original data set in a carousel queue.

[0059] It should be noted that when no instant message is inserted into the carousel queue, the data in the first data queue and the data in the second data queue are the same, both of which are data items in the original data set. When an instant message is inserted into the carousel queue, the data in the first data queue and the data in the second data queue are different.

[0060] S402: When an instant message is detected, determine a target position in the carousel queue where the instant message is inserted.

[0061] When the appearance of an instant message is monitored, the target position for inserting the instant message is determined in the carousel queue. Specifically, the first data entry being displayed in the carousel queue can be determined first; and the target position corresponding to the first position corresponding to the first data entry in the carousel queue is determined for inserting the instant message into the carousel queue. That is, when determining the insertion position of the instant message, first determine the first data entry currently being displayed in the carousel queue, and then determine the insertion position according to the first position corresponding to the first data entry being displayed, thereby ensuring that the determined target position is located after the position of the first data entry, so as to ensure that the instant message can be displayed after being inserted. Specifically, after determining the first position, the position with a preset length away from the first position can be determined as the target position.

[0062] The first data entry may be the data that has just been displayed on the carousel area, that is, the first data entry is the data that is being displayed and is closest to the second end of the carousel area. The second end of the carousel area refers to the end where the data entry enters the carousel area. Figure 3c As shown, the second end of the carousel area is the right end of the display screen.

[0063] Optionally, after determining the first position corresponding to the first data entry currently being displayed, a second position adjacent to the first position is determined as the target position. The second data entry corresponding to the second position is about to be displayed. That is, the position where the second data entry to be displayed in the carousel queue is located is determined as the target position, so that the instant message can be displayed in time.

[0064] Specifically, the target location can be determined based on the preset message urgency. The urgency can be divided into very urgent, generally urgent, and the like. Optionally, when the urgency corresponding to the instant message is very urgent, such as an earthquake forecast message or a high wind forecast message, the location corresponding to the second data entry to be displayed is determined as the target location. That is, when the instant message is a very urgent message, the location of the second data entry to be displayed is determined as the target location, so that the instant message is displayed promptly at the next moment. The second data entry being displayed can be a data entry in the original data set, or it can be an instant message that has been inserted. For example Figure 5a As shown, the scrolling direction of the carousel queue is from right to left, the data entry being displayed on the right side of the display screen is data entry 4, and the data to be displayed is data entry 5, so the position of data entry 5 is determined as the target position, and data entry 5 moves backward.

[0065] It should be noted that when the second data entry to be displayed is an inserted instant message, the urgency of the inserted instant message and the urgency of the instant message to be inserted can be determined first. If the urgency of the inserted instant message is greater than or equal to the urgency of the instant message to be inserted, in order to ensure that the inserted instant message can be displayed in time, it is possible to continue to traverse backwards until a third data entry that has not been displayed in the carousel queue and is a data entry in the original data set is found, and the location of the third data entry is determined as the target location. Alternatively, continue to traverse backwards until an instant message that has not been displayed in the carousel queue and has an urgency less than the urgency corresponding to the instant message to be inserted is found, and the location of the instant message is determined as the target location.

[0066] Optionally, when the urgency level of the instant message to be inserted is generally urgent, the position at a preset length from the first position is determined as the target position. The preset length can be set according to actual application conditions, and this embodiment does not limit this. For example, the preset length is 50 pixels.

[0067] It should be noted that when the data corresponding to the position with a preset length from the first position is an inserted instant message, in order to ensure the timely display of the instant message, the traversal continues to be performed backwards until the third data entry that has not been displayed in the carousel queue and is a data entry in the original data set is found, and the position where the third data entry is located is determined as the target position. Alternatively, when the data corresponding to the position with a preset length from the first position is an inserted instant message, the urgency of the inserted instant message and the urgency of the instant message to be inserted can be determined first. If the urgency of the inserted instant message is greater than or equal to the urgency of the instant message to be inserted, in order to ensure that the inserted instant message can be displayed in time, the traversal continues to be performed backwards until the third data entry that has not been displayed in the carousel queue and is a data entry in the original data set is found, and the position where the third data entry is located is determined as the target position.

[0068] S103: inserting the instant message into the target location to display the instant message.

[0069] After the target position is determined, the instant message is inserted into the target position, and the instant message is displayed by scrolling the carousel queue.

[0070] Optionally, the carousel queue includes a first data queue and a second data queue, and the target location corresponding to the instant message can be located in the first data queue or in the second data queue. Figure 5b As shown, the instant message is inserted into the first data queue, or the instant message can also be inserted into the second data queue.

[0071] As can be seen from the above, when the data items in the first data queue are no longer displayed in the carousel area, the first data queue is deleted, and multiple data items in the original data set are reassembled after the second data queue. When an instant message is inserted into the first data queue, the first data queue is deleted after it is displayed, so that the instant message is no longer displayed repeatedly. Figure 5c As shown, when the display screen reaches the vertical line position, the first data queue is deleted, a new data queue is generated, and is spliced ​​at the end of the original second data queue. At this time, the original second data queue becomes the first data queue, and the newly generated data queue becomes the second data queue.

[0072] Similarly, when an instant message is inserted into the second data queue, since the first data queue is deleted after display, multiple data entries in the original data set are copied to generate a new data queue and spliced ​​at the end of the second data queue. In this case, the second data queue is updated to the first data queue, and the newly spliced ​​data queue becomes the second data queue. Since the first data queue is deleted after display, the instant message is only displayed once and will not appear in the next carousel. For example Figure 5d As shown, the instant message is inserted into the second data queue, and after the scrolling amount is reset, the data entry 1 of the second data queue is displayed, and the data entries in the original data set are copied and spliced ​​into the second data queue. At this time, the data entries spliced ​​after the second data queue do not include the instant message, so as to ensure that the instant message is displayed only once.

[0073] It can be seen that through the technical solution provided by the embodiment of the present application, the appearance of instant messages is monitored in real time during the process of using the carousel queue to carousel the data items in the original data set. After the instant message is monitored, it is determined that the instant message is inserted into the corresponding target position in the carousel queue, and the instant message is inserted into the target position to display the instant message. That is, when an instant message appears, the instant message is directly inserted into the carousel queue, and when it is scrolled to the target position where the instant message is located, the instant message is displayed. After the instant message is displayed, since the carousel queue is continuously updated by the data items in the original data set, the instant message is covered and no longer appears, thereby realizing the display of instant messages and improving the user experience.

[0074] Based on the above method embodiment, an embodiment of the present application provides a data display device, which will be described below in conjunction with the accompanying drawings.

[0075] See also Figure 6 , which is a structural diagram of a data display device provided in an embodiment of the present application, such as Figure 6 As shown, the device 600 may include: a display unit 601 , a generation unit 602 and a configuration unit 603 .

[0076] The display unit 601 is used to scroll and display a carousel queue in the carousel area starting from the initial state of the carousel, wherein the carousel queue includes a first data queue and a second data queue, and both the first data queue and the second data queue include data entries in the original data set.

[0077] The generating unit 602 is used for generating a third data queue including data entries in the original data set when the first data queue scrolls out of the carousel area and the first end of the carousel area is aligned with the first data entry in the second data queue, and splicing the third data queue at the end of the second data queue to obtain a new carousel queue consisting of the second data queue and the third data queue, wherein the first end of the carousel area refers to the end where the data entry leaves the carousel area.

[0078] The configuration unit 603 is used to set the carousel scrolling amount to zero, so as to scroll and display the new carousel queue in the carousel area starting from the initial state of the carousel.

[0079] In a specific implementation, the device further includes:

[0080] A first determining unit, configured to determine, in response to monitoring an instant message, a first data entry being displayed in the carousel queue;

[0081] A second determining unit, configured to determine a target position for inserting the instant message into the carousel queue according to a first position of the first data entry in the carousel queue;

[0082] The inserting unit is used to insert the instant message into the target location to display the instant message.

[0083] In a specific implementation, the first determination unit is specifically used to determine a first data entry that is being displayed in the carousel queue and is closest to a second end of the carousel area, where the second end of the carousel area refers to an end where a data entry enters the carousel area.

[0084] In a specific implementation, the second determining unit is specifically configured to determine a second position adjacent to the first position as a target position, and a second data entry corresponding to the second position is to be displayed.

[0085] In a specific implementation, the second determination unit is specifically used to, when the second data entry is an inserted instant message, traverse backward from the second position to search for a third data entry that has not yet been displayed and belongs to the original data set; and determine the position of the third data entry as the target position.

[0086] In a specific implementation manner, the target position is located in the first data queue, or the target position is located in the second data queue.

[0087] In a specific implementation, the device further includes:

[0088] A deleting unit is used to delete the first data queue before splicing the third data queue to the end of the second data queue.

[0089] In a specific implementation manner, the data type of the original data entry is at least one of a picture, text, and video, and / or the data type of the instant message is at least one of a picture, text, and video.

[0090] It should be noted that the implementation of each unit in this embodiment can refer to Figure 2 or Figure 4 The method embodiment is not limited in this embodiment.

[0091] Reference below Figure 7 , which shows a schematic diagram of the structure of an electronic device 700 suitable for implementing the embodiment of the present application. The terminal device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (portable android devices), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs (televisions), desktop computers, etc. Figure 7 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0092] like Figure 7 As shown, the electronic device 700 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0093] Typically, the following devices may be connected to the I / O interface 705: an input device 706 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 708 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 709. The communication device 709 may allow the electronic device 700 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 The electronic device 700 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0094] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 709, or installed from the storage device 708, or installed from the ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the method of the embodiment of the present application are executed.

[0095] The electronic device provided in the embodiment of the present application and the data display method provided in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0096] An embodiment of the present application provides a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the data display method as described in any of the above embodiments is implemented.

[0097] It should be noted that the computer-readable medium mentioned above in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0098] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0099] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0100] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the data display method.

[0101] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0102] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0103] The units involved in the embodiments described in this application may be implemented by software or hardware. The name of a unit / module does not limit the unit itself in some cases. For example, a voice data acquisition module may also be described as a "data acquisition module".

[0104] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0105] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0106] According to one or more embodiments of the present application, a data display method is provided, the method comprising:

[0107] Scrolling and displaying a carousel queue in the carousel area from the initial state of the carousel, the carousel queue comprising a first data queue and a second data queue, the first data queue and the second data queue both comprising data entries in the original data set;

[0108] When the first data queue scrolls out of the carousel area and the first end of the carousel area is aligned with the first data entry in the second data queue, a third data queue including the data entries in the original data set is generated, and the third data queue is spliced ​​at the end of the second data queue to obtain a new carousel queue composed of the second data queue and the third data queue, wherein the first end of the carousel area refers to an end where the data entry leaves the carousel area;

[0109] The carousel scrolling amount is set to zero, so as to scroll and display the new carousel queue in the carousel area starting from the initial state of the carousel.

[0110] According to one or more embodiments of the present application, the method further includes:

[0111] In response to monitoring the instant message, determining a first data entry being displayed in the carousel queue;

[0112] Determining a target position in the carousel queue where the instant message is to be inserted according to a first position of the first data entry in the carousel queue;

[0113] The instant message is inserted into the target location to display the instant message.

[0114] According to one or more embodiments of the present application, determining the first data entry being displayed in the carousel queue includes:

[0115] Determine a first data entry that is being displayed in the carousel queue and is closest to a second end of the carousel area, where the second end of the carousel area refers to an end where a data entry enters the carousel area.

[0116] According to one or more embodiments of the present application, determining the target position where the instant message is inserted into the carousel queue according to the first position of the first data entry in the carousel queue includes:

[0117] A second position adjacent to the first position is determined as a target position, and a second data entry corresponding to the second position is to be displayed.

[0118] According to one or more embodiments of the present application, determining a second position adjacent to the first position as a target position includes:

[0119] When the second data entry is an inserted instant message, traverse backward from the second position to search for a third data entry that has not been displayed and belongs to the original data set;

[0120] The location where the third data entry is located is determined as the target location.

[0121] According to one or more embodiments of the present application, the target location is located in the first data queue, or the target location is located in the second data queue.

[0122] According to one or more embodiments of the present application, before splicing the third data queue to the tail of the second data queue, the method further includes:

[0123] Delete the first data queue.

[0124] According to one or more embodiments of the present application, the data type of the original data entry is at least one of picture, text and video, and / or the data type of the instant message is at least one of picture, text and video.

[0125] According to one or more embodiments of the present application, a data display device is provided, the device comprising:

[0126] The display unit is used to scroll and display a carousel queue in a carousel area starting from an initial state of the carousel, wherein the carousel queue includes a first data queue and a second data queue, and both the first data queue and the second data queue include data entries in an original data set.

[0127] A generating unit is used for generating a third data queue including data entries in the original data set when the first data queue scrolls out of the carousel area and the first end of the carousel area is aligned with the first data entry in the second data queue, and splicing the third data queue at the end of the second data queue to obtain a new carousel queue consisting of the second data queue and the third data queue, wherein the first end of the carousel area refers to an end where the data entry leaves the carousel area.

[0128] The configuration unit is used to set the carousel scrolling amount to zero, so as to scroll and display the new carousel queue in the carousel area starting from the initial state of the carousel.

[0129] According to one or more embodiments of the present application, the device further includes:

[0130] A first determining unit, configured to determine, in response to monitoring an instant message, a first data entry being displayed in the carousel queue;

[0131] A second determining unit, configured to determine a target position for inserting the instant message into the carousel queue according to a first position of the first data entry in the carousel queue;

[0132] The inserting unit is used to insert the instant message into the target location to display the instant message.

[0133] According to one or more embodiments of the present application, the first determination unit is specifically used to determine a first data entry that is being displayed in the carousel queue and is closest to a second end of the carousel area, where the second end of the carousel area refers to an end where the data entry enters the carousel area.

[0134] According to one or more embodiments of the present application, the second determining unit is specifically configured to determine a second position adjacent to the first position as a target position, and a second data entry corresponding to the second position is to be displayed.

[0135] According to one or more embodiments of the present application, the second determination unit is specifically used to, when the second data entry is an inserted instant message, traverse backward from the second position to search for a third data entry that has not yet been displayed and belongs to the original data set; and determine the position where the third data entry is located as the target position.

[0136] According to one or more embodiments of the present application, the target location is located in the first data queue, or the target location is located in the second data queue.

[0137] According to one or more embodiments of the present application, the device further includes:

[0138] A deleting unit is used to delete the first data queue before splicing the third data queue to the end of the second data queue.

[0139] According to one or more embodiments of the present application, the data type of the original data entry is at least one of picture, text and video, and / or the data type of the instant message is at least one of picture, text and video.

[0140] According to one or more embodiments of the present application, an electronic device is provided, the device comprising: a processor and a memory;

[0141] The memory is used to store instructions or computer programs;

[0142] The processor is used to execute the instructions or computer programs in the memory so that the electronic device executes the data display method.

[0143] According to one or more embodiments of the present application, a computer-readable storage medium is provided, comprising instructions, which, when executed on a computer, enable the computer to execute the above-mentioned data display method.

[0144] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the system or device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0145] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0146] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0147] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0148] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A data display method, characterized in that: The method comprises: Scrolling and displaying a carousel queue in the carousel area from the initial state of the carousel, the carousel queue comprising a first data queue and a second data queue, the first data queue and the second data queue both comprising data entries in the original data set; When the first data queue scrolls out of the carousel area and the first end of the carousel area is aligned with the first data entry in the second data queue, a third data queue including the data entries in the original data set is generated, and the third data queue is spliced ​​at the end of the second data queue to obtain a new carousel queue composed of the second data queue and the third data queue, wherein the first end of the carousel area refers to an end where the data entry leaves the carousel area; Setting the carousel scrolling amount to zero, so as to scroll and display the new carousel queue in the carousel area starting from the initial state of the carousel; When the second data queue scrolls out of the carousel area and the first end of the carousel area is aligned with the first data entry in the third data queue, a fourth data queue including the data entries in the original data set is generated, and the fourth data queue is spliced ​​at the end of the third data queue to obtain a new carousel queue consisting of the third data queue and the fourth data queue, wherein the first end of the carousel area refers to an end where the data entry leaves the carousel area; Setting the carousel scrolling amount to zero, so as to scroll and display the new carousel queue in the carousel area starting from the initial state of the carousel; The above operation is repeated continuously to ensure that there are always twice the amount of data entries in the carousel queue.

2. The method according to claim 1, characterized in that The method further comprises: In response to detecting the instant message, Determine a first data entry being displayed in the carousel queue; Determining a target position in the carousel queue where the instant message is to be inserted according to a first position of the first data entry in the carousel queue; The instant message is inserted into the target location to display the instant message.

3. The method according to claim 2, characterized in that The determining the first data entry being displayed in the carousel queue includes: Determine a first data entry that is being displayed in the carousel queue and is closest to a second end of the carousel area, where the second end of the carousel area refers to an end where a data entry enters the carousel area.

4. The method according to claim 3, characterized in that The step of determining a target position for inserting the instant message into the carousel queue according to the first position of the first data entry in the carousel queue comprises: A second position adjacent to the first position is determined as a target position, and a second data entry corresponding to the second position is to be displayed.

5. The method according to claim 4, characterized in that The step of determining a second position adjacent to the first position as a target position includes: When the second data entry is an inserted instant message, traverse backward from the second position to search for a third data entry that has not been displayed and belongs to the original data set; The location of the third data entry is determined as the target location.

6. The method according to any one of claims 2 to 5, characterized in that: The target location is located in the first data queue, or the target location is located in the second data queue.

7. The method according to any one of claims 1 to 5, characterized in that: Before splicing the third data queue at the end of the second data queue, the method further includes: Delete the first data queue.

8. The method according to any one of claims 1 to 5, characterized in that: The data type of the original data entry is at least one of a picture, text and video, and / or the data type of the instant message is at least one of a picture, text and video.

9. A data display device, characterized in that: The device comprises: A display unit, configured to scroll and display a carousel queue in a carousel area starting from an initial state of the carousel, wherein the carousel queue includes a first data queue and a second data queue, and both the first data queue and the second data queue include data entries in an original data set; a generating unit, configured to generate a third data queue including data entries in the original data set when the first data queue scrolls out of the carousel area and the first end of the carousel area is aligned with the first data entry in the second data queue, and to splice the third data queue at the end of the second data queue to obtain a new carousel queue consisting of the second data queue and the third data queue, wherein the first end of the carousel area refers to an end where the data entry leaves the carousel area; A configuration unit, configured to set the carousel scrolling amount to zero, so as to scroll and display the new carousel queue in the carousel area starting from the initial state of the carousel; The generating unit is further configured to generate a fourth data queue including data entries in the original data set when the second data queue scrolls out of the carousel area and the first end of the carousel area is aligned with the first data entry in the third data queue, and to splice the fourth data queue to the end of the third data queue to obtain a new carousel queue consisting of the third data queue and the fourth data queue, wherein the first end of the carousel area refers to an end where the data entry leaves the carousel area; The configuration unit is also used to set the carousel scrolling amount to zero, so as to scroll and display the new carousel queue in the carousel area from the initial state of the carousel; and to repeat the above operation continuously to ensure that there are always data entries of twice the amount of data in the carousel queue.

10. An electronic device, comprising: Processor and memory; The memory is used to store instructions or computer programs; The processor is used to execute the instructions or computer programs in the memory so that the electronic device executes the method according to any one of claims 1 to 8.

11. A computer-readable storage medium comprising instructions, which, when executed on a computer, enables the computer to execute the method according to any one of claims 1 to 8.