CN108182100B - Message display method and mobile terminal - Google Patents

Message display method and mobile terminal Download PDF

Info

Publication number
CN108182100B
CN108182100B CN201711406735.4A CN201711406735A CN108182100B CN 108182100 B CN108182100 B CN 108182100B CN 201711406735 A CN201711406735 A CN 201711406735A CN 108182100 B CN108182100 B CN 108182100B
Authority
CN
China
Prior art keywords
message
session message
session
preset
mobile terminal
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
CN201711406735.4A
Other languages
Chinese (zh)
Other versions
CN108182100A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711406735.4A priority Critical patent/CN108182100B/en
Publication of CN108182100A publication Critical patent/CN108182100A/en
Application granted granted Critical
Publication of CN108182100B publication Critical patent/CN108182100B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Digital Computer Display Output (AREA)

Abstract

The invention provides a message display method and a mobile terminal, wherein the method comprises the following steps: judging whether the session message meets a preset abbreviative condition or not; if the session message meets the preset abbreviating condition, carrying out abbreviating processing on the session message; and displaying the conversation message after the abbreviating process in the dialog box. Therefore, when the session message meets the preset abbreviative condition, the session message can be abbreviated, so that the mobile terminal can display more important contents, the display space of the mobile terminal is saved, and the display effect of the mobile terminal is improved.

Description

Message display method and mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a message display method and a mobile terminal.
Background
With the rapid development of mobile terminals, mobile terminals have become an essential tool in people's life, and bring great convenience to various aspects of users' life. The users can use the mobile terminals to send messages to each other, so that the users can communicate better.
In some cases, the mobile terminal may receive a relatively large number of messages. For example, a user joins a group, and a plurality of users in the group discuss a certain topic together, and at this time, the mobile terminal receives more messages. Some irrelevant messages, such as some expressions or word expressions, etc., may inevitably appear, and these invalid messages may occupy more display space, resulting in a poor display effect of the mobile terminal.
Disclosure of Invention
The embodiment of the invention provides a message display method and a mobile terminal, and aims to solve the problem that invalid messages of the mobile terminal occupy more display space, so that the display effect of the mobile terminal is poor.
In order to solve the technical problem, the invention is realized as follows: a message display method, comprising:
judging whether the session message meets a preset abbreviative condition or not;
if the session message meets the preset abbreviating condition, carrying out abbreviating processing on the session message;
and displaying the conversation message after the abbreviating process in the dialog box.
In a first aspect, an embodiment of the present invention provides a message display method, including:
judging whether the session message meets a preset abbreviative condition or not;
if the session message meets the preset abbreviating condition, carrying out abbreviating processing on the session message;
and displaying the conversation message after the abbreviating process in the dialog box.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, including:
the judging module is used for judging whether the session message meets a preset abbreviative condition or not;
the processing module is used for abbreviating the session message if the judging module judges that the session message meets the preset abbreviating condition;
and the first display module is used for displaying the conversation message after the abbreviation processing in the dialog box.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the message display method.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above message display method are implemented.
In the embodiment of the invention, whether the session message meets the preset abbreviative condition is judged; if the session message meets the preset abbreviating condition, carrying out abbreviating processing on the session message; and displaying the conversation message after the abbreviating process in the dialog box. Therefore, when the session message meets the preset abbreviative condition, the session message can be abbreviated, so that the mobile terminal can display more important contents, the display space of the mobile terminal is saved, and the display effect and the user experience of the mobile terminal are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a message display method according to an embodiment of the present invention;
fig. 2 is a flowchart of a message display method according to another embodiment of the present invention;
fig. 3 is a schematic display diagram of a mobile terminal according to an embodiment of the present invention;
fig. 4 is a second display schematic diagram of the mobile terminal according to an embodiment of the present invention;
fig. 5 is a third schematic display diagram of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a fourth schematic display diagram of a mobile terminal according to an embodiment of the present invention;
fig. 7 is a fifth schematic display diagram of a mobile terminal according to an embodiment of the present invention;
fig. 8 is a sixth schematic display diagram of a mobile terminal according to an embodiment of the present invention;
fig. 9 is a seventh exemplary illustration of a display of a mobile terminal according to an embodiment of the present invention;
fig. 10 is an eighth schematic display diagram of a mobile terminal according to an embodiment of the present invention;
FIG. 11 is a ninth illustration of a display of a mobile terminal according to an embodiment of the invention;
fig. 12 is one of the structural diagrams of a mobile terminal according to an embodiment of the present invention;
fig. 13 is one of the structural diagrams of a determination module of a mobile terminal according to an embodiment of the present invention;
fig. 14 is one of the block diagrams of a processing module of the mobile terminal according to an embodiment of the present invention;
fig. 15 is a second block diagram of a determining module of the mobile terminal according to an embodiment of the present invention;
fig. 16 is a second block diagram of a processing module of the mobile terminal according to an embodiment of the present invention;
fig. 17 is a second block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 18 is a block diagram of a mobile terminal according to still another 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 some, not all, embodiments of the present invention. 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.
Referring to fig. 1, fig. 1 is a flowchart of a message display method according to an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
step 101, judging whether the session message meets a preset abbreviating condition.
In the embodiment of the present invention, the session message may be a text, a picture, or both a text and a picture. There may be various ways to determine whether the session message satisfies the predetermined abbreviated condition. For example: whether the message content of the session message exceeds a certain number of words can be judged, and when the message content of the session message exceeds the certain number of words, whether the session message meets a preset abbreviation condition can be considered; or judging whether the message content of the session message exceeds a certain number of lines, and when the message content of the session message exceeds a certain number of lines, judging whether the session message meets a preset abbreviative condition; or, it may also determine whether there are some linguistics in the session message, and when there are some linguistics, the session message is considered to satisfy the predetermined abbreviated condition, and so on.
For better understanding of the above judgment process, we can understand it by combining the following examples. For example: when the message content of the session message exceeds 50 words, whether the session message meets a preset abbreviative condition can be considered; or when the message content of the session message exceeds 10 lines, it can be considered whether the session message satisfies the preset abbreviated condition. Of course, the number of words and the number of rows may also be other numbers and numbers of rows, and the embodiment of the present invention is not limited thereto.
And 102, if the session message meets the preset abbreviating condition, abbreviating the session message.
In the embodiment of the invention, when the session message meets the preset abbreviative condition, the session message can be subjected to abbreviative processing in various processing modes. For example: when some language words exist in the conversation message, the language words can be omitted; or the user may manually select some content in the conversation message, omitting the user-selected content, etc.
It should be noted that, if the session message does not satisfy the preset abbreviated condition, the determination may be continued, or the flow may also be ended, and fig. 1 in the embodiment of the present invention is exemplified by ending the flow.
And step 103, displaying the conversation message after the abbreviating processing in a dialog box.
In the embodiment of the present invention, the dialog box may be a dialog box of some social applications, or may also be a dialog box of some chat applications, and the like. The above-described display of the conversation message after the contraction processing can be understood as such. For example: three say a sentence "this is good at to look haha", the plum four said a sentence "really look very good at to look hey", then can hide some word of language, hide "haha" that three say and "hey" that the plum four say promptly to only show "this is good at" and "really look very good" in the dialog box.
Of course, the thumbnail processing may be to select some content for hiding by the user, or the like. For example: first, a dialog box is displayed, wherein 'a team and a team hold a long-expected football game in the olympic park', if a user selects 'a long-expected football game', the content selected by the user can be hidden, and then only 'a team and a team hold a football game in the olympic park' is displayed in the dialog box. By the method, some less important information can be hidden, so that more critical information can be displayed, and the display effect of the mobile terminal is improved. The user can also obtain more key information in the same display range, so that the user has better experience.
In the embodiment of the present invention, the Mobile terminal may be a Mobile phone, a Tablet personal Computer (Tablet personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or the like.
The message display method of the embodiment of the invention judges whether the session message meets the preset abbreviative condition; if the session message meets the preset abbreviating condition, carrying out abbreviating processing on the session message; and displaying the conversation message after the abbreviating process in the dialog box. Therefore, when the session message meets the preset abbreviative condition, the session message can be abbreviated, so that the mobile terminal can display more important contents, the display space of the mobile terminal is saved, and the display effect of the mobile terminal is improved.
Referring to fig. 2, fig. 2 is a flowchart of a message display method according to an embodiment of the present invention. The main difference between this embodiment and the previous embodiment is that in this method, the target session message selected by the user is displayed in detail. As shown in fig. 2, the method comprises the following steps:
step 201, judging whether the session message meets a preset abbreviating condition.
In the embodiment of the present invention, the session message may be a text, a picture, or both a text and a picture. There may be various ways to determine whether the session message satisfies the predetermined abbreviated condition. For example: whether the message content of the session message exceeds a certain number of words can be judged, and when the message content of the session message exceeds the certain number of words, whether the session message meets a preset abbreviation condition can be considered; or judging whether the message content of the session message exceeds a certain number of lines, and when the message content of the session message exceeds a certain number of lines, judging whether the session message meets a preset abbreviative condition; or, it may also determine whether there are some linguistics in the session message, and when there are some linguistics, the session message is considered to satisfy the predetermined abbreviated condition, and so on.
For better understanding of the above judgment process, we can understand it by combining the following examples. For example: when the message content of the session message exceeds 50 words, whether the session message meets a preset abbreviative condition can be considered; or when the message content of the session message exceeds 10 lines, it can be considered whether the session message satisfies the preset abbreviated condition. Of course, the number of words and the number of rows may also be other numbers and numbers of rows, and the embodiment of the present invention is not limited thereto.
Step 202, if the session message meets the preset abbreviating condition, abbreviating the session message.
In the embodiment of the invention, when the session message meets the preset abbreviative condition, the session message can be subjected to abbreviative processing in various processing modes. For example: when some language words exist in the conversation message, the language words can be omitted; or the user may manually select some content in the conversation message, omitting the user-selected content, etc.
It should be noted that, if the session message does not satisfy the preset abbreviated condition, the determination may be continued, or the flow may also be ended, and fig. 2 in the embodiment of the present invention is exemplified by ending the flow.
Step 203, displaying the conversation message after the abbreviating process in the dialog box.
In the embodiment of the present invention, the dialog box may be a dialog box of some social applications, or may also be a dialog box of some chat applications, and the like. The above-described display of the conversation message after the contraction processing can be understood as such. For example: three say a sentence "this is good at to look haha", the plum four said a sentence "really look very good at to look hey", then can hide some word of language, hide "haha" that three say and "hey" that the plum four say promptly to only show "this is good at" and "really look very good" in the dialog box.
Of course, the thumbnail processing may be to select some content for hiding by the user, or the like. For example: first, a dialog box is displayed, wherein 'a team and a team hold a long-expected football game in the olympic park', if a user selects 'a long-expected football game', the content selected by the user can be hidden, and then only 'a team and a team hold a football game in the olympic park' is displayed in the dialog box. By the method, some less important information can be hidden, so that more critical information can be displayed, and the display effect of the mobile terminal is improved. The user can also obtain more key information in the same display range, so that the user has better experience.
And 204, receiving touch operation of the user for the session message.
In the embodiment of the present invention, the touch operation for the session message may be a click operation or a double click operation. Of course, other touch operations may be used, such as drawing a circle around the nickname of a user, drawing a circle around a conversation message, drawing a straight line through a plurality of conversation messages, drawing a rectangle containing a plurality of conversation messages, and so on.
And step 205, acquiring a target session message in the abbreviated session message according to the touch operation.
In the embodiment of the present invention, the obtaining of the target session message in the session message after the abbreviated processing according to the touch operation may be understood in this way. For example: "this nice look" and "really nice look" after the abbreviated process already exist in the dialog box, and when the user clicks at the position of "this nice look" message, the obtained target session message is "this nice look"; when the user clicks on the "really nice" message, the obtained target session message is "really nice".
Of course, there may be some marks at the locations where both are omitted. Taking the ellipses as an example, the dialog box may display "this look good.." and "really look good …". When the user clicks the ellipsis in "this look good.," the obtained target session message is "this look good …"; when the user clicks on the ellipsis in "really nice looking …", the target session message obtained is "really nice looking …".
In addition, the user may draw a line or a figure in a shape, and a conversation message having a common part with the line or the figure may be used as the target conversation message. Alternatively, the user may draw a closed graphic, and the conversation message enclosed by the closed graphic may be used as the target conversation message, and so on. In addition to the listed manners, there may be more manners to select the target session message, and the embodiment of the present invention is not limited thereto.
And step 206, displaying the detail information of the target session message.
In the embodiment of the present invention, the target session message may be "this good look …", and then the detail information is "this good look haha"; the target conversation message may be "really good at …", and then the detail message is "really good at hey". Of course, the target conversation message may also include some reduced images, and then the detailed information of the target conversation message is displayed, the reduced images may be restored to the size before reduction for display, and so on. Therefore, when the user selects the target session message, the detail information of the target session message can be displayed, so that the user can independently select and display some contents to be viewed.
For better understanding of the above process, we can refer to fig. 3 to fig. 6, and fig. 3 to fig. 6 are schematic display diagrams of the mobile terminal according to the embodiment of the present invention. In fig. 3 we can see that there are the omitted sentences "this look … good", "really look … good" and an avatar of the person zooming out. When the user clicks both at the ellipsis of "this good look …" and the character avatar, then the detailed information "this good look haha" of "this good look …" and the character avatar before zooming out can be displayed, as shown in fig. 4.
In fig. 5 we can see that there are the omitted sentences "this look … good", "really look … good" and an avatar of the person zooming out. But at this time, the user draws a line in the dialog box, and the conversation information of the line related to the line can be displayed with the detail information, that is, the content included by the dotted line in fig. 5 is displayed with the effect shown in fig. 6. Some thumbnail information controls and the like may also be displayed in fig. 3 to fig. 6, which is not limited to this embodiment of the present invention.
In the embodiment of the invention, when a certain user information is circled, the detail information of the content sent by the user can be called for display, the head portrait of the user can be marked with a star, and the user information can not be checked by clicking the head portrait under the star state. And clicking the user head to hide the detailed information of the content when the user head is viewed, wherein the user head can disappear at the moment, and clicking the user head can enter user data to view.
Optionally, the step of determining whether the session message meets a preset abbreviated condition includes:
judging whether the message content of the conversation message input in the input box corresponding to the dialog box exceeds a preset line number or not;
and if the message content of the session message exceeds the preset line number, determining that the session message meets the preset abbreviative condition.
In this embodiment, the preset number of lines may be set reasonably according to the size of the input frame. Because the upper and lower width of the input box of some mobile terminals is larger, the preset line number can be set slightly larger at this time, and because the upper and lower width of the input box is larger, more contents can be displayed, so that the thumbnail is not needed to be reduced. When the upper and lower width of the input frame of the mobile terminal is smaller, the preset line number can be set to be slightly smaller, so that more key contents can be displayed, and some irrelevant contents are omitted.
Of course, the determination may be performed by a preset number of words or some other parameter, besides the preset number of lines, and the present embodiment is not limited thereto.
Optionally, the step of performing abbreviated processing on the session message includes:
receiving a selection operation of a user for the session message;
selecting part of the session messages according to the selection operation;
replacing the portion of the session message with a preset tag in the session message.
In this embodiment, the receiving user may select a part of the session messages in the session messages according to the selection operation. For example: the user performs a sliding operation, and the session message passing through the track generated by the sliding operation is the selected partial session message; or the user clicks a starting point position in the session message and then clicks an ending point position, the session message between the starting point position and the ending point position is used as a partial session message, and the like.
In this embodiment, the preset mark may be an ellipsis, or may be some other mark, and the present embodiment is not limited thereto. Thus, by replacing part of the session message with the preset mark, the user can clearly know which places are subjected to the abbreviating process. In later-period viewing, the positions of the abbreviative processing can be quickly positioned through preset marks, so that the detailed viewing can be carried out.
For better understanding of the above process, we can refer to fig. 7 and 8, and fig. 7 and 8 are display diagrams of the mobile terminal provided by the embodiment of the present invention. In fig. 7 we can see that the upper part of the input box displays the three-point thumbnail control, and the input box displays "manager level meeting is scheduled, meeting in six-storied conference room". The user may drag the thumbnail control to before the starting position "schedule" and drag the thumbnail control to after the terminal position "at", and then omit the contents between "ann" and "at", so that only "… six-storied conference room meetings" is displayed, as shown in fig. 8. The input box in fig. 7 may be grayed out to indicate that the content is in a state of being optionally abbreviated when selecting the content, or may not be grayed out, and this embodiment is not limited thereto.
Optionally, the step of determining whether the session message meets a preset abbreviated condition includes:
judging whether the message content of the session message in the dialog box exceeds a preset line number or not;
and if the message content of the session message exceeds the preset line number, determining that the session message meets the preset abbreviative condition.
In this embodiment, in addition to determining whether the message content of the session message in the dialog box exceeds the preset number of lines, it may also be determined whether the unread message in the dialog box exceeds the positions of two screens, and so on. When the message content of the conversation message in the dialog box exceeds the preset line number or whether the unread message in the dialog box exceeds the positions of two screens, a thumbnail information control can be displayed above the dialog box so as to indicate that the information meeting the conditions is subjected to thumbnail processing. Of course, the thumbnail information control may have various shapes, and this embodiment is not limited thereto. Referring to fig. 9, fig. 9 is a schematic display diagram of a mobile terminal according to an embodiment of the present invention, in which a thumbnail information control is shaped as three vertical points above a dialog box. Of course, the dialog box may not display the thumbnail information control, and may directly perform the thumbnail processing on the session information meeting the thumbnail condition.
Optionally, the step of performing a thumbnail processing on the session message includes at least one of the following steps:
words which accord with preset categories in the conversation message are omitted;
or hiding a target expression image in the conversation message, wherein the target expression image comprises: the expression image is contained in the expression package of the mobile terminal;
or, the image sent by the mobile terminal in the conversation message is reduced.
In this embodiment, the preset category may be an adverb, an adjective, or the like. Or may simply show the subject and the headword, with other messages being shown with ellipses. And some language words can be directly omitted. When the emotion image contained in the emotion packet of the mobile terminal exists in the conversation message, the emotion image can be hidden. The user-defined emoticons or the sent pictures can be displayed as thumbnails with a small area. Therefore, certain rules are used for limiting, some less-critical information can be hidden, and users can better look up more important and more critical information.
In the embodiment, the user can click the picture or mark the position with the ellipsis when viewing the image-text information of the interested or suspected target information in the process of the thumbnails, at this time, the hidden content can be displayed in full details, and the picture and the expression can be displayed in a large-scale graphic form. After the viewing is finished, the user can click again, and the thumbnail state can be recovered at the moment. The content displayed on the first screen may not be subjected to any thumbnail processing, may be subjected to thumbnail processing, and the like.
In the embodiment, when a user slides down in a dialog box by a single finger, the information after the abbreviative processing can be checked; when the user slides down the double finger in the dialog box, the details of all the thumbnail processed information can be viewed, i.e., their detailed information is displayed.
Optionally, the step of performing abbreviated processing on the session message includes:
judging whether conversation messages continuously sent by the same user exist in the dialog box;
and if so, displaying the user information of the user only once.
In this embodiment, when there is a session message continuously sent by the same user, the user information of the user may be displayed only once, so that the display is more concise, and a certain display space may be saved. The user information of the user may be a nickname of the user, or an avatar of the user, etc. The user information of the user is displayed only once and can be displayed in front of the earliest message displayed in the current dialog box, so that messages sent by different users can be well distinguished in the current dialog box.
For better understanding of the above process, we may refer to fig. 10 and fig. 11, where fig. 10 and fig. 11 are schematic display diagrams of a mobile terminal according to an embodiment of the present invention. In fig. 10 we can see that two thumbnail messages and one thumbnail picture are sent by zhang, but "zhang san" is displayed only in front of the foremost message in the dialog box, and the others are not displayed. When the user clicks "three Zhang", the details of all the thumbnail messages sent by three Zhang can be displayed, and reference can be made to fig. 11. Therefore, the thumbnail message of a user can be displayed only by clicking the user information of the user, so that one thumbnail message is not required to be clicked, and the user operation is more convenient.
The message display method of the embodiment of the invention judges whether the session message meets the preset abbreviative condition; if the session message meets the preset abbreviating condition, carrying out abbreviating processing on the session message; displaying the conversation message after the abbreviating process in a dialog box; receiving touch operation of a user for the session message; acquiring a target session message in the session messages after the abbreviative processing according to the touch operation; and displaying the detail information of the target session message. Therefore, when the session message meets the preset abbreviative condition, the session message can be abbreviated, so that the mobile terminal can display more important contents, the display space of the mobile terminal is saved, and the display effect of the mobile terminal is improved. And the user can select the target session message and display the detailed information of the target session message, and the user can independently look up the required content, so that the use is more convenient.
Referring to fig. 12, fig. 12 is a structural diagram of a mobile terminal according to an embodiment of the present invention, which can implement details of a message display method in the foregoing embodiment and achieve the same effect. As shown in fig. 12, the mobile terminal 1200 includes a determining module 1201, a processing module 1202 and a first display module 1203, where the determining module 1201 is connected to the processing module 1202, and the processing module 1202 is connected to the first display module 1203, where:
a judging module 1201, configured to judge whether the session message meets a preset abbreviated condition;
a processing module 1202, configured to perform a contraction process on the session message if the determining module 1201 determines that the session message meets the preset contraction condition;
a first display module 1203, configured to display the conversation message after the abbreviated processing in the dialog box.
Optionally, as shown in fig. 13, the determining module 1201 includes:
a first determining submodule 12011, configured to determine whether message content of the session message input in the input box corresponding to the dialog box exceeds a preset number of lines;
a first determining submodule 12012, configured to determine that the session message satisfies the preset abbreviated condition if the first determining submodule 12011 determines that the message content of the session message exceeds the preset line number.
Optionally, as shown in fig. 14, the processing module 1202 includes:
a receiving submodule 12021, configured to receive a selection operation of the user for the session message;
a selecting submodule 12022, configured to select, according to the selecting operation, a part of the session messages in the session messages;
a replacing submodule 12023, configured to replace the partial session message with a preset mark in the session message.
Optionally, as shown in fig. 15, the determining module 1201 includes:
a second determining submodule 12013, configured to determine whether message content of the session message in the dialog box exceeds a preset number of lines;
a second determining submodule 12014, configured to determine that the session message satisfies the preset abbreviated condition if the second determining submodule 12013 determines that the message content of the session message exceeds the preset line number.
Optionally, the processing module 1202 is specifically configured to at least one of: words which accord with preset categories in the conversation message are omitted; or hiding a target expression image in the conversation message, wherein the target expression image comprises: the expression image is contained in the expression package of the mobile terminal; or, the image sent by the mobile terminal in the conversation message is reduced.
Optionally, as shown in fig. 16, the processing module 1202 includes:
a third determining submodule 12024, configured to determine whether session messages continuously sent by the same user exist in the dialog box;
a display sub-module 12025, configured to display the user information of the user only once if the third determining sub-module 12024 determines that the user exists.
Optionally, as shown in fig. 17, the mobile terminal 1200 further includes:
a receiving module 1204, configured to receive a touch operation of a user for the session message;
a selecting module 1205, configured to obtain, according to the touch operation, a target session message in the session messages after the abbreviation processing;
a second display module 1206, configured to display the detail information of the target session message.
The mobile terminal 1200 can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 2, and details are not repeated here to avoid repetition.
The mobile terminal 1200 of the embodiment of the present invention determines whether the session message satisfies a preset abbreviated condition; if the session message meets the preset abbreviating condition, carrying out abbreviating processing on the session message; and displaying the conversation message after the abbreviating process in the dialog box. Therefore, when the session message meets the preset abbreviative condition, the session message can be abbreviated, so that the mobile terminal can display more important contents, the display space of the mobile terminal is saved, and the display effect of the mobile terminal is improved.
Referring to fig. 18, fig. 18 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal 1800 includes, but is not limited to: radio frequency unit 1801, network module 1802, audio output unit 1803, input unit 1804, sensors 1805, display unit 1806, user input unit 1807, interface unit 1808, memory 1809, processor 1810, and power supply 1811. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 18 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 1810 is configured to determine whether the session message meets a preset abbreviated condition; if the session message meets the preset abbreviating condition, carrying out abbreviating processing on the session message; and displaying the conversation message after the abbreviating process in the dialog box. Therefore, when the session message meets the preset abbreviative condition, the session message can be abbreviated, so that the mobile terminal can display more important contents, the display space of the mobile terminal is saved, and the display effect of the mobile terminal is improved.
Optionally, the processor 1810 is further configured to determine whether a message content of the session message input in the input box corresponding to the dialog box exceeds a preset number of lines; and if the message content of the session message exceeds the preset line number, determining that the session message meets the preset abbreviative condition.
Optionally, the processor 1810 is further configured to receive a selection operation of the user on the session message; selecting part of the session messages according to the selection operation; replacing the portion of the session message with a preset tag in the session message.
Optionally, the processor 1810 is further configured to determine whether a message content of the session message in the dialog box exceeds a preset number of lines; and if the message content of the session message exceeds the preset line number, determining that the session message meets the preset abbreviative condition.
Optionally, the processor 1810 is further configured to omit words in the session message that meet a preset category; or hiding a target expression image in the conversation message, wherein the target expression image comprises: the expression image is contained in the expression package of the mobile terminal; or, the image sent by the mobile terminal in the conversation message is reduced.
Optionally, the processor 1810 is further configured to determine whether session messages continuously sent by the same user exist in the dialog box; and if so, displaying the user information of the user only once.
Optionally, the processor 1810 is further configured to receive a touch operation of the user on the session message; acquiring a target session message in the session messages after the abbreviative processing according to the touch operation; and displaying the detail information of the target session message.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 1801 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 1810; in addition, the uplink data is transmitted to the base station. Generally, the radio frequency unit 1801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 1801 may also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides wireless broadband internet access to the user through the network module 1802, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 1803 may convert audio data received by the radio frequency unit 1801 or the network module 1802 or stored in the memory 1809 into an audio signal and output as sound. Also, the audio output unit 1803 may also provide audio output related to a particular function performed by the mobile terminal 1800 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 1803 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1804 is used to receive audio or video signals. The input Unit 1804 may include a Graphics Processing Unit (GPU) 18041 and a microphone 18042, and the Graphics processor 18041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 1806. The image frames processed by the graphics processor 18041 may be stored in the memory 1809 (or other storage medium) or transmitted via the radio frequency unit 1801 or the network module 1802. The microphone 18042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 1801 in case of the phone call mode.
The mobile terminal 1800 also includes at least one sensor 1805, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 18061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 18061 and/or the backlight when the mobile terminal 1800 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 1805 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 1806 is used to display information input by the user or information provided to the user. The Display unit 1806 may include a Display panel 18061, and the Display panel 18061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 1807 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 1807 includes a touch panel 18071 and other input devices 18072. The touch panel 18071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 18071 (e.g., operations by a user on or near the touch panel 18071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 18071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 1810, receives a command from the processor 1810, and executes the command. In addition, the touch panel 18071 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 1807 may include other input devices 18072 in addition to the touch panel 18071. Specifically, the other input devices 18072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 18071 may be overlaid on the display panel 18061, and when the touch panel 18071 detects a touch operation on or near the touch panel 18071, the touch operation is transmitted to the processor 1810 to determine the type of the touch event, and then the processor 1810 provides a corresponding visual output on the display panel 18061 according to the type of the touch event. Although the touch panel 18071 and the display panel 18061 are shown in fig. 18 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 18071 and the display panel 18061 may be integrated to implement the input and output functions of the mobile terminal, and this is not limited herein.
The interface unit 1808 is an interface through which an external device is connected to the mobile terminal 1800. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 1808 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 1800 or may be used to transmit data between the mobile terminal 1800 and external devices.
The memory 1809 may be used to store software programs as well as various data. The memory 1809 may mainly include a program storage area and a data storage area, where the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 1809 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 1810 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 1809 and calling data stored in the memory 1809, thereby integrally monitoring the mobile terminal. Processor 1810 may include one or more processing units; preferably, the processor 1810 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 1810.
The mobile terminal 1800 may also include a power supply 1811 (e.g., a battery) to power the various components, and preferably, the power supply 1811 is logically connected to the processor 1810 via a power management system that may be configured to manage charging, discharging, and power consumption.
In addition, the mobile terminal 1800 includes some functional modules that are not shown, and thus will not be described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 1810, a memory 1809, and a computer program that is stored in the memory 1809 and is executable on the processor 1810, and when the computer program is executed by the processor 1810, the computer program implements each process of the foregoing message display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned message display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (11)

1. A message display method is applied to a mobile terminal, and is characterized by comprising the following steps:
judging whether the session message meets a preset abbreviative condition or not;
if the session message meets the preset abbreviating condition, carrying out abbreviating processing on the session message;
displaying the conversation message after the abbreviating process in a dialog box;
the step of judging whether the session message meets the preset abbreviative condition comprises the following steps:
judging whether the message content of the conversation message input in the input box corresponding to the dialog box exceeds a preset line number or not;
if the message content of the session message exceeds the preset line number, determining that the session message meets the preset abbreviative condition;
the step of abbreviating the session message includes:
receiving a selection operation of a user for the session message;
selecting part of the session messages according to the selection operation;
replacing the partial session message with a preset tag in the session message;
wherein the selecting of a part of the session messages in the session messages according to the selection operation specifically includes: a user performs a sliding operation, and takes the session message passing through the track generated by the sliding operation as a selected partial session message; or the user clicks a starting point position in the session message and then clicks an ending point position, and the session message between the starting point position and the ending point position is used as a partial session message.
2. The method of claim 1, wherein the step of determining whether the session message satisfies a predetermined abbreviated condition comprises:
judging whether the message content of the session message in the dialog box exceeds a preset line number or not;
and if the message content of the session message exceeds the preset line number, determining that the session message meets the preset abbreviative condition.
3. The method of claim 2, wherein the step of abbreviating the session message comprises at least one of:
words which accord with preset categories in the conversation message are omitted;
or hiding a target expression image in the conversation message, wherein the target expression image comprises: the expression image is contained in the expression package of the mobile terminal;
or, the image sent by the mobile terminal in the conversation message is reduced.
4. The method of claim 2, wherein the step of abbreviating the session message comprises:
judging whether conversation messages continuously sent by the same user exist in the dialog box;
and if so, displaying the user information of the user only once.
5. The method of claim 2, wherein after the step of displaying the abbreviated conversation message in a dialog box, the method further comprises:
receiving touch operation of a user for the session message;
acquiring a target session message in the session messages after the abbreviative processing according to the touch operation;
and displaying the detail information of the target session message.
6. A mobile terminal, comprising:
the judging module is used for judging whether the session message meets a preset abbreviative condition or not;
the processing module is used for abbreviating the session message if the judging module judges that the session message meets the preset abbreviating condition;
the first display module is used for displaying the conversation message after the contraction processing in the dialog box;
the judging module comprises:
the first judgment submodule is used for judging whether the message content of the session message input in the input box corresponding to the dialog box exceeds a preset line number or not;
the first determining submodule is used for determining that the session message meets the preset abbreviative condition if the first judging submodule judges that the message content of the session message exceeds the preset line number;
the processing module comprises:
the receiving submodule is used for receiving the selection operation of the user aiming at the conversation message;
the selection submodule is used for selecting part of the session messages according to the selection operation;
a substitution submodule for substituting a preset mark in the session message for the partial session message;
the selection submodule is specifically configured to:
a user performs a sliding operation, and takes the session message passing through the track generated by the sliding operation as a selected partial session message; or the user clicks a starting point position in the session message and then clicks an ending point position, and the session message between the starting point position and the ending point position is used as a partial session message.
7. The mobile terminal of claim 6, wherein the determining module comprises:
the second judgment submodule is used for judging whether the message content of the session message in the dialog box exceeds the preset line number or not;
a second determining submodule, configured to determine that the session message satisfies the preset abbreviated condition if the second determining submodule determines that the message content of the session message exceeds the preset line number.
8. The mobile terminal according to claim 7, wherein the processing module is specifically configured to at least one of: words which accord with preset categories in the conversation message are omitted; or hiding a target expression image in the conversation message, wherein the target expression image comprises: the expression image is contained in the expression package of the mobile terminal; or, the image sent by the mobile terminal in the conversation message is reduced.
9. The mobile terminal of claim 7, wherein the processing module comprises:
a third judging submodule, configured to judge whether session messages continuously sent by the same user exist in the dialog box;
and the display sub-module is used for displaying the user information of the user only once if the third judgment sub-module judges that the user information exists.
10. The mobile terminal of claim 7, wherein the mobile terminal further comprises:
the receiving module is used for receiving touch operation of a user aiming at the session message;
the selection module is used for acquiring a target session message in the session messages after the abbreviative processing according to the touch operation;
and the second display module is used for displaying the detail information of the target session message.
11. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the message display method according to any one of claims 1 to 5.
CN201711406735.4A 2017-12-22 2017-12-22 Message display method and mobile terminal Active CN108182100B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711406735.4A CN108182100B (en) 2017-12-22 2017-12-22 Message display method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711406735.4A CN108182100B (en) 2017-12-22 2017-12-22 Message display method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108182100A CN108182100A (en) 2018-06-19
CN108182100B true CN108182100B (en) 2020-06-12

Family

ID=62546786

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711406735.4A Active CN108182100B (en) 2017-12-22 2017-12-22 Message display method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108182100B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111638837B (en) * 2020-05-13 2022-03-11 维沃移动通信有限公司 Message processing method and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060124196A (en) * 2005-05-31 2006-12-05 주식회사 팬택 Method for transmitting short message of mobile phone

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101590340B1 (en) * 2009-10-09 2016-02-01 삼성전자주식회사 Apparatus and method for transmitting and receiving message in mobile communication terminal with touch screen
CN103309998B (en) * 2013-06-25 2017-09-22 腾讯科技(深圳)有限公司 A kind of message query method and device, terminal device
US20150112995A1 (en) * 2013-10-18 2015-04-23 Microsoft Corporation Information retrieval for group users
CN104598476A (en) * 2013-10-31 2015-05-06 腾讯科技(深圳)有限公司 Message aggregation display method and information display method and relevant device
CN103809862B (en) * 2014-02-21 2017-01-18 联想(北京)有限公司 Information processing method and electronic device
CN105426050B (en) * 2015-11-25 2018-10-12 小米科技有限责任公司 Message treatment method and device
CN106411701A (en) * 2016-09-13 2017-02-15 广东欧珀移动通信有限公司 Message display method and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060124196A (en) * 2005-05-31 2006-12-05 주식회사 팬택 Method for transmitting short message of mobile phone

Also Published As

Publication number Publication date
CN108182100A (en) 2018-06-19

Similar Documents

Publication Publication Date Title
CN108234289B (en) Message display method and device and mobile terminal
CN110096326B (en) Screen capturing method, terminal equipment and computer readable storage medium
CN107846352B (en) Information display method and mobile terminal
CN109525874B (en) Screen capturing method and terminal equipment
CN110768805B (en) Group message display method and electronic equipment
CN113360238A (en) Message processing method and device, electronic equipment and storage medium
CN111666009B (en) Interface display method and electronic equipment
WO2020156120A1 (en) Notification message display method and mobile terminal
CN111638837B (en) Message processing method and electronic equipment
CN111274416A (en) Chat information searching method and electronic equipment
CN109412932B (en) Screen capturing method and terminal
CN109739407B (en) Information processing method and terminal equipment
CN109388456B (en) Head portrait selection method and mobile terminal
CN108600089B (en) Expression image display method and terminal equipment
CN110913067A (en) Information sending method and electronic equipment
CN110971510A (en) Message processing method and electronic equipment
CN111601139A (en) Information display method, electronic device, and storage medium
CN109189303B (en) Text editing method and mobile terminal
CN109271262B (en) Display method and terminal
CN110855549A (en) Message display method and terminal equipment
CN108600079B (en) Chat record display method and mobile terminal
CN108196781B (en) Interface display method and mobile terminal
WO2020156112A1 (en) Operation control method for terminal, and terminal
CN109166164B (en) Expression picture generation method and terminal
CN111061446A (en) Display method and electronic equipment

Legal Events

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