Information flow display method, device, equipment and medium

文档序号:1686767 发布日期:2020-01-03 浏览:26次 中文

阅读说明:本技术 信息流的显示方法、装置、设备及介质 (Information flow display method, device, equipment and medium ) 是由 毕思远 江宁 于 2019-09-30 设计创作,主要内容包括:本申请公开了一种信息流的显示方法、装置、设备及介质,所述方法属于人机交互领域,所述方法包括:显示信息流展示界面,所述信息流展示界面显示的信息流中包括按照第一方向顺序排列的多个信息流元素,所述多个信息流元素中存在目标信息流元素;在所述信息流展示界面中,沿所述第一方向对所述信息流进行滚动更新;在沿所述第一方向对所述信息流进行滚动更新的过程中,按照第二方向对所述目标信息流元素中的显示内容进行更新。本申请使得用户在保持自身的使用习惯不变的前提下,使得目标信息流元素中的显示内容得到有效的呈现,提高目标信息流元素中的显示内容的曝光次数,提高人机交互效率。(The application discloses a method, a device, equipment and a medium for displaying information flow, wherein the method belongs to the field of man-machine interaction, and comprises the following steps: displaying an information flow display interface, wherein an information flow displayed by the information flow display interface comprises a plurality of information flow elements which are sequentially arranged according to a first direction, and a target information flow element exists in the plurality of information flow elements; in the information flow display interface, performing rolling update on the information flow along the first direction; and updating the display content in the target information flow element according to a second direction in the process of performing rolling updating on the information flow along the first direction. According to the method and the device, the display content in the target information flow element is effectively presented on the premise that the use habit of the user is kept unchanged, the exposure times of the display content in the target information flow element are increased, and the human-computer interaction efficiency is improved.)

1. A method for displaying an information stream, the method comprising:

displaying an information flow display interface, wherein an information flow displayed by the information flow display interface comprises a plurality of information flow elements which are sequentially arranged according to a first direction, and a target information flow element exists in the plurality of information flow elements;

in the information flow display interface, performing rolling update on the information flow along the first direction;

and updating the display content in the target information flow element according to a second direction in the process of performing rolling updating on the information flow along the first direction.

2. The method of claim 1, wherein said updating the display content in the target information flow element in the second direction comprises:

switching the first display content in the target information flow element into second display content according to the second direction;

wherein the second direction is a direction perpendicular to the first direction.

3. The method of claim 1, wherein said updating the display content in the target information flow element in the second direction comprises:

performing translation display on the streaming display content in the target information stream element according to the second direction;

wherein the second direction is a direction perpendicular to the first direction.

4. The method of claim 1, wherein said updating the display content in the target information flow element in a second direction during the scrolling update of the information flow in the first direction comprises:

in the process of performing rolling update on the information flow along the first direction, when the rolling distance of the target information flow element along the first direction is greater than a trigger distance, updating the display content in the target information flow element according to a second direction;

or the like, or, alternatively,

in the process of performing rolling update on the information flow along the first direction, when the rolling position of the target information flow element along the first direction reaches a trigger position, updating the display content in the target information flow element according to a second direction.

5. The method of claim 4, wherein updating the display content in the target information flow element in the second direction when the scroll position of the target information flow element in the first direction reaches a trigger position comprises:

when the first distance of the target information flow element is larger than the second distance, updating the display content in the target information flow element according to a second direction;

wherein the first distance is a distance between an element position and a bottom edge of the target information flow element, the second distance is a distance between an element position and a top edge of the target information flow element, the top edge and the bottom edge being determined according to the first direction.

6. The method of claim 5, further comprising:

when the first distance of the target information flow element is smaller than the second distance, the display content in the target information flow element is kept unchanged.

7. The method of any of claims 1 to 6, wherein said scrolling the information stream in the information stream presentation interface in the first direction comprises:

receiving an update trigger signal, the update trigger signal comprising: at least one of a sliding signal, a voice signal, a back touch signal, a frame touch signal, a gesture signal or an eye movement signal collected by a camera, and a motion signal collected by a motion sensor;

and in the information flow display interface, performing rolling update on the information flow along the first direction according to the update trigger signal.

8. An apparatus for displaying information streams, the apparatus comprising:

the interface display module is used for displaying an information flow display interface, wherein an information flow displayed by the information flow display interface comprises a plurality of information flow elements which are sequentially arranged according to a first direction, and a target information flow element exists in the plurality of information flow elements;

the first updating module is used for performing rolling updating on the information flow along the first direction in the information flow display interface;

and the second updating module is used for updating the display content in the target information flow element according to a second direction in the process of performing rolling updating on the information flow along the first direction.

9. The apparatus of claim 8,

the second updating module is configured to switch the first display content in the target information flow element into a second display content according to the second direction;

wherein the second direction is a direction perpendicular to the first direction.

10. The apparatus of claim 8,

the second updating module is configured to perform translation display on the streaming display content in the target information flow element according to the second direction;

wherein the second direction is a direction perpendicular to the first direction.

11. The apparatus of claim 8,

the second updating module is configured to, in a process of performing rolling updating on the information stream along the first direction, update display content in the target information stream element according to a second direction when a rolling distance of the target information stream element along the first direction is greater than a trigger distance;

or the like, or, alternatively,

the second updating module is configured to, in a process of performing rolling updating on the information stream along the first direction, update display content in the target information stream element according to a second direction when a rolling position of the target information stream element along the first direction reaches a trigger position.

12. The apparatus of claim 11,

the second updating module is configured to, in the process of performing rolling update on the information stream along the first direction, update the display content in the target information stream element according to a second direction when the first distance of the target information stream element is greater than a second distance;

wherein the first distance is a distance between an element position and a bottom edge of the target information flow element, the second distance is a distance between an element position and a top edge of the target information flow element, the top edge and the bottom edge being determined according to the first direction.

13. The apparatus of any one of claims 8 to 12, further comprising:

an interaction module, configured to receive an update trigger signal, where the update trigger signal includes: at least one of a sliding signal, a voice signal, a back touch signal, a frame touch signal, a gesture signal or an eye movement signal collected by a camera, and a motion signal collected by a motion sensor;

the first updating module is configured to perform rolling updating on the information stream in the information stream display interface along the first direction according to the updating trigger signal.

14. A computer device, wherein the computer device comprises a memory and a processor; the memory stores at least one program that is loaded and executed by the processor to implement the method of displaying an information stream as claimed in any one of claims 1 to 7 above.

15. A computer-readable storage medium, in which at least one program is stored, the at least one program being loaded and executed by a processor to implement the method of displaying an information stream according to any one of claims 1 to 7.

Technical Field

The embodiment of the application relates to the field of human-computer interaction, in particular to a method, a device, equipment and a medium for displaying information streams.

Background

The information flow is a display mode which is arranged longitudinally like a waterfall and continuously shows new content along with the turning of fingers. The information flow provides a lateral sliding function in addition to a longitudinal sliding function.

Disclosure of Invention

The embodiment of the application provides a method, a device, equipment and a medium for displaying information streams, and can solve the problem that the number of presentation times of second display contents is less because the sliding operation habit of a user on the information streams is longitudinal sliding and few users actively slide transversely. The technical scheme is as follows:

according to an aspect of the present application, there is provided a method of displaying an information stream, the method including:

displaying an information flow display interface, wherein an information flow displayed by the information flow display interface comprises a plurality of information flow elements which are sequentially arranged according to a first direction, and a target information flow element exists in the plurality of information flow elements;

in the information flow display interface, performing rolling update on the information flow along the first direction;

and updating the display content in the target information flow element according to a second direction in the process of performing rolling updating on the information flow along the first direction.

According to an aspect of the present application, there is provided a display apparatus of an information stream, the apparatus including:

the interface display module is used for displaying an information flow display interface, wherein an information flow displayed by the information flow display interface comprises a plurality of information flow elements which are sequentially arranged according to a first direction, and a target information flow element exists in the plurality of information flow elements;

the first updating module is used for performing rolling updating on the information flow along the first direction in the information flow display interface;

and the second updating module is used for updating the display content in the target information flow element according to a second direction in the process of performing rolling updating on the information flow along the first direction.

According to another aspect of the present application, there is provided a computer device comprising a memory and a processor; the memory stores at least one program that is loaded and executed by the processor to implement the method of displaying information streams as described above.

According to another aspect of the present application, there is provided a computer-readable storage medium having stored therein at least one program, which is loaded and executed by a processor to implement the method of displaying an information stream as described above.

According to another aspect of the present application, there is provided a computer program product having at least one program stored therein, the at least one program being loaded and executed by a processor to implement the method of displaying an information stream as described above.

The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:

by updating the display content in the target information flow element according to the second direction in the process of rolling and updating the information flow along the first direction, the display content in the target information flow element is effectively presented on the premise that the use habit of a user is kept unchanged, the exposure times of the display content in the target information flow element are increased, and the human-computer interaction efficiency is improved.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.

FIG. 1 is a block diagram of a computer system provided in one illustrative embodiment of the present application;

FIG. 2 is a flow chart of a method of displaying information streams provided by another illustrative embodiment of the present application;

FIG. 3 is an interface diagram of a method for displaying information streams provided by the exemplary embodiment shown in FIG. 2;

FIG. 4 is another interface diagram of a display method of information flow provided by the exemplary embodiment shown in FIG. 2;

FIG. 5 is a flow chart of a method of displaying information streams provided by an exemplary embodiment of the present application;

FIG. 6 is an interface diagram of a method of displaying information streams provided by the exemplary embodiment shown in FIG. 5;

FIG. 7 is a schematic interface diagram of a display method of information flow provided by the exemplary embodiment shown in FIG. 6;

FIG. 8 is a flow chart of a method of displaying information streams provided by an exemplary embodiment of the present application;

FIG. 9 is a schematic diagram of the triggering of an update trigger signal provided by an exemplary embodiment of the present application;

FIG. 10 is a schematic diagram of the triggering of an update trigger signal provided by an exemplary embodiment of the present application;

FIG. 11 is a schematic diagram of the triggering of an update trigger signal provided by an exemplary embodiment of the present application;

FIG. 12 is a schematic diagram of the triggering of an update trigger signal provided by an exemplary embodiment of the present application;

FIG. 13 is a flow chart of a method of displaying information streams provided by an exemplary embodiment of the present application;

FIG. 14 is an interface diagram of a method of displaying information streams provided by the exemplary embodiment shown in FIG. 13;

FIG. 15 is a block diagram of a display device for information flow provided by an exemplary embodiment of the present application;

fig. 16 is a block diagram of a terminal provided in an exemplary embodiment of the present application.

Detailed Description

To make the objects, technical solutions and advantages of the embodiments of the present application more clear, the embodiments of the present application will be further described in detail with reference to the accompanying drawings.

Although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to separate an element from another element region. For example, a first direction may be referred to as a second direction, and similarly, a second direction may be referred to as a first direction, without departing from the scope of the various described examples. Both the first direction and the second direction may be directions, and in some cases, may be separate and different directions.

The terminology used in the description of the various described examples herein is for the purpose of describing particular examples only and is not intended to be limiting. As used in the description of the various described examples and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. It will be further understood that the terms "Comprises," "Comprising," "inCludes" and/or "inCluding," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.

Depending on the context, the term "if" may be interpreted to mean "when" ("where" or "upon") or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined." or "if [ a stated condition or event ] is detected" may be interpreted to mean "upon determining.. or" in response to determining. "or" upon detecting [ a stated condition or event ] or "in response to detecting [ a stated condition or event ]" depending on the context.

FIG. 1 shows a block diagram of a computer system provided in an exemplary embodiment of the present application. The computer system 100 includes: a terminal 120 and a server 140.

The terminal 120 is installed and operated with an application program supporting information stream presentation. The application program can be any one of a video playing program, a short video playing program, a news program, a knowledge program, a life program, an instant messaging program, a shopping program, a picture sharing program and a community program. The terminal 120 is a terminal used by a user, and a user account is registered in an application program of the terminal 120.

The terminal 120 is connected to the server 140 through a wireless network or a wired network.

The server 140 includes at least one of a server, a plurality of servers, a cloud computing platform, and a virtualization center. Illustratively, server 140 includes a processor 144 and a memory 142, memory 142 in turn including an access module 1421 and a stream push module 1422. The server 140 is used to provide information streams for applications that support the display of information streams. Alternatively, the server 140 undertakes primary computational tasks and the terminal 120 undertakes secondary computational tasks; alternatively, the server 140 undertakes the secondary computing work and the terminal 120 undertakes the primary computing work; alternatively, the server 140 and the terminal 120 perform cooperative computing by using a distributed computing architecture.

Those skilled in the art will appreciate that the number of terminals described above may be greater or fewer. For example, the number of the terminals may be only one, or several tens or hundreds of the terminals, or more. The number of terminals and the type of the device are not limited in the embodiments of the present application.

Fig. 2 is a flowchart illustrating a method for displaying an information stream according to an exemplary embodiment of the present application. The method may be performed by the terminal of fig. 1. The method comprises the following steps:

step 202, displaying an information flow display interface, wherein an information flow displayed by the information flow display interface comprises a plurality of information flow elements which are sequentially arranged according to a first direction, and a target information flow element exists in the plurality of information flow elements;

the information flow presentation interface is a user interface for displaying information flows. The information stream comprises a plurality of information stream elements arranged sequentially in a first direction. When the information stream is displayed by using the list control, the information stream element may be a list item in the list control, and each row of the list item corresponds to one information stream element.

Illustratively, the first direction is a vertically upward direction, or a vertically downward direction. The information stream comprises a plurality of information stream elements arranged in an ascending order according to the first direction or a plurality of information stream elements arranged in a descending order according to the first direction.

Optionally, the sequence among the plurality of information flow elements is ordered according to chronological order, such as publishing time, updating time, and the like. Optionally, the order between the plurality of information flow elements is ordered by a sequence number of the first letter, the sequence number being indicated by a number or a character "a-z".

Optionally, there is a distinct dividing line between two adjacent information stream elements, or there is no distinct dividing line.

Optionally, the size and shape between the information flow elements are the same, or there is a difference in size and shape between at least two information flow elements.

Optionally, the display content on the information flow element includes: at least one of pictures, characters, videos, expressions and symbols. The arrangement of the display content on each information stream element may be the same or different. Optionally, the display content of each information stream element is different, and the display format is the same or different.

Optionally, the target information flow element is an information flow element having a capability of a scrolling update in the second direction. When the first direction is a longitudinal direction, the second direction may be a lateral direction. The target information stream element may be one or more.

Step 204, in the information flow display interface, performing rolling update on the information flow along a first direction;

"rolling update" means: a portion of the elements of the information stream (i.e., information stream) are moved out of the information stream display area and another portion of the elements of the information stream are moved into the information stream display area in a first direction.

The information flow display area is an area for displaying the information flow in the information flow display interface and occupies all or part of the information flow display interface. The information flow presentation interface may also include a title area, a bottom button area, a sidebar, and other areas.

And step 206, updating the display content in the target information flow element according to the second direction in the process of performing rolling updating on the information flow along the first direction.

And in the whole rolling updating process or part of the rolling updating process, the terminal also updates the display content in the target information flow element according to the second direction.

Wherein the second direction is another direction different from the first direction, for example, the second direction is a direction perpendicular to the first direction; for another example, the second direction is a direction that forms a predetermined angle (e.g., 45 degrees) with the first direction.

There are at least two implementations of "updating the display content in the target information flow element in the second direction", for example:

firstly, switching a first display content in a target information flow element into a second display content in a sliding way according to a second direction;

the first display content and the second display content are two display contents with a display boundary, or the first display content and the second display content are two display contents with a semantic boundary, or the first display content and the second display content are two different individuals in the same series of display contents.

For example, the first display content and the second display content are two different sets of videos; for another example, the first display content and the second display content are two different images; for another example, the first display content and the second display content are two different covers.

As shown in fig. 3, when the information flow is updated by scrolling down, the information flow element 9 moves out of the information flow display area on the display screen, and the information flow element 1 moves into the information flow display area on the display screen. Meanwhile, there is one target information flow element 3 having a horizontal scroll capability, and the display content in the target information flow element 3 is switched from "display content 1" to "display content 2".

And secondly, sliding the streaming display content in the target information flow element according to a second direction.

Streaming display content is display content where there is no apparent display demarcation or semantic demarcation. For example, the streaming content is an elongated image; as another example, the streamed content is a long string of text.

As shown in fig. 4, when the information flow is updated by scrolling down, the information flow element 9 moves out of the information flow display area on the display screen, and the information flow element 1 moves into the information flow display area on the display screen. Meanwhile, there is a target information flow element 3 with a horizontal sliding capability, and the streaming display content in the target information flow element 3 is "hello, is very happy to know you and hopes that multiple pictures" will be scrolled horizontally along with the sliding operation on the following days.

In summary, in the method provided in this embodiment, in the process of performing rolling update along the first direction, the display content in the target information flow element is updated according to the second direction, even when the user performs sliding in the first direction according to the inherent habit, the display content in the target information flow element is updated, so that the display content in the target information flow element is effectively presented on the premise that the user keeps the usage habit of the user unchanged, the number of times of exposure of the display content in the target information flow element is increased, and the human-computer interaction efficiency is improved.

In one example, the information flow presentation interface is a rectangular interface comprising: top edge, left side edge, right side edge, and bottom edge. Since the terminal may also be a terminal using other display screens such as an arc screen, a special-shaped screen, a bang screen, a drip screen, a waterfall screen, a surround screen, and a fold screen, the information flow display interface may also be other interfaces, but the description of the rectangular interface may be referred to accordingly.

Possible combinations of the first and second directions include, but are not limited to:

1. the first direction is a vertically downward direction and the second direction is a horizontally leftward direction;

2. the first direction is a vertically upward direction and the second direction is a horizontally leftward direction;

3. the first direction is a vertically downward direction and the second direction is a horizontally rightward direction;

4. the first direction is a vertically upward direction and the second direction is a horizontally rightward direction.

But not excluding possible combinations of the first and second directions as follows:

5. the first direction is a horizontal leftward direction, and the second direction is a vertical upward direction;

6. the first direction is a horizontal right direction and the second direction is a vertical up direction;

7. the first direction is a horizontal leftward direction and the second direction is a vertical downward direction;

8. the first direction is a horizontal rightward direction and the second direction is a vertical downward direction.

Taking the first direction as a vertical upward direction and the second direction as a horizontal leftward direction as an example, in some embodiments, the display content in the target information stream element is updated in a scrolling manner in the horizontal leftward direction throughout the scrolling update of the information stream in the vertical upward direction.

In other embodiments, during some scrolling updates of the information stream in a vertically upward direction, the display content in the target information stream element remains unchanged; in other processes, the display content in the target information flow element is updated by scrolling in a horizontal left direction.

When the display content in the target information flow element is triggered by a condition, in the process of rolling and updating the information flow along the first direction, when the rolling distance of the target information flow element along the first direction is greater than the triggering distance, the display content in the target information flow element is updated according to the second direction; or, in the process of performing rolling update on the information flow along the first direction, when the rolling position of the target information flow element along the first direction reaches the trigger position, updating the display content in the target information flow element according to the second direction. Exemplarily, reference is made to the following examples.

In an alternative embodiment based on fig. 2, fig. 5 shows a flow chart of a display method of information flow provided by another exemplary embodiment of the present application. The method may be performed by the terminal of fig. 1. The method comprises the following steps:

step 202, displaying an information flow display interface, wherein an information flow displayed by the information flow display interface comprises a plurality of information flow elements which are sequentially arranged according to a first direction, and a target information flow element exists in the plurality of information flow elements;

the information flow presentation interface is a user interface for displaying information flows. The information stream comprises a plurality of information stream elements arranged sequentially in a first direction. When the information stream is displayed by using the list control, the information stream element may be a list item in the list control, and each row of the list item corresponds to one information stream element.

Illustratively, the first direction is a vertically upward direction, or a vertically downward direction. The information stream comprises a plurality of information stream elements arranged in an ascending order according to the first direction or a plurality of information stream elements arranged in a descending order according to the first direction.

Optionally, the sequence among the plurality of information flow elements is ordered according to chronological order, such as publishing time, updating time, and the like. Optionally, the order between the plurality of information flow elements is ordered by a sequence number of the first letter, the sequence number being indicated by a number or a character "a-z".

Optionally, there is a distinct dividing line between two adjacent information stream elements, or there is no distinct dividing line.

Optionally, the size and shape between the information flow elements are the same, or there is a difference in size and shape between at least two information flow elements.

Optionally, the display content on the information flow element includes: at least one of pictures, characters, videos, expressions and symbols. The arrangement of the display content on each information stream element may be the same or different. Optionally, the display content of each information stream element is different, and the display format is the same or different.

Optionally, the target information flow element is an information flow element having a capability of a scrolling update in the second direction. When the first direction is a longitudinal direction, the second direction may be a lateral direction. The target information stream element may be one or more.

Step 204, in the information flow display interface, performing rolling update on the information flow along a first direction;

"rolling update" means: a portion of the elements of the information stream (i.e., information stream) are moved out of the information stream display area and another portion of the elements of the information stream are moved into the information stream display area in a first direction.

The information flow display area is an area for displaying the information flow in the information flow display interface and occupies all or part of the information flow display interface. The information flow presentation interface may also include a title area, a bottom button area, a sidebar, and other areas.

Step 2061, determining whether the first distance y1 is greater than the second distance y 2;

wherein the first distance y1 is the distance between the element position of the target information stream element and the bottom edge, the second distance y2 is the distance between the element position of the target information stream element and the top edge, the top edge and the bottom edge being determined according to the first direction.

Taking the first direction as a vertical upward direction as an example, the top edge is the upper edge of the rectangular information flow display interface (i.e. the edge on the side of the arrow when the arrow is used to indicate the first direction), and the bottom edge is the lower edge of the rectangular information flow display interface (i.e. the edge on the side of the arrow when the arrow is used to indicate the first direction), as shown in fig. 6.

When y1 is greater than y2, perform step 2062; when y2 is greater than y1, step 2063 is performed.

Step 2062, when the first distance y1 of the target information flow element is greater than the second distance y2, updating the display content in the target information flow element according to the first sliding operation and in the second direction;

alternatively, when the first distance y1 of the target information flow element is greater than the second distance y2 and the second distance y2 is not equal to 0, the display content in the target information flow element is updated in the second direction according to the first sliding operation. Where "the second distance y2 is not equal to 0" is used to indicate that the target information stream element is displayed in the information stream display area.

Illustratively, the first display content in the target information flow element is switched to the second display content in the second direction according to the first sliding operation.

Referring to fig. 7 in combination, taking the example that the first sliding operation is vertical upward sliding, when y1 is greater than y2, the first display content in the information flow element 4 with the lateral sliding capability slides laterally to the left out of the screen, and the second display content slides laterally from right to left into the screen.

When the first distance y1 of the target information stream element is less than the second distance y2, or the first distance y1 is equal to 0, the display content in the target information stream element is kept unchanged, step 2063.

Referring to fig. 7 in conjunction, taking the example that the first sliding operation is sliding vertically upwards, when y1 is not yet larger than y2, the first display content in the information flow element 4 with lateral sliding capability remains unchanged.

In the method provided by this embodiment, when the user moves longitudinally to a certain distance, the display content in the target information flow element starts to scroll laterally to the left, so that the first display content leaves the screen, and the second display content in the target information flow element appears at the main position (the position of the original first display content), because the scroll animation of the second display content can attract the attention of the user and automatically scroll to the main visual position, more attention of the user is obtained, the exposure times and the attraction of the second display content in the target information flow element are increased, and the human-computer interaction efficiency is improved.

In an exemplary example, the updating process in step 204 may be dynamically controlled by the operating system or the application itself, or may be controlled by human operation. When the updating process in step 204 is controlled by human operation, step 204 can be implemented by the following sub-steps, as shown in fig. 8:

step 204a, receiving an updating trigger signal;

the update trigger signal is a signal for triggering a rolling update of the information stream in a first direction. Update triggers include, but are not limited to: at least one of a sliding signal, a voice signal, a back touch signal, a frame touch signal, a gesture signal or an eye movement signal collected by a camera, and a motion signal collected by a motion sensor;

when the terminal is provided with a touch screen, the sliding signal is a signal generated by a sliding operation applied to the touch screen, as shown in fig. 9; when the terminal is provided with the sound pickup assembly, the voice signal is a signal generated when the sound pickup assembly collects external sound, as shown in fig. 10; when the back of the terminal is provided with the touch screen or the touch sensing assembly, the back touch signal is a signal generated by touch operation acting on the back touch screen; when a touch screen or a touch sensing component is arranged on a frame (middle frame) of the terminal, a frame touch signal is a signal generated by a touch operation acting on the touch sensing component, as shown in fig. 11; when the terminal is provided with a front camera or a pop-up camera, the camera can acquire gesture signals or eye movement signals made by a user in the real world; when a motion sensor such as a gravitational acceleration sensor or a gyroscope sensor is disposed on the terminal, the motion signal may be a signal generated by the motion sensor as shown in fig. 12, which is generated by a user knocking, beating or shaking the body of the terminal. For example, the user taps the top of the terminal.

And step 204b, in the information flow display interface, performing rolling update on the information flow along the first direction according to the update trigger signal.

In one embodiment, when the information flow is updated in a first direction in a rolling mode, the terminal updates the display content in the target information flow element in a second direction in a part of the target rolling updating process.

In an exemplary embodiment, all display contents in a target information flow element needing to be displayed in a horizontal direction are firstly inserted into a vertical information flow, when the information flow is scrolled upwards until the target information flow element is separated from a primary visual area and does not stay in the primary visual area, the user is not interested in first display contents in the target information flow element, when the user slides a certain distance in the vertical direction, the display contents in the target information flow element start to scroll horizontally to the left, so that the first display contents leave a screen, and second display contents in the target information flow element appear at a main position (the position of the original first display contents), and since the scroll animation of the second display contents can attract the attention of the user and automatically scroll to the main visual position, more attention of the user is obtained. Taking the target information flow element as an information flow element with the capability of sliding laterally as an example, as shown in fig. 8, the method includes the following steps:

step 301, inserting a transverse information flow element into a longitudinal information flow;

step 302, when the upward sliding operation is received, the information flow is rolled upwards along the y axis;

step 303, whether the element of the transverse information flow stays;

whether the lateral information flow element stays in a central position in the information flow display interface;

if yes, go to step 304; if not, go to step 305.

Step 304, when the upward sliding operation is stopped, displaying a transverse information flow element at the center position in the information flow display interface;

step 305, continuing to scroll the information stream in the y-axis direction;

the information stream continues to scroll up the y-axis while the up-slide operation is not stopped.

Step 306, during the process of scrolling the information flow upwards, the element position (central point) of the element of the transverse information flow changes;

when y1 is smaller than y2, the x scroll of the element of the lateral information flow is 0, step 307;

when y1 is greater than y2 and y2 is not equal to 0, the x of the lateral information flow element scrolls left to the position of the second display content, step 308.

Where "y 2 is not equal to 0" indicates that the lateral information flow element is displayed in the information flow presentation interface.

Referring to fig. 14 in combination, the first display content of the lateral information flow element "slide recommendation" is "introduction 1", and when y1 is greater than y2 during the upward sliding, the first display content of the lateral information flow element "slide recommendation" is switched to the second display content "introduction 2".

It should be noted that, in some embodiments, when y1 is equal to y2, the terminal may control the lateral information flow element to remain stationary, i.e., not scroll laterally; in other embodiments, the terminal may control the lateral information flow elements to scroll laterally when y1 equals y 2. The embodiment of the present application does not limit the actions performed by the terminal when y1 is equal to y 2.

Fig. 15 is a block diagram of a display device for information flow provided by an exemplary embodiment of the present application, wherein the device comprises:

an interface display module 1502, configured to display an information flow display interface, where an information flow displayed by the information flow display interface includes multiple information flow elements arranged in sequence according to a first direction, where a target information flow element exists in the multiple information flow elements;

a first updating module 1504, configured to perform a rolling update on the information flow in the information flow display interface along the first direction;

the second updating module 1506 is configured to update the display content in the target information flow element according to a second direction during the process of performing the rolling update on the information flow along the first direction.

In a possible embodiment, the second updating module 1506 is configured to switch the first display content in the target information flow element to the second display content according to the second direction;

wherein the second direction is a direction perpendicular to the first direction.

In a possible embodiment, the second updating module 1506 is configured to perform a panning display on the streaming display content in the target information flow element according to the second direction;

wherein the second direction is a direction perpendicular to the first direction.

In a possible embodiment, the second updating module 1506 is configured to, during the process of performing rolling update on the information flow in the first direction, update the display content in the target information flow element in a second direction when the rolling distance of the target information flow element in the first direction is greater than a trigger distance;

or the like, or, alternatively,

the second updating module 1506 is configured to, in the process of performing rolling update on the information stream along the first direction, update the display content in the target information stream element according to a second direction when the rolling position of the target information stream element along the first direction reaches a trigger position

In a possible embodiment, the second updating module 1506 is configured to, during the scrolling updating of the information stream in the first direction, update the display content in the target information stream element in a second direction when the first distance of the target information stream element is greater than a second distance;

wherein the first distance is a distance between an element position and a bottom edge of the target information flow element, the second distance is a distance between an element position and a top edge of the target information flow element, the top edge and the bottom edge being determined according to the first direction.

In one possible embodiment, the apparatus further comprises:

the module 1505 for maintaining the display content in the target information flow element unchanged when the first distance of the target information flow element is less than the second distance.

In one possible embodiment, the apparatus further comprises:

an interaction module 1503, configured to receive an update trigger signal, where the update trigger signal includes: at least one of a sliding signal, a voice signal, a back touch signal, a frame touch signal, a gesture signal or an eye movement signal collected by a camera, and a motion signal collected by a motion sensor;

the first updating module 1504 is configured to perform rolling updating on the information stream in the information stream display interface along the first direction according to the updating trigger signal.

Fig. 16 shows a block diagram of a terminal 1600 provided in an exemplary embodiment of the present application. The terminal 1600 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio layer iii, motion video Experts compression standard Audio layer 3), an MP4 player (Moving Picture Experts Group Audio layer IV, motion video Experts compression standard Audio layer 4), a notebook computer, or a desktop computer. Terminal 1600 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc.

Generally, terminal 1600 includes: a processor 1601, and a memory 1602.

Processor 1601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 1601 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). Processor 1601 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also referred to as a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1601 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content that the display screen needs to display. In some embodiments, the processor 1601 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.

Memory 1602 may include one or more computer-readable storage media, which may be non-transitory. The memory 1602 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1602 is used to store at least one instruction for execution by processor 1601 to implement a method of displaying an information stream provided by a method embodiment of the present application.

Those skilled in the art will appreciate that the configuration shown in fig. 16 is not intended to be limiting of terminal 1600, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be employed.

The present application further provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set, or a set of instructions is stored, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the method for displaying an information stream provided by the above-mentioned method embodiments.

Optionally, the present application further provides a computer program product containing instructions, which when run on a computer device, causes the computer device to execute the method for displaying information streams provided by the above method embodiments.

It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.

The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

24页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:防误触方法、装置及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类