CN112764628B - Content display method, apparatus, electronic device and storage medium - Google Patents
Content display method, apparatus, electronic device and storage medium Download PDFInfo
- Publication number
- CN112764628B CN112764628B CN202110120864.7A CN202110120864A CN112764628B CN 112764628 B CN112764628 B CN 112764628B CN 202110120864 A CN202110120864 A CN 202110120864A CN 112764628 B CN112764628 B CN 112764628B
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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/0485—Scrolling or panning
- G06F3/04855—Interaction with scrollbars
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本申请属于移动互联网技术领域,具体涉及一种内容显示方法、装置、电子设备和存储介质。The present application belongs to the technical field of mobile Internet, and specifically relates to a content display method, device, electronic device and storage medium.
背景技术Background technique
随着移动互联网技术的发展,网络应用的种类和功能越来越丰富,网络应用已成为人们工作和生活中必不可少的一部分,以即时通讯应用为例,用户可以使用即时通讯应用,随时随地进行沟通交流。用户在使用即时通讯应用同时与多个联系人沟通交流时,经常会在不同联系人对应的消息界面之间来回切换。With the development of mobile Internet technology, the types and functions of network applications have become more and more abundant, and network applications have become an indispensable part of people's work and life. Taking instant messaging applications as an example, users can use instant messaging applications anytime, anywhere. Communicate. When using an instant messaging application to communicate with multiple contacts at the same time, users often switch back and forth between message interfaces corresponding to different contacts.
现有技术中,用户在处理完当前消息界面中的聊天消息后,无法切换回上一消息界面中的历史阅读位置,需要用户先切换回上一消息界面,再翻看上一消息界面中的历史消息,直至找到历史阅读位置,操作比较繁琐。In the prior art, after processing the chat messages in the current message interface, 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 flip through the previous message interface. Historical messages, until the historical reading position is found, the operation is tedious.
发明内容SUMMARY OF THE INVENTION
本申请实施例的目的是提供一种内容显示方法、装置、电子设备和存储介质,以解决现有技术中存在的消息界面切换操作繁琐的技术问题。The purpose of the embodiments of the present application is to provide a content display method, an apparatus, an electronic device and a storage medium, so as to solve the technical problem in the prior art that the switching operation of the message interface is cumbersome.
为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:
第一方面,本申请实施例提供了一种内容显示方法,所述方法包括:In a first aspect, an embodiment of the present application provides a content display method, the method comprising:
在显示第一消息界面中的第一内容的情况下,接收用户的第一输入;In the case of displaying the first content in the first message interface, receiving the first input of the user;
响应于所述第一输入,取消显示所述第一消息界面,显示第二消息界面,并接收用户在输入框中输入的第二内容;In response to the first input, cancel the display of the first message interface, display the second message interface, and receive the second content input by the user in the input box;
接收用户的第二输入;receiving a second input from the user;
在所述第二内容与所述第一内容的相似度大于预设阈值的情况下,响应于所述第二输入,显示所述第一消息界面中的所述第一内容。In the case that the similarity between the second content and the first content is greater than a preset threshold, the first content in the first message interface is displayed in response to the second input.
第二方面,本申请实施例提供了一种内容显示装置,所述装置包括:In a second aspect, an embodiment of the present application provides a content display device, the device comprising:
第一接收模块,用于在显示第一消息界面中的第一内容的情况下,接收用户的第一输入;a first receiving module, configured to receive the first input from the user under the condition of displaying the first content in the first message interface;
第一显示模块,用于响应于所述第一输入,取消显示所述第一消息界面,显示第二消息界面;a first display module, configured to cancel the display of the first message interface and display the second message interface in response to the first input;
第二接收模块,用于接收用户在输入框中输入的第二内容;a second receiving module, configured to receive the second content input by the user in the input box;
第三接收模块,用于接收用户的第二输入;a third receiving module, configured to receive the second input of the user;
第二显示模块,用于在所述第二内容与所述第一内容的相似度大于预设阈值的情况下,响应于所述第二输入,显示所述第一消息界面中的所述第一内容。A second display module, configured to display the first message in the first message interface in response to the second input when the similarity between the second content and the first content is greater than a preset threshold a content.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的内容显示方法的步骤。In a third aspect, embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the content display method according to the first aspect when executed.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的内容显示方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the content display method according to the first aspect is implemented A step of.
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的内容显示方法。In a fifth aspect, an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect The content display method described.
本申请实施例中,在显示第一消息界面中的第一内容的情况下,接收用户的第一输入;响应于第一输入,取消显示第一消息界面,显示第二消息界面,并接收用户在输入框中输入的第二内容;接收用户的第二输入;在第二内容与第一内容的相似度大于预设阈值的情况下,响应于第二输入,显示第一消息界面中的第一内容。与现有技术相比,在用户使用即时通讯应用同时与多个联系人沟通交流情况下,当处理完当前消息界面中的聊天消息后,可以快速切换回上一消息界面中的历史阅读位置,避免用户反复翻找历史记录的繁琐操作,提高了消息界面切换的效率。In this embodiment of the present application, when the first content in the first message interface is displayed, the first input from the user is received; in response to the first input, the display of the first message interface is canceled, the second message interface is displayed, and the user is received The second content entered in the input box; receiving the second input from the user; in the case that the similarity between the second content and the first content is greater than the preset threshold, in response to the second input, displaying the first message in the first message interface a content. Compared with the prior art, when the user uses the instant messaging application to communicate with multiple contacts at the same time, after processing the chat message in the current message interface, the user can quickly switch back to the historical reading position in the previous message interface, It avoids the tedious operation of the user repeatedly rummaging through the history records, and improves the efficiency of switching the message interface.
附图说明Description of drawings
图1是本申请实施例提供的一种内容显示方法的流程图;1 is a flowchart of a content display method provided by an embodiment of the present application;
图2是本申请实施例提供的一种内容显示方法的示例图;2 is an exemplary diagram of a content display method provided by an embodiment of the present application;
图3是本申请实施例提供的一种内容显示装置的结构框图;3 is a structural block diagram of a content display device provided by an embodiment of the present application;
图4是本申请实施例提供的一种电子设备的结构示意图;4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图5是实现本申请各个实施例的一种电子设备的硬件结构示意图。FIG. 5 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between "first", "second", etc. The objects are usually of one type, and the number of objects is not limited. For example, the first object may be one or more than one. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.
随着移动互联网技术的发展,用户生活或工作之间的联络通讯大部分是通过即时通讯应用(例如微信、QQ、钉钉)进行的,可随时随地进行沟通交流,方便快捷。用户在使用即时通讯应用时,交流频繁,信息量巨大,同时进行多个消息界面交流,每个消息界面可能会产生大量的数据信息。With the development of mobile Internet technology, most of the communication between users' life or work is carried out through instant messaging applications (such as WeChat, QQ, DingTalk), which can be convenient and fast to communicate anytime and anywhere. When a user uses an instant messaging application, the communication is frequent and the amount of information is huge, and multiple message interfaces are communicated at the same time, and each message interface may generate a large amount of data information.
目前,用户在同时处理多个消息界面的消息时,经常会出现以下切换消息界面后导致重新翻找消息历史记录的情况,多次切换翻找很耗费时间和精力。At present, when a user processes messages in multiple message interfaces at the same time, the following situations often occur after switching the message interface, which leads to re-searching the message history records, and it takes time and effort to switch and search multiple times.
消息界面A有几百行未读记录,正读了几十行消息,此时消息界面B收到重要消息,切换到消息界面B查看消息,再切换到消息界面A后会显示最新的消息,需要往前翻几百行消息才能找到前一次的阅读位置继续阅读。The message interface A has hundreds of unread records, and is reading dozens of lines of messages. At this time, the message interface B receives an important message and switches to the message interface B to view the message. After switching to the message interface A, the latest message will be displayed. You need to go forward hundreds of lines of messages to find the previous reading position to continue reading.
消息界面A有一些重要历史消息,需要转述给消息界面B,在消息界面A中往前翻几百行找到重要消息,切换到消息界面B输入重要消息,信息量较大,一次性记不全,再次切换到消息界面A会显示最新的消息,需要再次往前翻几百行记录找到重要消息。There are some important historical messages in message interface A, which need to be relayed to message interface B. In message interface A, scroll hundreds of lines forward to find important messages, and switch to message interface B to enter important messages. The amount of information is large and cannot be remembered at one time. Switching to the message interface A again will display the latest news, and you need to scroll through hundreds of lines of records to find important news.
为了解决上述技术问题,本申请实施例提出了一种内容显示方法、装置、电子设备和存储介质。In order to solve the above technical problems, embodiments of the present application provide a content display method, apparatus, electronic device, and storage medium.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的内容显示方法进行详细地说明。The content display method provided by the embodiments of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
需要说明的是,本申请实施例提供的内容显示方法适用于电子设备,在实际应用中,该电子设备可以包括:智能手机、平板电脑、个人数字助理等移动终端,本申请实施例对此不作限定。It should be noted that the content display method provided in the embodiments of the present application is applicable to electronic devices. In practical applications, the electronic devices may include mobile terminals such as smart phones, tablet computers, and personal digital assistants, which are not implemented in the embodiments of the present application. limited.
图1是本申请实施例提供的一种内容显示方法的流程图,如图1所示,该方法可以包括以下步骤:步骤101、步骤102、步骤103和步骤104,其中,FIG. 1 is a flowchart of a content display method provided by an embodiment of the present application. As shown in FIG. 1 , the method may include the following steps:
在步骤101中,在显示第一消息界面中的第一内容的情况下,接收用户的第一输入。In
本申请实施例中,第一内容为用户在第一消息界面中当前阅读的内容,第一内容所在的位置为用户当前的阅读位置。In the embodiment of the present application, the first content is the content currently read by the user in the first message interface, and the location of the first content is the current reading location of the user.
本申请实施例中,第一输入用于触发由第一消息界面切换至第二消息界面。In this embodiment of the present application, the first input is used to trigger switching from the first message interface to the second message interface.
在步骤102中,响应于第一输入,取消显示第一消息界面,显示第二消息界面,并接收用户在输入框中输入的第二内容。In
本申请实施例中,在取消显示第一消息界面时,也就是,退出第一消息界面时,可以记录第一消息界面退出时的第一内容所在的位置,也就是,第一消息界面退出时的用户阅读位置,以便由其他消息界面再切换回第一消息界面时,可以根据该位置,快速定位到并显示该位置处的第一内容。In this embodiment of the present application, when the display of the first message interface is canceled, that is, when the first message interface is exited, the location of the first content when the first message interface exits may be recorded, that is, when the first message interface exits The user's reading position, so that when another message interface switches back to the first message interface, the first content at the position can be quickly located and displayed according to the position.
本申请实施例中,在记录用户阅读位置时,考虑到消息界面,其滚动条(通常在右侧)在消息界面中的位置,可以大致反应出用户的阅读进度,因此可以基于第一消息界面的滚动条确定用户阅读位置,之后进行记录;此外,用户的视线停留位置也可以大致反应出用户的阅读位置,因此可以基于用户的视线在第一消息界面中的停留位置确定用户阅读位置,之后进行记录。优选地,为了更为准确地确定出阅读位置,可以首先基于第一消息界面的滚动条确定出一个浏览区域,基于用户的视线停留位置确定出一个浏览区域,之后对两个浏览区域取交集,将交集区域确定为用户阅读位置,之后进行记录。In the embodiment of the present application, when recording the user's reading position, considering the message interface, the position of the scroll bar (usually on the right side) in the message interface can roughly reflect the reading progress of the user, so the first message interface can be based on The scroll bar of the user interface determines the user's reading position, and then records it; in addition, the user's gaze stop position can also roughly reflect the user's reading position, so the user's reading position can be determined based on the stop position of the user's gaze in the first message interface, and then record. Preferably, in order to more accurately determine the reading position, a browsing area may be determined based on the scroll bar of the first message interface, a browsing area may be determined based on the user's line-of-sight stop position, and then the intersection of the two browsing areas may be obtained, The intersection area is determined as the user's reading position, and then recorded.
在一个例子中,消息界面A为第一消息界面,消息界面B为第二消息界面,用户在消息界面A中查看历史聊天消息的过程中,消息界面B中收到新消息,用户切换到消息界面B中处理新聊天消息,在退出消息界面A时,记录消息界面A时的用户阅读位置L。In an example, the message interface A is the first message interface, and the message interface B is the second message interface. During the process of viewing the historical chat messages in the message interface A, the user receives a new message in the message interface B, and the user switches to the message interface. A new chat message is processed in interface B, and when exiting message interface A, the user's reading position L at the time of message interface A is recorded.
本申请实施例中,用户在第二消息界面的输入框中输入第二内容时,第二内容可以为用户通过打字输入的文本内容,也可以为用户通过粘贴输入的内容。In this embodiment of the present 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 by typing, or content input by the user by pasting.
在步骤103中,接收用户的第二输入。In
本申请实施例中,第二输入用于触发由第二消息界面切换至第一消息界面。In this embodiment of the present application, the second input is used to trigger switching from the second message interface to the first message interface.
在步骤104中,在第二内容与第一内容的相似度大于预设阈值的情况下,响应于第二输入,显示第一消息界面中的第一内容。In
在本申请提供的一个实施方式中,考虑到用户同时与多个联系人沟通交流时,通常会快速地在消息界面之间切换,基于这种情况,可以设置在一定时长内切换回第一消息界面时,才定位至第一消息界面上一次退出时的阅读位置,此时,上述步骤104具体可以包括以下步骤(图中未示出):步骤1041和步骤1042,其中,In an embodiment provided in this application, considering that when a user communicates with multiple contacts at the same time, he usually switches between message interfaces quickly. Based on this situation, it can be set to switch back to the first message within a certain period of time. When the interface is opened, the reading position when the first message interface was exited last time is located. At this time, the
在步骤1041中,在第二内容与第一内容的相似度大于预设阈值的情况下,确定第二输入与第一输入的间隔时长是否小于第一预设时长;In step 1041, when the similarity between the second content and the first content is greater than a preset threshold, determine whether the interval duration between the second input and the first input is less than the first preset duration;
在步骤1042中,在间隔时长小于第一预设时长的情况下,响应于第二输入,显示第一消息界面中的第一内容。In step 1042, in the case that the interval duration is less than the first preset duration, the first content in the first message interface is displayed in response to the second input.
本申请实施例中,在确定第二内容与第一内容的相似度是否大于预设阈值时,可以根据用户的复制粘贴操作来确定,或者也可以根据第一内容与第二内容的内容重合度、或者语义分析相似度来确定。In this embodiment of the present application, when determining whether the similarity between the second content and the first content is greater than a preset threshold, it may be determined according to the user's copy and paste operation, or may also be determined according to the degree of content overlap between the first content and the second content , or semantic analysis similarity to determine.
在本申请提供的一个实施方式中,当第二内容为用户通过粘贴输入的内容时,可以根据用户的复制粘贴操作,来确定第二内容与第一内容的相似度是否大于预设阈值,此时,在上述步骤104之前,还可以增加以下步骤:In an embodiment provided in this application, when the second content is the content input by the user through pasting, it can be determined whether the similarity between the second content and the first content is greater than a preset threshold according to the user's copy and paste operation, and this , before the
在接收到第一输入之前接收用户到对第一内容的复制输入,并且第二内容为用户在输入框中通过粘贴输入的内容,并且该粘贴输入所输入的内容为复制输入所复制的第一内容的情况下,确定第二内容与第一内容的相似度大于预设阈值。Before receiving the first input, a copy input from the user to the first content is received, and the second content is the content entered by the user in the input box by pasting, and the content input by the paste input is the first content copied by the copy input In the case of content, it is determined that the similarity between the second content and 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 the preset threshold. .
本申请实施例中,还可以限制用户触发粘贴输入的速度,具体的,设定用户只有在切换至第二消息界面的一定时长内(例如10秒内)触发粘贴输入,才在切换回第一消息界面时显示第一内容。In the embodiment of the present application, the speed at which the user triggers the paste input can also be limited. Specifically, it is set that the user only triggers the paste input within a certain period of time (for example, within 10 seconds) of switching to the second message interface before switching back to the first message interface. The first content is displayed in the message interface.
在一个例子中,用户在消息界面A中查看历史消息记录,需要把消息界面A的部分消息转述给消息界面B,复制这部分历史消息;In an example, the user views the historical message records in the message interface A, and needs to transfer part of the messages of the message interface A to the message interface B, and copy this part of the historical messages;
用户切换到消息界面B,电子设备判断消息界面A退出时是否正在查看并且复制历史消息,如果是,则记录消息界面A退出时的用户阅读位置L。The user switches to the message interface B, and the electronic device determines whether the message interface A is viewing and copies historical messages when it exits, and if so, records the user's reading position L when the message interface A exits.
切换到消息界面B之后,用户马上(例如在10秒钟之内)粘贴在消息界面A复制的消息,电子设备判断在切换到消息界面B之后10秒钟内是否粘贴在消息界面A中复制的消息。After switching to message interface B, the user pastes the message copied in message interface A immediately (for example, within 10 seconds), and the electronic device determines whether the message copied in message interface A is pasted within 10 seconds after switching to message interface B. information.
在消息界面B粘贴消息之后,用户在一定时间内(例如在1分钟之内)切换回消息界面A,电子设备判断消息界面A从退出到切回的间隔时间是否小于1分钟。After the message is pasted on the message interface B, the user switches back to the message interface A within a certain period of time (for example, within 1 minute), and the electronic device determines whether the interval between exiting and switching back the message interface A is less than 1 minute.
当以上条件都满足(判断结果均为是)时,电子设备识别到用户可能需要继续阅读之前的消息记录,在消息界面A中显示前一次阅读位置。When the above conditions are all satisfied (the judgment results are all yes), 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.
可见,本申请实施例中,针对于以下场景:用户在第一消息界面查看历史消息记录,复制其中的消息,之后切换到其他第二消息界面,在第二消息界面中粘贴所复制的消息,电子设备可以识别到用户可能需要继续阅读之前的信息,帮忙用户快速切换到前一次退出时的阅读位置。It can be seen that, in the embodiment of the present application, for the following scenarios: the user views the historical message records on the first message interface, copies the messages therein, then switches to other second message interfaces, and pastes the copied messages in the second message interface, The electronic device can recognize that the user may need to continue reading the previous information, and help the user to quickly switch to the reading position at the previous exit.
在本申请提供的另一个实施方式中,当第二内容为用户通过打字输入的文本内容时,可以根据第一内容与第二内容的内容重合度、或者语义分析相似度,来确定第二内容与第一内容的相似度是否大于预设阈值,此时,该相似度可以包括:内容重合度、或者语义分析相似度,在上述步骤104之前,还可以增加以下步骤:In another embodiment provided in this application, when the second content is text content input by the user by typing, the second content may be determined according to the degree of content overlap or the similarity of semantic analysis between the first content and the second content Whether the similarity with the first content is greater than a preset threshold, in this case, the similarity may include: content coincidence or semantic analysis similarity, and before the
在第二内容与第一内容的内容重合度大于内容重合度阈值的情况下,确定第二内容与第一内容的相似度大于预设阈值;或者,In the case where the content coincidence degree of the second content and the first content is greater than the content coincidence degree threshold, it is determined that the similarity between the second content and the first content is greater than a preset threshold; or,
在第二内容与第一内容的语义分析相似度大于语义分析相似度阈值的情况下,确定第二内容与第一内容的相似度大于预设阈值。In the case that the semantic analysis similarity between the second content and the first content is greater than the semantic analysis similarity threshold, it is determined that the similarity between the second content and the first content is greater than a preset threshold.
本申请实施例中,还可以限制用户在第二消息界面中输入文本内容的速度,具体的,设定用户只有在切换至第二消息界面的一定时长内(例如10秒内)输入聊天消息,才在切换回第一消息界面时显示第一内容。In this embodiment of the present application, the speed at which the user can input text content in the second message interface can also be limited. Specifically, it is set that the user can only input chat messages within a certain period of time (for example, within 10 seconds) of switching to the second message interface, The first content is displayed only when switching back to the first message interface.
在一个例子中,用户在消息界面A查看历史消息记录,需要把消息界面A的关键消息转述给消息界面B;In one example, the user views the historical message records on the message interface A, and needs to relay the key messages of the message interface A to the message interface B;
用户切换到消息界面B,电子设备判断消息界面A退出时是否正在查看历史消息,如果是则记录消息界面A退出时的消息位置L和消息内容T0;The user switches to the message interface B, and the electronic device determines whether the historical message is being viewed when the message interface A exits, and if so, records the message position L and the message content T0 when the message interface A exits;
切换到消息界面B之后,用户马上(例如在10秒钟之内)输入内容T1,电子设备判断在切换到消息界面B之后10秒钟内是否输入内容;After switching to message interface B, the user immediately (for example, within 10 seconds) inputs content T1, and the electronic device determines whether to input content within 10 seconds after switching to message interface B;
电子设备对比用户在消息界面B输入的内容T1和消息界面A退出时的内容T0,两者内容重合度是否高于一定比例(例如70%,即T1的70%以上内容和T0相同)。具体的,例如消息界面A的内容T0为:本周五早上10点召开项目研讨会,请各位与会人员按时参加。消息界面B的内容T1为:本周需要参加项目研讨会。T1一共是11个文字,其中9个文字和T0相同,内容重合度为9/11=81.81%,大于70%;The electronic device compares the content T1 input by the user in the message interface B with the content T0 when the message interface A exits, and whether the content overlap is higher than a certain ratio (for example, 70%, that is, more than 70% of the content of T1 is the same as T0). Specifically, for example, the content T0 of the message interface A is: a project seminar will be held at 10:00 am this Friday, and all participants are requested to attend on time. The content T1 of the message interface B is: You need to participate in the project seminar this week. T1 has a total of 11 characters, of which 9 characters are the same as T0, and the content overlap is 9/11=81.81%, which is greater than 70%;
在消息界面B输入内容之后,用户在一定时间内(例如1分钟)切换回消息界面A,电子设备判断消息界面A从退出到切回的间隔时间是否小于1分钟;After inputting content in message interface B, the user switches back to message interface A within a certain period of time (for example, 1 minute), and the electronic device determines whether the interval between message interface A exiting and switching back is less than 1 minute;
当以上条件都满足(判断结果均为是)时,电子设备识别到用户可能需要继续阅读之前的信息记录,在消息界面A中显示前一次阅读位置。When the above conditions are all satisfied (the judgment results are all yes), 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.
可见,本申请实施例中,针对于以下场景:用户在第一消息界面查看历史消息记录,之后切换到第二消息界面输入内容,如果输入的内容和第一消息界面退出时的内容相似重合,电子设备识别到用户可能需要继续阅读之前的信息,帮忙用户快速切换到前一次退出时的阅读位置。It can be seen that in the embodiment of the present application, for the following scenario: the user checks the historical message record on the first message interface, and then switches to the second message interface to input content, if the input content and the content when the first message interface exits are similar and overlapped, The electronic device recognizes that the user may need to continue reading the previous information, and helps the user to quickly switch to the reading position at the previous exit.
本申请实施例中,在确定第二内容与第一内容的相似度大于预设阈值的情况下,可以在切换回第一消息界面时直接显示第一内容;或者,也可以在切换回第一消息界面时由用户确认是否显示第一内容,在用户确认显示时才显示第一内容。In this embodiment of the present application, when it is determined that the similarity between the second content and the first content is greater than the preset threshold, the first content may be displayed directly when switching back to the first message interface; or, the first content may be displayed when switching back to the first message interface In the message interface, the user confirms whether to display the first content, and the first content is displayed only when the user confirms the display.
在本申请提供的一个实施方式中,在由用户确认是否显示第一内容的情况下,上述步骤104具体可以包括以下步骤:In an implementation manner provided by this application, in the case that the user confirms whether to display the first content, the
在第二内容与第一内容的相似度大于预设阈值的情况下,响应于第二输入,在第一消息界面上显示悬浮窗口,其中,该悬浮窗口中包括目标控件,该目标控件用于触发定位至第一内容;在实际应用中,目标控件可以为按钮或者图标。In the case that the similarity between the second content and the first content is greater than the preset threshold, in response to the second input, a floating window is displayed on the first message interface, wherein the floating window includes a target control, and the target control is used for Trigger to locate the first content; in practical applications, the target control may be a button or an icon.
接收针对目标控件的第四输入,响应于第四输入,显示第一消息界面中的第一内容。A fourth input for the target control is received, and in response to the fourth input, the first content in the first message interface is displayed.
本申请实施例中,为避免悬浮窗口过多遮盖第一消息界面上的内容,影响用户阅读,悬浮窗口的尺寸小于第一消息界面的尺寸。悬浮窗口的位置可以位于第一消息界面的上侧,左侧或者右侧。为了降低对用户阅读的影响,优选的,在第一消息界面的上侧(即顶部)显示悬浮窗口。此外,悬浮窗口中还可以包括用于退出该悬浮窗口的控件,如果用户不需要查看第一消息界面上一次退出时的阅读位置,则可以通过操作该控件,关闭悬浮窗口,或者,如果用户在一定时长内(例如20秒内)不操作悬浮窗口中的任一控件,则可以自动关闭悬浮窗口。In the embodiment of the present application, in order to prevent the floating window from covering the content on the first message interface too much and affecting the user's reading, the size of the floating window is smaller than the size of the first message interface. The position of the floating window may be on the upper side, the left side or the right side of the first message interface. In order to reduce the impact on the user's reading, preferably, a floating window is displayed on the upper side (ie, the top) of the first message interface. In addition, the floating window may also include a control for exiting the floating window. If the user does not need to view the reading position of the first message interface when he exited the last time, the floating window can be closed by operating the control, or if the user is in the If you do not operate any control in the floating window for a certain period of time (for example, within 20 seconds), the floating window can be automatically closed.
本申请实施例中,第四输入可以为点击输入、长按输入或滑动输入。In this 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 present application, if the user continues to switch between the first message interface and other message interfaces, the electronic device continues to intelligently determine whether the previous reading position needs to be restored, and the cycle repeats.
为了便于理解,结合一个具体的例子对本申请实施例的技术方案进行描述,如图2所示,在一个例子中,消息界面A为第一消息界面,消息界面B为第二消息界面,消息界面A中包含99条聊天消息,消息界面B中包含48条聊天消息。用户在消息界面A中查看历史聊天消息的过程中,阅读到第68条聊天消息时需要处理消息界面B中的消息,用户切换到消息界面B中处理聊天消息,在退出消息界面A时,记录消息界面A时的用户阅读位置“即第68条聊天消息的位置”。For ease of understanding, the technical solutions of the embodiments of the present application are described with reference to a specific example. As shown in FIG. 2 , in an example, the message interface A is the first message interface, the message interface B is the second message interface, and the message interface is the second message interface. There are 99 chat messages in A, and 48 chat messages in message interface B. In the process of viewing the historical chat messages in the message interface A, the user needs to process the message in the message interface B when reading the 68th chat message. The user switches to the message interface B to process the chat message, and when exiting the message interface A, records The user's reading position in message interface A is "that is, the position of the 68th chat message".
用户切换到消息界面B之后,在消息界面B中处理聊天消息,例如输入消息内容,用户在处理完消息界面B中的消息后,切换回消息界面A,如果用户处理消息界面B的消息过程中在消息界面B上输入的聊天消息(即第49条聊天消息)与消息界面A中的第68条聊天消息为内容相同或相似的信息,则在切换回消息界面A后,在消息界面A上显示包含目标控件(即名称为“返回上一次退出时的阅读位置”的控件)的悬浮窗口。如果用户点击目标控件,电子设备则定位到第68条聊天消息。After the user switches to the message interface B, the chat message is processed in the message interface B, such as inputting the message content. After the user processes the message in the message interface B, the user switches back to the message interface A. The chat message (that is, the 49th chat message) entered on the message interface B is the same or similar information as the 68th chat message in the message interface A. After switching back to the message interface A, on the message interface A Displays a floating window containing the target control (ie the control named "Return to reading position on last exit"). If the user clicks the target control, the electronic device locates the 68th 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, the first input from the user is received; in response to the first input, the display of the first message interface is canceled, and the second message is displayed interface, and receive the second content input by the user in the input box; receive the second input from the user; when the similarity between the second content and the first content is greater than a preset threshold, in response to the second input, display the first The first content in the message interface. Compared with the prior art, when the user uses the instant messaging application to communicate with multiple contacts at the same time, after processing the chat message in the current message interface, the user can quickly switch back to the historical reading position in the previous message interface, It avoids the tedious operation of the user repeatedly rummaging through the history records, and improves the efficiency of switching the message interface.
在本申请提供的另一个实施例中,还可以根据用户的回翻操作,智能恢复前一次阅读位置,此时,本申请实施例提供的内容显示方法还可以在图1所述实施例的基础上,增加以下步骤:In another embodiment provided by the present application, the previous reading position can also be intelligently restored according to the user's flipping operation. , add the following steps:
在第二内容与第一内容的相似度小于或等于预设阈值的情况下,响应于第二输入,显示第一消息界面;In the case where the similarity between the second content and the first content is less than or equal to the preset threshold, displaying the first message interface in response to the second input;
确定在显示第一消息界面后的第二预设时长内是否接收到第三输入,其中,第三输入包括用于翻看第一消息界面中历史内容的输入;determining whether a third input is received within a second preset time period after the first message interface is displayed, wherein the third input includes an input for viewing historical content in the first message interface;
在接收到第三输入的情况下,显示第一消息界面中的第一内容。In the case of receiving the third input, the first content in the first message interface is displayed.
本申请实施例中,第三输入可以为快速滑动屏幕的输入,也可以为快速拖动进度条的输入。In this embodiment of the present application, the third input may be an input of rapidly sliding the screen, or may be an input of rapidly dragging a progress bar.
在一个例子中,用户在消息界面A查看历史信息记录;In one example, the user views historical information records on the message interface A;
如果其它消息界面B收到新消息,用户切换到消息界面B处理消息,电子设备判断消息界面A退出时是否正在查看历史消息,如果是,则记录消息界面A退出时的用户阅读位置L;If another message interface B receives a new message, the user switches to the message interface B to process the message, and the electronic device determines whether the message interface A is viewing historical messages when it exits, and if so, records the user's reading position L when the message interface A exits;
处理完消息界面B的消息之后,用户在一定时间内(例如1分钟内)切换回消息界面A,电子设备判断消息界面A从退出到切回的间隔时间是否小于1分钟;After processing the message of the message interface B, the user switches back to the message interface A within a certain period of time (for example, within 1 minute), and the electronic device determines whether the interval between the message interface A exiting and the switching back is less than 1 minute;
如果电子设备判断消息界面B自进入至退出期间用户输入的聊天消息与用户阅读位置L处的内容的相似度较低,则切换到消息界面A之后,用户马上(例如在10秒钟之内)往前翻看消息记录,电子设备判断切回消息界面A之后10秒钟内是否翻看历史消息记录;If the electronic device determines that the chat message input by the user during the period from entering to exiting the message interface B has a low similarity to the content at the user's reading position L, the user will immediately (for example, within 10 seconds) switch to the message interface A after switching to the message interface A. Look forward to the message records, and the electronic device determines whether to look at the historical message records within 10 seconds after switching back to the message interface A;
当以上条件都满足(判断结果均为是)时,电子设备识别到用户可能需要继续阅读之前的消息记录,在消息界面A的顶部显示用于触发定位至前一次退出时阅读位置L的控件,提示用户可恢复到前一次阅读位置。When all of the above conditions are met (the judgment results are all yes), the electronic device recognizes that the user may need to continue reading the previous message record, and displays a control on the top of the message interface A for triggering positioning to the reading position L at the previous exit, Prompts the user to return to the previous reading position.
可见,本申请实施例中,针对于以下场景:用户在消息界面A查看历史信息记录,之后切换到其它消息界面处理消息,在一定时间内切换回消息界面A并往前翻看历史消息,电子设备识别到用户可能需要继续阅读之前的消息,帮忙用户快速切换到前一次退出时的阅读位置。It can be seen that, in the embodiments of the present application, for the following scenarios: the user views historical information records on the message interface A, then switches to other message interfaces to process messages, switches back to the message interface A within a certain period of time, and looks forward to the historical messages, the electronic The device recognizes that the user may need to continue reading previous messages, and helps the user to quickly switch to the reading position at the previous exit.
需要说明的是,本申请实施例提供的内容显示方法,执行主体可以为内容显示装置,或者该内容显示装置中的用于执行加载内容显示方法的控制模块。本申请实施例中以内容显示装置执行加载内容显示方法为例,说明本申请实施例提供的内容显示装置。It should be noted that, in the content display method provided by the embodiments of the present application, the execution subject may be a content display device, or a control module in the content display device for executing the loaded content display method. In the embodiment of the present application, the content display device provided by the embodiment of the present application is described by taking the content display device executing the method for displaying loaded content as an example.
图3是本申请实施例提供的一种内容显示装置的结构框图,如图3所示,内容显示装置300,可以包括:第一接收模块301、第一显示模块302、第二接收模块303、第三接收模块304和第二显示模块305,其中,FIG. 3 is a structural block diagram of a content display device provided by an embodiment of the present application. As shown in FIG. 3 , the
第一接收模块301,用于在显示第一消息界面中的第一内容的情况下,接收用户的第一输入;The
第一显示模块302,用于响应于所述第一输入,取消显示所述第一消息界面,显示第二消息界面;a
第二接收模块303,用于接收用户在输入框中输入的第二内容;The
第三接收模块304,用于接收用户的第二输入;a
第二显示模块305,用于在所述第二内容与所述第一内容的相似度大于预设阈值的情况下,响应于所述第二输入,显示所述第一消息界面中的所述第一内容。The
由上述实施例可见,该实施例中,在显示第一消息界面中的第一内容的情况下,接收用户的第一输入;响应于第一输入,取消显示第一消息界面,显示第二消息界面,并接收用户在输入框中输入的第二内容;接收用户的第二输入;在第二内容与第一内容的相似度大于预设阈值的情况下,响应于第二输入,显示第一消息界面中的第一内容。与现有技术相比,在用户使用即时通讯应用同时与多个联系人沟通交流情况下,当处理完当前消息界面中的聊天消息后,可以快速切换回上一消息界面中的历史阅读位置,避免用户反复翻找历史记录的繁琐操作,提高了消息界面切换的效率。As can be seen from the above embodiment, in this embodiment, in the case of displaying the first content in the first message interface, the first input from the user is received; in response to the first input, the display of the first message interface is canceled, and the second message is displayed interface, and receive the second content input by the user in the input box; receive the second input from the user; when the similarity between the second content and the first content is greater than a preset threshold, in response to the second input, display the first The first content in the message interface. Compared with the prior art, when the user uses the instant messaging application to communicate with multiple contacts at the same time, after processing the chat message in the current message interface, the user can quickly switch back to the historical reading position in the previous message interface, It avoids the tedious operation of the user repeatedly rummaging through the history records, and improves the efficiency of switching the message interface.
可选地,作为一个实施例,所述内容显示装置300,还可以包括:Optionally, as an embodiment, the
第一确定模块,用于在接收到所述第一输入之前接收用户到对所述第一内容的复制输入,并且所述第二内容为用户在输入框中通过粘贴输入的内容,并且所述粘贴输入所输入的内容为所述复制输入所复制的第一内容的情况下,确定所述第二内容与所述第一内容的相似度大于预设阈值。a first determining module, configured to receive a copy input of the first content from the user before receiving the first input, and the second content is the content input by the user by pasting in the input box, and the When the content input by the paste input is the first content copied by the copy input, it is determined that the similarity between the second content and the first content is greater than a preset threshold.
可选地,作为一个实施例,所述相似度,可以包括:内容重合度、或者语义分析相似度。Optionally, as an embodiment, the similarity may include: content coincidence or semantic analysis similarity.
可选地,作为一个实施例,所述第二显示模块305,可以包括:Optionally, as an embodiment, the
确定子模块,用于在所述第二内容与所述第一内容的相似度大于预设阈值的情况下,确定所述第二输入与所述第一输入的间隔时长是否小于第一预设时长;A determination submodule, configured to determine whether the interval between the second input and the first input is less than a first preset when the similarity between the second content and the first content is greater than a preset threshold duration;
显示子模块,用于在所述间隔时长小于所述第一预设时长的情况下,响应于所述第二输入,显示所述第一消息界面中的所述第一内容。A display submodule, configured to display the first content in the first message interface in response to the second input when the interval duration is less than the first preset duration.
可选地,作为一个实施例,所述内容显示装置300,还可以包括:Optionally, as an embodiment, the
第三显示模块,用于在所述第二内容与所述第一内容的相似度小于或等于预设阈值的情况下,响应于所述第二输入,显示所述第一消息界面;a third display module, 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 less than or equal to a preset threshold;
第二确定模块,用于确定在显示所述第一消息界面后的第二预设时长内是否接收到第三输入,其中,所述第三输入包括用于翻看所述第一消息界面中历史内容的输入;A second determination module, configured to determine whether a third input is received within a second preset time period after the first message interface is displayed, wherein the third input includes a page for scrolling through the first message interface input of historical content;
第四显示模块,用于在接收到所述第三输入的情况下,显示所述第一消息界面中的所述第一内容。a fourth display module, configured to display the first content in the first message interface when the third input is received.
本申请实施例中的内容显示装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personaldigital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(NetworkAttached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The content display device in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). , PDA), etc., the non-mobile electronic device may be a server, a network attached storage (NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc. The embodiments of the present application There is no specific limitation.
本申请实施例中的内容显示装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The content display device in this embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
本申请实施例提供的内容显示装置能够实现图1方法实施例实现的各个过程,为避免重复,这里不再赘述。The content display apparatus provided in the embodiment of the present application can implement each process implemented by the method embodiment in FIG. 1 , and to avoid repetition, details are not described here.
可选地,如图4所示,本申请实施例还提供一种电子设备400,包括处理器401,存储器402,存储在存储器402上并可在所述处理器401上运行的程序或指令,该程序或指令被处理器401执行时实现上述内容显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 4 , an embodiment of the present application further provides an
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
图5为实现本申请实施例的一种电子设备的硬件结构示意图。该电子设备500包括但不限于:射频单元501、网络模块502、音频输出单元503、输入单元504、传感器505、显示单元506、用户输入单元507、接口单元508、存储器509、以及处理器510等部件。FIG. 5 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application. The
本领域技术人员可以理解,电子设备500还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图5中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the
其中,用户输入单元507,用于在显示单元506显示第一消息界面中的第一内容的情况下,接收用户的第一输入;Wherein, the
显示单元506,用于响应于所述第一输入,取消显示所述第一消息界面,显示第二消息界面;a
用户输入单元507,还用于接收用户在输入框中输入的第二内容;The
用户输入单元507,还用于接收用户的第二输入;a
显示单元506,还用于在所述第二内容与所述第一内容的相似度大于预设阈值的情况下,响应于所述第二输入,显示所述第一消息界面中的所述第一内容。The
可见,本申请实施例中,在用户使用即时通讯应用同时与多个联系人沟通交流情况下,当处理完当前消息界面中的聊天消息后,可以快速切换回上一消息界面中的历史阅读位置,避免用户反复翻找历史记录的繁琐操作,提高了消息界面切换的效率。It can be seen that in the embodiment of the present application, when the user uses the instant messaging application to communicate with multiple contacts at the same time, after processing the chat message in the current message interface, the user can quickly switch back to the historical reading position in the previous message interface , to avoid the tedious operation of the user repeatedly rummaging through the history records, and improve the efficiency of switching the message interface.
可选地,作为一个实施例,处理器510,用于在接收到所述第一输入之前接收用户到对所述第一内容的复制输入,并且所述第二内容为用户在输入框中通过粘贴输入的内容,并且所述粘贴输入所输入的内容为所述复制输入所复制的第一内容的情况下,确定所述第二内容与所述第一内容的相似度大于预设阈值。Optionally, as an embodiment, the
可选地,作为一个实施例,所述相似度包括:内容重合度、或者语义分析相似度。Optionally, as an embodiment, the similarity includes: content coincidence or semantic analysis similarity.
可选地,作为一个实施例,处理器510,还用于在所述第二内容与所述第一内容的相似度大于预设阈值的情况下,确定所述第二输入与所述第一输入的间隔时长是否小于第一预设时长;Optionally, as an embodiment, the
显示单元506,还用于在所述间隔时长小于所述第一预设时长的情况下,响应于所述第二输入,显示所述第一消息界面中的所述第一内容。The
可选地,作为一个实施例,显示单元506,还用于在所述第二内容与所述第一内容的相似度小于或等于预设阈值的情况下,响应于所述第二输入,显示所述第一消息界面;Optionally, as an embodiment, the
处理器510,还用于确定在显示所述第一消息界面后的第二预设时长内是否接收到第三输入,其中,所述第三输入包括用于翻看所述第一消息界面中历史内容的输入;The
显示单元506,还用于在确定接收到所述第三输入的情况下,显示所述第一消息界面中的所述第一内容。The
应理解的是,本申请实施例中,输入单元504可以包括图形处理器(GraphicsProcessing Unit,GPU)5041和麦克风5042,图形处理器5041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元506可包括显示面板5061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板5061。用户输入单元507包括触控面板5071以及其他输入设备5072。触控面板5071,也称为触摸屏。触控面板5071可包括触摸检测装置和触摸控制器两个部分。其他输入设备5072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器509可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器510可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。It should be understood that, in this embodiment of the present application, the
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述内容显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the foregoing content display method embodiment can be achieved, and can achieve the same In order to avoid repetition, the technical effect will not be repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the foregoing embodiments. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述内容显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An 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 used for running a program or an instruction to implement the content display method embodiments described above. Each process can achieve the same technical effect. In order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course hardware can also be used, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.
Claims (10)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110120864.7A CN112764628B (en) | 2021-01-28 | 2021-01-28 | Content display method, apparatus, electronic device 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, apparatus, electronic device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112764628A CN112764628A (en) | 2021-05-07 |
CN112764628B true 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, apparatus, electronic device and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112764628B (en) |
WO (1) | WO2022161265A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112764628B (en) * | 2021-01-28 | 2022-07-19 | 维沃移动通信有限公司 | Content display method, apparatus, electronic device and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109871164A (en) * | 2019-01-25 | 2019-06-11 | 维沃移动通信有限公司 | A message sending method and terminal device |
CN111596818A (en) * | 2020-04-24 | 2020-08-28 | 维沃移动通信有限公司 | Message display method and electronic device |
Family Cites Families (11)
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 |
EP3035184B1 (en) * | 2014-12-15 | 2021-10-20 | Canon Kabushiki Kaisha | User interface apparatus, method for controlling a user interface, and computer-readable storage medium for controlling a user interface |
CN105786507B (en) * | 2016-02-26 | 2022-06-03 | 北京小米移动软件有限公司 | Display interface switching method and device |
US10795947B2 (en) * | 2016-05-17 | 2020-10-06 | Google Llc | Unified message search |
CN106534538B (en) * | 2016-11-17 | 2020-03-06 | 珠海市魅族科技有限公司 | Status bar control method and device of intelligent terminal |
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 |
CN110162371B (en) * | 2019-05-24 | 2024-05-14 | 网易(杭州)网络有限公司 | Display control method and device, electronic equipment and storage medium |
CN111124223A (en) * | 2019-12-11 | 2020-05-08 | 维沃移动通信有限公司 | Application interface switching method and electronic device |
CN111427484A (en) * | 2020-03-09 | 2020-07-17 | 北京达佳互联信息技术有限公司 | Unread session processing method and device |
CN112764628B (en) * | 2021-01-28 | 2022-07-19 | 维沃移动通信有限公司 | Content display method, apparatus, electronic device and storage medium |
-
2021
- 2021-01-28 CN CN202110120864.7A patent/CN112764628B/en active Active
-
2022
- 2022-01-21 WO PCT/CN2022/073104 patent/WO2022161265A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109871164A (en) * | 2019-01-25 | 2019-06-11 | 维沃移动通信有限公司 | A message sending method and terminal device |
CN111596818A (en) * | 2020-04-24 | 2020-08-28 | 维沃移动通信有限公司 | Message display method and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN112764628A (en) | 2021-05-07 |
WO2022161265A1 (en) | 2022-08-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112540821B (en) | Information sending method and electronic equipment | |
CN112988006B (en) | Display method, device, electronic device and storage medium | |
CN112269508B (en) | Display method and device and electronic equipment | |
CN112184168B (en) | Reminder task generation method, device and electronic device | |
CN112565063B (en) | Message processing method and device and electronic equipment | |
CN111984130A (en) | Shortcut operation method and device and electronic equipment | |
US20240045566A1 (en) | Notification message display method and apparatus, device, readable storage medium, and chip | |
CN111813308A (en) | Interface processing method, device, electronic device and storage medium | |
CN112866092B (en) | Group chat creation method and group chat creation device | |
WO2022199454A1 (en) | Display method and electronic device | |
CN112083854A (en) | Application program running method and device | |
CN113141295B (en) | Message display method and device and electronic equipment | |
CN111813305A (en) | Application startup method and device | |
CN113849092A (en) | Content sharing method and device and electronic equipment | |
WO2022213945A1 (en) | Application reminding method and apparatus, and electronic device | |
WO2023134642A1 (en) | Message processing method, message processing apparatus, and electronic device | |
CN112099714A (en) | Screenshot method, device, electronic device and readable storage medium | |
CN112148406A (en) | Page switching method and device, electronic equipment and readable storage medium | |
WO2023125157A1 (en) | Message sending method and apparatus, and electronic device and medium | |
CN113709306B (en) | Session processing method, device and electronic device | |
CN112764628B (en) | Content display method, apparatus, electronic device and storage medium | |
CN112416212B (en) | Program access method, device, electronic device and readable storage medium | |
WO2025040061A1 (en) | Screenshot method and apparatus, electronic device, and readable storage medium | |
CN113885746A (en) | Message sending method, device and electronic device | |
CN113852540B (en) | Information transmission method, information transmission 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 |