CN112764628A - Content display method, content display device, electronic equipment and storage medium - Google Patents

Content display method, content display device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112764628A
CN112764628A CN202110120864.7A CN202110120864A CN112764628A CN 112764628 A CN112764628 A CN 112764628A CN 202110120864 A CN202110120864 A CN 202110120864A CN 112764628 A CN112764628 A CN 112764628A
Authority
CN
China
Prior art keywords
content
input
message interface
user
similarity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110120864.7A
Other languages
Chinese (zh)
Other versions
CN112764628B (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 CN202110120864.7A priority Critical patent/CN112764628B/en
Publication of CN112764628A publication Critical patent/CN112764628A/en
Priority to PCT/CN2022/073104 priority patent/WO2022161265A1/en
Application granted granted Critical
Publication of CN112764628B publication Critical patent/CN112764628B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • G06F3/04855Interaction with scrollbars
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The application discloses a content display method, a content display device, an electronic device and a storage medium, wherein the method comprises the following steps: receiving a first input of a user under the condition that first content in a first message interface is displayed; in response to the first input, canceling the display of the first message interface, displaying a second message interface, and receiving second content input by a user in an input box; receiving a second input of the user; and under the condition that the similarity between the second content and the first content is greater than a preset threshold value, responding to the second input, and displaying the first content in the first message interface. By implementing the method, the historical reading position in the previous message interface can be quickly switched back, the tedious operation that a user repeatedly searches for the historical record is avoided, and the efficiency of message interface switching is improved.

Description

Content display method, content display device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of mobile internet, and particularly relates to a content display method and device, electronic equipment and a storage medium.
Background
With the development of mobile internet technology, the variety and functions of network applications become more and more abundant, and the network applications become an essential part in work and life of people. When a user communicates with a plurality of contacts by using an instant messaging application, the message interfaces corresponding to different contacts are frequently switched back and forth.
In the prior art, after the chat message in the current message interface is processed, the user cannot switch back to the historical reading position in the previous message interface, and the user needs to switch back to the previous message interface first and then look over the historical message in the previous message interface until the historical reading position is found, so that the operation is complicated.
Disclosure of Invention
An embodiment of the application aims to provide a content display method, a content display device, an electronic device and a storage medium, so as to solve the technical problem that the message interface switching operation is complex in the prior art.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a content display method, where the method includes:
receiving a first input of a user under the condition that first content in a first message interface is displayed;
in response to the first input, canceling the display of the first message interface, displaying a second message interface, and receiving second content input by a user in an input box;
receiving a second input of the user;
and under the condition that the similarity between the second content and the first content is greater than a preset threshold value, responding to the second input, and displaying the first content in the first message interface.
In a second aspect, an embodiment of the present application provides a content display apparatus, including:
the first receiving module is used for receiving a first input of a user under the condition that first content in the first message interface is displayed;
the first display module is used for responding to the first input, canceling the display of the first message interface and displaying a second message interface;
the second receiving module is used for receiving second content input by the user in the input box;
the third receiving module is used for receiving a second input of the user;
and the second display module is used for responding to the second input and displaying the first content in the first message interface under the condition that the similarity between the second content and the first content is greater than a preset threshold value.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or an instruction stored on the memory and executable on the processor, and when the program or the instruction is executed by the processor, the steps of the content display method according to the first aspect are implemented.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the content display method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the content display method according to the first aspect.
In the embodiment of the application, under the condition that the first content in the first message interface is displayed, receiving a first input of a user; in response to the first input, canceling the display of the first message interface, displaying the second message interface, and receiving second content input by the user in the input box; receiving a second input of the user; and under the condition that the similarity of the second content and the first content is greater than a preset threshold value, responding to a second input, and displaying the first content in the first message interface. Compared with the prior art, under the condition that a user uses the instant messaging application to communicate with a plurality of contacts at the same time, after the chat message in the current message interface is processed, the historical reading position in the previous message interface can be switched back quickly, the tedious operation that the user repeatedly searches for the historical record is avoided, and the message interface switching efficiency is improved.
Drawings
Fig. 1 is a flowchart of a content display method provided in an embodiment of the present application;
FIG. 2 is a diagram illustrating a content display method according to an embodiment of the present disclosure;
fig. 3 is a block diagram of a content display device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 5 is a hardware structure diagram of an electronic device implementing various embodiments of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
With the development of mobile internet technology, most of the communication between the life or work of users is performed through instant messaging applications (such as WeChat, QQ and nailing), so that the users can communicate at any time and any place, and the communication is convenient and fast. When a user uses the instant messaging application, the communication is frequent, the information amount is huge, a plurality of message interfaces are simultaneously communicated, and each message interface may generate a large amount of data information.
At present, when a user processes messages of a plurality of message interfaces simultaneously, the following situation that the history records of the messages are searched again after the message interfaces are switched frequently occurs, and time and energy are consumed for switching and searching for a plurality of times.
The message interface A has hundreds of lines of unread records, dozens of lines of messages are being read, the message interface B receives important messages, the message interface B is switched to the message interface B to check the messages, the latest messages are displayed after the message interface A is switched, and the previous reading position can be found to continue reading only by turning over hundreds of lines of messages.
The message interface A has some important historical messages and needs to be transferred to the message interface B, hundreds of lines are turned forwards in the message interface A to find the important messages, the message interface B is switched to input the important messages, the information amount is large, the information is incomplete once, the latest messages can be displayed when the message interface A is switched again, and hundreds of lines are required to be turned forwards again to record and find the important messages.
In order to solve the above technical problem, embodiments of the present application provide a content display method, apparatus, electronic device, and storage medium.
The content display method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
It should be noted that the content display method provided in the embodiment of the present application is applicable to an electronic device, and in practical application, the electronic device may include: the mobile terminal includes a smart phone, a tablet computer, a personal digital assistant, and the like, which is not limited in the embodiment of the present application.
Fig. 1 is a flowchart of a content display method provided in an embodiment of the present application, and as shown in fig. 1, the method may include the following steps: step 101, step 102, step 103 and step 104, wherein,
in step 101, a first input of a user is received while first content in a first message interface is displayed.
In the embodiment of the application, the first content is a content which is read by a user currently in the first message interface, and the position of the first content is the current reading position of the user.
In an embodiment of the application, the first input is used to trigger switching from the first message interface to the second message interface.
In step 102, in response to the first input, the first message interface is canceled from being displayed, the second message interface is displayed, and the second content input by the user in the input box is received.
In the embodiment of the application, when the display of the first message interface is cancelled, that is, when the first message interface exits, the position of the first content when the first message interface exits, that is, the user reading position when the first message interface exits, may be recorded, so that when other message interfaces switch back to the first message interface, the first content at the position may be quickly located and displayed according to the position.
In the embodiment of the application, when the reading position of the user is recorded, the position of the scroll bar (usually on the right side) of the message interface in the message interface can be approximately reflected by the reading progress of the user in consideration of the message interface, so that the reading position of the user can be determined based on the scroll bar of the first message interface, and then the recording is performed; in addition, the sight line stopping position of the user can also approximately reflect the reading position of the user, so that the reading position of the user can be determined based on the stopping position of the sight line of the user in the first message interface, and then recording is carried out. Preferably, in order to determine the reading position more accurately, a browsing area may be first determined based on the scroll bar of the first message interface, a browsing area may be determined based on the position where the line of sight of the user stays, then an intersection is taken for the two browsing areas, the intersection area is determined as the reading position of the user, and then recording is performed.
In one example, the message interface a is a first message interface, the message interface B is a second message interface, and when the user views the history chat messages in the message interface a, the message interface B receives the new messages, the user switches to the message interface B to process the new chat messages, and when exiting the message interface a, the user reading position L at the time of the message interface a is recorded.
In the embodiment of the application, when the user inputs the second content in the input box of the second message interface, the second content may be text content input by the user through typing or content input by the user through pasting.
In step 103, a second input by the user is received.
In an embodiment of the application, the second input is used to trigger switching from the second message interface to the first message interface.
In step 104, in the case that the similarity between the second content and the first content is greater than the preset threshold, the first content in the first message interface is displayed in response to the second input.
In an embodiment provided by the present application, considering that when a user communicates with multiple contacts at the same time, the user usually switches between the message interfaces quickly, and based on this situation, it may be set that when the user switches back to the first message interface within a certain time period, the user locates to the reading position of the first message interface when the user logs out last time, at this time, the step 104 may specifically include the following steps (not shown in the figure): step 1041 and step 1042, wherein,
in step 1041, in a case that the similarity between the second content and the first content is greater than a preset threshold, determining whether an interval duration between the second input and the first input is less than a first preset duration;
in step 1042, in the case that the interval duration is less than the first preset duration, in response to the second input, the first content in the first message interface is displayed.
In the embodiment of the application, when determining whether the similarity between the second content and the first content is greater than a preset threshold, the similarity may be determined according to a copy and paste operation of a user, or may also be determined according to the content overlapping degree between the first content and the second content, or the semantic analysis similarity.
In an embodiment provided by the present application, when the second content is a content input by a user through pasting, whether a similarity between the second content and the first content is greater than a preset threshold may be determined according to a copy and paste operation of the user, and at this time, before the step 104, the following steps may be further added:
and in the case where a user input to copy the first content is received before the first input is received, and the second content is the content input by the user in the input box by pasting, and the content input by the pasting input is the first content copied by the copy input, determining that the similarity of the second content to the first content is greater than a preset threshold.
That is, when it is detected that the user copies the first content in the first message interface and pastes the copied first content in the input box of the second message interface, it is determined that the similarity between the second content and the first content is greater than a preset threshold.
In this embodiment of the application, a speed at which the user triggers the paste input may also be limited, and specifically, it is set that the user only triggers the paste input within a certain time period (for example, within 10 seconds) when switching to the second message interface, and the first content is displayed when switching back to the first message interface.
In one example, a user views a history message record in a message interface a, and needs to transfer a part of messages of the message interface a to a message interface B and copy the part of history messages;
and the user switches to the message interface B, the electronic equipment judges whether the message interface A is checking and copying the historical message when exiting, and if so, the reading position L of the user when exiting the message interface A is recorded.
Immediately after switching to the message interface B, the user pastes the message copied in the message interface a (for example, within 10 seconds), and the electronic device determines whether the message copied in the message interface a is pasted within 10 seconds after switching to the message interface B.
After the message interface B pastes the message, the user switches back to the message interface a within a certain time (for example, within 1 minute), and the electronic device determines whether the time interval from exiting to switching back of the message interface a is less than 1 minute.
When the above conditions are all satisfied (yes in all judgment results), the electronic device recognizes that the user may need to continue reading the previous message record, and displays the previous reading position in the message interface a.
As can be seen, in the embodiments of the present application, the following scenarios are targeted: the user checks the historical message record on the first message interface, copies the messages in the historical message record, switches to other second message interfaces, pastes the copied messages in the second message interfaces, and the electronic equipment can identify the information before the user possibly needs to continue reading and help the user to quickly switch to the reading position when the user quits the previous time.
In another embodiment provided by the present application, when the second content is text content input by a user through typing, whether the similarity between the second content and the first content is greater than a preset threshold may be determined according to a content overlap ratio between the first content and the second content, or a semantic analysis similarity, where the similarity may include: before the above step 104, the following steps may be added to the content overlap ratio or the semantic analysis similarity:
under the condition that the content coincidence degree of the second content and the first content is greater than a content coincidence degree threshold value, determining that the similarity of the second content and the first content is greater than a preset threshold value; alternatively, the first and second electrodes may be,
and under the condition that the semantic analysis similarity of the second content and the first content is greater than a semantic analysis similarity threshold, determining that the similarity of the second content and the first content is greater than a preset threshold.
In this embodiment, a speed of inputting the text content in the second message interface by the user may also be limited, and specifically, it is set that the first content is displayed when the user switches back to the first message interface only when inputting the chat message within a certain time period (for example, within 10 seconds) of switching to the second message interface.
In one example, a user views a history message record on a message interface a, and needs to transfer a key message of the message interface a to a message interface B;
the user switches to a message interface B, the electronic equipment judges whether the historical messages are being checked when the message interface A exits, and if so, the message position L and the message content T0 when the message interface A exits are recorded;
immediately after switching to message interface B, the user inputs content T1 (e.g., within 10 seconds), and the electronic device determines whether the content was input within 10 seconds after switching to message interface B;
the electronic equipment compares whether the content T1 input by the user at the message interface B and the content T0 when the message interface A exits, and the content coincidence degree of the two is higher than a certain proportion (for example, 70%, namely, more than 70% of the content of T1 is the same as the content of T0). Specifically, for example, the content T0 of the message interface a is: on this friday morning, 10 th day, the conference is held, and each participant should participate on time. The content T1 of the message interface B is: in this week, the study of the project needs to be participated in. T1 is a total of 11 characters, of which 9 characters are the same as T0, and the content coincidence degree is 9/11 ═ 81.81%, which is greater than 70%;
after the message interface B inputs the content, the user switches back to the message interface A within a certain time (for example, 1 minute), and the electronic equipment judges whether the time interval from exiting to switching back of the message interface A is less than 1 minute;
when the above conditions are all satisfied (yes in all judgment results), the electronic device recognizes that the user may need to continue reading the previous information record, and displays the previous reading position in the message interface a.
As can be seen, in the embodiments of the present application, the following scenarios are targeted: the user checks the historical message record on the first message interface, then switches to the second message interface to input content, if the input content is similar to and coincident with the content when the first message interface exits, the electronic equipment identifies that the user may need to continue reading the previous information, and helps the user to quickly switch to the reading position when the user previously exits.
In the embodiment of the application, under the condition that the similarity between the second content and the first content is determined to be greater than the preset threshold, the first content can be directly displayed when the first message interface is switched back; alternatively, the user may confirm whether or not to display the first content when switching back to the first message interface, and the first content may be displayed only when the user confirms the display.
In an embodiment provided by the present application, when the user confirms whether to display the first content, the step 104 may specifically include the following steps:
under the condition that the similarity between the second content and the first content is larger than a preset threshold, responding to a second input, and displaying a floating window on the first message interface, wherein the floating window comprises a target control, and the target control is used for triggering and positioning to the first content; in practical applications, the target control may be a button or an icon.
And receiving a fourth input aiming at the target control, and responding to the fourth input, and displaying the first content in the first message interface.
In the embodiment of the application, in order to avoid that the floating window covers the content on the first message interface too much and affects reading of a user, the size of the floating window is smaller than that of the first message interface. The position of the floating window may be located on the upper side, left side, or right side of the first message interface. To reduce the impact on the user's reading, it is preferable that a floating window is displayed on the upper side (i.e., top) of the first message interface. In addition, the floating window may further include a control for exiting the floating window, and if the user does not need to check the reading position of the first message interface when exiting last time, the floating window may be closed by operating the control, or if the user does not operate any control in the floating window within a certain time period (for example, within 20 seconds), the floating window may be automatically closed.
In the embodiment of the present application, the fourth input may be a click input, a long-press input, or a slide input.
In the embodiment of the application, if the user continues to switch between the first message interface and other message interfaces, the electronic device continues to intelligently judge whether the previous reading position needs to be recovered, and the cycle is repeated.
For convenience of understanding, the technical solution of the embodiment of the present application is described with reference to a specific example, as shown in fig. 2, in an example, a message interface a is a first message interface, a message interface B is a second message interface, the message interface a includes 99 chat messages, and the message interface B includes 48 chat messages. In the process that a user views historical chat messages in the message interface A, when a 68 th chat message is read, the message in the message interface B needs to be processed, the user switches to the message interface B to process the chat message, and when the user exits from the message interface A, the reading position of the user at the message interface A, namely the position of the 68 th chat message, is recorded.
After the user switches to the message interface B, the chat message is processed in the message interface B, for example, the message content is input, after the user processes the message in the message interface B, the user switches back to the message interface a, and if the chat message (i.e., the 49 th chat message) input on the message interface B during the process of processing the message in the message interface B is the same as or similar to the 68 th chat message in the message interface a in content, after switching back to the message interface a, a floating window containing a target control (i.e., a control named "return to reading position at last exit") is displayed on the message interface a. If the user clicks on the target control, the electronic device navigates to the 68 th chat message.
As can be seen from the above embodiment, in this embodiment, in the case of displaying the first content in the first message interface, a first input of the user is received; in response to the first input, canceling the display of the first message interface, displaying the second message interface, and receiving second content input by the user in the input box; receiving a second input of the user; and under the condition that the similarity of the second content and the first content is greater than a preset threshold value, responding to a second input, and displaying the first content in the first message interface. Compared with the prior art, under the condition that a user uses the instant messaging application to communicate with a plurality of contacts at the same time, after the chat message in the current message interface is processed, the historical reading position in the previous message interface can be switched back quickly, the tedious operation that the user repeatedly searches for the historical record is avoided, and the message interface switching efficiency is improved.
In another embodiment provided by the present application, the previous reading position may be intelligently restored according to a flip-back operation of the user, and at this time, the content display method provided by the embodiment of the present application may further include the following steps on the basis of the embodiment described in fig. 1:
under the condition that the similarity between the second content and the first content is smaller than or equal to a preset threshold value, responding to a second input, and displaying a first message interface;
determining whether a third input is received within a second preset time after the first message interface is displayed, wherein the third input comprises an input for reviewing historical content in the first message interface;
and displaying the first content in the first message interface under the condition that the third input is received.
In this embodiment of the application, the third input may be an input of a fast sliding screen, or an input of a fast dragging progress bar.
In one example, a user views a history information record at a message interface A;
if other message interfaces B receive new messages, the user switches to the message interface B to process the messages, the electronic equipment judges whether the historical messages are being checked when the message interface A exits, and if so, the reading position L of the user when the message interface A exits is recorded;
after the message of the message interface B is processed, the user switches back to the message interface A within a certain time (for example, within 1 minute), and the electronic equipment judges whether the interval time from exiting to switching back of the message interface A is less than 1 minute;
if the electronic equipment judges that the similarity between the chat message input by the user during the period from the entrance to the exit of the message interface B and the content at the reading position L of the user is low, after the message interface A is switched to, the user immediately (for example, within 10 seconds) turns over the message record, and the electronic equipment judges whether to turn over the history message record within 10 seconds after the message interface A is switched back;
when the above conditions are met (yes in all judgment results), the electronic device recognizes that the user may need to continue reading the previous message record, and displays a control for triggering positioning to the reading position L in the previous exit on the top of the message interface A, so as to prompt the user to recover to the previous reading position.
As can be seen, in the embodiments of the present application, the following scenarios are targeted: the user checks the history information record on the message interface A, then switches to other message interfaces to process the message, switches back to the message interface A within a certain time and turns over the history message forwards, the electronic equipment identifies that the user may need to continue reading the previous message, and helps the user to quickly switch to the reading position when the user quits the previous time.
It should be noted that, in the content display method provided in the embodiment of the present application, the execution main body may be a content display apparatus, or a control module in the content display apparatus for executing the loaded content display method. In the embodiment of the present application, a content display apparatus executing a loaded content display method is taken as an example, and the content display apparatus provided in the embodiment of the present application is described.
Fig. 3 is a block diagram of a content display apparatus according to an embodiment of the present application, and as shown in fig. 3, the content display apparatus 300 may include: a first receiving module 301, a first display module 302, a second receiving module 303, a third receiving module 304, and a second display module 305, wherein,
a first receiving module 301, configured to receive a first input of a user when first content in a first message interface is displayed;
a first display module 302, configured to cancel displaying the first message interface and display a second message interface in response to the first input;
a second receiving module 303, configured to receive second content input by the user in the input box;
a third receiving module 304, configured to receive a second input from the user;
a second display module 305, configured to display the first content in the first message interface in response to the second input if a similarity between the second content and the first content is greater than a preset threshold.
As can be seen from the above embodiment, in this embodiment, in the case of displaying the first content in the first message interface, a first input of the user is received; in response to the first input, canceling the display of the first message interface, displaying the second message interface, and receiving second content input by the user in the input box; receiving a second input of the user; and under the condition that the similarity of the second content and the first content is greater than a preset threshold value, responding to a second input, and displaying the first content in the first message interface. Compared with the prior art, under the condition that a user uses the instant messaging application to communicate with a plurality of contacts at the same time, after the chat message in the current message interface is processed, the historical reading position in the previous message interface can be switched back quickly, the tedious operation that the user repeatedly searches for the historical record is avoided, and the message interface switching efficiency is improved.
Optionally, as an embodiment, the content display apparatus 300 may further include:
the first determination module is used for receiving a copy input of a user to the first content before receiving the first input, determining that the similarity of the second content and the first content is greater than a preset threshold value when the second content is the content input by the user in an input box through pasting, and determining that the content input by the pasting input is the first content copied by the copy input.
Optionally, as an embodiment, the similarity may include: content overlap, or semantic analysis similarity.
Optionally, as an embodiment, the second display module 305 may include:
the determining submodule is used for determining whether the interval duration between the second input and the first input is less than a first preset duration or not under the condition that the similarity between the second content and the first content is greater than a preset threshold;
and the display sub-module is used for responding to the second input and displaying the first content in the first message interface under the condition that the interval duration is less than the first preset duration.
Optionally, as an embodiment, the content display apparatus 300 may further include:
the third display module is used for responding to the second input and displaying the first message interface under the condition that the similarity between the second content and the first content is smaller than or equal to a preset threshold value;
a second determining module, configured to determine whether a third input is received within a second preset time period after the first message interface is displayed, where the third input includes an input for reviewing historical content in the first message interface;
a fourth display module, configured to display the first content in the first message interface when the third input is received.
The content display device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of 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 server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The content display device in the embodiment of the present application 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 application are not limited specifically.
The content display device provided in the embodiment of the present application can implement each process implemented in the embodiment of the method in fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 4, an electronic device 400 is further provided in this embodiment of the present application, and includes a processor 401, a memory 402, and a program or an instruction stored in the memory 402 and executable on the processor 401, where the program or the instruction is executed by the processor 401 to implement each process of the foregoing content display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application. The electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and the like.
Those skilled in the art will appreciate that the electronic device 500 may further include a power supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The user input unit 507 is configured to receive a first input of a user when the display unit 506 displays the first content in the first message interface;
a display unit 506, configured to cancel displaying the first message interface and display a second message interface in response to the first input;
a user input unit 507, further configured to receive second content input by a user in the input box;
a user input unit 507, further configured to receive a second input by the user;
the display unit 506 is further configured to display the first content in the first message interface in response to the second input if the similarity between the second content and the first content is greater than a preset threshold.
Therefore, in the embodiment of the application, under the condition that the user uses the instant messaging application to communicate with a plurality of contacts at the same time, after the chat message in the current message interface is processed, the historical reading position in the previous message interface can be switched back quickly, the tedious operation that the user repeatedly searches for the historical record is avoided, and the message interface switching efficiency is improved.
Optionally, as an embodiment, the processor 510 is configured to, before receiving the first input, receive a user input to copy the first content, and the second content is a content input by the user in an input box by pasting, and in a case that the content input by the pasting input is the first content copied by the copying input, determine that a similarity between the second content and the first content is greater than a preset threshold.
Optionally, as an embodiment, the similarity includes: content overlap, or semantic analysis similarity.
Optionally, as an embodiment, the processor 510 is further configured to determine, in a case that the similarity between the second content and the first content is greater than a preset threshold, whether a duration of an interval between the second input and the first input is less than a first preset duration;
the display unit 506 is further configured to display the first content in the first message interface in response to the second input under the condition that the interval duration is less than the first preset duration.
Optionally, as an embodiment, the display unit 506 is further configured to display the first message interface in response to the second input when the similarity between the second content and the first content is smaller than or equal to a preset threshold;
the processor 510 is further configured to determine whether a third input is received within a second preset time period after the first message interface is displayed, where the third input includes an input for reviewing historical content in the first message interface;
a display unit 506, further configured to display the first content in the first message interface if it is determined that the third input is received.
It should be understood that in the embodiment of the present application, the input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 507 includes a touch panel 5071 and other input devices 5072. A touch panel 5071, also referred to as a touch screen. The touch panel 5071 may include two parts of a touch detection device and a touch controller. Other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in further detail herein. The memory 509 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. Processor 510 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the content display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the foregoing content display method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
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. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions 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.
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 application 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 application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for displaying content, the method comprising:
receiving a first input of a user under the condition that first content in a first message interface is displayed;
in response to the first input, canceling the display of the first message interface, displaying a second message interface, and receiving second content input by a user in an input box;
receiving a second input of the user;
and under the condition that the similarity between the second content and the first content is greater than a preset threshold value, responding to the second input, and displaying the first content in the first message interface.
2. The method according to claim 1, wherein the step of displaying the first content in the first message interface in response to the second input in the case that the similarity between the second content and the first content is greater than a preset threshold value further comprises:
receiving a user input to copy the first content before receiving the first input, determining that the similarity of the second content and the first content is greater than a preset threshold value when the second content is the content input by the user in the input box through pasting, and the content input by the pasting input is the first content copied by the copying input.
3. The method of claim 1, wherein the similarity comprises: content overlap, or semantic analysis similarity.
4. The method of claim 1, wherein the displaying the first content in the first message interface in response to the second input if the similarity between the second content and the first content is greater than a preset threshold comprises:
under the condition that the similarity between the second content and the first content is greater than a preset threshold value, determining whether the interval duration between the second input and the first input is less than a first preset duration;
and under the condition that the interval duration is less than the first preset duration, responding to the second input, and displaying the first content in the first message interface.
5. The method of claim 1, further comprising:
under the condition that the similarity between the second content and the first content is smaller than or equal to a preset threshold value, responding to the second input, and displaying the first message interface;
determining whether a third input is received within a second preset time after the first message interface is displayed, wherein the third input comprises an input for turning over historical contents in the first message interface;
displaying the first content in the first message interface if the third input is received.
6. A content display apparatus, characterized in that the apparatus comprises:
the first receiving module is used for receiving a first input of a user under the condition that first content in the first message interface is displayed;
the first display module is used for responding to the first input, canceling the display of the first message interface and displaying a second message interface;
the second receiving module is used for receiving second content input by the user in the input box;
the third receiving module is used for receiving a second input of the user;
and the second display module is used for responding to the second input and displaying the first content in the first message interface under the condition that the similarity between the second content and the first content is greater than a preset threshold value.
7. The apparatus of claim 6, further comprising:
the first determination module is used for receiving a copy input of a user to the first content before receiving the first input, determining that the similarity of the second content and the first content is greater than a preset threshold value when the second content is the content input by the user in an input box through pasting, and determining that the content input by the pasting input is the first content copied by the copy input.
8. The apparatus of claim 6, wherein the second display module comprises:
the determining submodule is used for determining whether the interval duration between the second input and the first input is less than a first preset duration or not under the condition that the similarity between the second content and the first content is greater than a preset threshold;
and the display sub-module is used for responding to the second input and displaying the first content in the first message interface under the condition that the interval duration is less than the first preset duration.
9. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the content display method according to any one of claims 1 to 5.
10. A readable storage medium, on which a program or instructions are stored, which when executed by a processor, implement the steps of the content display method according to any one of claims 1 to 5.
CN202110120864.7A 2021-01-28 2021-01-28 Content display method, content display device, electronic equipment and storage medium Active CN112764628B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110120864.7A CN112764628B (en) 2021-01-28 2021-01-28 Content display method, content display device, electronic equipment and storage medium
PCT/CN2022/073104 WO2022161265A1 (en) 2021-01-28 2022-01-21 Content display method and apparatus, and electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110120864.7A CN112764628B (en) 2021-01-28 2021-01-28 Content display method, content display device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112764628A true CN112764628A (en) 2021-05-07
CN112764628B CN112764628B (en) 2022-07-19

Family

ID=75706535

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110120864.7A Active CN112764628B (en) 2021-01-28 2021-01-28 Content display method, content display device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN112764628B (en)
WO (1) WO2022161265A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022161265A1 (en) * 2021-01-28 2022-08-04 维沃移动通信有限公司 Content display method and apparatus, and electronic device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160170600A1 (en) * 2014-12-15 2016-06-16 Canon Kabushiki Kaisha User interface apparatus, image forming apparatus, content operation method, and control program
CN105786507A (en) * 2016-02-26 2016-07-20 北京小米移动软件有限公司 Display interface switching method and device
CN106534538A (en) * 2016-11-17 2017-03-22 珠海市魅族科技有限公司 Status bar control method and device for intelligent terminal
CN109871164A (en) * 2019-01-25 2019-06-11 维沃移动通信有限公司 A kind of message method and terminal device
CN110162371A (en) * 2019-05-24 2019-08-23 网易(杭州)网络有限公司 Display control method and device, electronic equipment and storage medium
CN111124223A (en) * 2019-12-11 2020-05-08 维沃移动通信有限公司 Application interface switching method and electronic equipment
CN111427484A (en) * 2020-03-09 2020-07-17 北京达佳互联信息技术有限公司 Unread session processing method and device
CN111596818A (en) * 2020-04-24 2020-08-28 维沃移动通信有限公司 Message display method and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102208362B1 (en) * 2013-12-16 2021-01-28 삼성전자 주식회사 Method and apparatus for managing message of electronic device
US10795947B2 (en) * 2016-05-17 2020-10-06 Google Llc Unified message search
CN107220051A (en) * 2017-05-25 2017-09-29 深圳天珑无线科技有限公司 A kind of processing method of interactive information, device and terminal
CN110858113A (en) * 2018-08-22 2020-03-03 阿里巴巴集团控股有限公司 Message processing method and device and electronic equipment
CN112764628B (en) * 2021-01-28 2022-07-19 维沃移动通信有限公司 Content display method, content display device, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160170600A1 (en) * 2014-12-15 2016-06-16 Canon Kabushiki Kaisha User interface apparatus, image forming apparatus, content operation method, and control program
CN105786507A (en) * 2016-02-26 2016-07-20 北京小米移动软件有限公司 Display interface switching method and device
CN106534538A (en) * 2016-11-17 2017-03-22 珠海市魅族科技有限公司 Status bar control method and device for intelligent terminal
CN109871164A (en) * 2019-01-25 2019-06-11 维沃移动通信有限公司 A kind of message method and terminal device
CN110162371A (en) * 2019-05-24 2019-08-23 网易(杭州)网络有限公司 Display control method and device, electronic equipment and storage medium
CN111124223A (en) * 2019-12-11 2020-05-08 维沃移动通信有限公司 Application interface switching method and electronic equipment
CN111427484A (en) * 2020-03-09 2020-07-17 北京达佳互联信息技术有限公司 Unread session processing method and device
CN111596818A (en) * 2020-04-24 2020-08-28 维沃移动通信有限公司 Message display method and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
RAJINA R. MOHAMED ET AL.: "Session Switching between IP/PSTN Connectivity for Voice Application", 《2012 THIRD INTERNATIONAL CONFERENCE ON INTELLIGENT SYSTEMS MODELLING AND SIMULATION》 *
武汇岳 等: "基于视觉的手势界面关键技术研究", 《计算机学报》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022161265A1 (en) * 2021-01-28 2022-08-04 维沃移动通信有限公司 Content display method and apparatus, and electronic device and storage medium

Also Published As

Publication number Publication date
WO2022161265A1 (en) 2022-08-04
CN112764628B (en) 2022-07-19

Similar Documents

Publication Publication Date Title
CN112269508B (en) Display method and device and electronic equipment
CN111884908B (en) Contact person identification display method and device and electronic equipment
CN112988006B (en) Display method, display device, electronic equipment and storage medium
CN113141293B (en) Message display method and device and electronic equipment
US20240045566A1 (en) Notification message display method and apparatus, device, readable storage medium, and chip
CN113467660A (en) Information sharing method and electronic equipment
CN112486444A (en) Screen projection method, device, equipment and readable storage medium
CN114385049A (en) Message processing method, device, equipment and storage medium
CN113992615B (en) Method and device for displaying withdrawal message, electronic equipment and storage medium
CN113709306B (en) Session processing method and device and electronic equipment
CN114827068A (en) Message sending method and device, electronic equipment and readable storage medium
CN112866092B (en) Group chat creation method and group chat creation device
CN112764628B (en) Content display method, content display device, electronic equipment and storage medium
CN112702261B (en) Information display method and device and electronic equipment
CN112416212B (en) Program access method, apparatus, electronic device and readable storage medium
CN114489418A (en) Message processing method, message processing device and electronic equipment
CN114327088A (en) Message sending method, device, electronic equipment and medium
CN112181559A (en) Interface display method and device and electronic equipment
CN112698735A (en) Information input method and device and electronic equipment
CN112181351A (en) Voice input method and device and electronic equipment
CN114374663B (en) Message processing method and message processing device
CN111694477B (en) Label processing method and device and electronic equipment
CN113778311A (en) Operation method and device and electronic equipment
CN113126780A (en) Input method, input device, electronic equipment and readable storage medium
CN112181570A (en) Background task display method and device and electronic equipment

Legal Events

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