An information display method and device, electronic equipment and storage medium
Patent Information
- Application Number
- CN202510324224.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-18
- Publication Date
- 2026-09-18
AI Technical Summary
[0003]然而,该方式在应用程序出现卡顿并恢复的情况下,为保证在规定时长内完成滚动动画,会出现跳过部分信息展示的情况,使得部分信息丢失,影响观看体验
[0016] Fifthly, this disclosure also provides a computer program product, characterized in that the computer program product includes a computer program, which, when executed by a processor, implements the information display method as described in any of the embodiments of this disclosure.
Smart Images

Figure CN122777037A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and in particular to an information display method, apparatus, electronic device, and storage medium. Background Technology
[0002] In the application's user interface, information can be scrolled across a designated display area, achieving a marquee effect. Related technologies can achieve this scrolling by adding animation to the container holding the information. Currently, an animation duration needs to be set to ensure the information completes its scrolling animation within that time.
[0003] However, if the application freezes and then recovers, this method may skip some information in order to ensure that the scrolling animation is completed within the specified time, resulting in the loss of some information and affecting the viewing experience. Summary of the Invention
[0004] This disclosure provides an information display method, apparatus, electronic device, and storage medium that can ensure complete information display and improve user experience.
[0005] In a first aspect, embodiments of this disclosure provide an information display method, including:
[0006] In response to the failure to receive a first display signal within a first time interval, the first animation corresponding to the first layer is paused; wherein the first display signal includes signals repeatedly received during the display of the first animation; wherein the first layer contains first information; wherein the first animation includes an animation that displays the first information in a scrolling manner.
[0007] In response to resuming receiving the first display signal, the first animation is displayed according to a preset scrolling step.
[0008] Secondly, this disclosure also provides an information display device, including:
[0009] The first display module is configured to pause the first animation corresponding to the first layer in response to not receiving the first display signal within a first time interval; wherein the first display signal includes signals repeatedly received during the display of the first animation; wherein the first layer contains first information; wherein the first animation includes an animation that displays the first information in a scrolling manner.
[0010] The second display module is used to display the first animation according to a preset scrolling step size in response to resuming the reception of the first display signal.
[0011] Thirdly, embodiments of this disclosure also provide an electronic device, the electronic device comprising:
[0012] One or more processors;
[0013] Storage device for storing one or more programs.
[0014] When the one or more programs are executed by the one or more processors, the one or more processors implement the information display method as described in any of the embodiments of this disclosure.
[0015] Fourthly, embodiments of this disclosure also provide a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the information display method as described in any of the embodiments of this disclosure.
[0016] Fifthly, this disclosure also provides a computer program product, characterized in that the computer program product includes a computer program, which, when executed by a processor, implements the information display method as described in any of the embodiments of this disclosure.
[0017] In the technical solution of this disclosure embodiment, in response to the failure to receive a first display signal within a first time interval, the first animation corresponding to the first layer can be paused; wherein the first display signal includes signals repeatedly received during the display of the first animation; wherein the first layer contains first information; wherein the first animation includes an animation that cyclically displays the first information in a scrolling manner; in response to the resumption of receiving the first display signal, the first animation is displayed according to a preset scroll step size. By fixing the scroll step size, it is possible to prevent the display information from jumping when the stutter is resumed, ensuring the complete display of information and improving the user experience. Attached Figure Description
[0018] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0019] Figure 1 This is a flowchart illustrating an information display method provided in an embodiment of the present disclosure;
[0020] Figure 2 This is a schematic diagram illustrating the scrolling effect of a scrolling animation in the context of a stutter recovery, as described in the related technologies and an information display method provided in this disclosure embodiment.
[0021] Figure 3 This is a flowchart illustrating an information display method provided in an embodiment of the present disclosure;
[0022] Figure 4This is a flowchart illustrating an information display method provided in an embodiment of the present disclosure;
[0023] Figure 5 is a schematic diagram of the layer scrolling display process in an information display method provided in an embodiment of this disclosure;
[0024] Figure 6 This is a schematic diagram of the structure of an information display device provided in an embodiment of the present disclosure;
[0025] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0026] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0027] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0028] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0029] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0030] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0031] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0032] To clearly explain the information display method provided in this disclosure, the relevant technical terms are explained as follows:
[0033] Monitor frequency (also known as refresh rate / refresh frequency, etc.) refers to the number of times a monitor can refresh the screen within a unit of time (usually 1 second); graphics card frame rate refers to the number of times a graphics card can render the screen within a unit of time (usually 1 second).
[0034] When the monitor's refresh rate and the graphics card's refresh rate are mismatched, different rendered images can easily be displayed on the monitor simultaneously, causing screen tearing. To avoid this, Vertical Sync (V-Sync) technology can be used to synchronize the graphics card's frame rate and the monitor's refresh rate. For example, after the monitor finishes refreshing the current frame, it can send a vertical sync signal to the graphics card, causing the graphics card to render the next frame, thus ensuring that the monitor and graphics card refresh rates are synchronized.
[0035] Figure 1 This is a flowchart illustrating an information display method provided in an embodiment of this disclosure. This embodiment is applicable to situations where information is displayed in a scrolling manner within a user interface, such as displaying a text marquee in a user interface. The method can be executed by an information display device, which can be implemented in software and / or hardware and can be configured in an electronic device, such as a mobile phone, computer, or other computer equipment.
[0036] like Figure 1 As shown, the information display method provided in this embodiment may include:
[0037] S110. In response to not receiving the first display signal within the first time interval, pause the first animation corresponding to the first layer.
[0038] In this embodiment of the disclosure, the first layer may contain first information, and the first information may be composed of at least one element such as characters, text, or graphics. Different applications or different user interfaces of the same application may display first layers carrying different first information. For example, in a content creation application, the first layer can be used to display relevant information about the content (such as a description, background music, and content tags) in the content display interface.
[0039] The first layer can be displayed in a preset display area of the user interface. It is understood that the portion of the first layer within the preset display area can be displayed on the user interface, while the portion outside the preset display area can be hidden. The first layer can display animation effects; for example, in this embodiment, the first layer can be displayed within the preset display area according to a first animation. The first animation can include an animation that cyclically displays first information in a scrolling manner. The scrolling direction, number of cycles, and scrolling step size (referred to as the preset scrolling step size in this disclosure) of the first animation can be pre-configured.
[0040] In this embodiment of the disclosure, the first display signal may include signals repeatedly received during the first animation display process, such as a vertical synchronization signal sent from the display of the first layer to the information display device, or a signal determined based on the vertical synchronization signal. The first time interval may be preset based on experience or experimental values.
[0041] In this embodiment, in response to opening the user interface, a first layer can be displayed within a preset display area of the user interface. Furthermore, in response to receiving a first display signal, a first animation corresponding to the first layer can be displayed within the preset display area according to a preset scroll step. Displaying the first animation according to the preset scroll step may include moving the first layer according to the preset scroll step to achieve the effect of the first animation.
[0042] Specifically, if the time interval between the last reception of the first display signal and the current reception of the first display signal is greater than a first time interval, it can be considered that no first display signal was received within the first time interval. For example, in cases of server malfunction, network malfunction, or high device load, screen stuttering may occur, and in such cases, the time interval for receiving the first display signal is often greater than the first time interval. Therefore, in response to the absence of a first display signal within the first time interval, the display of the first animation based on a preset scroll step can be paused; that is, the movement of the first layer based on the preset scroll step can be paused, thus presenting an effect of automatic pause of the first animation on the user interface.
[0043] S120, In response to resuming receiving the first display signal, display the first animation according to a preset scrolling step.
[0044] In this embodiment of the present disclosure, if the first display signal is received again after a first time interval, it can be considered that the reception of the first display signal has resumed. At this time, the first animation can continue to be displayed according to a preset scrolling step size, based on the paused first animation.
[0045] For example, Figure 2This is a schematic diagram illustrating the scrolling effect of a scrolling animation in the context of a stuttering recovery, as described in the related technologies and an information display method provided in this disclosure embodiment. Figure 2 A solid line frame can represent the first layer, while a dashed line frame can represent the preset display area. Figure 2 Figure (a) shows the scrolling effect of the scrolling animation in the case of stuttering recovery in the relevant technology. Figure 2 Figure (b) illustrates the scrolling effect of a scrolling animation in the case of a stutter recovery in an information display method provided by an embodiment of this disclosure.
[0046] See Figure 2 In Figure (a), the scrolling animation in the relevant technology needs to be completed within a specified time. Therefore, after the lag is resolved, the "1-11" displayed before the lag can be jumped to "15-20", thus losing the content of "12-14", making it difficult for users to read and resulting in a decline in experience.
[0047] See Figure 2 In Figure (b), the information display method provided in this embodiment of the present disclosure has a fixed scrolling step size. Therefore, after the lag is recovered, "2-12" can continue to be scrolled and displayed on the basis of "1-11" displayed before the lag, so as to ensure that each frame of animation is displayed completely, avoid the problem of information loss, and protect the user experience.
[0048] In the technical solution of this disclosure embodiment, in response to the failure to receive a first display signal within a first time interval, the first animation corresponding to the first layer can be paused; wherein the first display signal includes signals repeatedly received during the display of the first animation; wherein the first layer contains first information; wherein the first animation includes an animation that cyclically displays the first information in a scrolling manner; in response to the resumption of receiving the first display signal, the first animation is displayed according to a preset scroll step size. By fixing the scroll step size, it is possible to prevent the display information from jumping when the stutter is resumed, ensuring the complete display of information and improving the user experience.
[0049] This embodiment can be combined with various optional solutions in the information display methods provided in the above embodiments. The information display method provided in this embodiment details the display process of the first animation.
[0050] Figure 3 This is a flowchart illustrating an information display method provided in an embodiment of this disclosure. Figure 3 As shown, the information display method provided in this embodiment may include:
[0051] S310. In response to not receiving the first display signal within the first time interval, pause the first animation corresponding to the first layer.
[0052] In this embodiment, the first time interval is determined based on the preset frame rate corresponding to the first animation. The preset frame rate can refer to the number of times the frame is rendered per unit time (usually 1 second), for example, 60 frames. The first time interval can refer to the rendering time interval between two adjacent renderings; for example, if the preset frame rate is 60, the first time interval can be 1 / 60 of a second.
[0053] S320. In response to resuming the reception of the first display signal, determine the trigger state of the first display signal received this time based on the first time interval and the second time interval.
[0054] In this embodiment, the second time interval includes the interval between the first time and the second time; the first time may include the reception time of the first display signal received this time; the second time may include the reception time of the first display signal received in the past, and the reception time of the first display signal whose trigger state is triggered, which is closest to the first time. Each time a first display signal is received, it can be determined as the first display signal received this time. The reception time of each first display signal received can be recorded using existing technical means. The reception time of the first display signal received this time can be determined as the first time; the reception time of the first display signal received before this first display signal (i.e., in the past received first display signals) whose trigger state is triggered and the reception time of the first display signal received most recently than the first time can be determined as the second time. The time difference between the first time and the second time can be determined as the second time interval.
[0055] The system can compare the magnitudes of the first time interval and the second time interval, and determine the trigger state based on the comparison result. The trigger state can include triggered and non-triggered states. If the trigger state is triggered, the received first display signal is considered a valid trigger signal; if the trigger state is non-triggered, the received first display signal is considered an invalid trigger signal.
[0056] Determining the trigger state of the first display signal received this time based on the first time interval and the second time interval may include: determining the trigger state of the first display signal received this time as triggered in response to the second time interval being greater than or equal to the first time interval; and determining the trigger state of the first display signal received this time as non-triggered in response to the second time interval being less than the first time interval.
[0057] Because the refresh rates of displays vary in real-world applications, the time interval between receiving adjacent first display signals may be greater than, equal to, or less than the first time interval. For example, with a preset frame rate of 60 frames per second, the time interval between the vertical synchronization signals (i.e., the first display signals) sent by a display with a refresh rate of 30 frames per second is greater than the first time interval; the time interval between the vertical synchronization signals sent by a display with a refresh rate of 60 frames per second is equal to the first time interval; and the time interval between the vertical synchronization signals sent by a display with a refresh rate of 90 frames per second is less than the first time interval.
[0058] If the time interval between receiving adjacent first display signals is greater than or equal to the first time interval, the refresh rate of the display can be considered low or matched with the preset frame rate. In this case, the time interval between receiving adjacent first display signals is the second time interval, and each received first display signal is considered a trigger state. It can be assumed that if the time interval between receiving adjacent first display signals is greater than or equal to the first time interval, each received first display signal is considered a valid trigger signal.
[0059] If the time interval between receiving adjacent first display signals is less than the first time interval, the display refresh rate can be considered high. In this case, the trigger state of adjacent first display signals cannot all be triggered. Instead, the trigger state of a first display signal is determined to be triggered only after at least one first display signal has passed, so that the second time interval is greater than or equal to the first time interval. It can be considered that if the time interval between receiving adjacent first display signals is less than the first time interval, some first display signals can be determined as valid trigger signals, and some as invalid trigger signals.
[0060] In these implementations, by performing time interval verification, a portion of the high-frequency first display signal can be identified as an invalid trigger signal, thereby achieving the effect of controlling the speed of the first animation.
[0061] S330, in response to the trigger state of the first display signal received this time, the first animation is displayed according to the preset scrolling step.
[0062] In this implementation, if the trigger state is "triggered," the first display signal received this time can be considered a valid trigger signal, and the first animation can be displayed according to the preset scroll step. If the trigger state is "not triggered," the first display signal received this time can be considered an invalid trigger signal, and the first animation corresponding to the first layer can be paused.
[0063] In this embodiment of the disclosure, when the refresh rate of the display is low, the second time interval is always greater than the first time interval. In this case, if no first display signal is received within the first time interval, the first animation corresponding to the first layer can be paused; if a first display signal is received, the trigger state of the received first display signal can be determined as triggered; and if the trigger state of the received first display signal is triggered, the first animation can be displayed according to a preset scrolling step. Similar to a stuttering situation, the first animation can be automatically paused at low refresh rates, and the first animation can be displayed based on the paused screen according to a preset scrolling step, thereby ensuring the complete display of the first information.
[0064] When the monitor's refresh rate matches the preset frame rate, the second time interval is usually equal to the first time interval. In this case, a first display signal can be received every first time interval; in response to receiving the first display signal, the trigger state of the received first display signal can be determined as triggered; in response to the trigger state of the received first display signal being triggered, the first animation can be displayed according to a preset scroll step. Furthermore, if stuttering occurs when the monitor's refresh rate matches, the first animation corresponding to the first layer can be paused if no first display signal is received within the first time interval.
[0065] When the monitor's refresh rate is high, the second time interval may be greater than or equal to the first time interval, or it may be less than the first time interval. If the second time interval is greater than or equal to the first time interval, the trigger state of the received first display signal can be determined as triggered; in response to the trigger state of the received first display signal being triggered, the first animation can be displayed according to a preset scrolling step. If the second time interval is less than the first time interval, the trigger state of the received first display signal can be determined as non-triggered; in response to the trigger state of the received first display signal being non-triggered, the first animation can be paused to avoid the first animation scrolling too fast. Furthermore, if stuttering occurs when the monitor's refresh rate is high, the first animation corresponding to the first layer can also be paused if the first display signal is not received within the first time interval.
[0066] For example, in related technologies, the displacement distance of the first layer is typically:
[0067] Displacement distance = scroll speed × time interval; where the time interval refers to the interval between receiving adjacent signals that trigger movement. This movement method can lead to a large time interval when the screen recovers from a stutter, causing the first layer to move a large displacement distance, resulting in a jump and loss of displayed content.
[0068] The displacement distance of the first layer in this embodiment can be expressed as:
[0069] Displacement distance = preset scroll step × state characterization value; where the state characterization value represents the trigger state; specifically, when the first display signal is in the trigger state, the state characterization value can be a positive constant, such as the value of the first time interval; when the first display signal is in the non-trigger state, the state characterization value can be 0. This ensures that the first layer moves the same distance each time during the first animation display process and avoids the first animation scrolling too fast under high refresh rates.
[0070] The technical solution of this disclosure describes in detail the display process of the first animation. Since the preset scrolling step size is fixed, the first animation may scroll too fast when triggered by a high-frequency first display signal. In this disclosure, a preset frame rate corresponding to a suitable scrolling speed for the first animation can be preset, and a first time interval can be determined accordingly. Furthermore, the triggering state of the currently received first display signal can be determined based on the first time interval and the interval between the reception time of the currently received first display signal and the reception time of the most recently received first display signal with a triggered state. If the triggering state is triggered, the first layer can be controlled to display the first animation according to the preset scrolling step size, thereby achieving the effect of controlling the speed of the first animation.
[0071] Furthermore, the information display method provided in this embodiment belongs to the same disclosure concept as the information display method provided in the above embodiments. Technical details not described in detail in this embodiment can be found in the above embodiments, and the same technical features have the same beneficial effects in this embodiment and the above embodiments.
[0072] This embodiment can be combined with various optional solutions in the information display methods provided in the above embodiments. The information display method provided in this embodiment supplements the scrolling animation of the first information.
[0073] Figure 4 This is a flowchart illustrating an information display method provided in an embodiment of this disclosure. Figure 4 As shown, the information display method provided in this embodiment may include:
[0074] S410. In response to the length of the first information being greater than or equal to a preset length, a first layer and a second layer are created; wherein the second layer contains a preset identifier and a portion of the first information.
[0075] The preset display area disclosed in this embodiment is the same as the preset display area in the user interface described above. Both the first layer and the second layer can be displayed within the preset display area. The preset length can be determined based on the dimensions of the preset display area. For example, the dimensions of the preset display area may include width and height, and the width of the preset display area can be used as the preset length.
[0076] The preset identifier is used to represent the incomplete state of the information, such as "...". Partial information is determined based on a preset length. For example, a first length can be subtracted from the preset length to determine a second length; the first length can be determined based on the length of the preset identifier, for example, it can be greater than or equal to the length of the preset identifier. Width accumulation can begin from the first element of the first information. In response to a cumulative value greater than or equal to the second length, the set of elements corresponding to the previous cumulative value is determined as partial information of the first information. For example, assuming the first information is "12345678901234" and each character occupies 7 pixels, then when the second length is 70 pixels, the cumulative value corresponding to "1234567890" can be equal to the second length. In this case, "123456789" can be determined as partial information of the first information.
[0077] For example, assuming the first information is "12345678901234" and each character occupies 7 pixels, and the preset identifier is "...", then in the case where the second length is 70 pixels, the information contained in the first layer can be "12345678901234" and the information contained in the second layer can be "123456789...".
[0078] In this embodiment of the disclosure, if the length of the first information exceeds a preset length, it can be assumed that the preset display area cannot fully display the first information. In this case, a first layer containing the complete first information and a second layer containing partial information of the first information and a preset identifier can be created. By scrolling the first layer, a marquee effect can be achieved, helping users understand the complete first information. By displaying the second layer, it can be indicated that the first information is incomplete within the preset display area.
[0079] When the length of the first piece of information equals the preset length, although the preset display area can display the first piece of information completely, it cannot indicate that the information has been fully displayed. In this case, a first layer containing the complete first piece of information and a second layer containing part of the first piece of information and a preset identifier can be created separately. In this case, by replacing the tail information in the first piece of information with the preset identifier, the status of the first piece of information can also be indicated.
[0080] Furthermore, if the length of the first piece of information is less than the preset length, only the first layer needs to be created, and there is no need to create a second layer. Users can clearly see that the first piece of information has been fully displayed within the preset display area.
[0081] S420. In response to not receiving the first display signal within the first time interval, pause the first animation corresponding to the first layer.
[0082] The first display signal includes signals repeatedly received during the first animation display process.
[0083] S430, in response to resuming receiving the first display signal, displays the first animation according to a preset scrolling step.
[0084] S440. In response to the first animation loop reaching a preset number of times and receiving a first display signal, the second animation corresponding to the second layer is displayed in the preset display area according to the preset scroll step.
[0085] In this embodiment, the preset number of times may include at least one. The number of loops of the first animation can be considered as the number of times the first layer is displayed repeatedly within the preset display area. When the number of loops of the first animation reaches the preset number, the first animation is considered complete. After the first animation is completed, a second animation can be displayed in response to receiving a first display signal. The first display signal may also include signals repeatedly received during the second animation display. The second animation may include an animation that stops scrolling in response to scrolling into the preset display area.
[0086] The scroll step size of the second animation can be the same as that of the first animation, and both can be preset scroll step sizes. Furthermore, other properties of the second animation (such as scroll direction) can also be the same as the first animation. This allows for a smoother transition between the second and first animations.
[0087] In this embodiment of the disclosure, during the display of the second animation, the second animation may be paused if the first display signal is not received within a first time interval; and the second animation may be displayed according to a preset scroll step size in response to the resumption of receiving the first display signal. Displaying the second animation according to the preset scroll step size may include moving the second layer according to the preset scroll step size to present the effect of the second animation.
[0088] The method of displaying a second animation according to a preset scrolling step size in response to resuming the reception of the first display signal may also include: determining the trigger state of the currently received first display signal according to a first time interval and a third time interval in response to resuming the reception of the first display signal; wherein the first time interval is determined based on a preset frame rate corresponding to the first animation; wherein the third time interval includes the interval between a third time and a fourth time; the third time includes the reception time of the currently received first display signal; the fourth time includes the reception time closest to the third time among the reception times of historically received first display signals whose trigger state is triggered; and displaying the second animation according to a preset scrolling step size in response to the trigger state of the currently received first display signal being triggered.
[0089] The process of "determining the trigger state of the first display signal received this time based on the first time interval and the third time interval" can be referred to as the process of "determining the trigger state of the first display signal received this time based on the first time interval and the second time interval", and will not be elaborated here.
[0090] In this embodiment of the disclosure, by creating a first layer based on the complete first information when the first information is long, and creating a second layer based on the partial first information and the preset identifier of the incomplete state of the representation information, the second animation corresponding to the second layer can be displayed after the first animation corresponding to the first layer is displayed, so that the second layer stops scrolling after being scrolled to the preset display area. This not only prompts that the first information is incomplete in the preset display area after the animation ends, but also achieves a smooth end to the animation, improving the user experience.
[0091] In some optional implementations, the display mode of the preset display area includes dynamic and static modes; the method also includes: in response to the display mode being dynamic, displaying a first animation or a second animation within the preset display area according to a preset scroll step; in response to the display mode being static, statically displaying the second layer within the preset display area.
[0092] In these optional implementations, the display mode of the preset display area can be either dynamic or static. Furthermore, the display mode of the preset display area can be identified according to specific business logic. In response to a dynamic display mode, the information display method provided in this embodiment can display a first animation or a second animation within the preset display area according to a preset scrolling step, thereby achieving dynamic display of the first information. For example, in a dynamic display mode, the first animation can be displayed first, followed by the second animation, within the preset display area. In response to a static display mode, the second layer can be statically displayed within the preset area, thereby indicating that the first information is not fully displayed. Furthermore, during static display, in response to user triggers, such as triggers on the second layer, the complete first information can be displayed via pop-ups or similar means. By setting different display modes, flexible dynamic or static display of the first information can be achieved, improving the user experience.
[0093] In addition, some other implementations allow for a static display of the second layer within a preset display area before the first animation is shown; and / or, a static display of the second layer within a preset display area can be performed after the first animation is shown. While these two display methods involve layer transitions between static and dynamic displays, they still effectively indicate that the first information is incomplete within the preset display area, thus improving the user experience to some extent.
[0094] For example, Figure 5 is a schematic diagram of the layer scrolling display process in an information display method provided by an embodiment of this disclosure. Figure 5(a) shows the display process of scrolling animation containing only the first layer when the length of the first information is greater than the preset length; Figure 5(b) shows the display process of scrolling animation containing both the first layer and the second layer when the length of the first information is greater than the preset length.
[0095] Referring to the scrolling display process shown in Figure 5(a): When the first animation corresponding to the first layer has not started, the first layer can be statically displayed in the preset display area. At this time, the first layer cannot represent whether the first information is complete. During the display of the first animation of the first layer, the first information can be scrolled at least once. During the display, the head and tail parts of the first layer can be drawn simultaneously in the preset display area, so as to ensure the seamless connection of the first layer between different scrolling cycles. When the first animation reaches the end, the first layer can be scrolled to the preset display area and paused. At this time, the first layer still cannot represent whether the first information is complete, resulting in a poor user experience.
[0096] Referring to the scrolling display process shown in Figure 5(b): Before the first animation corresponding to the first layer starts, the second layer can be statically displayed within the preset display area. At this time, the second layer can represent the incomplete state of the first information. During the scrolling animation display, the first animation corresponding to the first layer can be displayed first, and the display process is the same as the first animation process shown in Figure 5(a). After the first animation is displayed, the second animation corresponding to the second layer can be displayed to scroll the second layer to the preset display area. When the second animation is displayed to the end, the second layer can be left in the preset display area. This not only represents the incomplete state of the first information through the second layer, but also smoothly ends the animation, which can improve the user experience.
[0097] The technical solution of this disclosure supplements the scrolling animation of the first information. By creating a first layer based on the complete first information when the first information is long, and creating a second layer based on partial first information and preset identifiers representing the incomplete state of the information, a second animation corresponding to the second layer can be displayed after the first animation corresponding to the first layer finishes displaying, thus scrolling the second layer to a preset display area. This not only indicates that the first information is incomplete within the preset display area after the animation ends, but also achieves a smooth animation end, improving the user experience. Furthermore, the information display method provided in this disclosure belongs to the same disclosed concept as the information display method provided in the above embodiments. Technical details not described in detail in this embodiment can be found in the above embodiments, and the same technical features have the same beneficial effects in this embodiment and the above embodiments.
[0098] Figure 6 This is a schematic diagram of the structure of an information display device provided in an embodiment of this disclosure. The information display device provided in this embodiment is suitable for situations where information is displayed in a scrolling manner in a user interface, such as when displaying a text marquee in a user interface.
[0099] like Figure 6 As shown, the information display device provided in this embodiment may include:
[0100] The first display module 610 is configured to pause the first animation corresponding to the first layer in response to not receiving the first display signal within a first time interval; wherein the first display signal includes signals repeatedly received during the display of the first animation; wherein the first layer contains first information; wherein the first animation includes an animation that displays the first information in a scrolling manner.
[0101] The second display module 620 is used to display the first animation according to a preset scrolling step size in response to the resumption of receiving the first display signal.
[0102] In some alternative implementations, the second display module can be used for:
[0103] In response to resuming the reception of the first display signal, the trigger state of the first display signal received this time is determined according to the first time interval and the second time interval;
[0104] The first time interval is determined based on the preset frame rate corresponding to the first animation; the second time interval includes the interval between the first time and the second time; the first time includes the reception time of the first display signal received this time; the second time includes the reception time closest to the first time among the reception times of the first display signals received in the past and whose trigger state is triggered.
[0105] In response to the first display signal received this time, the trigger state is triggered, and the first animation is displayed according to the preset scroll step.
[0106] In some alternative implementations, the second display module can be used for:
[0107] In response to the second time interval being greater than or equal to the first time interval, the trigger state of the first display signal received this time is determined to be triggered;
[0108] In response to the second time interval being less than the first time interval, the trigger state of the first display signal received this time is determined to be non-triggering.
[0109] In some alternative implementations, the second display module can be used for:
[0110] In response to the first display signal received this time being in a non-triggered state, the first animation is paused.
[0111] In some optional implementations, the first layer is scrolled and displayed within a preset display area; the information display device may also include:
[0112] The layer creation module is used to create a first layer and a second layer in response to the length of the first information being greater than or equal to a preset length, before pausing the first animation corresponding to the first layer if no first display signal is received within a first time interval; wherein the second layer contains a preset identifier and partial information of the first information; wherein the preset length is determined based on the size of a preset display area; wherein the partial information is determined according to the preset length; wherein the preset identifier is used to characterize the incomplete state of the information;
[0113] The third display module is used to respond to the first animation loop reaching a preset number of times and receiving a first display signal, and to display the second animation corresponding to the second layer within a preset display area according to a preset scroll step; wherein, the first display signal also includes signals repeatedly received during the display of the second animation; wherein, the second animation includes an animation that stops scrolling in response to scrolling into the preset display area.
[0114] In some optional implementations, the display mode of the preset display area includes dynamic and static modes; in response to the display mode being dynamic, the second display module is used to display the first animation within the preset display area according to a preset scroll step; or the third display module is used to display the second animation within the preset display area according to a preset scroll step.
[0115] Information display devices may also include:
[0116] The fourth display module is used to statically display the second layer within a preset display area in response to the static display mode.
[0117] The information display device provided in this disclosure can execute the information display method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects of the method execution.
[0118] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this disclosure.
[0119] The following is for reference. Figure 7 It illustrates an electronic device suitable for implementing embodiments of the present disclosure (e.g., Figure 7The diagram below shows the structure of the terminal device or server 700. The terminal device in this embodiment may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and vehicle terminals (e.g., vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 7 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0120] like Figure 7 As shown, the electronic device 700 may include a processing unit (e.g., a central processing unit, a graphics processor, 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. The RAM 703 also stores various programs and data required for the operation of the electronic device 700. The processing unit 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0121] Typically, the following devices can be connected to I / O interface 705: input devices 706 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 707 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 708 including, for example, magnetic tapes, hard disks, etc.; and communication devices 709. Communication device 709 allows electronic device 700 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 7 An electronic device 700 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0122] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 709, or installed from storage device 708, or installed from ROM 702. When the computer program is executed by processing device 701, it performs the functions defined in the information display method of embodiments of this disclosure.
[0123] The electronic device provided in this embodiment and the information display method provided in the above embodiments belong to the same disclosed concept. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.
[0124] This disclosure provides a storage medium for computer-executable instructions, which, when executed by a computer processor, can be used to perform the information display method provided in the above embodiments.
[0125] It should be noted that the storage medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) or flash memory (FLASH), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium that contains or stores executable instructions that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable executable instructions. Such transmitted data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit executable instructions for use by or in connection with an instruction execution system, apparatus, or device. Executable instructions contained on the storage medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0126] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed networks.
[0127] The aforementioned storage medium may be included in the aforementioned electronic device; or it may exist independently and not be assembled into the electronic device.
[0128] The aforementioned storage medium carries one or more executable instructions, which, when executed by the electronic device, cause the electronic device to:
[0129] In response to the failure to receive a first display signal within a first time interval, the first animation corresponding to the first layer is paused; wherein the first display signal includes signals repeatedly received during the display of the first animation; wherein the first layer contains first information; wherein the first animation includes an animation that displays the first information in a scrolling manner; in response to the resumption of receiving the first display signal, the first animation is displayed according to a preset scrolling step.
[0130] Executable instructions for performing the operations of this disclosure can 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, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The executable instructions can be executed entirely on the user's computer, partially on the user's computer, as a standalone 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 remote computers, the remote computer can 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 can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0131] This disclosure also provides a computer program product, including a computer program that, when executed by a processor, can implement the information display method provided in any embodiment of this disclosure.
[0132] The computer program product includes a computer program carried on a non-transitory computer-readable medium, which contains program code for performing information display methods. The program code can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone 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 remote computers, the remote computer can 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 can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0133] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0134] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the units and modules do not, in certain circumstances, constitute a limitation on the unit or module itself.
[0135] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Array (FPGA), Application Specific Integrated Circuit (ASIC), Application Specific Standard Parts (ASSP), System on Chip (SOC), Complex Programmable Logic Device (CPLD), and so on.
[0136] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0137] According to one or more embodiments of this disclosure, an information display method is provided, the method comprising:
[0138] In response to the failure to receive a first display signal within a first time interval, the first animation corresponding to the first layer is paused; wherein the first display signal includes signals repeatedly received during the display of the first animation; wherein the first layer contains first information; wherein the first animation includes an animation that displays the first information in a scrolling manner.
[0139] In response to resuming receiving the first display signal, the first animation is displayed according to a preset scrolling step.
[0140] According to one or more embodiments of this disclosure, an information display method is provided, further comprising:
[0141] In some optional implementations, the step of responding to resuming receiving the first display signal and displaying the first animation according to a preset scroll step includes:
[0142] In response to resuming the reception of the first display signal, the trigger state of the first display signal received this time is determined according to the first time interval and the second time interval;
[0143] Wherein, the first time interval is determined based on the preset frame rate corresponding to the first animation; wherein, the second time interval includes the interval between the first time and the second time; the first time includes the reception time of the first display signal received this time; the second time includes the reception time closest to the first time among the reception times of the first display signals received in the past and whose trigger state is triggered;
[0144] In response to the trigger state of the first display signal received this time being triggered, the first animation is displayed according to the preset scroll step.
[0145] According to one or more embodiments of this disclosure, an information display method is provided, further comprising:
[0146] In some optional implementations, determining the trigger state of the first display signal received this time based on the first time interval and the second time interval includes:
[0147] In response to the second time interval being greater than or equal to the first time interval, the trigger state of the first display signal received this time is determined to be triggered;
[0148] In response to the second time interval being less than the first time interval, the trigger state of the first display signal received this time is determined to be non-triggered.
[0149] According to one or more embodiments of this disclosure, an information display method is provided, further comprising:
[0150] In some optional implementations, the first animation is paused in response to the non-triggered state of the first display signal received this time.
[0151] According to one or more embodiments of this disclosure, an information display method is provided, further comprising:
[0152] In some optional implementations, the first layer is scrolled and displayed within a preset display area; before pausing the first animation corresponding to the first layer in response to no first display signal received within a first time interval, the method further includes:
[0153] In response to the first information having a length greater than or equal to a preset length, a first layer and a second layer are created; wherein the second layer includes a preset identifier and partial information of the first information; wherein the preset length is determined based on the size of the preset display area; wherein the partial information is determined according to the preset length; wherein the preset identifier is used to characterize the incomplete state of the information;
[0154] The method further includes:
[0155] In response to the first animation loop reaching a preset number of times and receiving the first display signal, the second animation corresponding to the second layer is displayed in the preset display area according to the preset scroll step; wherein, the first display signal also includes signals repeatedly received during the display of the second animation; wherein, the second animation includes an animation that stops scrolling in response to scrolling into the preset display area.
[0156] According to one or more embodiments of this disclosure, an information display method is provided, further comprising:
[0157] In some optional implementations, the display mode of the preset display area includes dynamic and static modes; the method further includes:
[0158] In response to the display mode being dynamic, the first animation or the second animation is displayed within the preset display area according to the preset scroll step length;
[0159] In response to the display mode being static, the second layer is statically displayed within the preset display area.
[0160] According to one or more embodiments of the present disclosure, an information device is provided, the device comprising:
[0161] The first display module is configured to pause the first animation corresponding to the first layer in response to not receiving the first display signal within a first time interval; wherein the first display signal includes signals repeatedly received during the display of the first animation; wherein the first layer contains first information; wherein the first animation includes an animation that displays the first information in a scrolling manner.
[0162] The second display module is used to display the first animation according to a preset scrolling step size in response to resuming the reception of the first display signal.
[0163] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0164] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0165] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. An information display method, characterized in that, include: In response to the failure to receive a first display signal within a first time interval, the first animation corresponding to the first layer is paused; wherein the first display signal includes signals repeatedly received during the display of the first animation; wherein the first layer contains first information; wherein the first animation includes an animation that displays the first information in a scrolling manner. In response to resuming receiving the first display signal, the first animation is displayed according to a preset scrolling step.
2. The method according to claim 1, characterized in that, The step of responding to the resumption of receiving the first display signal and displaying the first animation according to a preset scrolling step includes: In response to resuming the reception of the first display signal, the trigger state of the first display signal received this time is determined according to the first time interval and the second time interval; Wherein, the first time interval is determined based on the preset frame rate corresponding to the first animation; wherein, the second time interval includes the interval between the first time and the second time; the first time includes the reception time of the first display signal received this time; the second time includes the reception time closest to the first time among the reception times of the first display signals received in the past and whose trigger state is triggered; In response to the trigger state of the first display signal received this time being triggered, the first animation is displayed according to the preset scroll step.
3. The method according to claim 2, characterized in that, Determining the trigger state of the first display signal received this time based on the first time interval and the second time interval includes: In response to the second time interval being greater than or equal to the first time interval, the trigger state of the first display signal received this time is determined to be triggered; In response to the second time interval being less than the first time interval, the trigger state of the first display signal received this time is determined to be non-triggered.
4. The method according to claim 2, characterized in that, Also includes: In response to the fact that the trigger state of the first display signal received this time is non-triggered, the first animation is paused.
5. The method according to claim 1, characterized in that, The first layer is scrolled and displayed in the preset display area; Before pausing the first animation corresponding to the first layer in response to no first display signal being received within a first time interval, the method further includes: In response to the first information having a length greater than or equal to a preset length, a first layer and a second layer are created; wherein the second layer includes a preset identifier and partial information of the first information; wherein the preset length is determined based on the size of the preset display area; wherein the partial information is determined according to the preset length; wherein the preset identifier is used to characterize the incomplete state of the information; The method further includes: In response to the first animation loop reaching a preset number of times and receiving the first display signal, the second animation corresponding to the second layer is displayed in the preset display area according to the preset scroll step; wherein, the first display signal also includes signals repeatedly received during the display of the second animation; wherein, the second animation includes an animation that stops scrolling in response to scrolling into the preset display area.
6. The method according to claim 5, characterized in that, The display modes of the preset display area include dynamic and static modes; the method further includes: In response to the display mode being dynamic, the first animation or the second animation is displayed within the preset display area according to the preset scroll step length; In response to the display mode being static, the second layer is statically displayed within the preset display area.
7. An information display device, characterized in that, include: The first display module is configured to pause the first animation corresponding to the first layer in response to not receiving the first display signal within a first time interval; wherein the first display signal includes signals repeatedly received during the display of the first animation; wherein the first layer contains first information; wherein the first animation includes an animation that displays the first information in a scrolling manner. The second display module is used to display the first animation according to a preset scrolling step size in response to resuming the reception of the first display signal.
8. An electronic device, characterized in that, The electronic device includes: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the information display method as described in any one of claims 1-6.
9. A storage medium comprising computer-executable instructions, which, when executed by a computer processor, are used to perform the information display method as described in any one of claims 1-6.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the information display method as described in any one of claims 1-6.