CN112217713B - Method and device for displaying message - Google Patents

Method and device for displaying message Download PDF

Info

Publication number
CN112217713B
CN112217713B CN202011092081.4A CN202011092081A CN112217713B CN 112217713 B CN112217713 B CN 112217713B CN 202011092081 A CN202011092081 A CN 202011092081A CN 112217713 B CN112217713 B CN 112217713B
Authority
CN
China
Prior art keywords
area
messages
type
message
displaying
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
CN202011092081.4A
Other languages
Chinese (zh)
Other versions
CN112217713A (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 CN202011092081.4A priority Critical patent/CN112217713B/en
Publication of CN112217713A publication Critical patent/CN112217713A/en
Application granted granted Critical
Publication of CN112217713B publication Critical patent/CN112217713B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • H04N21/4316Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Computing Systems (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a device for displaying messages, wherein the method comprises the following steps: receiving a plurality of messages of a first type and a plurality of messages of a second type; and displaying the second type messages in a bullet screen mode under the condition that the number of the second type messages is equal to or larger than a preset number threshold value. The invention can solve the problem of insufficient convenience for viewing the message.

Description

Method and device for displaying message
Technical Field
The invention belongs to the technical field of electronics, and particularly relates to a method and a device for displaying messages.
Background
With the development of communication technology and the popularization of electronic devices such as mobile phones, internet chat plays an important role in the life of modern people. A user installs various communication software such as QQ and WeChat in the mobile phone, so that the mobile phone receives a large amount of messages every day. At present, the chat records of group chat are displayed according to the time sequence, and the user can view the chat records by sliding the screen up and down.
However, different users may post multiple stories on the same topic over a period of time, and the same user may post multiple stories on the same topic. In this case, when the user opens the group chat interface, the user can see a large amount of content, and it takes a lot of time to slide the screen up and down to view the chat records, which results in that the message viewing is not convenient enough, and it is difficult to find the key message quickly.
Disclosure of Invention
The embodiment of the invention provides a method and a device for displaying a message, which aim to solve the problem that the message is not convenient to view.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, a method for displaying a message is provided, where the method is applied to an electronic device, and the method includes:
receiving a plurality of messages of a first type and a plurality of messages of a second type;
and displaying the second type messages in a bullet screen mode under the condition that the number of the second type messages is equal to or larger than a preset number threshold value.
In a second aspect, an apparatus for displaying a message is provided, which is applied to an electronic device, and includes:
the first receiving module is used for receiving a plurality of first type messages and a plurality of second type messages;
and the first display module is used for displaying the second type messages in a bullet screen mode under the condition that the number of the second type messages is equal to or greater than a preset number threshold.
In a third aspect, an electronic device is provided, which comprises a processor, a memory and a program stored on the memory and being executable on the processor, which program, when executed by the processor, performs the steps of the method according to the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, realizes the steps of the method according to the first aspect.
In the embodiment of the invention, a plurality of first type messages and a plurality of second type messages are received, and the plurality of second type messages are displayed in the form of bullet screens under the condition that the number of the plurality of second type messages is equal to or greater than the preset number threshold value, so that the display mode of the messages is optimized, a user can quickly find key messages, the convenience degree of the user for checking the messages is improved, and the user experience is improved.
Drawings
FIG. 1 is a flow chart of a method of displaying messages in an embodiment of the invention;
FIG. 2 is a first diagram of a first type of message and a second type of message according to an embodiment of the present invention;
FIG. 3 is a second schematic diagram of a first type of message and a second type of message of an embodiment of the present invention;
FIG. 4 is a flow diagram of another method of displaying messages in an embodiment of the invention;
FIG. 5 is a schematic diagram of a group chat scenario in accordance with an embodiment of the invention;
FIG. 6 is a schematic diagram of a message displayed in the form of a bullet screen in accordance with an embodiment of the present invention;
FIG. 7 is a schematic view of the retraction of the bullet screen panel in accordance with an embodiment of the present invention;
FIG. 8 is a schematic diagram of a first operation of an embodiment of the present invention;
FIG. 9 is a schematic diagram of a second operation of an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an apparatus for displaying a message in an embodiment of the present invention;
fig. 11 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art without making any inventive step, are within the scope of protection of the present invention.
The method and the apparatus for displaying a message according to the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
As shown in fig. 1, which is a flowchart of a method for displaying a message in an embodiment of the present invention, applied to an electronic device, the method includes:
step 101, receiving a plurality of first type messages and a plurality of second type messages;
in an embodiment of the present invention, the plurality of first type messages and the plurality of second type messages may be messages originating from chat applications such as WeChat, QQ, etc. in other electronic devices. After the user opens the window of the chat application, the first type message and the second type message may include a dialog message displayed on the current chat interface, or may include a dialog message that the user slides up and down the screen to view. Wherein each second type message contains the same keywords or contains the keywords with the same semantics.
For example, after the leader sends a bulletin in, other users will send messages similar to "received" and also send other content, as shown in fig. 2, both the messages of xialiu and xiaozhou contain the keyword "received", so that the two messages belong to the second type of message, while the message of xiawu does not contain the keyword and belongs to the first type of message. Because the number of messages displayed on the chat interface is limited, the user can view the previous dialog by sliding the screen, as shown in fig. 3, the messages sent by the member of the three groups of xiaoming, xiaoman and xiaowu before xiaolu also contain the keyword of "received", so that the three messages also belong to the second type of message, and the message sent by the urheen belongs to the first type of message.
And 102, displaying the second type messages in a bullet screen mode under the condition that the number of the second type messages is equal to or larger than a preset number threshold.
Specifically, after receiving a plurality of first type messages and a plurality of second type messages, under the condition that the number of the second type messages is smaller than a preset number threshold, displaying the plurality of first type messages and the plurality of second type messages in a first mode in a first area; and under the condition that the number of the second type messages is equal to or larger than a preset number threshold, displaying the first type messages in a first mode in a first area, and displaying the second type messages in a bullet screen mode in a second area. The first area can be a display area corresponding to the whole chat interface or a sub-area in the chat interface; the second region may be a sub-region within the first region or may be a region outside the first region.
The first mode is different from the barrage mode, and may be a conventional display mode in the prior art, that is, a mode of displaying in the display area corresponding to the entire chat interface according to the speaking time sequence of the user, or a mode of displaying in the display area corresponding to the entire chat interface according to the speaking time sequence of the chat user. The display in the form of the barrage can be displayed in a certain sub-area in the chat interface in a centralized mode or can be displayed in a suspended mode in the chat interface.
Further, after a plurality of second type messages are displayed in the second area in the form of a bullet screen, a first operation of the user on the first target message can be received; the first target message is a message displayed in the first area, the starting point of the first operation is the first area, and the end point of the first operation is the second area; and responding to the first operation, and displaying the first target message in the form of a bullet screen in the second area. After a plurality of second type messages are displayed in the second area in the bullet screen mode, second operation of a user on a second target message can be received; the second target message is a message displayed in the second area, the starting point of the second operation is the second area, and the end point of the second operation is the first area; in response to the second operation, the second targeted message is displayed in the first mode in the first area. The first operation and the second operation may be sliding operations or clicking operations.
In the embodiment of the invention, a plurality of first type messages and a plurality of second type messages are received, and the plurality of second type messages are displayed in the bullet screen mode under the condition that the number of the plurality of second type messages is equal to or greater than the preset number threshold value, so that the information display mode is optimized, a user can quickly find key messages which are interested by the user, the convenience degree of the user for viewing chat records is improved, and the user experience is improved.
As shown in fig. 4, which is a flowchart of another method for displaying a message in an embodiment of the present invention, applied to an electronic device, the method includes:
step 201, receiving a plurality of first type messages and a plurality of second type messages;
in the embodiment of the present invention, the plurality of first type messages and the plurality of second type messages may be text messages or emoticons. Wherein each second type message contains the same keyword; alternatively, the keyword semantics in each second type message are the same.
For example, after the user a sends a red packet in the group, other users may send text messages such as "thank you", or emoticons including similar words such as "thank you", and a message expressing the meaning of thank you appears in a large amount in a short time, and these messages with similar meanings are messages of the second type, and some messages expressing other meanings are messages of the first type. As shown in fig. 5, the messages sent by the user B, the user C, the user E, the user G and the user H are the second type messages, and the messages sent by the user D and the user F are the first type messages.
Step 202, judging whether the number of the second type messages is equal to or larger than a preset number threshold, if so, executing step 204; otherwise, go to step 203;
step 203, displaying the plurality of first type messages and the plurality of second type messages in a first mode in a first area;
specifically, within a preset time threshold, if the number of the second type messages is smaller than a preset number threshold, a plurality of first type messages and a plurality of second type messages are displayed in the first area according to the first mode. The preset time threshold and the preset number threshold can be set by a system or can be customized by a user.
Taking the group chat shown in fig. 5 as an example, the first area is a display area corresponding to the whole chat interface, and the first mode is a mode of displaying in time order. The preset time threshold is 30 seconds, and the preset number threshold is 6. Within 30 seconds after the user A finishes sending the red packet, the number of the messages expressing the meaning of thank you in the group is only 5, the number of the second type messages is smaller than a preset number threshold value, all chat messages in the group are normally displayed according to a time sequence at the moment, and the latest received message is displayed at the lowest part of a chat interface.
Step 204, displaying the plurality of first type messages in the first area according to the first mode, and displaying the plurality of second type messages in a bullet screen mode in a second area;
specifically, within a preset time threshold, if the number of the second type messages is equal to or greater than a preset number threshold, it is determined that the current scene is a scene triggering message barrage, and a plurality of second type messages are displayed in a second area in a barrage mode. Wherein the second region is a sub-region of the first region.
Taking the group chat shown in fig. 5 as an example, the preset time threshold is 30 seconds, the preset number threshold is 5, and the first area is a chat interface. And within 30 seconds after the user A sends the red packet, the number of the messages expressing the meaning of 'thank you' in the group is 5, and the number of the second type messages is equal to a preset number threshold value, so that the current scene is determined to be a scene triggering the popping of the messages. As shown in fig. 6, the second area is a barrage board in the chat interface, where the messages sent by the user B, the user C, the user E, the user G, and the user H are displayed in the form of barrages, and the barrages are scrolled in the barrage board according to the occurrence time sequence. As shown in fig. 7, when there are many messages displayed in the form of a bullet screen, the bullet screen plate may be folded based on user operation, and only the number of bullet screens is prompted; if the user wants to view the bullet screen message content, the bullet screen plate can be unfolded based on the user operation, and the display mode is restored as shown in fig. 6.
Step 205, after the plurality of second type messages are displayed in the second area in the form of a bullet screen, a first operation on a first target message can be received; responding to the first operation, and displaying the first target message in a bullet screen form in the second area;
the first target message is a message displayed in a first area, the starting point of the first operation is the first area, and the end point of the first operation is a second area; the first operation may be a slide operation or a click operation.
Taking the bullet screen display mode of fig. 6 as an example, a sliding operation by the user is received, and the message of the user D in the first area is dragged to the bullet screen plate, as shown in fig. 8, and in response to the sliding operation, the message of the user D is displayed in the bullet screen on the bullet screen plate.
Step 206, after the plurality of second type messages are displayed in the second area in the form of bullet screens, a second operation on a second target message can be received; in response to the second operation, displaying the second targeted message in the first mode in the first field.
The second target message is a message displayed in the second area, the starting point of the second operation is the second area, and the end point of the second operation is the first area; the second operation may be a slide operation or a click operation.
Taking the bullet screen display mode of fig. 6 as an example, the click operation of the user is received, the second target message displayed in the second area is clicked first, and then any place of the first area except the second area is clicked. As shown in fig. 9, a message of the user C in the popup panel is clicked, and then anywhere in the chat interface except the popup panel is clicked, and in response to the click, the message of the user C is displayed in the first mode in the first area.
In the embodiment of the invention, when the messages with similar contents in the group chat records reach a certain number, the messages with similar contents are intensively displayed in a small area of the chat interface in a bullet screen mode, and the bullet screen plate can be contracted or expanded according to the requirements of the user, so that the display mode of the chat information is optimized, the user can quickly find key messages interested by the user, the convenience degree of viewing the chat records by the user is improved, and the user experience is improved.
It should be noted that, in the method for displaying a message provided in the embodiment of the present invention, the execution main body may be an electronic device, or may also be a device for displaying a message, or a central processing unit of the device for displaying a message, or a control module in the device for displaying a message, which is used for executing the method for loading a display message. In the embodiment of the present invention, a method for loading and displaying a message, which is performed by a device for displaying a message, is taken as an example, and the method for displaying a message provided in the embodiment of the present invention is described.
The scope of embodiments of the invention is not limited to performing functions in the order shown or discussed, but may include performing functions in a substantially simultaneous manner or in a reverse order, depending on the functionality involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Based on the method for displaying the message, the embodiment of the invention also provides a device for displaying the message. As shown in fig. 10, which is a schematic structural diagram of an apparatus for displaying a message in an embodiment of the present invention, applied to an electronic device, the apparatus includes:
the first receiving module 301: for receiving a plurality of messages of a first type and a plurality of messages of a second type;
the first display module 302: and the display unit is used for displaying the second type messages in a bullet screen mode under the condition that the number of the second type messages is equal to or larger than a preset number threshold value.
Each second type message contains the same keyword; or the keyword semantics in each second type message are the same.
In this embodiment of the present invention, the first display module 302 is specifically configured to: under the condition that the number of the second type messages is smaller than a preset number threshold, displaying a plurality of first type messages and a plurality of second type messages in a first mode in a first area; and under the condition that the number of the second type messages is equal to or larger than a preset number threshold, displaying the first type messages in a first mode in the first area, and displaying the second type messages in a bullet screen mode in the second area.
Further, the apparatus further comprises:
a second receiving module 303, configured to receive a first operation on a first target message, where the first target message is a message displayed in a first area, a starting point of the first operation is the first area, and an end point of the first operation is a second area;
a second display module 304, configured to display the first target message in the form of a bullet screen in the second area in response to the first operation;
a third receiving module 305, configured to receive a second operation on a second target message, where the second target message is a message displayed in a second area, a start point of the second operation is the second area, and an end point of the second operation is the first area;
a third display module 306, configured to display the second target message in the first mode in the first area in response to the second operation.
The device for displaying the message in the embodiment of the invention can be mobile electronic equipment or non-mobile electronic equipment. For example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiment of the present invention is not particularly limited.
The device for displaying the message in the embodiment of the present invention may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The device for displaying a message according to the embodiment of the present invention can implement each process implemented by the device for displaying a message according to the method embodiments of fig. 1 to 11, and is not described herein again to avoid repetition.
In the embodiment of the invention, a plurality of first type messages and a plurality of second type messages are received, and the plurality of second type messages are displayed in the bullet screen mode under the condition that the number of the plurality of second type messages is equal to or greater than the preset number threshold value, so that the information display mode is optimized, a user can quickly find key messages which are interested by the user, the convenience degree of the user for viewing chat records is improved, and the user experience is improved.
The embodiment of the present invention further provides an electronic device, which includes a processor 1010 and a memory 1009, and a program stored in the memory 1009 and capable of running on the processor 1010, where the program is executed by the processor 1010 to implement 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 described here again.
Fig. 11 is a schematic diagram of a hardware structure of an electronic device for implementing an embodiment of the present invention.
The electronic device 100 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device configuration shown in fig. 11 does not constitute a limitation of electronic devices, which may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The network module 1002 is configured to receive a plurality of first type messages and a plurality of second type messages;
a display unit 1006, configured to display the second type message in a bullet screen form when the number of the plurality of second type messages is equal to or greater than a preset number threshold.
Each second type message contains the same keyword; or the keywords in each second type message have the same semantics.
Specifically, the display unit 1006 is specifically configured to: under the condition that the number of the second type messages is smaller than a preset number threshold, displaying a plurality of first type messages and a plurality of second type messages in a first mode in a first area; and under the condition that the number of the second type messages is equal to or larger than a preset number threshold, displaying the first type messages in a first mode in the first area, and displaying the second type messages in a bullet screen mode in the second area.
Further, the user input unit 1007 may be configured to receive a first operation on a first target message, where the first target message is a message displayed in a first region, a start point of the first operation is the first region, and an end point of the first operation is a second region; the display unit 1006 may be configured to display the first target message in the form of a bullet screen in the second region in response to the first operation.
The user input unit 1007 may be further configured to receive a second operation on a second target message, where the second target message is a message displayed in the second area, a start point of the second operation is the second area, and an end point of the second operation is the first area; the display unit 1006 may be further configured to display the second targeted message in the first mode in the first area in response to the second operation.
In the embodiment of the invention, a plurality of first type messages and a plurality of second type messages are received, and the plurality of second type messages are displayed in the bullet screen mode under the condition that the number of the plurality of second type messages is equal to or greater than the preset number threshold value, so that the information display mode is optimized, a user can quickly find key messages which are interested by the user, the convenience degree of the user for viewing chat records is improved, and the user experience is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 1001 may be used for receiving and sending signals during a message transmission or a call, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 1010; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 1001 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. Further, the radio frequency unit 1001 may also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user through the network module 1002, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 1003 may convert audio data received by the radio frequency unit 1001 or the network module 1002 or stored in the memory 1009 into an audio signal and output as sound. Also, the audio output unit 1003 may also provide audio output related to a specific function performed by the electronic apparatus 1000 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 1003 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 1004 may include a Graphics Processing Unit (GPU) 1041 and a microphone 10042, and the Graphics processor 10041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 1006. The image frames processed by the graphic processor 10041 may be stored in the memory 1009 (or other storage medium) or transmitted via the radio frequency unit 1001 or the network module 1002. The microphone 10042 can receive sounds and can process such sounds 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 1001 in case of a phone call mode.
The electronic device 1000 also includes at least one sensor 1005, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 10061 according to the brightness of ambient light and a proximity sensor that can turn off the display panel 10061 and/or the backlight when the electronic device 1000 moves to the ear. As one type of motion sensor, an 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 an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 1005 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 1006 is used to display information input by the user or information provided to the user. The Display unit 1006 may include a Display panel 10061, and the Display panel 10061 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 1007 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 10071 (e.g., operations by a user on or near the touch panel 10071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 10071 may include two parts, 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, sends the touch point coordinates to the processor 1010, and receives and executes commands sent by the processor 1010. In addition, the touch panel 10071 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 10071, the user input unit 1007 can include other input devices 10072. Specifically, the other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 10071 can be overlaid on the display panel 10061, and when the touch panel 10071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 1010 to determine the type of the touch event, and then the processor 1010 provides a corresponding visual output on the display panel 10061 according to the type of the touch event. Although in fig. 9, the touch panel 10071 and the display panel 10061 are two independent components for implementing the input and output functions of the electronic device, in some embodiments, the touch panel 10071 and the display panel 10061 may be integrated to implement the input and output functions of the electronic device, and the implementation is not limited herein.
The interface unit 1008 is an interface for connecting an external device to the electronic apparatus 1000. 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 1008 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 electronic apparatus 1000 or may be used to transmit data between the electronic apparatus 1000 and external devices.
The memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a program storage area and a data storage area, wherein 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, and the like), 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 1009 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 1010 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 1009 and calling data stored in the memory 1009, thereby integrally monitoring the electronic device. Processor 1010 may include one or more processing units; optionally, the processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
In addition, the electronic device 1000 includes some functional modules that are not shown, and are not described in detail herein.
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 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 (10)

1. A method of displaying a message, the method comprising:
receiving a plurality of messages of a first type and a plurality of messages of a second type;
displaying the second type messages in a bullet screen mode under the condition that the number of the second type messages is equal to or larger than a preset number threshold;
after receiving the plurality of messages of the first type and the plurality of messages of the second type, further comprising:
under the condition that the number of the second type messages is smaller than the preset number threshold, displaying the first type messages and the second type messages in a first mode in a first area; the first mode is a mode displayed according to a time sequence; the first mode is different from the form of the bullet screen;
displaying the second type messages in a bullet screen mode under the condition that the number of the second type messages is equal to or greater than a preset number threshold, wherein the displaying includes:
and under the condition that the number of the second type messages is equal to or larger than the preset number threshold, displaying the first type messages in the first area according to the first mode, and displaying the second type messages in a bullet screen mode in the second area.
2. The method of claim 1, wherein each of said second type messages contains the same keyword; or the keywords in each second type message have the same semantics.
3. The method of claim 1, wherein after the second area displays the plurality of messages of the second type in the form of a bullet screen, further comprising:
receiving a first operation on a first target message, wherein the first target message is a message displayed in the first area, the starting point of the first operation is the first area, and the end point of the first operation is the second area;
and responding to the first operation, and displaying the first target message in a bullet screen form in the second area.
4. The method of claim 1, wherein after the second area displays the plurality of messages of the second type in the form of a bullet screen, further comprising:
receiving a second operation on a second target message; the second target message is a message displayed in the second area, the starting point of the second operation is the second area, and the end point of the second operation is the first area;
in response to the second operation, displaying the second targeted message in the first mode in the first area.
5. An apparatus for displaying a message, the apparatus comprising:
the first receiving module is used for receiving a plurality of first type messages and a plurality of second type messages;
the first display module is used for displaying the second type messages in a bullet screen mode under the condition that the number of the second type messages is equal to or larger than a preset number threshold;
the first display module is specifically configured to: under the condition that the number of the second type messages is smaller than the preset number threshold, displaying the first type messages and the second type messages in a first mode in a first area; the first mode is different from the form of the bullet screen;
and under the condition that the number of the second type messages is equal to or larger than the preset number threshold, displaying the first type messages in the first area according to the first mode, and displaying the second type messages in a bullet screen mode in the second area.
6. The apparatus of claim 5, wherein each of said second type messages contains a same keyword; or the keywords in each second type message have the same semantics.
7. The apparatus of claim 5, further comprising:
a second receiving module, configured to receive a first operation on a first target message, where the first target message is a message displayed in the first area, a starting point of the first operation is the first area, and an end point of the first operation is the second area;
and the second display module is used for responding to the first operation and displaying the first target message in the second area in a bullet screen mode.
8. The apparatus of claim 5, further comprising:
a third receiving module, configured to receive a second operation on a second target message; the second target message is a message displayed in the second area, the starting point of the second operation is the second area, and the end point of the second operation is the first area;
and a third display module, configured to display the second target message in the first mode in the first area in response to the second operation.
9. An electronic device, comprising a processor, a memory and a program stored on the memory and executable on the processor, the program, when executed by the processor, implementing the steps of the method of displaying a message as claimed in any one of claims 1-4.
10. A computer-readable storage medium, on which a program is stored which, when being executed by a processor, carries out the steps of the method of displaying a message according to any one of claims 1 to 4.
CN202011092081.4A 2020-10-13 2020-10-13 Method and device for displaying message Active CN112217713B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011092081.4A CN112217713B (en) 2020-10-13 2020-10-13 Method and device for displaying message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011092081.4A CN112217713B (en) 2020-10-13 2020-10-13 Method and device for displaying message

Publications (2)

Publication Number Publication Date
CN112217713A CN112217713A (en) 2021-01-12
CN112217713B true CN112217713B (en) 2022-05-17

Family

ID=74053969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011092081.4A Active CN112217713B (en) 2020-10-13 2020-10-13 Method and device for displaying message

Country Status (1)

Country Link
CN (1) CN112217713B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738336A (en) * 2021-01-22 2021-04-30 维沃移动通信有限公司 Message processing method and device
CN115379281A (en) * 2021-05-20 2022-11-22 北京字节跳动网络技术有限公司 Message display method, device and equipment of virtual live broadcast room

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104571787A (en) * 2013-10-25 2015-04-29 腾讯科技(深圳)有限公司 Message display method and communication terminal
CN106059909A (en) * 2016-08-19 2016-10-26 上海幻电信息科技有限公司 Real-time chat method
CN111258468A (en) * 2020-01-09 2020-06-09 维沃移动通信有限公司 Information processing method and electronic equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101850821B1 (en) * 2011-09-15 2018-04-20 엘지전자 주식회사 Mobile terminal and message display method for mobile terminal
KR102247251B1 (en) * 2015-01-13 2021-05-03 엘지전자 주식회사 Mobile terminal and control method for the same
CN108334352A (en) * 2017-08-31 2018-07-27 北京小米移动软件有限公司 Notification message processing method, device, electronic equipment and storage medium
CN108762640A (en) * 2018-05-28 2018-11-06 维沃移动通信有限公司 A kind of display methods and terminal of barrage information
CN108881624B (en) * 2018-05-30 2021-08-31 维沃移动通信有限公司 Message display method and terminal equipment
CN109976844A (en) * 2019-01-25 2019-07-05 维沃移动通信有限公司 A kind of message display method and mobile terminal
CN110138645B (en) * 2019-03-29 2021-06-18 腾讯科技(深圳)有限公司 Session message display method, device, equipment and storage medium
CN111343081B (en) * 2020-03-02 2022-09-13 维沃移动通信有限公司 Information display method and electronic equipment
CN111585869B (en) * 2020-04-29 2022-09-16 上海掌门科技有限公司 Barrage presentation method and device for instant message

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104571787A (en) * 2013-10-25 2015-04-29 腾讯科技(深圳)有限公司 Message display method and communication terminal
CN106059909A (en) * 2016-08-19 2016-10-26 上海幻电信息科技有限公司 Real-time chat method
CN111258468A (en) * 2020-01-09 2020-06-09 维沃移动通信有限公司 Information processing method and electronic equipment

Also Published As

Publication number Publication date
CN112217713A (en) 2021-01-12

Similar Documents

Publication Publication Date Title
CN110995923B (en) Screen projection control method and electronic equipment
CN108255378B (en) Display control method and mobile terminal
CN110096326B (en) Screen capturing method, terminal equipment and computer readable storage medium
CN107734175B (en) Notification message prompting method and mobile terminal
CN110062105B (en) Interface display method and terminal equipment
CN111010332A (en) Group chat method and electronic equipment
CN109525874B (en) Screen capturing method and terminal equipment
CN110837327B (en) Message viewing method and terminal
CN109379484B (en) Information processing method and terminal
CN111666009B (en) Interface display method and electronic equipment
CN109710349B (en) Screen capturing method and mobile terminal
WO2020192324A1 (en) Interface displaying method and terminal device
CN110913067A (en) Information sending method and electronic equipment
CN108388403B (en) Method and terminal for processing message
CN108920040B (en) Application icon sorting method and mobile terminal
CN110855549A (en) Message display method and terminal equipment
CN110752981A (en) Information control method and electronic equipment
CN110597437A (en) Screen capturing method and terminal equipment
CN112217713B (en) Method and device for displaying message
CN110012151B (en) Information display method and terminal equipment
CN109992192B (en) Interface display method and terminal equipment
CN109597546B (en) Icon processing method and terminal equipment
CN108628534B (en) Character display method and mobile terminal
CN111130995B (en) Image control method, electronic device, and storage medium
CN110213439B (en) Message processing method and terminal

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