Information display method, device, electronic device and storage medium

By pre-constructing multiple places to be displayed and loading and moving information using operation instructions, the problem of not being able to effectively display unlimited amount of information in the prior art is solved, and unlimited display and efficient memory usage are achieved.

CN113760157BActive Publication Date: 2025-05-23BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110358684.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-01
Publication Date
2025-05-23
Estimated Expiration
2041-04-01

AI Technical Summary

Technical Problem

When the prior art realizes the infinite loop display of information, it is impossible to effectively display an infinite amount of information, and sufficient memory is required to reserve and set content.

Method used

By pre-constructing multiple to-be-designed positions, each to-be-designed position is used to display one information, load the to-be-designed information using operation instructions and move the to-be-designed position to the view window, achieving infinite display.

Benefits of technology

It enables unlimited display of unlimited amounts of information without reserving a large amount of memory and setting content, improving memory usage and display efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113760157B_ABST
    Figure CN113760157B_ABST
Patent Text Reader

Abstract

The present disclosure provides an information display method, including receiving an operation instruction, executing the operation instruction, loading information to be displayed into one of the pre-built positions to be displayed, and moving the position to be displayed to a view window to display the information to be displayed; wherein each position to be displayed is used to display one piece of information to be displayed. The present disclosure also provides an information display device, an electronic device, and a computer-readable storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of electronic technology, and more specifically, to an information display method, device, electronic device and storage medium. Background Art

[0002] In our daily lives, it is very common to display information in an infinite loop. For example, a banner bar is set up on the homepage of a news website to scroll and play the latest hot news in an infinite loop; video playback software will also set up a scrolling playback window on the homepage to push popular videos; users can scroll and view pictures in the mobile phone album in an infinite loop by swiping with gestures.

[0003] In the process of realizing the concept of the present disclosure, the inventors found that there are at least the following problems in the related art: the common playback method is infinite loop, but the playback content is actually limited. The above playback method depends on setting the given playback content, for example, by cyclically numbering the playback content, so as to achieve cyclic playback according to the number. When realizing the cyclic playback of a large amount of information, not only a large enough memory is required to store the information to be played, but also a large amount of content to be played needs to be sequentially designed, but it is still impossible to display an unlimited number of playback content. Summary of the invention

[0004] In view of this, the present disclosure provides an information display method and an information display device that can display an unlimited amount of information.

[0005] One aspect of the present disclosure provides a method for information display, comprising: receiving an operation instruction; executing the operation instruction to load information to be displayed into one of pre-built positions to be displayed, and moving the position to be displayed to a view window to display the information to be displayed; wherein each position to be displayed is used to display one piece of information to be displayed.

[0006] According to an embodiment of the present disclosure, executing the operation instruction to move the position to be displayed to the view window to display the information to be displayed includes: obtaining the real-time offset when the position to be displayed stops moving; judging whether the real-time offset is greater than or equal to a preset offset threshold; if the real-time offset is greater than or equal to the preset offset threshold, moving the position to be displayed to the view window to display the information to be displayed.

[0007] According to an embodiment of the present disclosure, obtaining the real-time offset of the to-be-displayed position when it stops moving includes: determining whether the user has stopped inputting operation instructions; if the user has stopped inputting operation instructions, obtaining the current moving speed and the current moving position of the to-be-displayed position; and calculating the real-time offset of the to-be-displayed position when it stops moving according to the current moving speed and the current moving position.

[0008] According to an embodiment of the present disclosure, executing the operation instruction to load the information to be displayed to one of the pre-built positions to be displayed includes: determining the moving direction included in the operation instruction; and loading the information to be displayed from an external database in real time to the position to be displayed located opposite to the moving direction.

[0009] According to an embodiment of the present disclosure, executing the operation instruction to load the information to be displayed into one of the pre-built positions to be displayed, and moving the position to be displayed to the view window to display the information to be displayed, includes: judging whether the information to be displayed is successfully loaded into the corresponding position to be displayed; if the information to be displayed is successfully loaded into the corresponding position to be displayed, moving the position to be displayed to the view window to display the information to be displayed.

[0010] According to an embodiment of the present disclosure, moving the position to be displayed to the view window to display the information to be displayed includes: loading the information to be displayed loaded in the position to be displayed into a pre-built current display position; restoring the position to be displayed and the current display position to corresponding original positions, and the original position of the current display position is located in the view window.

[0011] According to an embodiment of the present disclosure, before the to-be-displayed position is moved to the view window, the information to be displayed in the to-be-displayed position is not visible, and there is a to-be-displayed position in each direction of the view window.

[0012] Another aspect of the present disclosure provides an information display device, including a receiving module for receiving an operation instruction; an execution module for executing the operation instruction to load the information to be displayed into one of the pre-built display positions, and move the display position to the view window to display the information to be displayed; wherein each of the display positions is used to display one information to be displayed.

[0013] Another aspect of the present disclosure provides an electronic device, comprising one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any one of the above claims.

[0014] Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the above method when executed.

[0015] According to the embodiments of the present disclosure, because a technical means of pre-building the positions to be displayed is adopted, the technical problem of how to display an unlimited amount of information is at least partially overcome, thereby achieving the technical effect of displaying unlimited information without reserving sufficient memory to store the information to be displayed and without relying on the setting of the content to be displayed. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0017] Figure 1 An exemplary system architecture to which the information display method and device of the present disclosure can be applied is schematically shown;

[0018] Figure 2 A flowchart of an information display method according to an embodiment of the present disclosure is schematically shown;

[0019] Figure 3A The mobile interface of the position to be displayed according to the embodiment of the present disclosure is schematically shown;

[0020] Figure 3B A flowchart of a method for executing an operation instruction according to an embodiment of the present disclosure is schematically shown;

[0021] Figure 3C The mobile interface of the position to be displayed according to another embodiment of the present disclosure is schematically shown;

[0022] Figure 3D A flowchart of a method for obtaining a real-time offset according to an embodiment of the present disclosure is schematically shown;

[0023] Figure 3E A flowchart of a method for executing an operation instruction according to another embodiment of the present disclosure is schematically shown;

[0024] Figure 4 A block diagram of an information display device according to an embodiment of the present disclosure is schematically shown;

[0025] Figure 5A A block diagram schematically shows an execution module according to an embodiment of the present disclosure;

[0026] Figure 5B A block diagram of a first acquisition unit according to an embodiment of the present disclosure is schematically shown;

[0027] Figure 5C A block diagram schematically shows an execution module according to another embodiment of the present disclosure; and

[0028] Figure 6A block diagram of an electronic device suitable for implementing an information display method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0029] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0030] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0031] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0032] When using expressions such as "at least one of A, B, and C, etc.", it should generally be interpreted as the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). When using expressions such as "at least one of A, B, or C, etc.", it should generally be interpreted as the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0033] The embodiment of the present disclosure provides an information display method for infinitely displaying an infinite number of information and an information display device capable of applying the method. The method includes receiving an operation instruction; executing the operation instruction to load the information to be displayed into one of the pre-built positions to be displayed, and moving the position to be displayed to a view window to display the information to be displayed; wherein each position to be displayed is used to display one piece of information to be displayed.

[0034] Figure 1 The exemplary system architecture 100 to which the information display method and apparatus according to the embodiment of the present disclosure can be applied is schematically shown. It should be noted that: Figure 1 What is shown is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.

[0035] like Figure 1 As shown, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired and / or wireless communication links, etc.

[0036] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients and / or social platform software, etc.

[0037] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0038] The server 105 may be a server that provides various services, such as a background management server that provides support for websites browsed by users using the terminal devices 101, 102, and 103. The background management server may analyze and process received data such as user requests, and feed back processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.

[0039] It should be noted that the information display method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the information display device provided in the embodiment of the present disclosure can generally be set in the server 105. The information display method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal device 101, 102, 103 and / or the server 105. Accordingly, the information display device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal device 101, 102, 103 and / or the server 105. Alternatively, the information display method provided in the embodiment of the present disclosure can also be executed by the terminal device 101, 102, or 103, or it can also be executed by other terminal devices different from the terminal device 101, 102, or 103. Accordingly, the information display device provided in the embodiment of the present disclosure can also be set in the terminal device 101, 102, or 103, or it can be set in other terminal devices different from the terminal device 101, 102, or 103.

[0040] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0041] Figure 2 The flowchart of the information display method according to the embodiment of the present disclosure is schematically shown.

[0042] like Figure 2 As shown, the method includes operations S201-S202.

[0043] In operation S201, an operation instruction is received.

[0044] In the disclosed embodiments, the operation instruction is an instruction formed by the operation performed by the user, and specifically can be an operation gesture input by the user, such as a right swipe gesture, a left swipe gesture, an upward swipe gesture, and a downward swipe gesture. When a right swipe gesture input by the user is received, the operation instruction is to swipe right to display the information to be displayed on the left. The operation instruction can also be a direction instruction input by the user, such as providing the user with input buttons of "left" and "right", and the user can click the corresponding button to form an operation instruction to display information in the corresponding direction.

[0045] In operation S202, an operation instruction is executed to load the information to be displayed into one of the pre-built positions to be displayed, and the position to be displayed is moved to the view window to display the information to be displayed.

[0046] In the embodiment of the present disclosure, executing the operation instruction includes loading the information to be displayed to the position to be displayed and moving the position to be displayed to the view window. The view window is a display interface. For example, the interface for displaying information in a mobile phone is a view window. Before the position to be displayed is moved to the view window, the information to be displayed in the position to be displayed is not visible. It can be understood that the information displayed in the view window is the information loaded in the current display position.

[0047] Combination Figure 3A Further explain the information display method implemented by the present disclosure, Figure 3A The mobile interface of the position to be displayed according to an embodiment of the present disclosure is schematically shown.

[0048] In the method of this embodiment, multiple display positions are pre-constructed, including a current display position and multiple positions to be displayed, wherein the size of each display position is the same as the size of the view window, and each display position independently displays a piece of information. The current display position is located in the view window and is used to display the current information. Different directions of the view window each have a position to be displayed for placing the information to be displayed. Before the position to be displayed is moved to the view window, the information placed in the position to be displayed is not visible.

[0049] The inner spacing between different display positions can be set according to the actual situation, that is, the distance between two adjacent display positions. Let the user feel that there is a black spacing in the middle when sliding to the next picture / video. The inner spacing can also be set to zero, in which case the user thinks that the two display information are seamlessly connected.

[0050] Understandably, the information display device is composed of two background components, a horizontal background component (horizontalBack) and a vertical background component (verticalBack). Generally, the horizontal background component is used to display and process horizontal sliding, and the vertical background component (verticalBack) is used to display and process vertical sliding. Therefore, the user can switch between the two operation instructions of horizontal sliding and vertical sliding at will.

[0051] It should be noted that the system monitors the background components, that is, receives the operation instructions input by the user in real time. The monitoring content includes: 1. The moving direction contained in the operation instructions input by the user; 2. The moving distance contained in the operation instructions input by the user; 3. Whether the user stops inputting instructions. Specifically, the monitoring can be achieved in the following ways. For example, the moving direction and distance contained in the operation instructions input by the user are determined by obtaining information such as the real-time offset of the position to be displayed during the movement. Specifically, the real-time offset of the position to be displayed during the movement includes: the real-time offset of the position to be displayed when the user continues to input the operation instructions; or, the real-time offset when the position to be displayed stops moving; or, the real-time offset of the position to be displayed after the user finishes inputting the operation instructions.

[0052] To display the information to be displayed through the display position, you only need to load the information to be displayed to the corresponding display position, without having to set the content arrangement or playback method of the information to be displayed in advance, so that an unlimited number of information to be displayed can be displayed. The information to be displayed is stored in an external database, which reduces the amount of calculation in the display process of the display device and reduces the memory requirement of the display device, making the entire display device more portable. By connecting to the database storing the information to be displayed to realize information display, any unlimited number of data information can be displayed infinitely. Among them, the information to be displayed may include data information in any format such as pictures, videos, files and voices.

[0053] Through the disclosed embodiments, when realizing the unlimited display of an unlimited number of information contents, it is not necessary to consider the format of the information to be displayed, nor the amount of the information to be displayed. It is only necessary to load the information to be displayed in real time in the corresponding position to be displayed for display. That is, when the user inputs the operation instruction infinitely, as long as the information to be displayed is continuously loaded into the corresponding position to be displayed, the unlimited display of the information content can be realized. At the same time, in the process of information display, the memory of the display device is only used to store a data information at the current display time, and there is no need to store other information to be displayed, which can greatly improve the utilization rate of the device memory.

[0054] Figure 3B The flowchart of the method for executing an operation instruction according to an embodiment of the present disclosure is schematically shown.

[0055] like Figure 3B As shown, executing the operation instruction to move the position to be displayed to the view window to display the information to be displayed includes operations S301 to S303.

[0056] In operation S301, a real-time offset value when the position to be displayed stops moving is obtained.

[0057] In operation S302, it is determined whether the real-time offset is greater than or equal to a preset offset threshold.

[0058] In operation S303, if the real-time offset is greater than or equal to the preset offset threshold, the position to be displayed is moved to the view window to display the information to be displayed.

[0059] In the embodiment of the present disclosure, it is taken as an example that the operation instruction is a gesture instruction input by the user. Figure 3C The mobile interface of a location to be displayed according to another embodiment of the present disclosure is schematically shown.

[0060] like Figure 3CAs shown, area 2 is the current display area (PageOperationCurrent), and area 1 and area 3 are the positions to be displayed (PageOperationLast and PageOperationNext). There are many methods for obtaining the real-time offset of the position to be displayed, and one of them is used as an example for description below.

[0061] Taking horizontal sliding as an example, an x-axis is established in the horizontal direction of the arrangement of areas 1, 2, and 3, wherein the coordinate value of the original position of the point at the lower left corner of area 1 is defined as 0, the coordinate value of the original position of the point at the lower left corner of area 2 is 1, and the coordinate value of the original position of the point at the lower left corner of area 3 is 2. At the same time, the original position of the point at the lower left corner of area 1 is marked as A, the original position of the point at the lower left corner of area 2 is marked as B, and the original position of the point at the lower left corner of area 3 is marked as C. It should be noted that during the movement, the positions of points A, B, and C do not move, but the coordinate axis moves.

[0062] The system obtains the real-time offset by detecting the difference between the real-time coordinate value and the original coordinate value corresponding to point B. For example, the view window displays the information in the current display position in area 2 by default. Before any moving operation occurs, the coordinate value corresponding to point A is 0, the coordinate value corresponding to point B is 1, and the coordinate value corresponding to point C is 2. The original coordinate value corresponding to point B detected by the current system is 1. When the user inputs the right swipe operation, the display position 1 in area 1 moves to area 2, and the system detects the real-time coordinate value corresponding to point B as 0. At this time, the real-time offset of the display position 1 is 1-0=1.

[0063] At the same time, it can be understood that when the corresponding coordinate value detected by point B is less than the original coordinate value 1, that is, all display positions move to the right together, and the view window will display the information to be displayed in the display position 1 on the left. When the corresponding coordinate value detected by point B is greater than the original coordinate value 1, that is, all display positions move to the left together, the view window will display the information to be displayed in the display position 2 on the right.

[0064] When the user inputs an operation instruction, all display positions start to move together until the movement stops completely. During the horizontal movement, the coordinate value corresponding to point B is constantly changing. Whether the position to be displayed has moved is determined by whether the coordinate value corresponding to point B has changed. When the position to be displayed moves to a certain position, the difference between the real-time coordinate value corresponding to point B and the original coordinate value is defined as the real-time offset of the position to be displayed.

[0065] In the actual movement, the system determines whether to allow the movement to be executed by the relationship between the real-time offset and the preset offset threshold. Specifically, the preset offset threshold can be set to half the width of the position to be displayed. For example, when the user inputs a left sliding operation instruction, the display position moves to the left as a whole. When the movement stops, if the system detects that the coordinate value corresponding to point B is 1.6, it can be judged that the real-time offset of the position to be displayed is 1.6-1=0.6>0.5, and the movement operation is deemed to be successful. At this time, the coordinate value corresponding to point B is 1.6>1, which means that the view window is about to display the information to be displayed in the position to be displayed 2 on the right, so the position to be displayed 2 located in area 3 is moved to the view window of area 2 to display the information to be displayed in the position to be displayed 2. If the system detects that the coordinate value corresponding to point B is 1.4, it can be judged that the real-time offset of the position to be displayed is 1.4-1=0.4<0.5, and the movement operation is deemed to have failed, and the position to be displayed is restored to the original position of area 3, and the information to be displayed in the position to be displayed 2 is not displayed this time.

[0066] Furthermore, when receiving the right sliding operation instruction input by the user, the display position moves to the right as a whole. When the movement stops, the system detects that the coordinate value corresponding to point B is 0.5, and it can be determined that the real-time offset of the position to be displayed is 1-0.5=0.6=0.5, and the movement operation is considered successful. At this time, the coordinate value corresponding to point B is 0.5<1, which means that the view window is about to display the information to be displayed in the position to be displayed 1 on the left, so the position to be displayed 1 in area 1 is moved to the view window of area 2 to display the information to be displayed in the position to be displayed 1.

[0067] In addition, a local variable and a global variable are defined in the system so that the system can accurately obtain the real-time offset of the position to be displayed. Specifically, the local variable indicates the current moving direction of the position to be displayed, and the default value is empty, indicating that the position to be displayed has no moving direction at this time; the global variable indicates the moving direction executed last time. When the value of the global variable is empty, there are two situations: 1. There has never been any movement, and the default value is empty; 2. It is set to empty after the movement stops, indicating a re-slide.

[0068] When a move occurs, if the coordinate value corresponding to point B is less than 1, the value of the local variable is updated to last, indicating that the display is at the previous (left) display position (PageOperationLast); if the coordinate value corresponding to point B is greater than 1, the value of the local variable is updated to next, indicating that the display is at the next (right) display position (PageOperationNext). At the same time, it is also necessary to define that when the position to be displayed stops sliding, the offset must be equal to 1. At this time, the value of the global variable is set to empty to indicate that the move is over. When the move is executed next time, it means that the move has not been executed yet.

[0069] When the current offset is not equal to 1, there are two situations for the global variable: 1. The value of the global variable is empty, indicating that the current operation is a new round of sliding operation; 2. When the value of the global variable is not equal to the value of the local variable, it means that the moving direction is changed before the movement ends.

[0070] For the first case, the value of the current local variable represents the actual real-time offset, and the current real-time offset is obtained.

[0071] For the second case, the moving direction is repeatedly changed before the user finishes inputting the operation instruction. When the value of the local variable changes, the value of the global variable is updated to the value before the value of the local variable changes, so as to re-acquire the real-time offset after the system confirms that the moving direction has changed.

[0072] Specifically, when the value of the local variable is last and the global variable is empty, it is only necessary to execute once to obtain the real-time offset. Before the user stops inputting instructions, the value of the local variable changes from last to next, at which time the global variable is updated to last, and the real-time offset is obtained again.

[0073] Through this embodiment, the moving direction and moving distance are determined according to the real-time offset of the position to be displayed, so as to determine whether the position to be displayed is actually moved to the viewing window to display the content to be displayed. And it is ensured that even if the user repeatedly changes the moving direction or moving distance during the process of inputting an operation instruction, the real-time offset can be accurately obtained.

[0074] Figure 3D The flowchart of the method for obtaining the real-time offset of the position to be displayed according to an embodiment of the present disclosure is schematically shown.

[0075] like Figure 3D As shown, obtaining the real-time offset when the position to be displayed stops moving includes operations S304 to S306.

[0076] In operation S304, it is determined whether the user has stopped inputting operation instructions.

[0077] In operation S305, if the user has stopped inputting the operation instruction, the current moving speed and the current moving position of the position to be displayed are obtained.

[0078] In operation S306, a real-time offset when the position to be displayed stops moving is calculated according to the current moving speed and the current moving position.

[0079] In actual moving operations, when the user's finger leaves the operation interface, it is considered that the user stops inputting the operation command, but the position to be displayed may not stop moving at this time and still has a moving speed. The actual real-time offset of the position to be displayed is calculated by obtaining the moving speed and moving position of the position to be displayed.

[0080] When the moving speed is zero, it is considered that the position to be displayed has stopped moving, and the actual implementation offset is calculated according to the current moving position. When the moving speed is not zero, it is considered that the position to be displayed will continue to move when the user's finger leaves the operation interface, and the actual real-time offset when the position to be displayed stops moving is calculated based on the current moving speed, moving acceleration, and moving position information. The actual real-time offset is compared with the preset offset threshold to determine whether to move the corresponding position to be displayed to the view window to display information.

[0081] Figure 3E The flowchart of a method for executing an operation instruction according to another embodiment of the present disclosure is schematically shown.

[0082] like Figure 3E As shown, executing the operation instruction to load the information to be displayed into one of the pre-built positions to be displayed includes operations S307 to S308.

[0083] In operation S307, the moving direction included in the operation instruction is determined.

[0084] In operation S308, the information to be displayed is loaded in real time from the external database to the position to be displayed that is opposite to the moving direction.

[0085] In the embodiment of the present disclosure, the information to be displayed is stored in an external database, that is, the system does not store the information to be displayed. Before receiving an operation instruction, the information to be displayed is not loaded and obtained, so as to reduce the occupation of system memory and improve the efficiency of memory use. After receiving the existence instruction input by the user, the information to be displayed is loaded in real time.

[0086] Before executing the move operation of the display position, it is also necessary to determine whether the information to be displayed has been successfully obtained. That is, determine whether the information to be displayed has been successfully loaded to the corresponding display position. If the information to be displayed is successfully loaded to the corresponding display position, the display position is moved to the view window to display the information to be displayed. If the information to be displayed is not successfully obtained, it is deemed that the move operation is canceled, and the display position is restored to its original position before the move. Through the embodiments of the present disclosure, the occupation of system memory during the information display process can be reduced, and only the current display information is stored, thereby improving the efficiency of memory use.

[0087] It should be noted that after receiving the operation instruction input by the user, the operation instruction specifically includes two instructions, loading the information to be displayed to one of the positions to be displayed, and moving the position to be displayed to the view window. When the two instructions are successfully executed at the same time, the information to be displayed in the corresponding position to be displayed can be displayed.

[0088] For example, when it is determined that the information to be displayed is successfully loaded into the corresponding position to be displayed, and when it is determined that the real-time offset when the position to be displayed stops moving is greater than or equal to the preset offset threshold, the corresponding position to be displayed can be successfully moved to the view window to display the information to be displayed. Specifically, if the real-time offset when the position to be displayed stops moving is greater than or equal to the preset offset threshold, but the information to be displayed is not successfully loaded into the position to be displayed, it is considered that the execution of the operation instruction has failed, and the position to be displayed is restored to its original position. If the information to be displayed is successfully loaded into the position to be displayed, but the real-time offset when the position to be displayed stops moving is less than the preset offset threshold, it is still considered that the execution of the operation instruction has failed.

[0089] It should also be noted that moving the position to be displayed to the view window to display the information to be displayed specifically includes: loading the information to be displayed loaded in the position to be displayed into the pre-built current display position; restoring the position to be displayed and the current display position to the corresponding original positions, and the original position of the current display position is located in the view window.

[0090] See also Figure 3C , taking the successful execution of the left swipe command as an example. When the system determines that the execution of the left swipe operation command is successful, the information to be displayed in the to-be-displayed position 2 in area 3 is loaded into the current display position in area 2, and the to-be-displayed position 1, the current display position and the to-be-displayed position 2 are restored to their original positions, namely area 1, area 2 and area 3 respectively. However, the above movement process is a process that the user does not perceive. For the user, what is actually felt is that the information to be displayed is moved to the current display position.

[0091] In the disclosed embodiment, each time a piece of information to be displayed is loaded into the corresponding position to be displayed, and each position to be displayed can only be used to display one piece of information to be displayed. When the information in the position to be displayed is loaded into the current display position, the information to be displayed in the position to be displayed is cleared to execute the instruction to load the information to be displayed next time. Therefore, during the entire process of displaying information, the device does not store all the information to be displayed, and there is no need to arrange and set it in advance due to the number or size of the information to be displayed. Under this design, the memory usage of the device is reduced, and the entire device is more flexible and lightweight.

[0092] Understandably, in Figure 3C In the mobile interface shown, when the system determines that the left swipe operation instruction is successfully executed, the information to be displayed in the position 2 to be displayed in area 3 is loaded into the current display position in area 2, and the position 1 to be displayed, the current display position and the position 2 to be displayed are restored to their original positions, and then the information to be displayed in the position 2 to be displayed in area 3 is cleared. At the same time, the display information of the current display position at the previous moment needs to be loaded into the position 1 to be displayed in area 2 to meet the user's need to swipe right again to browse the previous information.

[0093] As an optional embodiment, before executing the operation instruction and displaying the information to be displayed, it also includes asking the user whether the operation instruction can be executed; if the operation instruction can be executed, the information to be displayed is loaded to the corresponding position to be displayed, and the position to be displayed is moved to the view window. If the operation instruction cannot be executed, the display position is restored to the original position. The position to be displayed can also be automatically moved after receiving the operation instruction input by the user. The user can set the movement method according to actual needs to meet the needs of different users.

[0094] Figure 4 A block diagram of an information display device according to an embodiment of the present disclosure is schematically shown.

[0095] like Figure 4 As shown, the information display device 400 includes a receiving module 410 and an execution module 420 .

[0096] The receiving module 410 is used to receive an operation instruction;

[0097] The execution module 420 is used to execute the operation instruction to load the information to be displayed into one of the pre-built positions to be displayed, and move the position to be displayed to the view window to display the information to be displayed.

[0098] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.

[0099] For example, any number of receiving modules 410 and execution modules 420 can be combined in one module / unit / sub-unit for implementation, or any one of the modules / units / sub-units can be split into multiple modules / units / sub-units. Alternatively, at least part of the functions of one or more modules / units / sub-units in these modules / units / sub-units can be combined with at least part of the functions of other modules / units / sub-units and implemented in one module / unit / sub-unit. According to an embodiment of the present disclosure, at least one of the receiving module 410 and the execution module 420 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in any appropriate combination of any of them. Alternatively, at least one of the receiving module 410 and the execution module 420 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be executed.

[0100] Reference below Figure 5A to Figure 5C , combined with specific embodiments Figure 4 The method shown is further explained.

[0101] Figure 5A The block diagram of the execution module according to the embodiment of the present disclosure is schematically shown.

[0102] like Figure 5A As shown, the execution module 420 includes: a first acquisition unit 421, used to acquire the real-time offset when the position to be displayed stops moving; a first judgment unit 422, used to judge whether the real-time offset is greater than or equal to a preset offset threshold; a first moving unit 423, used to move the position to be displayed to the view window if the real-time offset is greater than or equal to the preset offset threshold, so as to display the information to be displayed.

[0103] Figure 5B The block diagram of the first acquisition unit 421 according to an embodiment of the present disclosure is schematically shown.

[0104] like Figure 5B As shown, the first acquisition unit 421 includes: a second judgment unit 4211, used to judge whether the user has stopped inputting the operation instruction. A second acquisition unit 4212, used to obtain the current moving speed and the current moving position of the position to be displayed if the user has stopped inputting the operation instruction. A calculation unit 4213, used to calculate the real-time offset when the position to be displayed stops moving according to the current moving speed and the current moving position.

[0105] Figure 5CA block diagram of an execution module according to another embodiment of the present disclosure is schematically shown.

[0106] like Figure 5C As shown, the execution module 420 includes: a determination unit 424, used to determine the moving direction included in the operation instruction; a loading unit 425, used to load the information to be displayed from the external database in real time to the position to be displayed located opposite to the moving direction.

[0107] It should be noted that the information display device part in the embodiments of the present disclosure corresponds to the information display method part in the embodiments of the present disclosure. The description of the information display device part specifically refers to the information display method part, which will not be repeated here.

[0108] Figure 6 A block diagram of an electronic device suitable for implementing the method described above according to an embodiment of the present disclosure is schematically shown. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0109] like Figure 6 As shown, the electronic device 500 according to an embodiment of the present disclosure includes a processor 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 to a random access memory (RAM) 503. The processor 501 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 501 may also include an onboard memory for caching purposes. The processor 501 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0110] In RAM 503, various programs and data required for the operation of system 500 are stored. Processor 501, ROM 502 and RAM 503 are connected to each other through bus 504. Processor 501 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 502 and / or RAM 503. It should be noted that the program can also be stored in one or more memories other than ROM 502 and RAM 503. Processor 501 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0111] According to an embodiment of the present disclosure, the system 500 may further include an input / output (I / O) interface 505, which is also connected to the bus 504. The system 500 may further include one or more of the following components connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.

[0112] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains 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 part 509, and / or installed from the removable medium 511. When the computer program is executed by the processor 501, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.

[0113] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0114] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include, but is not limited to: 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), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device.

[0115] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 502 and / or the RAM 503 described above and / or one or more memories other than the ROM 502 and the RAM 503 .

[0116] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a 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 box can also occur in a different order from the order marked in the accompanying drawings. For example, two 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 box in the block diagram or flow chart, and the combination of the boxes in the block diagram 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.

[0117] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0118] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A method for displaying information, include: Receive operation instructions; Executing the operation instruction to load the information to be displayed into one of the pre-built positions to be displayed, and moving the position to be displayed to the view window to display the information to be displayed; wherein each position to be displayed is used to display one piece of information to be displayed; Determine the moving direction and distance included in the operation instruction by acquiring the real-time offset of the position to be displayed during the moving process; In the case where the value of the global variable is not equal to the value of the local variable, when the value of the local variable changes, the value of the global variable is updated to the value before the value of the local variable changes, so as to re-acquire the real-time offset after the system confirms that the moving direction included in the operation instruction has changed, wherein the local variable represents the current moving direction of the to-be-displayed position, and the global variable represents the moving direction of the to-be-displayed position that was last executed.

2. The method according to claim 1, in, Executing the operation instruction to move the position to be displayed to the view window to display the information to be displayed includes: Obtaining a real-time offset when the position to be displayed stops moving; Determining whether the real-time offset is greater than or equal to a preset offset threshold; If the real-time offset is greater than or equal to a preset offset threshold, the to-be-displayed position is moved to the view window to display the to-be-displayed information.

3. The method according to claim 2, in, The obtaining of the real-time offset of the position to be displayed when the position stops moving includes: Determine whether the user has stopped inputting operation instructions; If the user has stopped inputting the operation instruction, the current moving speed and the current moving position of the position to be displayed are obtained; The real-time offset of the to-be-displayed position when it stops moving is calculated according to the current moving speed and the current moving position.

4. The method according to claim 1, in, Executing the operation instruction to load the information to be displayed into one of the pre-built display positions includes: Determining the moving direction included in the operation instruction; The information to be displayed is loaded in real time from an external database to a position to be displayed that is opposite to the moving direction.

5. The method according to claim 1, in, Executing the operation instruction to load the information to be displayed into one of the pre-built positions to be displayed, and moving the position to be displayed to the view window to display the information to be displayed, includes: Determining whether the information to be displayed is successfully loaded into the corresponding position to be displayed; If the information to be displayed is successfully loaded into the corresponding position to be displayed, the position to be displayed is moved to the view window to display the information to be displayed.

6. The method according to claim 2 or 5, in, The moving the position to be displayed to the view window to display the information to be displayed includes: Loading the information to be displayed loaded in the to-be-displayed position into the pre-built current display position; The to-be-displayed position and the current display position are restored to corresponding original positions, and the original position of the current display position is located in the view window.

7. The method according to claim 1, in, Before the to-be-displayed position is moved to the viewing window, the information to be displayed in the to-be-displayed position is not visible, and there is a to-be-displayed position in each direction of the viewing window.

8. An information display device, include: A receiving module, used for receiving operation instructions; An execution module, used for executing the operation instruction to load the information to be displayed into one of the pre-built positions to be displayed, and to move the position to be displayed to the view window to display the information to be displayed; Each of the to-be-displayed positions is used to display a piece of information to be displayed; Determine the moving direction and distance included in the operation instruction by acquiring the real-time offset of the position to be displayed during the moving process; In the case where the value of the global variable is not equal to the value of the local variable, when the value of the local variable changes, the value of the global variable is updated to the value before the value of the local variable changes, so as to re-acquire the real-time offset after the system confirms that the moving direction has changed, wherein the local variable represents the current moving direction of the to-be-displayed position, and the global variable represents the moving direction that was last executed by the to-be-displayed position.

9. An electronic device, include: one or more processors; a memory 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 method according to any one of claims 1 to 7.

10. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, enables the processor to implement the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and device for loading data in application program

    CN106598561A

  • View switching method and device

    CN109492178A