CN105320421A - Message displaying method and device, and terminal - Google Patents

Message displaying method and device, and terminal Download PDF

Info

Publication number
CN105320421A
CN105320421A CN201410379712.9A CN201410379712A CN105320421A CN 105320421 A CN105320421 A CN 105320421A CN 201410379712 A CN201410379712 A CN 201410379712A CN 105320421 A CN105320421 A CN 105320421A
Authority
CN
China
Prior art keywords
message
interface
interface background
background
moving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410379712.9A
Other languages
Chinese (zh)
Other versions
CN105320421B (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

Abstract

The embodiment of the invention provides a message displaying method and device, and a terminal. The method can comprise the following steps: when detecting a message browsing operation in a view interface, calculating moving features of a message displayed in the view interface; on the basis of the moving features of the message and a preset relative motion rule, calculating moving features of an interface background; moving the message according to the moving features of the message, and moving the interface background according to the moving features of the interface background; displaying the moved message and the moved interface background in the view interface. By adopting the message displaying method and device, and the terminal, the message and the interface background can move relatively to generate optical parallax, thus enriching message display manners and improving a message display effect.

Description

A kind of message display method, device and terminal
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of message display method, device and terminal.
Background technology
Along with the development of computer technology, various application based on terminals such as such as smart mobile phone, computer, panel computers has entered in daily life, study and work, wherein, instant messaging application, SNS (SocialNetworkingServices, social network services) application etc., owing to realizing communicating between user by information receiving and transmitting fast, easily, obtain universal greatly.Such as instant communication message, SNS message etc. all need intuitively to be shown by view interface, and user can browse shown message in view interface.At present, view interface is display interface background while display message usually, and existing interface background is generally fixed background, user is when mobile messaging is browsed, therefore its interface background does not move, thus makes message displaying method comparatively single, and display effect is poor.
Summary of the invention
The embodiment of the present invention provides a kind of message display method, device and terminal, message and interface background relative movement can be made to produce parallax, enrich message displaying method, promotes message display effect.
Embodiment of the present invention first aspect provides a kind of message display method, can comprise:
When the message browse operation in view interface being detected, calculate the moving characteristic of shown message in described view interface;
According to moving characteristic and the default relative movement rule of described message, calculate the moving characteristic of interface background;
According to the moving characteristic of described message, operation is moved to described message, according to the moving characteristic of described interface background, operation is moved to described interface background;
The described message after mobile operation and described interface background is shown in described view interface.
Embodiment of the present invention second aspect provides a kind of message display device, can comprise:
The characteristic information computing module, for when the message browse operation in view interface being detected, calculates the moving characteristic of shown message in described view interface;
Background characteristics computing module, for according to the moving characteristic of described message and default relative movement rule, calculates the moving characteristic of interface background;
Operational module, moves operation for the moving characteristic according to described message to described message, moves operation according to the moving characteristic of described interface background to described interface background;
Display module, for showing the described message after mobile operation and described interface background in described view interface.
The embodiment of the present invention third aspect provides a kind of terminal, can comprise the message display device described in above-mentioned second aspect.
Implement the embodiment of the present invention, there is following beneficial effect:
In the embodiment of the present invention, the moving characteristic of interface background can be calculated according to the moving characteristic of message shown in view interface, while operation being moved to message according to the moving characteristic of described message, according to the moving characteristic of described interface background, operation is moved to interface background, thus message and interface background can be made in view interface can to produce the parallax of relative motion, enrich the display mode of message, improve message display effect.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The process flow diagram of a kind of message display method that Fig. 1 provides for the embodiment of the present invention;
The schematic diagram of a kind of view interface that Fig. 2 a provides for the embodiment of the present invention;
The schematic diagram of the another kind of view interface that Fig. 2 b provides for the embodiment of the present invention;
The process flow diagram of the another kind of message display method that Fig. 3 provides for the embodiment of the present invention;
The process flow diagram of another message display method that Fig. 4 provides for the embodiment of the present invention;
The structural representation of a kind of message display device that Fig. 5 provides for the embodiment of the present invention;
The structural representation of the another kind of message display device that Fig. 6 provides for the embodiment of the present invention;
The structural representation of a kind of the characteristic information computing module that Fig. 7 provides for the embodiment of the present invention;
The structural representation of the another kind of the characteristic information computing module that Fig. 8 provides for the embodiment of the present invention;
The structural representation of a kind of background characteristics computing module that Fig. 9 provides for the embodiment of the present invention;
The structural representation of the another kind of background characteristics computing module that Figure 10 provides for the embodiment of the present invention;
The structural representation of a kind of operational module that Figure 11 provides for the embodiment of the present invention;
The structural representation of a kind of terminal that Figure 12 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Below in conjunction with accompanying drawing 1-accompanying drawing 4, the message display method that the embodiment of the present invention provides is described in detail.
Referring to Fig. 1, is the process flow diagram of a kind of message display method that the embodiment of the present invention provides; The method can comprise the following steps S101-step S104.
S101, when the message browse operation in view interface being detected, calculates the moving characteristic of shown message in described view interface.
Wherein, described view interface can refer to that terminal screen is used for showing the region of message and interface background, and this view interface can be touch screen interface, also can click interface for mouse.Described message browse operation can include but not limited to: slide or clicking operation.Particularly, if described view interface is touch screen interface, then described message browse operation can for acting on the slide in this touch screen interface.If described view interface is mouse click interface, then described message browse operation can click the mouse clicking operation on interface for this mouse.Wherein, shown in described view interface message can include but not limited to: instant communication message, SNS message etc.
Specifically please also refer to Fig. 2 a and Fig. 2 b, it is the schematic diagram of the view interface that the embodiment of the present invention provides; As shown in Fig. 2 a or Fig. 2 b, the region 1 between a and a ' represents view interface, and this view interface 1 belongs to the part or all of region of terminal screen; Region 3 between b and b ' represents interface background, and this interface background 3 is positioned at background layer, and this background layer and terminal screen belong to different display layers; Message display layer 2 is provided with between view interface 1 and interface background 3, this message display layer 2 comprises multiple messages, this multiple messages arranges according to the sequencing of generation time, such as: schematic diagram as shown in Figure 2 a, the generation time of message 1 is early than the generation time of message 2, the generation time of message 3 early than the generation time of message 4, etc.It should be noted that, message can move on message display layer, and interface background 3 bag can move on background layer.
In the embodiment of the present invention, if when user is for browsing complete message, message browse operation can be carried out in described view interface, in this step, can according to described message browse operation, calculate the moving characteristic of shown message in described view interface, described moving characteristic can comprise moving direction and displacement.
In a kind of feasible embodiment of the present embodiment, this step specifically can comprise the following steps A-C:
A, when the slide in view interface being detected, obtain glide direction and the sliding distance of described slide.
In specific implementation, suppose that view interface is touch screen interface, when user is for browsing complete message, in view interface, slide downward operation is carried out by finger, the generation time message more early of generation time message of current display in view interface is browsed with request, see Fig. 2 a-Fig. 2 b, the message 2 in message display layer is moved to position a by position c by this slide, and steps A then obtains glide direction and the sliding distance of this slide.
B, described glide direction is defined as the moving direction of shown message in described view interface.
Refer to Fig. 2 a-Fig. 2 b again, described glide direction is along the downward direction of described view interface, and the moving direction of message shown in described view interface is then defined as along the downward direction of described view interface by this step B, and namely position c is to the direction of position a.
C, to determine in described view interface the displacement of shown message according to described sliding distance.
In this step, can according to the relation between the displacement of statistical value or empirical value determination sliding distance and described message, such as: certain message can be made to move 2 times of sliding distances according to the sliding distance that statistical value slide produces, determine that the displacement of described sliding distance and described message is 2 times of relations thus, this step C, according to described sliding distance and determined 2 times of relations, calculates the displacement of described message.As shown in Fig. 2 a-Fig. 2 b, according to the determined relation of statistical value, the sliding distance that steps A obtains can make message 2 move to position a by position c, and it is the pixel distance of position c to position a that this step can calculate the displacement obtaining shown message in described view interface.
In the embodiment that the another kind of the present embodiment is feasible, this step specifically can comprise the following steps D-F:
D, when the clicking operation in view interface being detected, according to the initial click location of described clicking operation with stop click location, determine direction of operating and the operating distance of described clicking operation.
In specific implementation, if view interface is mouse click interface, when user is for browsing complete message, in view interface, clicking operation is carried out by mouse, the generation time message much earlier or later of generation time message of current display in view interface is browsed with request, step D can record the initial click location of this mouse clicking operation and stop click location, determine that the direction of operating of described clicking operation is that initial click location is to the direction stopping click location thus, determine the distance that described operating distance is initial click location and stops between click location.
E, described direction of operating is defined as the moving direction of shown message in described view interface.
F, to determine in described view interface the displacement of shown message according to described operating distance.
Step e-F shown in present embodiment see the step B-C in a upper embodiment, can be not repeated herein.
S102, according to moving characteristic and the default relative movement rule of described message, calculates the moving characteristic of interface background.
Described default relative movement rule can require to set according to the parallax of reality, this relative movement rule preset can comprise: the moving direction of message is identical with the moving direction of interface background, and the displacement of message differs preset difference value with the displacement of interface background; Or this relative movement rule preset can comprise: the moving direction of message is identical with the moving direction of interface background, and the displacement of message is the preset multiple value of the displacement of interface background.
In a kind of feasible embodiment of the present embodiment, this step specifically can comprise the following steps G-H:
G, according to described default relative movement rule, the moving direction of described message is defined as the moving direction of described interface background.
H, the preset difference value adopting described default relative movement rule to comprise, carry out subtraction to the displacement of described message, obtain the displacement of described interface background.
Wherein, described preset difference value can set according to actual needs, and this preset difference value is positive number.It should be noted that, preset difference value setting is larger, and the relative movement of described message and described interface background will produce parallax and contrast more obvious.Step H shows that the displacement of described message is greater than the displacement of described interface background, such as: if the displacement of described message is m, preset difference value is p (p>0), then step H can obtain the displacement n=m-p of described interface background.
In the embodiment that the another kind of the present embodiment is feasible, this step specifically can comprise the following steps I-J:
I, according to described default relative movement rule, the moving direction of described message is defined as the moving direction of described interface background.
J, the preset multiple value adopting described default relative movement rule to comprise, carry out division arithmetic to the displacement of described message, obtain the displacement of described interface background.
Wherein, described preset multiple value can set according to actual needs, this preset multiple value be greater than 1 numerical value.It should be noted that, the setting of preset multiple value is larger, and the relative movement of described message and described interface background will produce parallax and contrast more obvious.Step J shows that the displacement of described message is greater than the displacement of described interface background, such as: if the displacement of described message is m, preset multiple value is q (q>1), then step J can obtain the displacement n=m/p of described interface background.
S103, moves operation according to the moving characteristic of described message to described message, moves operation according to the moving characteristic of described interface background to described interface background.
In the present embodiment, in order to obtain better display effect, preferably, operate the mobile of described message and can synchronously carry out the mobile operation of described interface background, the parallax sense that the relative motion of described message and described interface background is produced can be shown in view interface.Be understandable that, the embodiment of the present invention does not limit this, namely also can carry out priority in sequential to the mobile operation of described message and distinguishes with operating described interface background mobile.
In specific implementation, this step can comprise the following steps K-L:
K, in described view interface along the moving direction of described message, according to the displacement of described message, operation is moved to described message.
L, in described view interface along the moving direction of described interface background, according to the displacement of described interface background, operation is moved to described interface background.
S104, shows the described message after mobile operation and described interface background in described view interface.
In the embodiment of the present invention, the moving characteristic of interface background can be calculated according to the moving characteristic of message shown in view interface, while operation being moved to message according to the moving characteristic of described message, according to the moving characteristic of described interface background, operation is moved to interface background, thus message and interface background can be made in view interface can to produce the parallax of relative motion, enrich the display mode of message, improve message display effect.
Referring to Fig. 3, is the process flow diagram of the another kind of message display method that the embodiment of the present invention provides; The method can comprise the following steps S201-step S205.
S201, when the message browse operation in view interface being detected, calculates the moving characteristic of shown message in described view interface.
S202, according to moving characteristic and the default relative movement rule of described message, calculates the moving characteristic of interface background.
S203, obtains the attribute information of described interface background.
Wherein, described attribute information comprises: single blank map picture or continuously blank map picture.The attribute information of described interface background is single blank map picture, and show that described interface background is the image of a limited areal, carry out limited filling to background layer, the limited areal of described interface background is the region area of background layer.The attribute information of described interface background is continuous blank map picture, shows that described interface background is the image of the unlimited area that multiple image combining is formed, infinitely can fill background layer.
S204, if the attribute information of described interface background is continuous blank map picture, moves operation according to the moving characteristic of described message to described message, moves operation according to the moving characteristic of described interface background to described interface background.
S205, shows the described message after mobile operation and described interface background in described view interface.
The step S201-step S202 of the present embodiment can the step S101-step S102 of embodiment shown in Figure 1; The step S204-step S205 of the present embodiment can the step S103-step S104 of embodiment shown in Figure 1, is not repeated herein.
In the embodiment of the present invention, the moving characteristic of interface background can be calculated according to the moving characteristic of message shown in view interface, while operation being moved to message according to the moving characteristic of described message, according to the moving characteristic of described interface background, operation is moved to interface background, thus message and interface background can be made in view interface can to produce the parallax of relative motion, enrich the display mode of message, improve message display effect.
Referring to Fig. 4, is the process flow diagram of another message display method that the embodiment of the present invention provides; The method can comprise the following steps S301-step S308.
S301, when the message browse operation in view interface being detected, calculates the moving characteristic of shown message in described view interface.
S302, according to moving characteristic and the default relative movement rule of described message, calculates the moving characteristic of interface background.
S303, obtains the attribute information of described interface background, and described attribute information comprises: single blank map picture or continuously blank map picture.
Wherein, described attribute information comprises: single blank map picture or continuously blank map picture.The attribute information of described interface background is single blank map picture, and show that described interface background is the image of a limited areal, carry out limited filling to background layer, the limited areal of described interface background is the region area of background layer.The attribute information of described interface background is continuous blank map picture, shows that described interface background is the image of the unlimited area that multiple image combining is formed, infinitely can fill background layer.
S304, if the attribute information of described interface background is single blank map picture, along the moving direction of described interface background, calculates the relative distance at the edge of described view interface and the edge of described interface background.
Wherein, the attribute information of described interface background is single blank map picture, and show that described interface background is the image of a limited areal, carry out limited filling to background layer, the limited areal of described interface background is the region area of background layer.In specific implementation, please also refer to Fig. 2 a-Fig. 2 b, message 2 moves to position a by position c, the moving direction of described interface background can be defined as along the downward direction of described view interface, namely position c is to the direction of position a, and this step needs the relative distance a ' b ' calculated between the lower limb a ' of described view interface and the lower limb b ' of described interface background.Be understandable that, if the moving direction of described interface background is that this step needs to calculate the relative distance between the coboundary a of described view interface and the coboundary b of described interface background along described view interface direction upwards.
S305, judges whether described relative distance is more than or equal to the displacement of described interface background; If the determination result is YES, step S307 is proceeded to; Otherwise, proceed to step S306.
Described relative distance is more than or equal to the displacement of described interface background, show that the mobile operation to described interface background can not exceed the limited areal of described interface background, operation can be moved according to described interface movement distance to described interface background, can step S307 be proceeded to thus.Otherwise, described relative distance is less than the displacement of described interface background, show that the mobile operation to described interface background will exceed the limited areal of described interface background, need to move operation according to described relative distance to described interface background, can step S306 be proceeded to thus.
S306, redefines the displacement into described interface background by described relative distance.
From step S305-step S306, it is the mobile operation of the interface background of single blank map picture for attribute information, to multipotency on the moving direction along described interface background, by the position that the edge that described interface background moves to its edge and described view interface coincides, now described relative distance is 0, after this, even if continue to move operation to described message, described background interface also stops mobile.
S307, moves operation according to the moving characteristic of described message to described message, and moves operation according to the moving characteristic of described interface background to described interface background.
S308, shows the described message after mobile operation and described interface background in described view interface.
The step S301-step S302 of the present embodiment can the step S101-step S102 of embodiment shown in Figure 1, and the step S307-step S308 of the present embodiment can the step S103-step S104 of embodiment shown in Figure 1, is not repeated herein.
In the embodiment of the present invention, the moving characteristic of interface background can be calculated according to the moving characteristic of message shown in view interface, while operation being moved to message according to the moving characteristic of described message, according to the moving characteristic of described interface background, operation is moved to interface background, thus message and interface background can be made in view interface can to produce the parallax of relative motion, enrich the display mode of message, improve message display effect.
Below in conjunction with accompanying drawing 5-accompanying drawing 11, a kind of message display device that the embodiment of the present invention provides is described in detail.It should be noted that, the message display device described in accompanying drawing 5-accompanying drawing 11 can be applicable to perform the method shown in above-mentioned accompanying drawing 1-accompanying drawing 4.In practical application, described message display device can be the application in terminal, such as: instant messaging application, SNS application etc.
Referring to Fig. 5, is the structural representation of a kind of message display device that the embodiment of the present invention provides; This device can comprise: the characteristic information computing module 101, background characteristics computing module 102, operational module 103 and display module 104.
The characteristic information computing module 101, for when the message browse operation in view interface being detected, calculates the moving characteristic of shown message in described view interface.
Wherein, described view interface can refer to that terminal screen is used for showing the region of message and interface background, and this view interface can be touch screen interface, also can click interface for mouse.Described message browse operation can include but not limited to: slide or clicking operation.Particularly, if described view interface is touch screen interface, then described message browse operation can for acting on the slide in this touch screen interface.If described view interface is mouse click interface, then described message browse operation can click the mouse clicking operation on interface for this mouse.Wherein, shown in described view interface message can include but not limited to: instant communication message, SNS message etc.In the embodiment of the present invention, if when user is for browsing complete message, message browse operation can be carried out in described view interface, described the characteristic information computing module 101 can according to described message browse operation, calculate the moving characteristic of shown message in described view interface, described moving characteristic can comprise moving direction and displacement.
Background characteristics computing module 102, for according to the moving characteristic of described message and default relative movement rule, calculates the moving characteristic of interface background.
Described default relative movement rule can require to set according to the parallax of reality, this relative movement rule preset can comprise: the moving direction of message is identical with the moving direction of interface background, and the displacement of message differs preset difference value with the displacement of interface background; Or this relative movement rule preset can comprise: the moving direction of message is identical with the moving direction of interface background, and the displacement of message is the preset multiple value of the displacement of interface background.
Operational module 103, moves operation for the moving characteristic according to described message to described message, moves operation according to the moving characteristic of described interface background to described interface background.
In the present embodiment, in order to obtain better display effect, preferably, described operational module 103 is to the mobile operation of described message and can synchronously carry out the mobile operation of described interface background, and the parallax sense that the relative motion of described message and described interface background is produced can be shown in view interface.Be understandable that, the embodiment of the present invention does not limit this, and namely described operational module 103 also can carry out priority to the mobile operation of described message and distinguishes with operating described interface background mobile in sequential.
Display module 104, for showing the described message after mobile operation and described interface background in described view interface.
In the embodiment of the present invention, the moving characteristic of interface background can be calculated according to the moving characteristic of message shown in view interface, while operation being moved to message according to the moving characteristic of described message, according to the moving characteristic of described interface background, operation is moved to interface background, thus message and interface background can be made in view interface can to produce the parallax of relative motion, enrich the display mode of message, improve message display effect.
Referring to Fig. 6, is the structural representation of the another kind of message display device that the embodiment of the present invention provides; This device can comprise: the characteristic information computing module 101, background characteristics computing module 102, operational module 103, display module 104, attribute acquisition module 105, first processing module 106, relatively computing module 107, judge module 108 and the second processing module 109.
Attribute acquisition module 105, for obtaining the attribute information of described interface background, described attribute information comprises: single blank map picture or continuously blank map picture.
Wherein, described attribute information comprises: single blank map picture or continuously blank map picture.The attribute information of described interface background is single blank map picture, and show that described interface background is the image of a limited areal, carry out limited filling to background layer, the limited areal of described interface background is the region area of background layer.The attribute information of described interface background is continuous blank map picture, shows that described interface background is the image of the unlimited area that multiple image combining is formed, infinitely can fill background layer.
First processing module 106, if be continuous blank map picture for the attribute information of described interface background, then notifies that described operational module moves operation according to the moving characteristic of described interface background to described interface background.
Relative computing module 107, if be single blank map picture for the attribute information of described interface background, along the moving direction of described interface background, calculates the relative distance at the edge of described view interface and the edge of described interface background.
In specific implementation, please also refer to Fig. 2 a-Fig. 2 b, message 2 moves to position a by position c, the moving direction of described interface background can be defined as along the downward direction of described view interface, namely position c is to the direction of position a, and described relative computing module 107 needs the relative distance a ' b ' calculated between the lower limb a ' of described view interface and the lower limb b ' of described interface background.Be understandable that, if the moving direction of described interface background is that described relative computing module 107 needs to calculate the relative distance between the coboundary a of described view interface and the coboundary b of described interface background along described view interface direction upwards.
Judge module 108, for judging whether described relative distance is more than or equal to the displacement of described interface background.
Described relative distance is more than or equal to the displacement of described interface background, shows that the mobile operation to described interface background can not exceed the limited areal of described interface background, can move operation according to described interface movement distance to described interface background.Otherwise described relative distance is less than the displacement of described interface background, shows that the mobile operation to described interface background will exceed the limited areal of described interface background, need to move operation according to described relative distance to described interface background.
Second processing module 109, if be more than or equal to the displacement of described interface background for described relative distance, then notifies that described operational module moves operation according to the moving characteristic of described interface background to described interface background; Or, if be less than the displacement of described interface background for described relative distance, described relative distance is redefined the displacement into described interface background, and notifies that described operational module moves operation according to the moving characteristic of described interface background to described interface background.
In the present embodiment, it is the mobile operation of the interface background of single blank map picture for attribute information, to multipotency on the moving direction along described interface background, by the position that the edge that described interface background moves to its edge and described view interface coincides, now described relative distance is 0, after this, even if continue to move operation to described message, described background interface also stops mobile.
In the embodiment of the present invention, the moving characteristic of interface background can be calculated according to the moving characteristic of message shown in view interface, while operation being moved to message according to the moving characteristic of described message, according to the moving characteristic of described interface background, operation is moved to interface background, thus message and interface background can be made in view interface can to produce the parallax of relative motion, enrich the display mode of message, improve message display effect.
Referring to Fig. 7, is the structural representation of a kind of the characteristic information computing module that the embodiment of the present invention provides; This characteristic information computing module 101 can comprise: slide acquiring unit 1101, first direction determining unit 1102 and the first distance determining unit 1103.
Slide acquiring unit 1101, for when the slide in view interface being detected, obtains glide direction and the sliding distance of described slide.
In specific implementation, suppose that view interface is touch screen interface, when user is for browsing complete message, in view interface, slide downward operation is carried out by finger, browse the generation time message more early of generation time message of current display in view interface with request, described slide acquiring unit 1101 obtains glide direction and the sliding distance of this slide.
First direction determining unit 1102, for being defined as the moving direction of shown message in described view interface by described glide direction.
First distance determining unit 1103, for determining the displacement of shown message in described view interface according to described sliding distance.
In the present embodiment, can according to the relation between the displacement of statistical value or empirical value determination sliding distance and described message, such as: certain message can be made to move 2 times of sliding distances according to the sliding distance that statistical value slide produces, determine that the displacement of described sliding distance and described message is 2 times of relations thus, described first distance determining unit 1103 according to described sliding distance and determined 2 times of relations, can calculate the displacement of described message.As shown in Fig. 2 a-Fig. 2 b, according to the determined relation of statistical value, the sliding distance obtained can make message 2 move to position a by position c, and it is the pixel distance of position c to position a that described first distance determining unit 1103 can calculate the displacement obtaining shown message in described view interface.
In the embodiment of the present invention, the moving characteristic of interface background can be calculated according to the moving characteristic of message shown in view interface, while operation being moved to message according to the moving characteristic of described message, according to the moving characteristic of described interface background, operation is moved to interface background, thus message and interface background can be made in view interface can to produce the parallax of relative motion, enrich the display mode of message, improve message display effect.
Referring to Fig. 8, is the structural representation of the another kind of the characteristic information computing module that the embodiment of the present invention provides; This characteristic information computing module 101 can comprise: clicking operation determining unit 1111, second direction determining unit 1112 and second distance computing unit 1113.
Clicking operation determining unit 1111, for when the clicking operation in view interface being detected, according to initial click location and the termination click location of described clicking operation, determines direction of operating and the operating distance of described clicking operation.
In specific implementation, if view interface is mouse click interface, when user is for browsing complete message, in view interface, clicking operation is carried out by mouse, the generation time message much earlier or later of generation time message of current display in view interface is browsed with request, described clicking operation determining unit 1111 can record the initial click location of this mouse clicking operation and stop click location, determine that the direction of operating of described clicking operation is that initial click location is to the direction stopping click location thus, determine the distance that described operating distance is initial click location and stops between click location.
Second direction determining unit 1112, for being defined as the moving direction of shown message in described view interface by described direction of operating.
Second distance determining unit 1113, for determining the displacement of shown message in described view interface according to described operating distance.
In the embodiment of the present invention, the moving characteristic of interface background can be calculated according to the moving characteristic of message shown in view interface, while operation being moved to message according to the moving characteristic of described message, according to the moving characteristic of described interface background, operation is moved to interface background, thus message and interface background can be made in view interface can to produce the parallax of relative motion, enrich the display mode of message, improve message display effect.
Referring to Fig. 9, is the structural representation of a kind of background characteristics computing module that the embodiment of the present invention provides; This background characteristics computing module 102 can comprise: first direction computing unit 1201 and the first metrics calculation unit 1202.
First direction computing unit 1201, for according to described default relative movement rule, is defined as the moving direction of described interface background by the moving direction of described message.
First metrics calculation unit 1202, for the preset difference value adopting described default relative movement rule to comprise, carries out subtraction to the displacement of described message, obtains the displacement of described interface background.
Wherein, described preset difference value can set according to actual needs, and this preset difference value is positive number.It should be noted that, preset difference value setting is larger, and the relative movement of described message and described interface background will produce parallax and contrast more obvious.In the present embodiment, the displacement of described message is greater than the displacement of described interface background, such as: if the displacement of described message is m, preset difference value is p (p>0), then described first metrics calculation unit 1202 can obtain the displacement n=m-p of described interface background.
In the embodiment of the present invention, the moving characteristic of interface background can be calculated according to the moving characteristic of message shown in view interface, while operation being moved to message according to the moving characteristic of described message, according to the moving characteristic of described interface background, operation is moved to interface background, thus message and interface background can be made in view interface can to produce the parallax of relative motion, enrich the display mode of message, improve message display effect.
Referring to Figure 10, is the structural representation of the another kind of background characteristics computing module that the embodiment of the present invention provides; This background characteristics computing module 102 can comprise: second direction computing unit 1211 and second distance computing unit 1212.
Second direction computing unit 1211, for according to described default relative movement rule, is defined as the moving direction of described interface background by the moving direction of described message.
Second distance computing unit 1212, for the preset multiple value adopting described default relative movement rule to comprise, carries out division arithmetic to the displacement of described message, obtains the displacement of described interface background.
Wherein, described preset multiple value can set according to actual needs, this preset multiple value be greater than 1 numerical value.It should be noted that, the setting of preset multiple value is larger, and the relative movement of described message and described interface background will produce parallax and contrast more obvious.In the present embodiment, the displacement of described message is greater than the displacement of described interface background, such as: if the displacement of described message is m, preset multiple value is q (q>1), then described second distance computing unit 1212 can obtain the displacement n=m/p of described interface background.
In the embodiment of the present invention, the moving characteristic of interface background can be calculated according to the moving characteristic of message shown in view interface, while operation being moved to message according to the moving characteristic of described message, according to the moving characteristic of described interface background, operation is moved to interface background, thus message and interface background can be made in view interface can to produce the parallax of relative motion, enrich the display mode of message, improve message display effect.
Referring to Figure 11, is the structural representation of a kind of operational module that the embodiment of the present invention provides; This operational module 103 can comprise: Message Opcode unit 1301 and background operation unit 1302.
Message Opcode unit 1301, in described view interface along the moving direction of described message, according to the displacement of described message, operation is moved to described message.
Background operation unit 1302, in described view interface along the moving direction of described interface background, according to the displacement of described interface background, operation is moved to described interface background.
In the embodiment of the present invention, the moving characteristic of interface background can be calculated according to the moving characteristic of message shown in view interface, while operation being moved to message according to the moving characteristic of described message, according to the moving characteristic of described interface background, operation is moved to interface background, thus message and interface background can be made in view interface can to produce the parallax of relative motion, enrich the display mode of message, improve message display effect.
The embodiment of the invention also discloses a kind of terminal, this terminal can be PC (PersonalComputer, personal computer), notebook computer, mobile phone, PAD (panel computer), intelligent wearable device etc.; Can comprise a message display device in this terminal, the 26S Proteasome Structure and Function of this message display device see the associated description of Fig. 5-embodiment illustrated in fig. 11, can be not repeated herein.
In the embodiment of the present invention, the moving characteristic of interface background can be calculated according to the moving characteristic of message shown in view interface, while operation being moved to message according to the moving characteristic of described message, according to the moving characteristic of described interface background, operation is moved to interface background, thus message and interface background can be made in view interface can to produce the parallax of relative motion, enrich the display mode of message, improve message display effect.
Referring to Figure 12, is the structural representation of a kind of terminal that the embodiment of the present invention provides; The terminal of the embodiment of the present invention comprises: at least one processor 201, such as CPU, at least one communication bus 202, at least one network interface 203, storer 204.Wherein, communication bus 202 is for realizing the connection communication between these assemblies.Wherein, described network interface 203 optionally can comprise wireline interface, the wave point (as WI-FI, mobile communication interface etc.) of standard.Described storer 204 can be high-speed RAM storer, also can be non-labile storer (non-volatilememory), such as at least one magnetic disk memory.Described storer 204 can also be optionally that at least one is positioned at the memory storage away from aforementioned processor 201.As shown in figure 12, store operating system, network communication module as in a kind of storer 204 of computer-readable storage medium, and the program stored for carrying out message display and other programs.
Wherein concrete, described processor 201 may be used for calling the program for carrying out message display stored in described storer 204, performs following steps:
When the message browse operation in view interface being detected, calculate the moving characteristic of shown message in described view interface;
According to moving characteristic and the default relative movement rule of described message, calculate the moving characteristic of interface background;
According to the moving characteristic of described message, operation is moved to described message, according to the moving characteristic of described interface background, operation is moved to described interface background;
The described message after mobile operation and described interface background is shown in described view interface.
Wherein, described message browse operation comprises: slide or clicking operation; Described moving characteristic comprises moving direction and displacement.
Further, described processor 201 is described when the message browse operation in view interface being detected in execution, when calculating the step of the moving characteristic of shown message in described view interface, specifically performs following steps:
When the slide in view interface being detected, obtain glide direction and the sliding distance of described slide;
Described glide direction is defined as the moving direction of shown message in described view interface;
The displacement of shown message in described view interface is determined according to described sliding distance.
Further, described processor 201 is described when the message browse operation in view interface being detected in execution, when calculating the step of the moving characteristic of shown message in described view interface, specifically performs following steps:
When the clicking operation in view interface being detected, according to initial click location and the termination click location of described clicking operation, determine direction of operating and the operating distance of described clicking operation;
Described direction of operating is defined as the moving direction of shown message in described view interface;
The displacement of shown message in described view interface is determined according to described operating distance.
Further, described processor 201, in the described moving characteristic according to described message of execution and default relative movement rule, when calculating the step of the moving characteristic of interface background, specifically performs following steps:
According to described default relative movement rule, the moving direction of described message is defined as the moving direction of described interface background;
The preset difference value adopting described default relative movement rule to comprise, carries out subtraction to the displacement of described message, obtains the displacement of described interface background.
Further, described processor 201, in the described moving characteristic according to described message of execution and default relative movement rule, when calculating the step of the moving characteristic of interface background, specifically performs following steps:
According to described default relative movement rule, the moving direction of described message is defined as the moving direction of described interface background;
The preset multiple value adopting described default relative movement rule to comprise, carries out division arithmetic to the displacement of described message, obtains the displacement of described interface background.
Further, described processor 201 moves operation according to the moving characteristic of described message to described message described in execution, before according to the moving characteristic of described interface background described interface background being moved to the step of operation, also performs following steps:
Obtain the attribute information of described interface background, described attribute information comprises: single blank map picture or continuously blank map picture;
If the attribute information of described interface background is continuous blank map picture, then performs, according to the moving characteristic of described message, operation is moved to described message, according to the moving characteristic of described interface background, described interface background is moved to the step of operation.
Further, described processor 201, after the step of attribute information performing the described interface background of described acquisition, also performs following steps:
If the attribute information of described interface background is single blank map picture, along the moving direction of described interface background, calculate the relative distance at the edge of described view interface and the edge of described interface background;
Judge whether described relative distance is more than or equal to the displacement of described interface background;
If described relative distance is more than or equal to the displacement of described interface background, then perform, according to the moving characteristic of described message, operation is moved to described message, and described interface background is moved to the step of operation according to the moving characteristic of described interface background;
If described relative distance is less than the displacement of described interface background, then described relative distance is redefined the displacement into described interface background, and perform, according to the moving characteristic of described message, operation is moved to described message, and described interface background is moved to the step of operation according to the moving characteristic of described interface background.
Further, described processor 201 moves operation according to the moving characteristic of described message to described message described in execution, when moving the step of operation according to the moving characteristic of described interface background to described interface background, specifically performs following steps:
Along the moving direction of described message in described view interface, according to the displacement of described message, operation is moved to described message;
Along the moving direction of described interface background in described view interface, according to the displacement of described interface background, operation is moved to described interface background.
In the embodiment of the present invention, the moving characteristic of interface background can be calculated according to the moving characteristic of message shown in view interface, while operation being moved to message according to the moving characteristic of described message, according to the moving characteristic of described interface background, operation is moved to interface background, thus message and interface background can be made in view interface can to produce the parallax of relative motion, enrich the display mode of message, improve message display effect.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (19)

1. a message display method, is characterized in that, comprising:
When the message browse operation in view interface being detected, calculate the moving characteristic of shown message in described view interface;
According to moving characteristic and the default relative movement rule of described message, calculate the moving characteristic of interface background;
According to the moving characteristic of described message, operation is moved to described message, according to the moving characteristic of described interface background, operation is moved to described interface background;
The described message after mobile operation and described interface background is shown in described view interface.
2. the method for claim 1, is characterized in that, described message browse operation comprises: slide or clicking operation; Described moving characteristic comprises moving direction and displacement.
3. method as claimed in claim 2, is characterized in that, described when the message browse operation in view interface being detected, calculates the moving characteristic of shown message in described view interface, comprising:
When the slide in view interface being detected, obtain glide direction and the sliding distance of described slide;
Described glide direction is defined as the moving direction of shown message in described view interface;
The displacement of shown message in described view interface is determined according to described sliding distance.
4. method as claimed in claim 2, is characterized in that, described when the message browse operation in view interface being detected, calculates the moving characteristic of shown message in described view interface, comprising:
When the clicking operation in view interface being detected, according to initial click location and the termination click location of described clicking operation, determine direction of operating and the operating distance of described clicking operation;
Described direction of operating is defined as the moving direction of shown message in described view interface;
The displacement of shown message in described view interface is determined according to described operating distance.
5. method as claimed in claim 2, is characterized in that, the described moving characteristic according to described message and default relative movement rule, calculate the moving characteristic of interface background, comprising:
According to described default relative movement rule, the moving direction of described message is defined as the moving direction of described interface background;
The preset difference value adopting described default relative movement rule to comprise, carries out subtraction to the displacement of described message, obtains the displacement of described interface background.
6. method as claimed in claim 2, is characterized in that, the described moving characteristic according to described message and default relative movement rule, calculate the moving characteristic of interface background, comprising:
According to described default relative movement rule, the moving direction of described message is defined as the moving direction of described interface background;
The preset multiple value adopting described default relative movement rule to comprise, carries out division arithmetic to the displacement of described message, obtains the displacement of described interface background.
7. the method as described in any one of claim 2-6, is characterized in that, the described moving characteristic according to described message moves operation to described message, before moving operation, also comprises according to the moving characteristic of described interface background to described interface background:
Obtain the attribute information of described interface background, described attribute information comprises: single blank map picture or continuously blank map picture;
If the attribute information of described interface background is continuous blank map picture, then performs, according to the moving characteristic of described message, operation is moved to described message, according to the moving characteristic of described interface background, described interface background is moved to the step of operation.
8. method as claimed in claim 7, is characterized in that, after the attribute information of the described interface background of described acquisition, also comprise:
If the attribute information of described interface background is single blank map picture, along the moving direction of described interface background, calculate the relative distance at the edge of described view interface and the edge of described interface background;
Judge whether described relative distance is more than or equal to the displacement of described interface background;
If described relative distance is more than or equal to the displacement of described interface background, then perform, according to the moving characteristic of described message, operation is moved to described message, and described interface background is moved to the step of operation according to the moving characteristic of described interface background;
If described relative distance is less than the displacement of described interface background, then described relative distance is redefined the displacement into described interface background, and perform, according to the moving characteristic of described message, operation is moved to described message, and described interface background is moved to the step of operation according to the moving characteristic of described interface background.
9. method as claimed in claim 8, it is characterized in that, the described moving characteristic according to described message moves operation to described message, moves operation, comprising according to the moving characteristic of described interface background to described interface background:
Along the moving direction of described message in described view interface, according to the displacement of described message, operation is moved to described message;
Along the moving direction of described interface background in described view interface, according to the displacement of described interface background, operation is moved to described interface background.
10. a message display device, is characterized in that, comprising:
The characteristic information computing module, for when the message browse operation in view interface being detected, calculates the moving characteristic of shown message in described view interface;
Background characteristics computing module, for according to the moving characteristic of described message and default relative movement rule, calculates the moving characteristic of interface background;
Operational module, moves operation for the moving characteristic according to described message to described message, moves operation according to the moving characteristic of described interface background to described interface background;
Display module, for showing the described message after mobile operation and described interface background in described view interface.
11. devices as claimed in claim 10, it is characterized in that, described message browse operation comprises: slide or clicking operation; Described moving characteristic comprises moving direction and displacement.
12. devices as claimed in claim 11, it is characterized in that, described the characteristic information computing module comprises:
Slide acquiring unit, for when the slide in view interface being detected, obtains glide direction and the sliding distance of described slide;
First direction determining unit, for being defined as the moving direction of shown message in described view interface by described glide direction;
First distance determining unit, for determining the displacement of shown message in described view interface according to described sliding distance.
13. devices as claimed in claim 11, it is characterized in that, described the characteristic information computing module comprises:
Clicking operation determining unit, for when the clicking operation in view interface being detected, according to initial click location and the termination click location of described clicking operation, determines direction of operating and the operating distance of described clicking operation;
Second direction determining unit, for being defined as the moving direction of shown message in described view interface by described direction of operating;
Second distance determining unit, for determining the displacement of shown message in described view interface according to described operating distance.
14. devices as claimed in claim 11, it is characterized in that, described background characteristics computing module comprises:
First direction computing unit, for according to described default relative movement rule, is defined as the moving direction of described interface background by the moving direction of described message;
First metrics calculation unit, for the preset difference value adopting described default relative movement rule to comprise, carries out subtraction to the displacement of described message, obtains the displacement of described interface background.
15. devices as claimed in claim 11, it is characterized in that, described background characteristics computing module comprises:
Second direction computing unit, for according to described default relative movement rule, is defined as the moving direction of described interface background by the moving direction of described message;
Second distance computing unit, for the preset multiple value adopting described default relative movement rule to comprise, carries out division arithmetic to the displacement of described message, obtains the displacement of described interface background.
16. devices as described in any one of claim 11-15, is characterized in that, also comprise:
Attribute acquisition module, for obtaining the attribute information of described interface background, described attribute information comprises: single blank map picture or continuously blank map picture;
First processing module, if be continuous blank map picture for the attribute information of described interface background, then notifies that described operational module moves operation according to the moving characteristic of described interface background to described interface background.
17. devices as claimed in claim 16, is characterized in that, also comprise:
Relative computing module, if be single blank map picture for the attribute information of described interface background, along the moving direction of described interface background, calculates the relative distance at the edge of described view interface and the edge of described interface background;
Judge module, for judging whether described relative distance is more than or equal to the displacement of described interface background;
Second processing module, if the displacement being more than or equal to described interface background for described relative distance, then notifies that described operational module moves operation according to the moving characteristic of described interface background to described interface background; Or, if be less than the displacement of described interface background for described relative distance, described relative distance is redefined the displacement into described interface background, and notifies that described operational module moves operation according to the moving characteristic of described interface background to described interface background.
18. devices as claimed in claim 17, it is characterized in that, described operational module comprises:
Message Opcode unit, in described view interface along the moving direction of described message, according to the displacement of described message, operation is moved to described message;
Background operation unit, in described view interface along the moving direction of described interface background, according to the displacement of described interface background, operation is moved to described interface background.
19. 1 kinds of terminals, is characterized in that, comprise the message display device as described in any one of claim 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 true CN105320421A (en) 2016-02-10
CN105320421B 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)

Cited By (2)

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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010033639A1 (en) * 1997-12-31 2001-10-25 Martin Larry J. Controller for use with communications systems for converting a voice message to a text message
US20090044136A1 (en) * 2007-08-06 2009-02-12 Apple Inc. Background removal tool for a presentation application
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

Family Cites Families (1)

* 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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010033639A1 (en) * 1997-12-31 2001-10-25 Martin Larry J. Controller for use with communications systems for converting a voice message to a text message
US20090044136A1 (en) * 2007-08-06 2009-02-12 Apple Inc. Background removal tool for a presentation application
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

Cited By (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

Also Published As

Publication number Publication date
CN105320421B (en) 2020-04-24

Similar Documents

Publication Publication Date Title
US9430093B2 (en) Monitoring interactions between two or more objects within an environment
CN105426080B (en) A kind of picture switching method and terminal
JP6274682B2 (en) Method and user equipment for displaying interface content
US20210149534A1 (en) Display Control Method and Terminal
CN103870199A (en) Method for recognizing user operation mode on handheld device and handheld device
CN104360816A (en) Screen capture method and system
KR20130088104A (en) Mobile apparatus and method for providing touch-free interface
CN102117165A (en) Touch input processing method and mobile terminal
CN105302458A (en) Message display method and apparatus
US20160266758A1 (en) Method for deleting email and terminal device
CN109144370A (en) A kind of screenshotss method, apparatus, terminal and computer-readable medium
CN109697265A (en) A kind of page returning method and device
CN107450824B (en) Object deleting method and terminal
CN104978135A (en) Icon display method and device, and mobile terminal
CN103376917A (en) Device and method for sensing 3d object
CN103488424A (en) Method and device for displaying information
CN111127469A (en) Thumbnail display method, device, storage medium and terminal
CN103558957A (en) Method and device for screen operation of mobile terminal
CN107291564B (en) Information copying and pasting method and device and electronic equipment
CN105320421A (en) Message displaying method and device, and terminal
CN108874141B (en) Somatosensory browsing method and device
CN107335218B (en) Game scene moving method and device, storage medium, processor and terminal
EP4270156A1 (en) Gesture data acquisition method and apparatus, terminal, and storage medium
EP3863235B1 (en) Method and apparatus for processing data
CN104615342A (en) Information processing method and electronic 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