CN105320421B - Message display method, device and terminal - Google Patents

Message display method, device and terminal Download PDF

Info

Publication number
CN105320421B
CN105320421B CN201410379712.9A CN201410379712A CN105320421B CN 105320421 B CN105320421 B CN 105320421B CN 201410379712 A CN201410379712 A CN 201410379712A CN 105320421 B CN105320421 B CN 105320421B
Authority
CN
China
Prior art keywords
message
moving
interface
distance
interface background
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.)
Active
Application number
CN201410379712.9A
Other languages
Chinese (zh)
Other versions
CN105320421A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410379712.9A priority Critical patent/CN105320421B/en
Publication of CN105320421A publication Critical patent/CN105320421A/en
Application granted granted Critical
Publication of CN105320421B publication Critical patent/CN105320421B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a message display method, a message display device and a terminal, wherein the method comprises the following steps: when message browsing operation in a view interface is detected, calculating the moving characteristics of a message displayed in the view interface; calculating the movement characteristics of the interface background according to the movement characteristics of the message and a preset relative movement rule; moving the message according to the moving characteristics of the message, and moving the interface background according to the moving characteristics of the interface background; and displaying the message and the interface background after the movement operation in the view interface. The invention can make the message and the interface background move relatively to generate parallax, enrich the message display mode and improve the message display effect.

Description

Message display method, device and terminal
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, and a terminal for displaying a message.
Background
With the continuous development of computer technology, various applications based on terminals such as smart phones, computers, tablet computers, and the like have entered into daily life, study, and work of people, wherein instant messaging applications, SNS (social networking Services) applications, and the like have been greatly popularized because they can implement communication between users through messaging quickly and easily. Such as instant messaging messages, SNS messages, etc., need to be visually displayed through a view interface on which a user can browse the displayed messages. At present, a view interface usually displays an interface background while displaying a message, the existing interface background is usually a fixed background, and a user does not move the interface background when moving the message for browsing, so that the message display mode is single and the display effect is poor.
Disclosure of Invention
The embodiment of the invention provides a message display method, a message display device and a terminal, which can enable a message and an interface background to move relatively to generate parallax, enrich message display modes and improve message display effects.
A first aspect of an embodiment of the present invention provides a message display method, which may include:
when message browsing operation in a view interface is detected, calculating the moving characteristics of a message displayed in the view interface;
calculating the movement characteristics of the interface background according to the movement characteristics of the message and a preset relative movement rule;
moving the message according to the moving characteristics of the message, and moving the interface background according to the moving characteristics of the interface background;
and displaying the message and the interface background after the movement operation in the view interface.
A second aspect of an embodiment of the present invention provides a message display apparatus, which may include:
the message characteristic calculation module is used for calculating the movement characteristics of the messages displayed in the view interface when the message browsing operation in the view interface is detected;
the background feature calculation module is used for calculating the moving features of the interface background according to the moving features of the messages and a preset relative movement rule;
the operation module is used for carrying out moving operation on the message according to the moving characteristics of the message and carrying out moving operation on the interface background according to the moving characteristics of the interface background;
and the display module is used for displaying the message and the interface background after the movement operation in the view interface.
A third aspect of the embodiments of the present invention provides a terminal, which may include the message display apparatus according to the second aspect.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the movement characteristic of the interface background can be calculated according to the movement characteristic of the message displayed in the view interface, and the message is moved according to the movement characteristic of the message, and meanwhile, the interface background is moved according to the movement characteristic of the interface background, so that the message and the interface background can generate parallax of relative movement in the view interface, the display mode of the message is enriched, and the message display effect is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a message display method according to an embodiment of the present invention;
FIG. 2a is a schematic view of a view interface according to an embodiment of the present invention;
FIG. 2b is a schematic view of another view interface provided by an embodiment of the present invention;
fig. 3 is a flowchart of another message display method according to an embodiment of the present invention;
fig. 4 is a flowchart of another message display method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a message display apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another message display apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a message characteristic calculation module according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another message characteristic calculation module according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a background feature calculation module according to an embodiment of the present invention;
FIG. 10 is a block diagram of another background feature calculation module according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of an operation module according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The message display method provided by the embodiment of the invention will be described in detail below with reference to fig. 1 to 4.
Please refer to fig. 1, which is a flowchart of a message display method according to an embodiment of the present invention; the method may comprise the following steps S101-S104.
S101, when the message browsing operation in the view interface is detected, the moving characteristics of the message displayed in the view interface are calculated.
The view interface may refer to an area of a terminal screen for displaying a message and an interface background, and may be a touch screen interface or a mouse click interface. The message browsing operations may include, but are not limited to: a slide operation or a click operation. Specifically, if the view interface is a touch screen interface, the message browsing operation may be a sliding operation applied to the touch screen interface. If the view interface is a mouse click interface, the message browsing operation may be a mouse click operation on the mouse click interface. Wherein the messages displayed in the view interface may include, but are not limited to: instant messaging messages, SNS messages, and the like.
Referring to fig. 2a and fig. 2b together, a schematic view of a view interface provided in an embodiment of the present invention is shown; as shown in fig. 2a or fig. 2b, a region 1 between a and a' represents a view interface, and the view interface 1 belongs to a part or all of the region of the terminal screen; a region 3 between b and b' represents an interface background, wherein the interface background 3 is positioned on a background layer, and the background layer and a terminal screen belong to different display layers; a message display layer 2 is arranged between the view interface 1 and the interface background 3, the message display layer 2 contains a plurality of messages, and the plurality of messages are arranged according to the sequence of the generation time, for example: as shown in the schematic diagram of fig. 2a, message 1 is generated earlier than message 2, message 3 is generated earlier than message 4, and so on. It should be noted that the message can move on the message display layer, and the interface background 3 packet can move on the background layer.
In the embodiment of the present invention, if a user wants to browse a complete message, a message browsing operation may be performed on the view interface, and in this step, a moving feature of the message displayed in the view interface may be calculated according to the message browsing operation, where the moving feature may include a moving direction and a moving distance.
In a possible implementation manner of this embodiment, the step may specifically include the following steps a to C:
A. and when the sliding operation in the view interface is detected, acquiring the sliding direction and the sliding distance of the sliding operation.
In a specific implementation, assuming that the view interface is a touch screen interface, when a user wants to browse a complete message, the user may perform a downward sliding operation on the view interface through a finger to request to browse a message whose generation time is earlier than the generation time of the message currently displayed in the view interface, referring to fig. 2a to 2b, the sliding operation moves the message 2 in the message display layer from the position c to the position a, and the step a obtains the sliding direction and the sliding distance of the sliding operation.
B. Determining the sliding direction as a moving direction of the displayed message in the view interface.
Referring to fig. 2 a-2B again, the sliding direction is a downward direction along the view interface, and in this step B, the moving direction of the message displayed in the view interface is determined as the downward direction along the view interface, i.e. the direction from the position c to the position a.
C. And determining the moving distance of the message displayed in the view interface according to the sliding distance.
In this step, the relationship between the sliding distance and the moving distance of the message may be determined according to a statistical value or an empirical value, for example: and C, moving a certain message by 2 times of sliding distance according to the sliding distance generated by the statistical value sliding operation, thereby determining that the sliding distance and the moving distance of the message are in 2 times of relation, and calculating the moving distance of the message according to the sliding distance and the determined 2 times of relation. As shown in fig. 2 a-2 b, according to the relationship determined by the statistical value, the sliding distance obtained in step a may move the message 2 from the position c to the position a, and this step may calculate and obtain the moving distance of the displayed message in the view interface as the pixel distance from the position c to the position a.
In another possible implementation manner of this embodiment, the step may specifically include the following steps D-F:
D. when the click operation in the view interface is detected, determining the operation direction and the operation distance of the click operation according to the initial click position and the final click position of the click operation.
In a specific implementation, if the view interface is a mouse click interface, when a user wants to browse a complete message, a click operation may be performed on the view interface through a mouse to request to browse a message whose generation time is earlier or later than the generation time of the message currently displayed in the view interface, and step D may record an initial click position and a final click position of the mouse click operation, thereby determining an operation direction of the click operation as a direction from the initial click position to the final click position, and determining the operation distance as a distance between the initial click position and the final click position.
E. Determining the operation direction as a moving direction of the displayed message in the view interface.
F. And determining the moving distance of the message displayed in the view interface according to the operation distance.
Steps E-F shown in this embodiment can be referred to as steps B-C in the above embodiment, and are not described herein again.
And S102, calculating the movement characteristics of the interface background according to the movement characteristics of the message and a preset relative movement rule.
The preset relative movement rule may be set according to an actual parallax requirement, and the preset relative movement rule may include: the moving direction of the message is the same as that of the interface background, and the difference between the moving distance of the message and the moving distance of the interface background is a preset difference value; alternatively, the preset relative movement rule may include: the moving direction of the message is the same as that of the interface background, and the moving distance of the message is a preset multiple value of the moving distance of the interface background.
In a possible implementation manner of this embodiment, the step may specifically include the following steps G to H:
G. and determining the moving direction of the message as the moving direction of the interface background according to the preset relative movement rule.
H. And carrying out subtraction operation on the moving distance of the message by adopting a preset difference value contained in the preset relative movement rule to obtain the moving distance of the interface background.
The preset difference value can be set according to actual needs, and is a positive number. It should be noted that the larger the preset difference setting is, the more obvious the parallax contrast will be generated by the relative movement of the message and the interface background. Step H indicates that the moving distance of the message is greater than the moving distance of the interface background, for example: if the moving distance of the message is m and the preset difference is p (p >0), step H may obtain the moving distance n of the interface background as m-p.
In another possible implementation manner of this embodiment, the step may specifically include the following steps I-J:
I. and determining the moving direction of the message as the moving direction of the interface background according to the preset relative movement rule.
J. And performing division operation on the moving distance of the message by adopting a preset multiple numerical value contained in the preset relative movement rule to obtain the moving distance of the interface background.
The preset multiple value can be set according to actual needs, and the preset multiple value is a value larger than 1. It should be noted that, the larger the preset multiple value is set, the more obvious the parallax contrast will be generated by the relative movement of the message and the interface background. Step J indicates that the moving distance of the message is greater than the moving distance of the interface background, for example: if the moving distance of the message is m and the preset multiple value is q (q >1), step J may obtain that the moving distance n of the interface background is m/p.
S103, moving the message according to the moving characteristics of the message, and moving the interface background according to the moving characteristics of the interface background.
In this embodiment, in order to obtain a better display effect, preferably, the moving operation on the message and the moving operation on the interface background may be performed synchronously, so that a sense of parallax caused by the relative motion between the message and the interface background can be displayed in the view interface. It should be understood that, the embodiment of the present invention is not limited to this, that is, the moving operation on the message and the moving operation on the interface background may also be sequentially distinguished in time sequence.
In a specific implementation, the step can include the following steps K-L:
K. and moving the message according to the moving distance of the message in the view interface along the moving direction of the message.
And L, moving the interface background along the moving direction of the interface background in the view interface according to the moving distance of the interface background.
S104, displaying the message and the interface background after the moving operation in the view interface.
In the embodiment of the invention, the movement characteristic of the interface background can be calculated according to the movement characteristic of the message displayed in the view interface, and the message is moved according to the movement characteristic of the message, and meanwhile, the interface background is moved according to the movement characteristic of the interface background, so that the message and the interface background can generate parallax of relative movement in the view interface, the display mode of the message is enriched, and the message display effect is improved.
Please refer to fig. 3, which is a flowchart illustrating another message displaying method according to an embodiment of the present invention; the method may comprise the following steps S201-S205.
S201, when the message browsing operation in the view interface is detected, calculating the moving characteristics of the message displayed in the view interface.
S202, calculating the movement characteristics of the interface background according to the movement characteristics of the message and a preset relative movement rule.
S203, acquiring the attribute information of the interface background.
Wherein the attribute information includes: single fill images or consecutive fill images. And the attribute information of the interface background is a single filling image, which indicates that the interface background is an image with a limited area, and the background layer is filled in a limited way, wherein the limited area of the interface background is the area of the background layer. The attribute information of the interface background is a continuous filling image, which indicates that the interface background is an image with an infinite area formed by combining a plurality of images, and the background layer can be filled infinitely.
And S204, if the attribute information of the interface background is a continuous filling image, performing moving operation on the message according to the moving characteristics of the message, and performing moving operation on the interface background according to the moving characteristics of the interface background.
S205, displaying the message and the interface background after the moving operation in the view interface.
Steps S201 to S202 of the present embodiment can be referred to steps S101 to S102 of the embodiment shown in fig. 1; steps S204 to S205 of this embodiment can refer to steps S103 to S104 of the embodiment shown in fig. 1, which are not described herein again.
In the embodiment of the invention, the movement characteristic of the interface background can be calculated according to the movement characteristic of the message displayed in the view interface, and the message is moved according to the movement characteristic of the message, and meanwhile, the interface background is moved according to the movement characteristic of the interface background, so that the message and the interface background can generate parallax of relative movement in the view interface, the display mode of the message is enriched, and the message display effect is improved.
Please refer to fig. 4, which is a flowchart illustrating another message display method according to an embodiment of the present invention; the method may include the following steps S301 to S308.
S301, when the message browsing operation in the view interface is detected, calculating the moving characteristics of the message displayed in the view interface.
S302, calculating the movement characteristics of the interface background according to the movement characteristics of the message and a preset relative movement rule.
S303, acquiring attribute information of the interface background, wherein the attribute information comprises: single fill images or consecutive fill images.
Wherein the attribute information includes: single fill images or consecutive fill images. And the attribute information of the interface background is a single filling image, which indicates that the interface background is an image with a limited area, and the background layer is filled in a limited way, wherein the limited area of the interface background is the area of the background layer. The attribute information of the interface background is a continuous filling image, which indicates that the interface background is an image with an infinite area formed by combining a plurality of images, and the background layer can be filled infinitely.
S304, if the attribute information of the interface background is a single filling image, calculating the relative distance between the edge of the view interface and the edge of the interface background along the moving direction of the interface background.
The attribute information of the interface background is a single filling image, which indicates that the interface background is an image with a limited area, and the background layer is filled in a limited manner, wherein the limited area of the interface background is the area of the background layer. In a specific implementation, referring to fig. 2 a-2 b together, when the message 2 moves from the position c to the position a, the moving direction of the interface background can be determined as a downward direction along the view interface, i.e. the direction from the position c to the position a, and this step requires calculating a relative distance a 'b' between a lower edge a 'of the view interface and a lower edge b' of the interface background. It is understood that if the moving direction of the interface background is upward along the view interface, this step needs to calculate the relative distance between the upper edge a of the view interface and the upper edge b of the interface background.
S305, judging whether the relative distance is greater than or equal to the moving distance of the interface background; if yes, go to step S307; otherwise, the process proceeds to step S306.
The relative distance is greater than or equal to the moving distance of the interface background, which indicates that the moving operation on the interface background does not exceed the limited area of the interface background, and the interface background may be moved according to the interface moving distance, so that the process may proceed to step S307. Otherwise, the relative distance is smaller than the moving distance of the interface background, which indicates that the moving operation on the interface background will exceed the limited area of the interface background, and the interface background needs to be moved according to the relative distance, so that the step S306 may be proceeded to.
S306, the relative distance is determined as the moving distance of the interface background again.
As can be seen from steps S305 to S306, for the movement operation of the interface background whose attribute information is a single fill image, at most, the interface background can be moved to a position where the edge of the interface background coincides with the edge of the view interface in the movement direction of the interface background, at this time, the relative distance is 0, and thereafter, even if the movement operation of the message is continued, the background interface stops moving.
S307, moving the message according to the moving characteristics of the message, and moving the interface background according to the moving characteristics of the interface background.
S308, displaying the message and the interface background after the moving operation in the view interface.
Steps S301 to S302 of this embodiment can refer to steps S101 to S102 of the embodiment shown in fig. 1, and steps S307 to S308 of this embodiment can refer to steps S103 to S104 of the embodiment shown in fig. 1, which are not described herein again.
In the embodiment of the invention, the movement characteristic of the interface background can be calculated according to the movement characteristic of the message displayed in the view interface, and the message is moved according to the movement characteristic of the message, and meanwhile, the interface background is moved according to the movement characteristic of the interface background, so that the message and the interface background can generate parallax of relative movement in the view interface, the display mode of the message is enriched, and the message display effect is improved.
A message display device according to an embodiment of the present invention will be described in detail with reference to fig. 5 to 11. It should be noted that the message display apparatus shown in fig. 5 to 11 can be applied to perform the methods shown in fig. 1 to 4. In practical applications, the message display device may be an application in a terminal, for example: instant messaging applications, SNS applications, and the like.
Fig. 5 is a schematic structural diagram of a message display device according to an embodiment of the present invention; the apparatus may include: a message characteristic calculation module 101, a background characteristic calculation module 102, an operation module 103, and a display module 104.
The message characteristic calculating module 101 is configured to calculate a movement characteristic of a message displayed in a view interface when a message browsing operation in the view interface is detected.
The view interface may refer to an area of a terminal screen for displaying a message and an interface background, and may be a touch screen interface or a mouse click interface. The message browsing operations may include, but are not limited to: a slide operation or a click operation. Specifically, if the view interface is a touch screen interface, the message browsing operation may be a sliding operation applied to the touch screen interface. If the view interface is a mouse click interface, the message browsing operation may be a mouse click operation on the mouse click interface. Wherein the messages displayed in the view interface may include, but are not limited to: instant messaging messages, SNS messages, and the like. In the embodiment of the present invention, if a user wants to browse a complete message, a message browsing operation may be performed on the view interface, and the message characteristic calculation module 101 may calculate a moving characteristic of the message displayed in the view interface according to the message browsing operation, where the moving characteristic may include a moving direction and a moving distance.
And the background feature calculation module 102 is configured to calculate a movement feature of the interface background according to the movement feature of the message and a preset relative movement rule.
The preset relative movement rule may be set according to an actual parallax requirement, and the preset relative movement rule may include: the moving direction of the message is the same as that of the interface background, and the difference between the moving distance of the message and the moving distance of the interface background is a preset difference value; alternatively, the preset relative movement rule may include: the moving direction of the message is the same as that of the interface background, and the moving distance of the message is a preset multiple value of the moving distance of the interface background.
And the operation module 103 is configured to perform a moving operation on the message according to the moving characteristic of the message, and perform a moving operation on the interface background according to the moving characteristic of the interface background.
In this embodiment, in order to obtain a better display effect, preferably, the operation module 103 may perform the moving operation on the message and the moving operation on the interface background synchronously, so that a sense of parallax caused by the relative motion between the message and the interface background can be displayed in the view interface. It should be understood that, this is not limited in the embodiment of the present invention, that is, the operation module 103 may distinguish the moving operation of the message from the moving operation of the interface background sequentially in time sequence.
A display module 104, configured to display the message and the interface background after the moving operation in the view interface.
In the embodiment of the invention, the movement characteristic of the interface background can be calculated according to the movement characteristic of the message displayed in the view interface, and the message is moved according to the movement characteristic of the message, and meanwhile, the interface background is moved according to the movement characteristic of the interface background, so that the message and the interface background can generate parallax of relative movement in the view interface, the display mode of the message is enriched, and the message display effect is improved.
Please refer to fig. 6, which is a schematic structural diagram of another message display apparatus according to an embodiment of the present invention; the apparatus may include: the system comprises a message characteristic calculation module 101, a background characteristic calculation module 102, an operation module 103, a display module 104, an attribute acquisition module 105, a first processing module 106, a relative calculation module 107, a judgment module 108 and a second processing module 109.
An attribute obtaining module 105, configured to obtain attribute information of the interface background, where the attribute information includes: single fill images or consecutive fill images.
Wherein the attribute information includes: single fill images or consecutive fill images. And the attribute information of the interface background is a single filling image, which indicates that the interface background is an image with a limited area, and the background layer is filled in a limited way, wherein the limited area of the interface background is the area of the background layer. The attribute information of the interface background is a continuous filling image, which indicates that the interface background is an image with an infinite area formed by combining a plurality of images, and the background layer can be filled infinitely.
The first processing module 106 is configured to notify the operation module to perform a moving operation on the interface background according to the moving feature of the interface background if the attribute information of the interface background is a continuous filling image.
A relative calculation module 107, configured to calculate, if the attribute information of the interface background is a single fill image, a relative distance between an edge of the view interface and an edge of the interface background along a moving direction of the interface background.
In a specific implementation, please refer to fig. 2 a-2 b together, when the message 2 moves from the position c to the position a, the moving direction of the interface background can be determined as a downward direction of the view interface, i.e. the direction from the position c to the position a, and the relative calculation module 107 needs to calculate a relative distance a 'b' between the lower edge a 'of the view interface and the lower edge b' of the interface background. It is understood that, if the moving direction of the interface background is upward along the view interface, the relative calculation module 107 needs to calculate the relative distance between the upper edge a of the view interface and the upper edge b of the interface background.
A determining module 108, configured to determine whether the relative distance is greater than or equal to the moving distance of the interface background.
The relative distance is greater than or equal to the moving distance of the interface background, which indicates that the moving operation on the interface background does not exceed the limited area of the interface background, and the interface background can be moved according to the moving distance of the interface. Otherwise, the relative distance is smaller than the moving distance of the interface background, which indicates that the moving operation on the interface background will exceed the limited area of the interface background, and the interface background needs to be moved according to the relative distance.
The second processing module 109 is configured to notify the operation module to perform a moving operation on the interface background according to the moving feature of the interface background if the relative distance is greater than or equal to the moving distance of the interface background; or, if the relative distance is smaller than the movement distance of the interface background, re-determining the relative distance as the movement distance of the interface background, and notifying the operation module to perform a movement operation on the interface background according to the movement characteristics of the interface background.
In this embodiment, for the movement operation of the interface background whose attribute information is a single fill image, at most, the interface background can be moved to a position where the edge of the interface background coincides with the edge of the view interface in the movement direction along the interface background, at this time, the relative distance is 0, and thereafter, even if the movement operation of the message is continued, the background interface stops moving.
In the embodiment of the invention, the movement characteristic of the interface background can be calculated according to the movement characteristic of the message displayed in the view interface, and the message is moved according to the movement characteristic of the message, and meanwhile, the interface background is moved according to the movement characteristic of the interface background, so that the message and the interface background can generate parallax of relative movement in the view interface, the display mode of the message is enriched, and the message display effect is improved.
Fig. 7 is a schematic structural diagram of a message feature calculation module according to an embodiment of the present invention; the message characteristic calculation module 101 may include: a sliding operation acquisition unit 1101, a first direction determination unit 1102, and a first distance determination unit 1103.
A sliding operation acquisition unit 1101 configured to acquire a sliding direction and a sliding distance of a sliding operation when the sliding operation in the view interface is detected.
In a specific implementation, assuming that the view interface is a touch screen interface, when a user wants to browse a complete message, the user may perform a downward sliding operation on the view interface through a finger to request to browse a message whose generation time is earlier than the generation time of the message currently displayed in the view interface, and the sliding operation obtaining unit 1101 obtains a sliding direction and a sliding distance of the sliding operation.
A first direction determining unit 1102, configured to determine the sliding direction as a moving direction of the message displayed in the view interface.
A first distance determining unit 1103, configured to determine a moving distance of the message displayed in the view interface according to the sliding distance.
In this embodiment, the relationship between the sliding distance and the moving distance of the message may be determined according to a statistical value or an empirical value, for example: the sliding distance generated by the sliding operation according to the statistical value may move a certain message by 2 times of the sliding distance, thereby determining that the sliding distance and the moving distance of the message are in a 2-time relationship, and the first distance determining unit 1103 may calculate the moving distance of the message according to the sliding distance and the determined 2-time relationship. As shown in fig. 2 a-2 b, the obtained sliding distance may move the message 2 from the position c to the position a according to the relationship determined by the statistical value, and the first distance determining unit 1103 may calculate the moving distance of the message displayed in the view interface as the pixel distance from the position c to the position a.
In the embodiment of the invention, the movement characteristic of the interface background can be calculated according to the movement characteristic of the message displayed in the view interface, and the message is moved according to the movement characteristic of the message, and meanwhile, the interface background is moved according to the movement characteristic of the interface background, so that the message and the interface background can generate parallax of relative movement in the view interface, the display mode of the message is enriched, and the message display effect is improved.
Please refer to fig. 8, which is a schematic structural diagram of another message feature calculation module according to an embodiment of the present invention; the message characteristic calculation module 101 may include: click operation determination unit 1111, second direction determination unit 1112, and second distance calculation unit 1113.
The click operation determining unit 1111 is configured to determine, when a click operation in the view interface is detected, an operation direction and an operation distance of the click operation according to an initial click position and a final click position of the click operation.
In a specific implementation, if the view interface is a mouse click interface, when a user wants to browse a complete message, the user may perform a click operation on the view interface through a mouse to request to browse a message whose generation time is earlier or later than the generation time of the message currently displayed in the view interface, and the click operation determination unit 1111 may record an initial click position and an end click position of the mouse click operation, thereby determining an operation direction of the click operation as a direction from the initial click position to the end click position, and determining the operation distance as a distance between the initial click position and the end click position.
A second direction determining unit 1112, configured to determine the operation direction as a moving direction of the message displayed in the view interface.
A second distance determining unit 1113, configured to determine a moving distance of the message displayed in the view interface according to the operation distance.
In the embodiment of the invention, the movement characteristic of the interface background can be calculated according to the movement characteristic of the message displayed in the view interface, and the message is moved according to the movement characteristic of the message, and meanwhile, the interface background is moved according to the movement characteristic of the interface background, so that the message and the interface background can generate parallax of relative movement in the view interface, the display mode of the message is enriched, and the message display effect is improved.
Fig. 9 is a schematic structural diagram of a background feature calculation module according to an embodiment of the present invention; the background feature calculation module 102 may include: a first direction calculation unit 1201 and a first distance calculation unit 1202.
A first direction calculating unit 1201, configured to determine, according to the preset relative movement rule, a moving direction of the message as a moving direction of the interface background.
A first distance calculating unit 1202, configured to perform subtraction on the moving distance of the message by using a preset difference included in the preset relative movement rule, so as to obtain the moving distance of the interface background.
The preset difference value can be set according to actual needs, and is a positive number. It should be noted that the larger the preset difference setting is, the more obvious the parallax contrast will be generated by the relative movement of the message and the interface background. In this embodiment, the moving distance of the message is greater than the moving distance of the interface background, for example: if the moving distance of the message is m and the preset difference is p (p >0), the first distance calculation unit 1202 may obtain the moving distance n of the interface background as m-p.
In the embodiment of the invention, the movement characteristic of the interface background can be calculated according to the movement characteristic of the message displayed in the view interface, and the message is moved according to the movement characteristic of the message, and meanwhile, the interface background is moved according to the movement characteristic of the interface background, so that the message and the interface background can generate parallax of relative movement in the view interface, the display mode of the message is enriched, and the message display effect is improved.
Please refer to fig. 10, which is a schematic structural diagram of another background feature calculation module according to an embodiment of the present invention; the background feature calculation module 102 may include: a second direction calculation unit 1211 and a second distance calculation unit 1212.
A second direction calculating unit 1211, configured to determine a moving direction of the message as a moving direction of the interface background according to the preset relative movement rule.
A second distance calculating unit 1212, configured to perform division on the moving distance of the message by using a preset multiple value included in the preset relative movement rule, to obtain the moving distance of the interface background.
The preset multiple value can be set according to actual needs, and the preset multiple value is a value larger than 1. It should be noted that, the larger the preset multiple value is set, the more obvious the parallax contrast will be generated by the relative movement of the message and the interface background. In this embodiment, the moving distance of the message is greater than the moving distance of the interface background, for example: if the moving distance of the message is m and the preset multiple value is q (q >1), the second distance calculation unit 1212 may obtain the moving distance n of the interface background as m/p.
In the embodiment of the invention, the movement characteristic of the interface background can be calculated according to the movement characteristic of the message displayed in the view interface, and the message is moved according to the movement characteristic of the message, and meanwhile, the interface background is moved according to the movement characteristic of the interface background, so that the message and the interface background can generate parallax of relative movement in the view interface, the display mode of the message is enriched, and the message display effect is improved.
Fig. 11 is a schematic structural diagram of an operation module according to an embodiment of the present invention; the operation module 103 may include: a message operation unit 1301 and a background operation unit 1302.
A message operation unit 1301, configured to perform a moving operation on the message according to the moving distance of the message in the view interface along the moving direction of the message.
A background operation unit 1302, configured to perform a moving operation on the interface background according to a moving distance of the interface background in the view interface along a moving direction of the interface background.
In the embodiment of the invention, the movement characteristic of the interface background can be calculated according to the movement characteristic of the message displayed in the view interface, and the message is moved according to the movement characteristic of the message, and meanwhile, the interface background is moved according to the movement characteristic of the interface background, so that the message and the interface background can generate parallax of relative movement in the view interface, the display mode of the message is enriched, and the message display effect is improved.
The embodiment of the invention also discloses a terminal which can be a PC (Personal Computer), a notebook Computer, a mobile phone, a PAD (tablet Personal Computer), an intelligent wearable device and the like; the terminal may include a message display device, and the structure and function of the message display device may refer to the related descriptions of the embodiments shown in fig. 5 to fig. 11, which are not described herein again.
In the embodiment of the invention, the movement characteristic of the interface background can be calculated according to the movement characteristic of the message displayed in the view interface, and the message is moved according to the movement characteristic of the message, and meanwhile, the interface background is moved according to the movement characteristic of the interface background, so that the message and the interface background can generate parallax of relative movement in the view interface, the display mode of the message is enriched, and the message display effect is improved.
Fig. 12 is a schematic structural diagram of a terminal according to an embodiment of the present invention; the terminal of the embodiment of the invention comprises: at least one processor 201, e.g., a CPU, at least one communication bus 202, at least one network interface 203, memory 204. Wherein a communication bus 202 is used to enable the connection communication between these components. The network interface 203 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI, mobile communication interface, etc.). The memory 204 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 204 may optionally be at least one storage device located remotely from the processor 201. As shown in fig. 13, a memory 204, which is a kind of computer storage medium, stores an operating system, a network communication module, and a program for displaying a message and other programs.
Specifically, the processor 201 may be configured to call a program for displaying a message stored in the memory 204, and execute the following steps:
when message browsing operation in a view interface is detected, calculating the moving characteristics of a message displayed in the view interface;
calculating the movement characteristics of the interface background according to the movement characteristics of the message and a preset relative movement rule;
moving the message according to the moving characteristics of the message, and moving the interface background according to the moving characteristics of the interface background;
and displaying the message and the interface background after the movement operation in the view interface.
Wherein the message browsing operation comprises: sliding operation or clicking operation; the movement characteristics include a movement direction and a movement distance.
Further, when the processor 201 executes the step of calculating the movement characteristic of the message displayed in the view interface when the message browsing operation in the view interface is detected, the following steps are specifically executed:
when the sliding operation in the view interface is detected, the sliding direction and the sliding distance of the sliding operation are obtained;
determining the sliding direction as a moving direction of the displayed message in the view interface;
and determining the moving distance of the message displayed in the view interface according to the sliding distance.
Further, when the processor 201 executes the step of calculating the movement characteristic of the message displayed in the view interface when the message browsing operation in the view interface is detected, the following steps are specifically executed:
when the click operation in the view interface is detected, determining the operation direction and the operation distance of the click operation according to the initial click position and the final click position of the click operation;
determining the operation direction as a moving direction of the displayed message in the view interface;
and determining the moving distance of the message displayed in the view interface according to the operation distance.
Further, when the processor 201 executes the step of calculating the movement characteristic of the interface background according to the movement characteristic of the message and the preset relative movement rule, the following steps are specifically executed:
determining the moving direction of the message as the moving direction of the interface background according to the preset relative movement rule;
and carrying out subtraction operation on the moving distance of the message by adopting a preset difference value contained in the preset relative movement rule to obtain the moving distance of the interface background.
Further, when the processor 201 executes the step of calculating the movement characteristic of the interface background according to the movement characteristic of the message and the preset relative movement rule, the following steps are specifically executed:
determining the moving direction of the message as the moving direction of the interface background according to the preset relative movement rule;
and performing division operation on the moving distance of the message by adopting a preset multiple numerical value contained in the preset relative movement rule to obtain the moving distance of the interface background.
Further, before the step of performing the moving operation on the message according to the moving feature of the message and the step of performing the moving operation on the interface background according to the moving feature of the interface background, the processor 201 further performs the following steps:
acquiring attribute information of the interface background, wherein the attribute information comprises: single fill images or consecutive fill images;
and if the attribute information of the interface background is the continuous filling image, executing the step of moving the message according to the moving characteristics of the message and moving the interface background according to the moving characteristics of the interface background.
Further, after the step of obtaining the attribute information of the interface background, the processor 201 further performs the following steps:
if the attribute information of the interface background is a single filling image, calculating the relative distance between the edge of the view interface and the edge of the interface background along the moving direction of the interface background;
judging whether the relative distance is greater than or equal to the moving distance of the interface background;
if the relative distance is larger than or equal to the moving distance of the interface background, executing the step of moving the message according to the moving characteristics of the message and moving the interface background according to the moving characteristics of the interface background;
and if the relative distance is smaller than the moving distance of the interface background, re-determining the relative distance as the moving distance of the interface background, performing moving operation on the message according to the moving characteristics of the message, and performing moving operation on the interface background according to the moving characteristics of the interface background.
Further, when the step of performing the moving operation on the message according to the moving feature of the message and the step of performing the moving operation on the interface background according to the moving feature of the interface background are executed, the processor 201 specifically performs the following steps:
moving the message according to the moving distance of the message in the view interface along the moving direction of the message;
and moving the interface background along the moving direction of the interface background in the view interface according to the moving distance of the interface background.
In the embodiment of the invention, the movement characteristic of the interface background can be calculated according to the movement characteristic of the message displayed in the view interface, and the message is moved according to the movement characteristic of the message, and meanwhile, the interface background is moved according to the movement characteristic of the interface background, so that the message and the interface background can generate parallax of relative movement in the view interface, the display mode of the message is enriched, and the message display effect is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (19)

1. A message display method, comprising:
when message browsing operation in a view interface is detected, calculating the moving characteristics of a message displayed in the view interface;
calculating the movement characteristics of the interface background according to the movement characteristics of the message and a preset relative movement rule;
moving the message according to the moving characteristics of the message, and moving the interface background according to the moving characteristics of the interface background;
and displaying the message and the interface background after the movement operation in the view interface.
2. The method of claim 1, wherein the message browsing operation comprises: sliding operation or clicking operation; the movement characteristics include a movement direction and a movement distance.
3. The method of claim 2, wherein calculating movement characteristics of a message displayed in a view interface when a message browsing operation in the view interface is detected comprises:
when the sliding operation in the view interface is detected, the sliding direction and the sliding distance of the sliding operation are obtained;
determining the sliding direction as a moving direction of the displayed message in the view interface;
and determining the moving distance of the message displayed in the view interface according to the sliding distance.
4. The method of claim 2, wherein calculating movement characteristics of a message displayed in a view interface when a message browsing operation in the view interface is detected comprises:
when the click operation in the view interface is detected, determining the operation direction and the operation distance of the click operation according to the initial click position and the final click position of the click operation;
determining the operation direction as a moving direction of the displayed message in the view interface;
and determining the moving distance of the message displayed in the view interface according to the operation distance.
5. The method of claim 2, wherein the calculating the movement characteristics of the interface background according to the movement characteristics of the message and a preset relative movement rule comprises:
determining the moving direction of the message as the moving direction of the interface background according to the preset relative movement rule;
and carrying out subtraction operation on the moving distance of the message by adopting a preset difference value contained in the preset relative movement rule to obtain the moving distance of the interface background.
6. The method of claim 2, wherein the calculating the movement characteristics of the interface background according to the movement characteristics of the message and a preset relative movement rule comprises:
determining the moving direction of the message as the moving direction of the interface background according to the preset relative movement rule;
and performing division operation on the moving distance of the message by adopting a preset multiple numerical value contained in the preset relative movement rule to obtain the moving distance of the interface background.
7. The method according to any one of claims 2-6, wherein before performing the moving operation on the message according to the moving characteristic of the message and performing the moving operation on the interface background according to the moving characteristic of the interface background, the method further comprises:
acquiring attribute information of the interface background, wherein the attribute information comprises: single fill images or consecutive fill images;
and if the attribute information of the interface background is the continuous filling image, executing the step of moving the message according to the moving characteristics of the message and moving the interface background according to the moving characteristics of the interface background.
8. The method of claim 7, wherein after obtaining the attribute information of the interface background, further comprising:
if the attribute information of the interface background is a single filling image, calculating the relative distance between the edge of the view interface and the edge of the interface background along the moving direction of the interface background;
judging whether the relative distance is greater than or equal to the moving distance of the interface background;
if the relative distance is larger than or equal to the moving distance of the interface background, executing the step of moving the message according to the moving characteristics of the message and moving the interface background according to the moving characteristics of the interface background;
and if the relative distance is smaller than the moving distance of the interface background, re-determining the relative distance as the moving distance of the interface background, performing moving operation on the message according to the moving characteristics of the message, and performing moving operation on the interface background according to the moving characteristics of the interface background.
9. The method of claim 8, wherein the moving the message according to the moving characteristics of the message and the moving the interface background according to the moving characteristics of the interface background comprise:
moving the message according to the moving distance of the message in the view interface along the moving direction of the message;
and moving the interface background along the moving direction of the interface background in the view interface according to the moving distance of the interface background.
10. A message display apparatus, comprising:
the message characteristic calculation module is used for calculating the movement characteristics of the messages displayed in the view interface when the message browsing operation in the view interface is detected;
the background feature calculation module is used for calculating the moving features of the interface background according to the moving features of the messages and a preset relative movement rule;
the operation module is used for carrying out moving operation on the message according to the moving characteristics of the message and carrying out moving operation on the interface background according to the moving characteristics of the interface background;
and the display module is used for displaying the message and the interface background after the movement operation in the view interface.
11. The apparatus of claim 10, wherein the message browsing operations comprise: sliding operation or clicking operation; the movement characteristics include a movement direction and a movement distance.
12. The apparatus of claim 11, wherein the message characteristic calculation module comprises:
the sliding operation acquisition unit is used for acquiring the sliding direction and the sliding distance of the sliding operation when the sliding operation in the view interface is detected;
a first direction determination unit, configured to determine the sliding direction as a moving direction of the message displayed in the view interface;
and the first distance determining unit is used for determining the moving distance of the message displayed in the view interface according to the sliding distance.
13. The apparatus of claim 11, wherein the message characteristic calculation module comprises:
the click operation determining unit is used for determining the operation direction and the operation distance of the click operation according to the initial click position and the final click position of the click operation when the click operation in the view interface is detected;
a second direction determining unit, configured to determine the operation direction as a moving direction of the message displayed in the view interface;
and the second distance determining unit is used for determining the moving distance of the message displayed in the view interface according to the operation distance.
14. The apparatus of claim 11, wherein the background feature calculation module comprises:
the first direction calculation unit is used for determining the moving direction of the message as the moving direction of the interface background according to the preset relative movement rule;
and the first distance calculation unit is used for carrying out subtraction operation on the moving distance of the message by adopting a preset difference value contained in the preset relative movement rule to obtain the moving distance of the interface background.
15. The apparatus of claim 11, wherein the background feature calculation module comprises:
a second direction calculation unit, configured to determine, according to the preset relative movement rule, a movement direction of the message as a movement direction of the interface background;
and the second distance calculation unit is used for performing division operation on the moving distance of the message by adopting a preset multiple value contained in the preset relative movement rule to obtain the moving distance of the interface background.
16. The apparatus of any of claims 11-15, further comprising:
an attribute obtaining module, configured to obtain attribute information of the interface background, where the attribute information includes: single fill images or consecutive fill images;
and the first processing module is used for informing the operation module to perform the moving operation on the interface background according to the moving characteristics of the interface background if the attribute information of the interface background is the continuous filling image.
17. The apparatus of claim 16, further comprising:
the relative calculation module is used for calculating the relative distance between the edge of the view interface and the edge of the interface background along the moving direction of the interface background if the attribute information of the interface background is a single filling image;
the judging module is used for judging whether the relative distance is greater than or equal to the moving distance of the interface background;
the second processing module is used for informing the operation module to carry out moving operation on the interface background according to the moving characteristics of the interface background if the relative distance is greater than or equal to the moving distance of the interface background; or, if the relative distance is smaller than the movement distance of the interface background, re-determining the relative distance as the movement distance of the interface background, and notifying the operation module to perform a movement operation on the interface background according to the movement characteristics of the interface background.
18. The apparatus of claim 17, wherein the operation module comprises:
the message operation unit is used for carrying out moving operation on the message according to the moving distance of the message in the view interface along the moving direction of the message;
and the background operation unit is used for performing moving operation on the interface background according to the moving distance of the interface background in the view interface along the moving direction of the interface background.
19. A terminal, characterized in that it comprises a message display device according to any one of claims 10-18.
CN201410379712.9A 2014-08-04 2014-08-04 Message display method, device and terminal Active CN105320421B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410379712.9A CN105320421B (en) 2014-08-04 2014-08-04 Message display method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410379712.9A CN105320421B (en) 2014-08-04 2014-08-04 Message display method, device and terminal

Publications (2)

Publication Number Publication Date
CN105320421A CN105320421A (en) 2016-02-10
CN105320421B true CN105320421B (en) 2020-04-24

Family

ID=55247899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410379712.9A Active CN105320421B (en) 2014-08-04 2014-08-04 Message display method, device and terminal

Country Status (1)

Country Link
CN (1) CN105320421B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105320421B (en) * 2014-08-04 2020-04-24 腾讯科技(深圳)有限公司 Message display method, device and terminal
CN106781760A (en) * 2017-01-03 2017-05-31 捷开通讯(深圳)有限公司 A kind of operation based reminding method, job management equipment and wearable device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404687A (en) * 2007-10-04 2009-04-08 Lg电子株式会社 Menu display method for a mobile communication terminal
CN102819400A (en) * 2012-08-14 2012-12-12 北京小米科技有限责任公司 Desktop system, interface interaction method and interface interaction device of mobile terminal
CN105320421A (en) * 2014-08-04 2016-02-10 腾讯科技(深圳)有限公司 Message displaying method and device, and terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6198808B1 (en) * 1997-12-31 2001-03-06 Weblink Wireless, Inc. Controller for use with communications systems for converting a voice message to a text message
US9189875B2 (en) * 2007-08-06 2015-11-17 Apple Inc. Advanced import/export panel notifications using a presentation application

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404687A (en) * 2007-10-04 2009-04-08 Lg电子株式会社 Menu display method for a mobile communication terminal
CN102819400A (en) * 2012-08-14 2012-12-12 北京小米科技有限责任公司 Desktop system, interface interaction method and interface interaction device of mobile terminal
CN105320421A (en) * 2014-08-04 2016-02-10 腾讯科技(深圳)有限公司 Message displaying method and device, and terminal

Also Published As

Publication number Publication date
CN105320421A (en) 2016-02-10

Similar Documents

Publication Publication Date Title
CN109905754B (en) Virtual gift receiving method and device and storage equipment
CN106844404B (en) Message display method and terminal equipment
CN106156066B (en) Page switching method, device and client
CN105302458B (en) A kind of message display method and device
CN102663033A (en) Method for searching interest points in designated area of map by hand-drawing way
US11775244B2 (en) Data processing method and electronic terminal
CN108153503B (en) Display control method and related product
CN104978180B (en) Unprocessed event prompting method and device and mobile terminal
CN104954549B (en) Electronic device and communication means
WO2019052524A1 (en) View rendering method and apparatus, medium, and intelligent terminal
CN107765976B (en) Message pushing method, terminal and system
WO2011114294A1 (en) Method and apparatus providing for output of a content package based at least in part on a content category selection and one or more contextual characteristics
CN109388737B (en) Method and device for sending exposure data of content item and storage medium
CN114153344A (en) Group creation method and device, electronic equipment and storage medium
CN109683760B (en) Recent content display method, device, terminal and storage medium
CN111127469A (en) Thumbnail display method, device, storage medium and terminal
CN105320421B (en) Message display method, device and terminal
WO2019085810A1 (en) Processing method, device, apparatus, and machine-readable medium
CN113485603A (en) Message display method and device and electronic equipment
CN106909272B (en) Display control method and mobile terminal
CN104636055A (en) Display method and device of dynamic information of contacts
CN108874141B (en) Somatosensory browsing method and device
US20120054656A1 (en) Method, apparatus, and computer program product for adapting movement of content segments
CN111796736B (en) Application sharing method and device and electronic equipment
CN109509013B (en) Method for pushing image information by mobile terminal equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant