Message display methods, devices and electronic equipment
By displaying chat emoticons and other message content in separate areas within the chat interface, the problem of emoticons obscuring important messages is solved, allowing users to view the complete message content in a timely manner.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- VIVO MOBILE COMM CO LTD
- Filing Date
- 2020-09-22
- Publication Date
- 2026-05-05
AI Technical Summary
When sending a lot of chat emoticons in the chat interface, users cannot see important messages in time, resulting in missing important messages.
The chat interface is divided into multiple message sections, each displaying chat emoticons and other message content separately. By separating chat emoticons and other message content into different areas, interference between chat emoticons and text message content is avoided.
Ensure users can see continuous text content and obtain the complete message content, and avoid chat emoticons obscuring important messages.
Smart Images

Figure CN112162803B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communication technology, specifically relating to a message display method, device, and electronic device. Background Technology
[0002] With the increasing prevalence of the internet, chat software has become an indispensable tool for modern people to communicate. In everyday chats, emoticons are used more and more frequently. Emoticons can increase the intimacy and fun of conversations, while also bringing the two people chatting closer.
[0003] In related technologies, when users use a "chat" app to chat with others, they can communicate with others by sending chat emoticons that represent different emotions.
[0004] However, when users send too many emoticons in the chat interface, they may not be able to see important messages in time, thus missing important messages. Summary of the Invention
[0005] The purpose of this application is to provide a message display method, device, and electronic device that can solve the problem that users cannot quickly view important messages when sending a lot of chat emoticons in the chat interface.
[0006] To solve the above-mentioned technical problems, this application is implemented as follows:
[0007] In a first aspect, embodiments of this application provide a message display method, the method comprising: receiving N messages, where N is a positive integer; displaying a first type of message content among the N messages in a first area, and displaying a second type of message content among the N messages in a second area.
[0008] Secondly, embodiments of this application provide a message display device, which includes: a receiving module for receiving N messages, where N is a positive integer; and a display module for displaying a first type of message content among the N messages in a first area and displaying a second type of message content among the N messages in a second area.
[0009] Thirdly, embodiments of this application provide an electronic device, which includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor. When the program or instructions are executed by the processor, they implement the steps of the method as described in the first aspect.
[0010] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, and when the program or instructions are executed by a processor, they implement the steps of the method as described in the first aspect.
[0011] Fifthly, embodiments of this application provide a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled together, and the processor is used to run programs or instructions to implement the method as described in the first aspect.
[0012] In this embodiment, when the first interface is displayed, N messages are received, where N is a positive integer. The first type of message content from the N messages is displayed in the first area, and the second type of message content from the N messages is displayed in the second area. Thus, by displaying message content of different content categories in the messages on the first interface in separate areas, some interfering text content (such as chat emoticons) is filtered out, avoiding interference from this part of the message content and allowing the user to view continuous text, ensuring that the user can obtain the complete message content. Attached Figure Description
[0013] Figure 1 This is a flowchart of a message display method provided in an embodiment of this application;
[0014] Figure 2 This is one of the schematic diagrams of the interface to which the message display method provided in this application embodiment is applied;
[0015] Figure 3 This is a second schematic diagram of the interface used in a message display method provided in this application embodiment;
[0016] Figure 4 This is a third schematic diagram of the interface used in a message display method provided in this application embodiment;
[0017] Figure 5 This is a fourth schematic diagram of the interface used in a message display method provided in this application embodiment;
[0018] Figure 6 This is the fifth schematic diagram of the interface to which the message display method provided in this application embodiment is applied;
[0019] Figure 7 This is a sixth schematic diagram of the interface used in a message display method provided in this application embodiment;
[0020] Figure 8 This is a schematic diagram of the structure of a message display device provided in an embodiment of this application;
[0021] Figure 9 This is one of the hardware structure diagrams of an electronic device provided in the embodiments of this application;
[0022] Figure 10 This is a second schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0023] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0024] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0025] The following description, in conjunction with the accompanying drawings, details a message display method provided by the embodiments of this application through specific examples and application scenarios.
[0026] The technical solutions provided in this application can be applied to multi-person chat scenarios.
[0027] Because chat emoticons can increase the intimacy and fun of conversations, more and more users are using them in chat applications. Taking a user chatting with someone using a "Chat" app as an example, the user can send different emoticons to express their current mood and communicate with others. However, when a user sends too many emoticons, the chat screen becomes cluttered, preventing the user from seeing consecutive important messages (e.g., multiple consecutive text messages), and potentially causing them to miss important messages from the other user.
[0028] In this embodiment, when an electronic device displays the chat interface of a "Chat" app, if the chat emoticon filtering function is enabled, the chat interface can be divided into multiple message sections, such as a first area for displaying chat emoticons and a second area for displaying other message content besides chat emoticons. Thus, by separating the display of chat emoticons from other message content in the chat interface, chat emoticon filtering is achieved, avoiding interference from chat emoticons on the text message content, allowing users to view continuous text content, and ensuring that users can obtain complete message content.
[0029] This application provides a message display method that can be applied to electronic devices; in other words, the message display method can be executed by software or hardware installed in the electronic device. For example... Figure 1 As shown, the message display method provided in this application embodiment may include the following steps 201 and 202.
[0030] Step 201: Receive N messages.
[0031] Where N is a positive integer.
[0032] Step 202: Display the first type of message content from the above N messages in the first area, and display the second type of message content from the above N messages in the second area.
[0033] In this embodiment of the application, the aforementioned N messages may include message content of one or more message content categories (e.g., chat emoticons, text, video, audio, images, etc.). That is, each of the aforementioned N messages contains message content of at least one message content category.
[0034] Optionally, in this embodiment of the application, the first type of message content includes chat emoticons; the second type of message content includes other message content besides chat emoticons.
[0035] For example, the second type of message content mentioned above includes text, video, audio, images, etc. To illustrate, suppose the current interface displays three types of message content: chat emoticons, text, and images. The chat emoticons mentioned above belong to the first type of message content, while the text and images belong to the second type.
[0036] Optionally, in this embodiment of the application, the message display device may display a first type of message content in a first area using a first color, and display a second type of message content in a second area using a second color. The first color and the second color are different.
[0037] Optionally, in this embodiment of the application, taking a chat application as an example, in a multi-user chat scenario, in order to better distinguish users, the electronic device can assign different message display colors to different users for easy viewing. For example, in a group chat scenario involving users 1, 2, and 3, the electronic device can display user 1's avatar and / or messages sent by user 1 in color 1. Similarly, the electronic device can display user 2's avatar and / or messages sent by user 2 in color 2.
[0038] Optionally, in this embodiment, the message display device can swap the content displayed in the first area and the second area. For example, the second type of message content can be displayed in the first area, and the first type of message content can be displayed in the second area. Furthermore, the message display device can swap the content displayed in the first area and the second area according to the user's usage habits. For example, since the second area mainly displays more important text content, it is usually an area frequently operated by the user. In this case, the message display device can swap the content displayed in the first area and the second area according to the user's usage habits. For example, when the user operates the electronic device with their right hand, the second type of message content can be displayed on the right side of the screen; conversely, when the user operates the electronic device with their left hand, the second type of message content can be displayed on the left side of the screen.
[0039] Optionally, in this embodiment of the application, after the chat emoticon filtering function is enabled, the dynamic chat emoticons can be automatically displayed in a static form in the first area.
[0040] Optionally, in this embodiment, the message display device may display first-type message content on a first area with a first transparency, or overlay an overlay image on the first area (the overlay image is overlaid on the first area with a second transparency). Furthermore, the electronic device may also display specific messages within the second-type message content on a second area in a predetermined display manner (e.g., highlighting, emphasizing). For example, highlighting text content within a text message.
[0041] Optionally, in this embodiment of the application, the message display device may, upon receiving the first input, respond to the first input and then display the first type of message content among the aforementioned N messages in a first area and the second type of message content among the aforementioned N messages in a second area.
[0042] For example, the first input described above is used to enable the chat emoji filtering function. In one example, the first input may include: touch input (e.g., click input, drag input), voice input, or specific gesture input; this application embodiment does not limit this.
[0043] For example, the first input described above is used to trigger the electronic device to split the display area of the message display interface, and to split at least the first area and the second area.
[0044] Further optionally, in this embodiment of the application, the first input can be a shaking input from a user shaking the electronic device. Based on this, the message display device can, upon receiving the shaking input, split the display area of the current interface into a first area and a second area in response to the shaking input.
[0045] For example, when the electronic device displays the first interface, the user can shake the device left and right to trigger the chat emoji filtering function. At this time, the first interface will change; the electronic device will automatically divide the first interface into two parts: one side is the chat emoji area (i.e., the first area mentioned above), and the other side is the chat text content area (i.e., the second area mentioned above). Furthermore, the user can freely adjust the division ratio of the two areas.
[0046] For example, such as Figure 2 As shown, taking the first application as a "Chat" APP as an example, when the electronic device displays the chat interface of the "Chat" APP, if the electronic device receives a user shaking the electronic device, it will activate the chat emoticon filtering function, thereby splitting the chat interface. The right side of the split chat interface is the chat emoticon area 11 (i.e. the first area mentioned above), and the left side is the message display area 12 (i.e. the second area mentioned above).
[0047] Optionally, in this embodiment of the application, a dividing line is further included between the first region and the second region, which divides the display area of the display screen into the first region and the second region.
[0048] Further optionally, in this embodiment of the application, the dividing line may further include an adjustment control, which is located on the dividing line and is used to adjust the position of the dividing line on the display screen. The user can adjust the division ratio of the first region and the second region by adjusting the position of the adjustment control on the display screen.
[0049] For example, combined with Figure 2 ,like Figure 3 As shown in (a), the chat interface also includes a dividing line 13, and a slider button 14 (i.e., the aforementioned adjustment control) is provided on the dividing line 13. When the user adjusts the division ratio between the chat emoticon area 11 and the message display area 12, for example, if the user wants to increase the area of the chat emoticon area 11, the user can drag the slider button 14 to the right to enlarge the chat emoticon area 11 and correspondingly reduce the message display area 12 (e.g., ...). Figure 3 (as shown in (b)).
[0050] Optionally, in this embodiment, the region ratio (which can be the ratio of the area of the first region to the area of the second region, or the proportion of the first region in the first interface, or the proportion of the second region in the first interface) is set to a maximum ratio and a minimum ratio. When the region ratio is less than or equal to the minimum ratio, the electronic device exits the chat emoji filtering function and reverts to the original form of the first interface. When the region ratio is greater than or equal to the maximum ratio, the electronic device will fix the area of the first and second regions at the maximum ratio; that is, when the region ratio is greater than or equal to the maximum ratio, the electronic device cannot increase the region ratio.
[0051] Optionally, in this embodiment of the application, when a user browses chat history, the electronic device automatically identifies the message type of the historical chat messages, and then displays each refreshed historical chat message in the display area corresponding to the message type of that historical chat message. For example, when the historical chat message contains first type of message content, then the first type of message content is automatically displayed in the first area.
[0052] The message display method provided in this application, when displaying a first interface, receives N messages, where N is a positive integer; displays a first type of message content from the N messages in a first area, and displays a second type of message content from the N messages in a second area. In this way, by displaying message content of different message content categories in the messages on the first interface in separate areas, message content that interferes with the text content of some messages (such as chat emoticons) is filtered out, avoiding interference from this part of the message content, allowing the user to view continuous text, and ensuring that the user can obtain the complete message content.
[0053] Optionally, in this embodiment of the application, the above-mentioned N messages include a first message, which includes first message content and second message content; wherein, the above-mentioned first message content belongs to a first type of message content, and the above-mentioned second message content belongs to a second type of message content.
[0054] Based on this, the process of displaying the content of the first type of message among the N messages in the first area in step 202 above may include the following step 202b1:
[0055] Step 202b1: Display the first message content in the first sub-area of the first area of the first interface.
[0056] Furthermore, in conjunction with step 202b1 above, the process of displaying the content of the second type of message among the N messages in the second area in step 202 above may include the following step 202b2:
[0057] Step 202b2: Display the second message content in the second sub-area of the second area of the first interface.
[0058] The first interface is divided into multiple display areas, each corresponding to a message transmission time; the display area corresponding to the message transmission time of the first message is composed of a first sub-area and a second sub-area.
[0059] For example, in the second area, because the message display device filters the first type of message content, it allows for the display of coherent message content. Specifically, the second type of message content displayed in the second area is shown sequentially according to the message transmission time of the corresponding messages, thus maintaining the continuous display of the contextual message content and ensuring the coherence and consistency of the text message reading. In the first area, since the first type of message content typically does not contain important chat content and does not need to maintain continuity, the first type of message content displayed in the first area does not necessarily need to maintain content continuity. The message display device can display the first type of message content according to its message transmission time and the display position of the second type of message content adjacent to it.
[0060] For example, combined with Figure 2 ,like Figure 4 As shown, the chat emoticon area 11 in the chat interface of the "Chat" app displays two chat emoticons (such as...). Figure 4 (31 and 32 in the middle), message display area 12 displays 4 text message contents (such as 31 and 32 in the middle), Figure 4 The message content 1 to message content 4 are shown in the image. Since the transmission time of the chat emoticon 31 is between the transmission time of message content 1 and message content 2, the electronic device can display the chat emoticon 31 on the left side (i.e., area 11) between message content 1 and message content 2, thereby indicating to the user the specific sending time of the chat emoticon 31.
[0061] In this way, by displaying the chat emoticons in the first area on the area corresponding to their sending time, the continuity of the content displayed in the two display areas is ensured, allowing users to know the position of the chat emoticons in the chat message.
[0062] Optionally, in this embodiment of the application, when the first type of message content includes third message content, the process of displaying the first type of message content among the N messages in the first area in step 202 may include the following step 202c:
[0063] Step 202c: Display the third message content and the first identifier in the first area.
[0064] The first identifier is used to indicate the relative position of the third message content to the message content displayed in the second area when the third message content is displayed in the order of message transmission time.
[0065] For example, the first identifier mentioned above can be a label, line, image, text, or other identifier.
[0066] For example, combined with Figure 4 ,like Figure 5 As shown, the chat interface of the "Chat" app can also display a corresponding location marker (i.e., the first marker mentioned above) for each chat emoticon, such as... Figure 5 The position identifier 33a is used to indicate the relative position of chat emoticon 31 with respect to message content 1 and message content 2, and the position identifier 33b is used to indicate the relative position of chat emoticon 32 with respect to message content 3 and message content 3.
[0067] Thus, by adding a first identifier, users can accurately determine the relative position of the chat emoticons displayed in the first area within the chat message.
[0068] Optionally, in this embodiment of the application, the first type of message content includes multiple fourth message contents, as well as adjacent fifth and sixth message contents; wherein the message transmission time corresponding to the multiple fourth message contents is located between the message transmission time of the fifth message content and the message transmission time of the sixth message content.
[0069] For example, based on this, the process of displaying the content of the first type of message among the above N messages in the first area in step 202 above may include the following step 202d:
[0070] Step 202d: Display the content of the first target message in the first area and hide the content of the second target message; display the first target message in the first area and hide the second target message.
[0071] The first target message content includes: the fourth, fifth, and sixth message contents among the plurality of fourth message contents whose message transmission time meets a predetermined threshold. The second target message content includes: the other fourth message contents among the plurality of fourth message contents besides the first target message content.
[0072] For example, the above-mentioned predetermined conditions include any one of the following: the N chat emoticons sent earliest, the N chat emoticons sent latest, and the chat emoticons sent most frequently.
[0073] For example, when there are too many chat emoticons between consecutive messages displayed in the second area, or when a user sends many chat emoticons at the same time, the electronic device can collapse some of the chat emoticons, thereby hiding some of them. The user can then choose to display these hidden chat emoticons. If there are too many hidden chat emoticons for the first area to display, the user can swipe up or down the screen to reveal more hidden chat emoticons.
[0074] In this way, by folding and hiding multiple chat emoticons sent at similar times, the display space in the first area is saved, resulting in a better display effect and a simpler interface.
[0075] Optionally, in this embodiment of the application, before step 201 above, the message display method provided in this embodiment of the application may further include the following steps:
[0076] Step 201a: Display a first interface, which includes a first area, a second area, and a first input area.
[0077] Furthermore, in conjunction with step 201a above, after step 202 above, the solution provided by the embodiments of this application may further include the following steps 202e1 and 202e2:
[0078] Step 202e1: Receive the user's second input in the first input area mentioned above.
[0079] Step 202e2: In response to the second input described above, a third message is generated, which includes at least one sixth message content entered by the user in the first input area.
[0080] Step 202e3: Display each sixth message content in its corresponding target area according to its message content category.
[0081] The target area corresponding to a sixth message content is the area in the first and second regions that corresponds to the message content category of the aforementioned sixth message content.
[0082] For example, the second input mentioned above includes: input from the user entering message content in the first input area, and input from touching the "message sending control".
[0083] For example, after receiving the first input, the electronic device divides the current interface into three parts: a first area, a second area, and a first input area. The first and second areas are used to display messages, while the first input area is used to input message content. Thus, when the electronic device receives the second input, it can display the generated message in the corresponding display area based on the message category. For example, if the user inputs a chat emoticon in the first input area, that emoticon will be displayed in the first area.
[0084] For example, the electronic device can split the first input area to divide each display area into corresponding input areas. In one example, the electronic device can divide the first input area into a first sub-input area and a second sub-input area according to the dividing line between the first and second areas, wherein the first sub-input area is the input area of the first area and the second sub-input area is the input area of the second area.
[0085] For example, combined with Figure 3 As shown, Figure 6 As shown in (a), when the user clicks the slider button 14 on the dividing line 13 between the chat emoticon area 11 and the chat text area 12, the electronic device will automatically pop up a prompt window to ask the user whether to enable the keyboard separation function. Figure 6 As shown in (b), if the user enables the keyboard separation function, the text input box below can be divided. After the division, the chat emoticon area 11 and the chat text area 12 are each equipped with an input box (i.e., Figure 6 The emoji input box shown in 34a and the text input box shown in 34b).
[0086] Subsequently, users can click the slider button 14 again to turn off the keyboard separation function, thereby restoring the text input boxes 34a and 34b to their original text input box styles.
[0087] Thus, when the first interface includes a first input area, by analyzing the message type of the message entered by the user in the first input area, the message entered by the user can be displayed in the corresponding display area, so that the user can view continuous text messages.
[0088] Optionally, in this embodiment of the application, the first region includes a first sub-input region, and the second region includes a second sub-input region.
[0089] For example, after step 202 above, the solution provided in this application embodiment may further include the following steps 202f1 and 202f2:
[0090] Step 202f1: Receive the user's third input in the target input area.
[0091] Step 202f1: In response to the third input, generate a fourth message and display the fourth message in the target area.
[0092] Wherein, the aforementioned target input area is the first sub-input area, and the aforementioned target area is the first region; or, the aforementioned target input area is the second sub-input area, and the aforementioned target area is the second region. It can be understood that the first sub-input area corresponds to the first region; and the second sub-input area corresponds to the second region.
[0093] For example, since the second area primarily displays text messages, when the second sub-input area is in edit mode, a predetermined input keyboard mode (e.g., handwriting input keyboard, 26-key Pinyin virtual keyboard, 9-key Pinyin virtual keyboard) can be displayed in the second sub-input area to allow the user to input text. When the first sub-input area is in edit mode, it will display various commonly used chat emoticons for the user to choose from. Specifically... Figure 7 As shown.
[0094] Further optionally, in conjunction with the above steps 202f1 and 202f2, before step 201, the message display method provided in this application embodiment may further include the following steps:
[0095] Step 201b: Display the first interface.
[0096] The first interface includes a first region, a second region, and a first input region; the first input region includes a first sub-input region and a second sub-input region.
[0097] For example, the first sub-input area is aligned with the content display area of the first region, that is, at least one boundary of the first sub-input area is aligned with at least one boundary of the content display area of the first region. Figure 6 The left and right sides of the emoji input box 34a shown in (b) are aligned with the left and right ends of the chat emoji area 11. Similarly, the second sub-input area is aligned with the content display area of the second area, for example, Figure 6 The left and right sides of the text input box 34a shown in (b) are aligned with the left and right sides of the chat text area 12.
[0098] In this way, by setting input areas for the first and second regions respectively, users can send different types of messages in different input areas as needed, thus improving human-computer interaction performance.
[0099] It should be noted that the message display method provided in this application embodiment can be executed by a message display device or a control module within the message display device for executing the message display method. This application embodiment uses the execution of the message display method by a message display device as an example to illustrate the message display device provided in this application embodiment.
[0100] This application provides a message display device, such as... Figure 8 As shown, the message display device 400 includes: a receiving module 401 and a display module 402, wherein:
[0101] The receiving module 401 is used to receive N messages, where N is a positive integer; the display module 402 is used to display the content of the first type of message among the above N messages in a first area and the content of the second type of message among the above N messages in a second area.
[0102] Optionally, the first type of message content mentioned above includes chat emoticons; the second type of message content mentioned above includes other message content besides chat emoticons.
[0103] Optionally, the aforementioned N messages include a first message; the aforementioned first message includes first message content and second message content; the aforementioned first message content belongs to the aforementioned first type of message content, and the aforementioned second message content belongs to the aforementioned second type of message content; the aforementioned display module 402 is specifically used to: display the aforementioned first message content in a first sub-region of a first region of a first interface; and display the aforementioned second message content in a second sub-region of a second region of a first interface; wherein, the aforementioned first interface is divided into multiple display regions, each display region corresponding to a message transmission time; the display region corresponding to the message transmission time of the aforementioned first message is composed of the aforementioned first sub-region and the aforementioned second sub-region.
[0104] Optionally, the first type of message content includes the third message content; the display module 402 is specifically used to: display the third message content and the first identifier on the first area; wherein the first identifier is used to indicate the relative position of the third message content relative to the message content displayed in the second area when the third message content is displayed in the order of message transmission time.
[0105] Optionally, the first type of message content includes multiple fourth message contents, as well as adjacent fifth and sixth message contents; the message transmission time corresponding to the multiple fourth message contents is between the message transmission time of the fifth message content and the message transmission time of the sixth message content; the display module 402 is specifically used to: display the first target message content in the first display area and hide the second target message content; wherein, the first target message content includes: the fourth message content whose message transmission time meets a predetermined threshold, the fifth message content, and the sixth message content among the multiple fourth message contents; the second target message content includes: other fourth message contents among the multiple fourth message contents besides the first target message content.
[0106] Optionally, such as Figure 8 As shown, the device 400 further includes a processing module 403, wherein the display module 402 is further configured to: display a first interface; the first interface includes the first area, the second area, and a first input area; the receiving module 401 is configured to receive a first input from a user in the first input area; the processing module 403 is configured to generate a third message in response to the first input received by the receiving module 401; the third message includes at least one sixth message content input by the user in the first input area; the display module 402 is further configured to display each sixth message content in a corresponding target area according to the message content category of each sixth message content; wherein the target area corresponding to a sixth message content is the area in the first area and the second area that corresponds to the message content category of the sixth message content.
[0107] Optionally, the first region includes a first sub-input region, and the second region includes a second sub-input region; the receiving module 401 is configured to receive a second input from the user in the target input region; the processing module 403 is configured to generate a fourth message in response to the second input received by the receiving module 401, and display the fourth message in the target region; wherein the target input region is the first sub-input region, and the target region is the first region; or, the target input region is the second sub-input region, and the target region is the second region.
[0108] Optionally, the display module 402 is further configured to: display a first interface; wherein the first interface includes the first region, the second region, and a first input region; the first input region includes the first sub-input region and the second sub-input region; the first sub-input region is aligned with the content display region of the first region, and the second sub-input region is aligned with the content display region of the second region.
[0109] It should be noted that, as Figure 8 As shown, modules that are necessarily included in the message display device 400 are indicated by solid lines, such as the receiving module 401 and the display module 402; modules that may or may not be included in the message display device 400 are indicated by dashed lines, such as the processing module 403.
[0110] The message display device provided in this application embodiment, when displaying a first interface, receives N messages, where N is a positive integer; displays a first type of message content from the N messages in a first area, and displays a second type of message content from the N messages in a second area. In this way, by displaying message content of different message content categories in the messages on the first interface in separate areas, message content that interferes with the text content of some messages (such as chat emoticons) is filtered out, avoiding interference from this part of the message content, allowing the user to view continuous text, and ensuring that the user can obtain the complete message content.
[0111] The message display device in this application embodiment can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, mobile electronic devices can be mobile phones, tablets, laptops, PDAs, in-vehicle electronic devices, wearable devices, ultra-mobile personal computers (UMPCs), netbooks, or personal digital assistants (PDAs), etc., while non-mobile electronic devices can be servers, network-attached storage (NAS), personal computers (PCs), televisions (TVs), ATMs, or self-service machines, etc. This application embodiment does not impose specific limitations.
[0112] The message display device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.
[0113] The message display device provided in this application embodiment can achieve... Figures 1 to 8 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0114] Optionally, such as Figure 9As shown, this application embodiment also provides an electronic device 500, including a processor 501, a memory 502, and a program or instructions stored in the memory 502 and executable on the processor 501. When the program or instructions are executed by the processor 501, they implement the various processes of the above message display method embodiment and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0115] It should be noted that the electronic devices in the embodiments of this application include the aforementioned mobile electronic devices and non-mobile electronic devices.
[0116] Figure 10 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0117] The electronic device 100 includes, but is not limited to, components such as: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
[0118] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 10 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0119] The radio frequency unit 101 is used to receive N messages, where N is a positive integer; the display unit 106 is used to display the content of the first type of message among the N messages in a first area and the content of the second type of message among the N messages in a second area.
[0120] The electronic device provided in this application embodiment, when displaying a first interface, receives N messages, where N is a positive integer; displays a first type of message content from the N messages in a first area, and displays a second type of message content from the N messages in a second area. In this way, by displaying message content of different message content categories in the messages on the first interface in separate areas, message content that interferes with the text content of some messages (such as chat emoticons) is filtered out, avoiding interference from this part of the message content, allowing the user to view continuous text, and ensuring that the user can obtain the complete message content.
[0121] Optionally, the first type of message content mentioned above includes chat emoticons; the second type of message content mentioned above includes other message content besides chat emoticons.
[0122] Optionally, the aforementioned N messages include a first message; the first message includes first message content and second message content; the first message content belongs to the first type of message content, and the second message content belongs to the second type of message content; the display unit 106 is specifically used to: display the first message content in a first sub-region of a first region of a first interface; and display the second message content in a second sub-region of a second region of a first interface; wherein, the first interface is divided into multiple display regions, each display region corresponding to a message transmission time; the display region corresponding to the message transmission time of the first message is composed of the first sub-region and the second sub-region.
[0123] Optionally, the first type of message content includes the third message content; the display unit 106 is specifically used to: display the third message content and the first identifier on the first area; wherein the first identifier is used to indicate the relative position of the third message content relative to the message content displayed in the second area when the third message content is displayed in the order of message transmission time.
[0124] Optionally, the first type of message content includes multiple fourth message contents, as well as adjacent fifth and sixth message contents; the message transmission time corresponding to the multiple fourth message contents is between the message transmission time of the fifth message content and the message transmission time of the sixth message content; the display unit 106 is specifically used to: display the first target message content in the first display area and hide the second target message content; wherein, the first target message content includes: the fourth message content whose message transmission time meets a predetermined threshold, the fifth message content, and the sixth message content among the multiple fourth message contents; the second target message content includes: other fourth message contents among the multiple fourth message contents besides the first target message content.
[0125] Optionally, the display unit 106 is further configured to: display a first interface; the first interface includes the first area, the second area, and the first input area; the user input unit 107 is configured to receive a first input from a user in the first input area; the processor 110 is configured to generate a third message in response to the first input received by the user input unit 107; the third message includes at least one sixth message content input by the user in the first input area; the display unit 106 is further configured to display each sixth message content in a corresponding target area according to the message content category of each sixth message content; wherein, the target area corresponding to a sixth message content is: the area in the first area and the second area that corresponds to the message content category of the sixth message content.
[0126] Optionally, the first region includes a first sub-input region, and the second region includes a second sub-input region; the user input unit 107 is configured to receive a second input from the user in the target input region; the processor 110 is configured to generate a fourth message in response to the second input received by the user input unit 107, and display the fourth message in the target region; wherein the target input region is the first sub-input region, and the target region is the first region; or, the target input region is the second sub-input region, and the target region is the second region.
[0127] Optionally, the display unit 106 is further configured to: display a first interface; wherein the first interface includes the first region, the second region, and a first input region; the first input region includes the first sub-input region and the second sub-input region; the first sub-input region is aligned with the content display region of the first region, and the second sub-input region is aligned with the content display region of the second region.
[0128] It should be understood that, in this embodiment, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, joysticks, etc., which will not be described in detail here. The memory 109 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understandable that the aforementioned modem processor may not be integrated into the processor 110.
[0129] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described message display method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0130] The processor mentioned above is the processor in the electronic device described in the above embodiments. The readable storage medium mentioned above includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0131] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above message display method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0132] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0133] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0134] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0135] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A message display method, characterized in that, The method includes: Receive N messages, where N is a positive integer; The first type of message content from the N messages is displayed in the first area, and the second type of message content from the N messages is displayed in the second area. The first type of message content and the second type of message content have different message content categories; the first type of message content includes chat emoticons; the second type of message content includes other message content besides the chat emoticons. The N messages include a first message; the first message includes first message content and second message content; the first message content belongs to the first type of message content, and the second message content belongs to the second type of message content; The step of displaying the content of the first type of message among the N messages in the first area includes: The first message content is displayed in the first sub-region of the first area of the first interface; The display of the second type of message content among the N messages in the second area includes: The second message content is displayed in the second sub-region of the second region of the first interface; The first interface is divided into multiple display areas, each of which corresponds to a message transmission time; the display area corresponding to the message transmission time of the first message is composed of the first sub-area and the second sub-area.
2. The method according to claim 1, characterized in that, The first type of message content includes the third type of message content; The step of displaying the content of the first type of message among the N messages in the first area includes: The third message content and the first identifier are displayed in the first area; The first identifier is used to indicate the relative position of the third message content relative to the message content displayed in the second area when the third message content is displayed in the order of message transmission time.
3. The method according to claim 1, characterized in that, The first type of message content includes multiple fourth message contents, as well as adjacent fifth and sixth message contents; the message transmission time corresponding to the multiple fourth message contents is between the message transmission time of the fifth message content and the message transmission time of the sixth message content; The step of displaying the content of the first type of message among the N messages in the first area includes: Display the content of the first target message in the first display area, and hide the content of the second target message; The first target message content includes: the fourth message content whose message transmission time meets a predetermined threshold among the plurality of fourth message contents, the fifth message content, and the sixth message content; The second target message content includes: other fourth message content besides the first target message content among the plurality of fourth message contents.
4. The method according to claim 1, characterized in that, After receiving N messages, the method further includes: The first interface is displayed; the first interface includes the first area, the second area, and the first input area; After displaying the first type of message content from the N messages in the first area and the second type of message content from the N messages in the second area, the method further includes: Receive the user's first input in the first input area; In response to the first input, a third message is generated; the third message includes at least one sixth message content entered by the user in the first input area; According to the message content category of each sixth message, display each sixth message content in the corresponding target area; The target area corresponding to a sixth message content is the area in the first area and the second area that corresponds to the message content category of the sixth message content.
5. The method according to claim 1, characterized in that, The first region includes a first sub-input region, and the second region includes a second sub-input region; After displaying the first type of message content from the N messages in the first area and the second type of message content from the N messages in the second area, the method further includes: Receive the user's second input in the target input area; In response to the second input, a fourth message is generated and displayed in the target area; Wherein, the target input region is the first sub-input region and the target region is the first region; or, the target input region is the second sub-input region and the target region is the second region.
6. The method according to claim 5, characterized in that, After receiving N messages, the method further includes: Display the first interface; The first interface includes a first area, a second area, and a first input area; the first input area includes a first sub-input area and a second sub-input area. The first sub-input area is aligned with the content display area of the first area, and the second sub-input area is aligned with the content display area of the second area.
7. A message display device, characterized in that, The device includes: The receiving module is used to receive N messages, where N is a positive integer; The display module is used to display the content of the first type of message among the N messages in a first area and the content of the second type of message among the N messages in a second area; The first type of message content and the second type of message content have different message content categories; the first type of message content includes chat emoticons; the second type of message content includes other message content besides the chat emoticons. The N messages include a first message; the first message includes first message content and second message content; the first message content belongs to the first type of message content, and the second message content belongs to the second type of message content; The display module is specifically used for: The first message content is displayed in the first sub-region of the first area of the first interface; The second message content is displayed in the second sub-region of the second region of the first interface; The first interface is divided into multiple display areas, each of which corresponds to a message transmission time; the display area corresponding to the message transmission time of the first message is composed of the first sub-area and the second sub-area.
8. An electronic device, characterized in that, It includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the message display method as described in any one of claims 1-6.
9. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the message display method as described in any one of claims 1-6.
Citation Information
Patent Citations
Group chat message display method and device, electronic equipment and storage medium
CN111651110A