CN113760157A - Information display method and device, electronic equipment and storage medium - Google Patents

Information display method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113760157A
CN113760157A CN202110358684.2A CN202110358684A CN113760157A CN 113760157 A CN113760157 A CN 113760157A CN 202110358684 A CN202110358684 A CN 202110358684A CN 113760157 A CN113760157 A CN 113760157A
Authority
CN
China
Prior art keywords
displayed
information
bit
display
moving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110358684.2A
Other languages
Chinese (zh)
Inventor
郭挺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202110358684.2A priority Critical patent/CN113760157A/en
Publication of CN113760157A publication Critical patent/CN113760157A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/54Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/74Browsing; Visualisation therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present disclosure provides an information display method, which includes receiving an operation instruction, executing the operation instruction to load information to be displayed to one of pre-constructed bits to be displayed, and moving the bits to be displayed to a view window to display the information to be displayed; each to-be-displayed position is used for displaying one to-be-displayed message. The disclosure also provides an information presentation apparatus, an electronic device, and a computer-readable storage medium.

Description

Information display method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to an information display method and apparatus, an electronic device, and a storage medium.
Background
In daily life, endless loop display of information is common. For example, a banner bar is arranged on a news webpage home page, and the latest hot news is played in an unlimited rolling manner; the video playing software can also set a rolling playing window on the home page to push the hot video; the user can infinitely and circularly check the pictures in the mobile phone album in a gesture sliding mode.
In implementing the disclosed concept, the inventors found that there are at least the following problems in the related art: the common playback mode is endless loop, but the playback content is limited in practice. The above playing manner depends on setting the given playing content, for example, by circularly numbering the playing content, thereby realizing the circular playing according to the numbering. When a large amount of information is played circularly, not only a large enough internal memory is required to be built to store the information to be played, but also a large amount of contents to be played need to be designed in sequence, but an unlimited number of played contents still cannot be displayed.
Disclosure of Invention
In view of the above, the present disclosure provides an information displaying method and an information displaying apparatus capable of displaying an unlimited amount of information.
One aspect of the present disclosure provides a method of information presentation, including: receiving an operation instruction; executing the operation instruction to load the information to be displayed to one of the pre-constructed positions to be displayed and move the position to be displayed to a view window to display the information to be displayed; and each to-be-displayed position is used for displaying one to-be-displayed message.
According to the embodiment of the present disclosure, executing the operation instruction to move the to-be-displayed file to a view window to display the to-be-displayed information includes: acquiring 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 value or not; and if the real-time offset is greater than or equal to a preset offset threshold, moving the to-be-displayed position to a view window to display the to-be-displayed information.
According to an embodiment of the present disclosure, the obtaining of the real-time offset when the to-be-displayed bit stops moving includes: judging whether the user stops inputting the operation instruction or not; if the user stops inputting the operation instruction, acquiring the current moving speed and the current moving position of the position to be displayed; and calculating the real-time offset of the position to be displayed when the position to be displayed stops moving according to the current moving speed and the current moving position.
According to an embodiment of the present disclosure, executing the operation instruction to load information to be displayed to one of the pre-constructed bits to be displayed includes: determining a moving direction contained in the operation instruction; and loading the information to be displayed from an external database in real time into the position to be displayed opposite to the moving direction.
According to an embodiment of the present disclosure, executing the operation instruction to load information to be displayed to one of the pre-constructed bits to be displayed and move the bit to be displayed to the view window to display the information to be displayed includes: judging whether the information to be displayed is loaded to the corresponding position to be displayed successfully or not; and if the information to be displayed is successfully loaded to the corresponding position to be displayed, moving the position to be displayed to a view window so as to display the information to be displayed.
According to an embodiment of the present disclosure, the moving the to-be-displayed bit to a view window to display the to-be-displayed information includes: loading the information to be displayed loaded by the position to be displayed into a pre-constructed current display position; and restoring the to-be-displayed and the current display bit to the corresponding original position, wherein the original position of the current display bit is positioned in the view window.
According to the embodiment of the disclosure, before the to-be-displayed bit moves to the view window, the to-be-displayed information in the to-be-displayed bit is invisible, and the view window is provided with one to-be-displayed bit in different directions.
Another aspect of the present disclosure provides an apparatus for information presentation, including a receiving module, configured to receive an operation instruction; the execution module is used for executing the operation instruction so as to load the information to be displayed to one of the pre-constructed positions to be displayed and move the position to be displayed to the view window so as to display the information to be displayed; and each to-be-displayed position is used for displaying one to-be-displayed message.
Another aspect of the present disclosure provides an electronic device comprising one or more processors; and memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of the preceding claims.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions for implementing the method as described above when executed.
According to the embodiment of the disclosure, because the technical means of constructing the bits to be displayed in advance is adopted, the technical problem of how to display an infinite number of information is at least partially solved, and the technical effect of realizing the infinite information display without reserving enough memory to store the information to be displayed and without depending on setting the content to be displayed is achieved.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an exemplary system architecture to which the information presentation methods and apparatus of the present disclosure may be applied;
FIG. 2 schematically illustrates a flow chart of an information presentation method according to an embodiment of the present disclosure;
FIG. 3A schematically illustrates a movement interface for a bit to be displayed according to an embodiment of the disclosure;
FIG. 3B schematically illustrates a flow diagram of a method of executing an operational instruction according to an embodiment of the present disclosure;
FIG. 3C schematically illustrates a movement interface for a bit to be displayed according to another embodiment of the disclosure;
FIG. 3D schematically illustrates a flow chart of a method of obtaining a real-time offset according to an embodiment of the disclosure;
FIG. 3E schematically illustrates a flow diagram of a method of executing an operational instruction according to another embodiment of the present disclosure;
FIG. 4 schematically illustrates a block diagram of an information presentation device according to an embodiment of the present disclosure;
FIG. 5A schematically illustrates a block diagram of an execution module according to an embodiment of the present disclosure;
fig. 5B schematically shows a block diagram of a first acquisition unit according to an embodiment of the disclosure;
FIG. 5C schematically shows a block diagram of an execution module according to another embodiment of the present disclosure; and
FIG. 6 schematically illustrates a block diagram of an electronic device suitable for implementing the information presentation method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of such, B, and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, A, B, C together, etc.). Where a convention analogous to "at least one of line, B, or C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, A, B, C together, etc.).
Embodiments of the present disclosure provide an information presentation method for infinitely presenting an unlimited number of information and an information presentation apparatus to which the method can be applied. The method comprises receiving an operation instruction; executing an operation instruction to load the information to be displayed to one of the pre-constructed bits to be displayed and move the bits to be displayed to a view window to display the information to be displayed; each to-be-displayed position is used for displaying one to-be-displayed message.
Fig. 1 schematically illustrates an exemplary system architecture 100 to which the information presentation methods and apparatus may be applied, according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, 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 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired and/or wireless communication links, and so forth.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have various communication client applications installed thereon, such as a shopping application, a web browser application, a search application, an instant messaging tool, a mailbox client, and/or social platform software.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
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, 103. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the information presentation method provided by the embodiment of the present disclosure may be generally executed by the server 105. Accordingly, the information display device provided by the embodiment of the present disclosure may be generally disposed in the server 105. The information presentation method provided by the embodiment of the present disclosure may also be executed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Correspondingly, the information display device provided by the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Alternatively, the information presentation method provided by the embodiment of the present disclosure may also be executed by the terminal device 101, 102, or 103, or may also be executed by another terminal device different from the terminal device 101, 102, or 103. Accordingly, the information display apparatus provided in the embodiments of the present disclosure may also be disposed in the terminal device 101, 102, or 103, or in another terminal device different from the terminal device 101, 102, or 103.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Fig. 2 schematically shows a flow chart of an information presentation method according to an embodiment of the present disclosure.
As shown in fig. 2, the method includes operations S201 to S202.
In operation S201, an operation instruction is received.
In the embodiment of the present disclosure, the operation instruction is an instruction formed by an operation performed by a user, and may specifically be an operation gesture input by the user, such as a rightward sliding gesture, a leftward sliding gesture, an upward sliding gesture, and a downward sliding gesture. When a right sliding gesture input by a user is received, the operation instruction is to slide right to display the information to be displayed on the left side. The operation instruction can also be a direction instruction input by a user, for example, the user is provided with input keys of 'left' and 'right', and the user can click the corresponding button to form the operation instruction so as to display information of the corresponding direction.
In operation S202, an operation instruction is executed to load information to be displayed to one of the pre-constructed bits to be displayed and move the bits to be displayed to the view window to display the information to be displayed.
In the embodiment of the present disclosure, executing the operation instruction includes loading the information to be displayed to the bit to be displayed and moving the bit to be displayed to the view window. The view window is a display interface, for example, an interface for displaying information in a mobile phone is a view window. Before the to-be-displayed bit moves to the view window, the to-be-displayed information in the to-be-displayed bit is invisible. Understandably, the information shown in the view window is the information loaded in the current show bit.
An information display method implemented by the present disclosure is further explained in conjunction with fig. 3A, and fig. 3A schematically illustrates a moving interface of a bit to be displayed according to an embodiment of the present disclosure.
In the method of the embodiment, a plurality of display bits are pre-constructed, including a current display bit and a plurality of bits to be displayed, wherein the size of each display bit is the same as the size of the view window, and each display bit independently displays one piece of information. The current display position is positioned in the view window and used for displaying current information, the different directions of the view window are respectively provided with a position to be displayed and used for placing the information to be displayed, and the information placed in the position to be displayed is invisible before the position to be displayed moves to the view window.
The inner space between different display positions can be set according to the actual situation, namely the distance between two adjacent display positions. Let the user feel that there is a black space in the middle when sliding to the next picture/video. The inner distance can also be set to zero, and the user considers that the front and the back display information are connected seamlessly.
Understandably, the information presentation device is two background components, a horizontal background component (horizontal back) and a vertical background component (vertical back). Typically, a horizontal background component is used to show and handle horizontal swipes and a vertical background component (vertical back) is used to show and handle vertical swipes. Therefore, the user can freely switch between the horizontal sliding operation and the vertical sliding operation.
It should be noted that the system monitors the background component, that is, receives the operation instruction input by the user in real time. The monitored contents comprise: 1. the moving direction included in the operation instruction input by the user; 2. the moving distance included in the operation instruction input by the user; 3. whether the user has stopped inputting instructions. Specifically, the listening may be realized in the following manner. For example, the moving direction and distance included in the operation instruction input by the user are determined by acquiring information such as real-time offset of the bit to be displayed in the moving process. Specifically, the real-time offset of the bit to be displayed in the moving process includes: when a user continuously inputs an operation instruction, the real-time offset of the bit to be displayed is obtained; or, the real-time offset when the position to be displayed stops moving; or, after the user finishes inputting the operation instruction, the real-time offset of the bit to be displayed is obtained.
The information to be displayed is displayed through the to-be-displayed position, the to-be-displayed information is loaded to the corresponding to-be-displayed position, the content arrangement mode or the playing mode of the to-be-displayed information does not need to be set in advance, and the unlimited number of to-be-displayed information can be displayed. The information to be displayed is stored in the external database, so that the calculation amount of the display device in the display process is reduced, the memory requirement of the display device is reduced, and the whole display device is lighter. The information display is realized by connecting the information display device with a database for storing information to be displayed, and the data information of any infinite number can be displayed infinitely. The information to be displayed can include data information in any format, such as pictures, videos, files, voice and the like.
Through the embodiment of the disclosure, when the unlimited display of the unlimited number of information contents is realized, the format of the information to be displayed and the number of the information to be displayed are not required to be considered, and the information to be displayed is loaded in the corresponding position to be displayed in real time for displaying. That is, when the user infinitely inputs an operation instruction, as long as the information to be displayed is continuously loaded into the position to be displayed at the corresponding position, the information content can be infinitely displayed. Meanwhile, in the process of information display, the memory of the display device is only used for storing one piece of data information at the current display moment, other pieces of information to be displayed do not need to be stored, and the utilization rate of the memory of the device can be greatly improved.
FIG. 3B schematically shows a flow diagram of a method of executing an operational instruction according to an embodiment of the present disclosure.
As shown in fig. 3B, executing the operation instruction to move the to-be-displayed file to the view window to display the to-be-displayed information includes operations S301 to S303.
In operation S301, a real-time offset when the bit to be displayed stops moving is obtained.
In operation S302, it is determined whether the real-time offset is greater than or equal to a preset offset threshold.
In operation S303, if the real-time offset is greater than or equal to the preset offset threshold, the to-be-displayed bit is moved to the view window to display the to-be-displayed information.
In the embodiment of the present disclosure, the operation instruction is a gesture instruction input by a user as an example. Fig. 3C schematically illustrates a moving interface of bits to be displayed according to another embodiment of the disclosure.
As shown in fig. 3C, the region 2 is a current display region (PageOperationCurrent), and the regions 1 and 3 are bits to be displayed (PageOperationLast and PageOperationNext). There are various methods for obtaining the real-time offset of the bit to be displayed, and one of the methods is described as an example below.
Taking horizontal sliding as an example, an x-axis is established in the horizontal direction in which the areas 1, 2, and 3 are arranged, wherein the coordinate value of the original position of the point defining the lower left corner of the area 1 is 0, the coordinate value of the original position of the point defining the lower left corner of the area 2 is 1, and the coordinate value of the original position of the point defining the lower left corner of the area 3 is 2. Meanwhile, the original position of the point at the lower left corner of the area 1 is marked as a, the original position of the point at the lower left corner of the area 2 is marked as B, and the original position of the point at the lower left corner of the area 3 is marked as C. Note that, during the movement, the positions of point A, B and point C are not moved, and the coordinate axes are moved.
The system obtains the real-time offset by detecting the difference value between the real-time coordinate value corresponding to the B point and the original coordinate value. For example, the view window displays information located in the current display position of the area 2 by default, before any movement operation occurs, the coordinate value corresponding to the a point is 0, the coordinate value corresponding to the B point is 1, the coordinate value corresponding to the C point is 2, the original coordinate value corresponding to the B point detected by the current system is 1, when the user inputs a right-sliding operation, and the position to be displayed 1 of the area 1 moves to the area 2, the real-time coordinate value corresponding to the B point detected by the system is 0, and at this time, the real-time offset of the position to be displayed 1 is 1-0 ═ 1.
Meanwhile, understandably, when the corresponding coordinate value detected by the point B is smaller than the original coordinate value 1, that is, all the display bits move rightward together, the view window is to display the information to be displayed in the to-be-displayed bit 1 located on the left side. And when the corresponding coordinate value detected by the point B is larger than the original coordinate value 1, all the display positions move leftwards together, and the view window is about to display the information to be displayed in the position 2 to be displayed on the right side.
When the user inputs an operation instruction, all the display bits start to move together until the movement completely stops. In the process of horizontal movement, the coordinate value corresponding to the B point is changed all the time, and whether the position to be displayed moves or not is distinguished, namely whether the coordinate value corresponding to the B point is changed or not is judged. When the position to be displayed moves to a certain position, the difference value between the real-time coordinate value corresponding to the B point and the original coordinate value is defined as the real-time offset of the position to be displayed.
In the actual movement, the system judges whether the movement is allowed to be executed or not according to the relation between the real-time offset and the preset offset threshold. Specifically, the preset offset threshold may be set to be one-half of the width of the bit to be shown. For example, when an operation instruction of sliding to the left is received, which is input by a user, the presentation bit moves to the left as a whole. When the moving is stopped, if the system detects that the coordinate value corresponding to the B point is 1.6, it can be determined that the real-time offset of the bit to be displayed is 1.6-1, which is 0.6 > 0.5, and the moving operation is considered to be successful. And at the moment, the coordinate value 1.6 corresponding to the point B is more than 1, and the view window is to show the information to be shown in the position to be shown 2 on the right side, and then the position to be shown 2 in the area 3 is moved into the view window of the area 2 to show the information to be shown in the position to be shown 2. If the system detects that the coordinate value corresponding to the B point is 1.4, it can be determined that the real-time offset of the to-be-displayed bit is 1.4-1 ═ 0.4 < 0.5, then it is determined that the moving operation has failed, the to-be-displayed bit is restored to the original position of the area 3, and the to-be-displayed information in the to-be-displayed bit 2 is not displayed.
And when an operation instruction of sliding to the right input by the user is received, the display bit is wholly moved to the right. When the moving is stopped, the system detects that the coordinate value corresponding to the B point is 0.5, and can judge that the real-time offset of the bit to be displayed is 1-0.5-0.6-0.5, and then the moving operation is considered to be successful. And at the moment, the coordinate value 0.5 corresponding to the point B is less than 1, and the view window is to show the information to be shown in the position 1 to be shown on the left side, and then the position 1 to be shown in the area 1 is moved into the view window in the area 2 to show the information to be shown in the position 1 to be shown.
In addition, a local variable and a global variable are defined in the system, so that the system can accurately acquire the real-time offset of the bit to be displayed. Specifically, the local variable represents the current moving direction of the to-be-displayed bit, and the default value is null, which represents that the to-be-displayed bit has no moving direction at this time; the global variable represents the moving direction executed last time, and when the value of the global variable is null, the method includes two cases: 1. the default value is null unless there is any movement; 2. after the movement stops, the device is empty, and represents the re-sliding.
When the movement occurs, when the coordinate value corresponding to the B point is detected to be smaller than 1, the value of the local variable is updated to last, and the last (left) display bit is represented and displayed (PageOperationLast); and when the coordinate value corresponding to the B point is detected to be larger than 1, updating the value of the local variable to be next, and representing and displaying the next (right) display bit (PageOperationNext). At the same time, it is also necessary to define that when the bit to be shown stops sliding, the offset must be equal to 1, at which point the value of the global variable is set to null to indicate that the movement is finished, and when the movement is executed next time, it indicates that the movement has not been executed yet.
When the current offset is not equal to 1, the global variable has two conditions, wherein the value of 1 and the value of the global variable are null, and the current operation is a new sliding operation; 2. when the value of the global variable is not equal to the value of the local variable, it indicates that the direction of movement has changed before the movement is ended.
For the first case, the value of the current local variable represents the real-time offset, and the current real-time offset is obtained.
For the second case, the direction of movement is repeatedly changed before the user finishes inputting the operation instruction. And when the value of the local variable is changed, updating the value of the global variable to the value before the change of the value of the local variable so as to obtain the real-time offset again after the system confirms that the moving direction is changed.
Specifically, when the value of the local variable is last and the global variable is null, the real-time offset is obtained only once. Before the user stops inputting the instruction, the value of the local variable is changed from last to next, the global variable is updated to last, and the real-time offset is obtained by executing once again.
Through the embodiment, the moving direction and the moving distance are determined according to the real-time offset of the bit to be displayed so as to determine whether to actually move the bit to be displayed to the view window to display the content to be displayed. And the real-time offset can be accurately obtained even if the moving direction or the moving distance is repeatedly changed in the process of inputting the operation instruction by the user once.
Fig. 3D schematically illustrates a flowchart of a method of obtaining a real-time offset of a bit to be exhibited according to an embodiment of the present disclosure.
As shown in fig. 3D, obtaining the real-time offset when the bit to be displayed stops moving includes operations S304 to S306.
In operation S304, it is determined whether the user has stopped inputting an operation instruction.
In operation S305, if the user has stopped inputting the operation instruction, the current moving speed and the current moving position of the bit to be displayed are acquired.
In operation S306, a real-time offset when the to-be-displayed bit stops moving is calculated according to the current moving speed and the current moving position.
In the actual moving operation, when the finger of the user leaves the operation interface, the user is considered to stop inputting the operation instruction, but the position to be shown may not stop moving at this time, and still has a moving speed. And calculating to obtain the actual real-time offset of the to-be-displayed bit by acquiring the moving speed and the moving position of the to-be-displayed bit.
When the moving speed can be zero, the bit to be shown is considered to stop moving at this time, and the actual implementation offset is calculated according to the current moving position. And when the moving speed is not zero, the position to be displayed is considered to move continuously when the finger of the user leaves the operation interface, and the actual real-time offset when the position to be displayed stops moving is calculated according to the current information such as the moving speed, the moving acceleration, the moving position and the like. And comparing the actual real-time offset with a preset offset threshold value, and judging whether to move the corresponding to-be-displayed displacement to a view window so as to display information.
FIG. 3E schematically illustrates a flow diagram of a method of executing an operational instruction according to another embodiment of the present disclosure.
As shown in fig. 3E, executing the operation instruction to load the information to be displayed to one of the pre-constructed bits to be displayed includes operations S307 to S308.
In operation S307, a moving direction included in the operation instruction is determined.
In operation S308, information to be displayed is loaded from an external database in real time into a position to be displayed located opposite to the moving direction.
In the embodiment of the present disclosure, the information to be displayed is stored in the external database, that is, the information to be displayed is not stored in the system. Before the operation instruction is not received, the information to be displayed is not loaded and acquired, so that the occupation of the system memory is reduced, and the use efficiency of the memory is improved. And after receiving the existence instruction input by the user, starting to load the information to be displayed in real time.
Before the moving operation of the bits to be displayed is executed, whether the information to be displayed is successfully acquired needs to be judged. Namely, whether the information to be displayed is loaded to the corresponding bit to be displayed successfully is judged. And if the information to be displayed is successfully loaded to the corresponding position to be displayed, moving the position to be displayed to the view window so as to display the information to be displayed. If the information to be displayed is not successfully acquired, the moving operation is considered to be cancelled, and the position to be displayed is restored to the original position before moving. Through the embodiment of the disclosure, the occupation of the system memory in the information display process can be reduced, only the current display information is stored, and the use efficiency of the memory is improved.
It should be noted that, after receiving an operation instruction input by a user, the operation instruction specifically includes two instructions, loads information to be displayed to one of the bits to be displayed, and moves the bit to be displayed to the view window. When two instructions are successfully executed at the same time, the information to be displayed in the corresponding bits to be displayed can be displayed.
For example, when it is determined that the information to be displayed is successfully loaded to the corresponding position to be displayed, and 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 may be successfully moved to the view window to display the information to be displayed. Specifically, if the real-time offset when the bit 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 in the bit to be displayed, it is determined that the execution of the operation instruction fails, and the bit to be displayed is restored to the original position. If the information to be displayed is successfully loaded in the bits to be displayed, but the real-time offset when the bits to be displayed stop moving is smaller than the preset offset threshold, the operation instruction executed at this time is still considered to be failed.
It should be further noted that, moving the to-be-displayed position to the view window to display the to-be-displayed information specifically includes: loading the information to be displayed loaded by the position to be displayed into a pre-constructed current display position; and restoring the to-be-displayed and current display position to the corresponding original position, wherein the original position of the current display position is positioned in the view window.
Referring back to FIG. 3C, the successful execution of the left-slide instruction is used as an example. When the system judges that the left-sliding operation instruction is successfully executed, the information to be displayed of the position to be displayed 2 in the area 3 is loaded into the current display position in the area 2, and the position to be displayed 1, the current display position and the position to be displayed 2 are respectively restored to the original positions, namely the area 1, the area 2 and the area 3. However, the moving process is a process that is not perceived by the user, and for the user, it is actually perceived that the information to be displayed moves to the current display position.
In the embodiment of the present disclosure, each time, one piece of information to be displayed is loaded into the corresponding to-be-displayed bit, and each to-be-displayed bit can only be used for displaying one piece of information to be displayed. And when the information in the to-be-displayed bit is loaded to the current display bit, clearing the to-be-displayed information in the to-be-displayed bit for executing the instruction for loading the to-be-displayed information next time. Therefore, in the whole information display process, the device does not store all information to be displayed, and arrangement and setting in advance do not need to be carried out because of the quantity or size of the information to be displayed. Under the design, the occupied amount of the memory of the device is reduced, and the whole device is more flexible and portable.
Understandably, in the mobile interface shown in fig. 3C, when the system determines that the execution of the left-sliding operation instruction is successful, the information to be displayed at the position to be displayed 2 in the area 3 is loaded into the current display position in the area 2, and after the position to be displayed 1, the current display position and the position to be displayed 2 are respectively restored to the original positions, the information to be displayed at the position to be displayed 2 in the area 3 is cleared. Meanwhile, the display information at the moment before the current display position needs to be loaded into the position to be displayed 1 in the area 2, so that the requirement that the user performs rightward sliding again to browse the previous information is met.
As an optional embodiment, before executing the operation instruction and displaying the information to be displayed, the method further includes inquiring whether the user can execute the operation instruction; and if the operation instruction can be executed, loading the information to be displayed to the corresponding bit to be displayed, and moving the bit to be displayed to the view window. And if the operation instruction cannot be executed, restoring the display bit to the original position. Or automatically moving the to-be-displayed position after receiving an operation instruction input by a user. The user can set the moving mode according to actual requirements so as to meet the requirements of different users.
FIG. 4 schematically shows a block diagram of an information presentation device according to an embodiment of the present disclosure.
As shown in fig. 4, the information presentation apparatus 400 includes a receiving module 410 and an executing module 420.
A receiving module 410, configured to receive an operation instruction;
the execution module 420 is configured to execute the operation instruction to load the information to be displayed to one of the pre-constructed bits to be displayed, and move the bits to be displayed to the view window to display the information to be displayed.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part 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 may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
For example, any number of the receiving module 410 and the executing module 420 may be combined and implemented in one module/unit/sub-unit, or any one of the modules/units/sub-units may be split into a plurality of modules/units/sub-units. Alternatively, at least part of the functionality of one or more of these modules/units/sub-units may be combined with at least part of the functionality 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 executing module 420 may be implemented at least partially 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 may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or in any one of three implementations of software, hardware, and firmware, or in any suitable combination of any of them. Alternatively, at least one of the receiving module 410 and the executing module 420 may be at least partially implemented as a computer program module, which when executed, may perform a corresponding function.
The method shown in fig. 4 is further described with reference to fig. 5A-5C in conjunction with specific embodiments.
Fig. 5A schematically illustrates a block diagram of an execution module according to an embodiment of the disclosure.
As shown in fig. 5A, the execution module 420 includes: a first obtaining unit 421, configured to obtain a real-time offset when the to-be-displayed bit stops moving; the first determining unit 422 determines whether the real-time offset is greater than or equal to a preset offset threshold; the first moving unit 423 is configured to move the to-be-displayed bit to the view window to display the to-be-displayed information if the real-time offset is greater than or equal to a preset offset threshold.
Fig. 5B schematically shows a block diagram of the first obtaining unit 421 according to an embodiment of the present disclosure.
As shown in fig. 5B, the first obtaining unit 421 includes: a second determination unit 4211 is configured to determine whether the user has stopped inputting the operation instruction. A second obtaining unit 4212, configured to obtain a current moving speed and a current moving position of the bit to be displayed if the user has stopped inputting the operation instruction. The calculating unit 4213 is configured to calculate a real-time offset when the to-be-displayed bit stops moving according to the current moving speed and the current moving position.
Fig. 5C schematically illustrates a block diagram of an execution module according to another embodiment of the present disclosure.
As shown in fig. 5C, the execution module 420 includes: a determination unit 424, configured to determine a moving direction included in the operation instruction; and the loading unit 425 is used for loading the information to be displayed from the external database into the position to be displayed opposite to the moving direction in real time.
It should be noted that the information display device portion in the embodiment of the present disclosure corresponds to the information display method portion in the embodiment of the present disclosure, and the description of the information display device portion specifically refers to the information display method portion, which is not described herein again.
Fig. 6 schematically shows a block diagram of an electronic device adapted to implement the above described method according to an embodiment of the present disclosure. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, an electronic device 500 according to an embodiment of the present disclosure includes a processor 501 that 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 section 508 into a Random Access Memory (RAM) 503. The processor 501 may comprise, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 501 may also include onboard memory for caching purposes. Processor 501 may include a single processing unit or multiple processing units for performing different actions of a method flow according to embodiments of the disclosure.
In the RAM 503, various programs and data necessary for the operation of the system 500 are stored. The processor 501, the ROM 502, and the RAM 503 are connected to each other by a bus 504. The processor 501 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 502 and/or the RAM 503. Note that the programs may also be stored in one or more memories other than the ROM 502 and the RAM 503. The processor 501 may also perform various operations of method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, system 500 may also include an input/output (I/O) interface 505, input/output (I/O) interface 505 also being connected to bus 504. The system 500 may also include one or more of the following components connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
According to embodiments of the present disclosure, method flows according to embodiments of the present disclosure may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program, when executed by the processor 501, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Examples may include, but are not limited to: a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
For example, according to embodiments of the present disclosure, a computer-readable storage medium may include ROM 502 and/or RAM 503 and/or one or more memories other than ROM 502 and RAM 503 described above.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (10)

1. An information display method, comprising:
receiving an operation instruction;
executing the operation instruction to load the information to be displayed to one of the pre-constructed positions to be displayed and move the position to be displayed to a view window to display the information to be displayed;
and each to-be-displayed position is used for displaying one to-be-displayed message.
2. The method of claim 1, wherein executing the operation instruction to move the to-be-shown bit to a view window to show the to-be-shown information comprises:
acquiring 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 value or not;
and if the real-time offset is greater than or equal to a preset offset threshold, moving the to-be-displayed position to a view window to display the to-be-displayed information.
3. The method of claim 2, wherein the obtaining the real-time offset when the bit to be shown stops moving comprises:
judging whether the user stops inputting the operation instruction or not;
if the user stops inputting the operation instruction, acquiring the current moving speed and the current moving position of the position to be displayed;
and calculating the real-time offset of the position to be displayed when the position to be displayed stops moving according to the current moving speed and the current moving position.
4. The method of claim 1, wherein executing the operation instructions to load information to be presented to one of the pre-constructed bits to be presented comprises:
determining a moving direction contained in the operation instruction;
and loading the information to be displayed from an external database in real time into the position to be displayed opposite to the moving direction.
5. The method of claim 1, wherein executing the operation instructions to load information to be shown to one of pre-constructed bits to be shown and move the bits to be shown to a view window to show the information to be shown comprises:
judging whether the information to be displayed is loaded to the corresponding position to be displayed successfully or not;
and if the information to be displayed is successfully loaded to the corresponding position to be displayed, moving the position to be displayed to a view window so as to display the information to be displayed.
6. The method of claim 2 or 5, wherein the moving the to-be-displayed bit to a view window to display the to-be-displayed information comprises:
loading the information to be displayed loaded by the position to be displayed into a pre-constructed current display position;
and restoring the to-be-displayed and the current display bit to the corresponding original position, wherein the original position of the current display bit is positioned in the view window.
7. The method of claim 1, wherein before the bit to be shown is moved to the view window, the information to be shown in the bit to be shown is invisible, and different directions of the view window respectively have one bit to be shown.
8. An information presentation device comprising:
the receiving module is used for receiving an operation instruction;
the execution module is used for executing the operation instruction so as to load the information to be displayed to one of the pre-constructed positions to be displayed and move the position to be displayed to the view window so as to display the information to be displayed;
and each to-be-displayed position is used for displaying one to-be-displayed message.
9. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-7.
10. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to carry out the method of any one of claims 1 to 7.
CN202110358684.2A 2021-04-01 2021-04-01 Information display method and device, electronic equipment and storage medium Pending CN113760157A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110358684.2A CN113760157A (en) 2021-04-01 2021-04-01 Information display method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110358684.2A CN113760157A (en) 2021-04-01 2021-04-01 Information display method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113760157A true CN113760157A (en) 2021-12-07

Family

ID=78786863

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110358684.2A Pending CN113760157A (en) 2021-04-01 2021-04-01 Information display method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113760157A (en)

Similar Documents

Publication Publication Date Title
CN110046021B (en) Page display method, device, system, equipment and storage medium
US10324619B2 (en) Touch-based gesture recognition and application navigation
US20180373804A1 (en) Method and device for loading information stream page
US11934629B2 (en) Action tool bar for mobile applications
CN107783714B (en) Page display method and device, electronic equipment and storage medium
KR20160141838A (en) Expandable application representation
CN111399956A (en) Content display method and device applied to display equipment and electronic equipment
US20140237357A1 (en) Two-dimensional document navigation
KR20160140932A (en) Expandable application representation and sending content
CN111291244B (en) House source information display method, device, terminal and storage medium
CN113191726A (en) Task detail interface display method, device, equipment and computer readable medium
KR102376079B1 (en) Method and system for viewing embedded video
CN110633126B (en) Information display method and device and electronic equipment
CN104781808A (en) System and method for adjusting website displays
US20150169168A1 (en) Methods and systems for managing displayed content items on touch-based computer devices
US9256358B2 (en) Multiple panel touch user interface navigation
CN110704740A (en) Method and apparatus for presenting information
US10007419B2 (en) Touch-based gesture recognition and application navigation
US20230276079A1 (en) Live streaming room page jump method and apparatus, live streaming room page return method and apparatus, and electronic device
CN109947528B (en) Information processing method and device
CN104238884A (en) Dynamic information presentation and user interaction system and equipment based on digital panorama
CN111310086A (en) Page jump method and device and electronic equipment
CN113760157A (en) Information display method and device, electronic equipment and storage medium
CN113204299B (en) Display method, display device, electronic equipment and storage medium
CN111666030B (en) Information display method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination