WO2019158089A1 - Information processing method and device - Google Patents

Information processing method and device Download PDF

Info

Publication number
WO2019158089A1
WO2019158089A1 PCT/CN2019/074973 CN2019074973W WO2019158089A1 WO 2019158089 A1 WO2019158089 A1 WO 2019158089A1 CN 2019074973 W CN2019074973 W CN 2019074973W WO 2019158089 A1 WO2019158089 A1 WO 2019158089A1
Authority
WO
WIPO (PCT)
Prior art keywords
current application
view
application window
interface
message
Prior art date
Application number
PCT/CN2019/074973
Other languages
French (fr)
Chinese (zh)
Inventor
曾慧琼
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2019158089A1 publication Critical patent/WO2019158089A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • 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

Definitions

  • the present application relates to, but is not limited to, mobile communication technologies, for example, to an information processing method and apparatus.
  • Some group chats for messaging applications can be used to search for keywords for group chat information.
  • the information, and the search results are displayed, but the search results are not the original session interface, that is, the only information displayed is the centralized display of the information required by the keyword search, but not the display.
  • the present application provides an information processing method and apparatus capable of retaining an application window scenario in which the obtained information is located while obtaining desired information.
  • the present application provides an information processing method, including: processing an interface element of a current application window according to a preset filter condition, determining an interface element required by the current application window; and displaying an interface element required by the current application window.
  • the present application also provides a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements any of the above information processing methods.
  • the present application further provides an apparatus for implementing information processing, comprising a processor and a computer readable storage medium, wherein the computer readable storage medium stores instructions for implementing the above-mentioned instructions when the instructions are executed by the processor A method of implementing information processing.
  • the present application further provides an information processing apparatus, including: a processing module, a display module;
  • the processing module is configured to process the interface element of the current application window according to the preset filtering condition, and determine an interface element required by the current application window;
  • the display module is set to display the interface elements required by the current application window.
  • the application further provides an information processing method, including: when triggering the filtering display, setting a filtering condition by using a filtering setting interface of the current application;
  • Figure 1 is a diagram showing an example of a view tree structure of a general group chat session interface
  • Figure 2 is a diagram showing an example of a typical message view
  • FIG. 4 is a schematic diagram of an embodiment of a selection interaction interface of an application requiring interface element filtering in the present application
  • FIG. 5 is a schematic diagram of an application window of a filter display function of an application interface A in the application A;
  • FIG. 6(a) is a schematic diagram of a first implementation manner of an embodiment of a filter setting interface setting of the present application
  • FIG. 6(b) is a schematic diagram showing the process of the second implementation manner of one embodiment of the filter setting interface setting of the present application.
  • 6(c) is a schematic diagram showing the result of a second implementation manner of an embodiment of the filter setting interface setting of the present application.
  • FIG. 7(a) is a schematic diagram of a first implementation manner of another embodiment of a filter setting interface setting of the present application.
  • FIG. 7(b) is a schematic diagram of a second implementation manner of another embodiment of a filter setting interface setting according to the present application.
  • FIG. 8 is a flowchart of an embodiment of processing an interface element of a current application window according to the present application.
  • FIG. 9 is a flow chart of a first embodiment for determining visibility of an interface element according to the present application.
  • FIG. 10 is a flow chart of a second embodiment for determining visibility of an interface element according to the present application.
  • FIG. 11 is a flow chart of an embodiment of a message view in a measurement application window of the present application.
  • FIG. 12 is a flow chart of an embodiment of a message view in a layout application window of the present application.
  • FIG. 13 is a schematic structural diagram of a device for implementing information processing according to the present application.
  • FIG. 14 is a schematic structural diagram of a composition of an information processing apparatus according to the present application.
  • FIG. 15 is a schematic structural diagram of a system for implementing information processing according to the present application.
  • the interactive interface of the application presentation can be seen as a whole view unit called the root view.
  • the root view can be thought of as several large view units. This view that contains one to many subviews is called a view group.
  • an interactive interface of an application can be described by a tree structure composed of views and view groups.
  • Figure 1 is an example view of a general view of the group chat session interface. As shown in Figure 1, a group chat session interface can be viewed as a root view as a whole; different areas of the session interface are sub-view groups below the root view. For example, the group chat title area, the message display area; different sub-view groups are composed of one to more sub-views or an attempted group.
  • Interface elements on the interface are managed in the form of view units.
  • View units are of different types, with text types, image types, and various composite types. Although the types are different, they all have some common properties and executable operations. For example, they all have properties that describe the visibility of the view. By setting visibility, you can control whether an interface element is hidden or displayed on the interface. And size properties, by setting these properties, you can control the display position and display size of an interface element in the window.
  • a view unit can be a basic interface element such as a piece of text, or a set of multiple interface elements, that is, a view group in which multiple view units are combined.
  • Figure 2 is a typical message view example diagram, including several avatar views, time view, name view, message content view and so on.
  • a message can be thought of as a group of views consisting of several subviews. Some of these subviews are of text type and are used to display text.
  • the message view in this article is a combined view, a view group.
  • a message view can consist of multiple subviews with at least text.
  • the group chat of most messaging applications does not provide the ability to "read only someone" or “not see someone” in the group chat session.
  • the applicant of the present application found that, in the case of a large amount of information appearing in a group chat, it is particularly useful if the user wants to see only the content of interest or does not want to be interfered by certain messages if there is such a function.
  • the present application proposes an information processing method.
  • FIG. 3 is a flowchart of the information processing method of the present application. As shown in FIG. 3, the method includes: step 300 and step 301.
  • step 300 the interface elements of the current application window are processed according to the preset filter conditions, and the interface elements required by the current application window are determined.
  • the filtering condition may include, but is not limited to, pre-set key information; the determining an interface element required by the current application window includes: determining, according to whether the interface element matches the preset key information, determining The visibility of the interface element; the interface element whose visibility of the interface element is visible is determined as an interface element required by the current application window.
  • the step includes: obtaining a view tree of the current application window, and traversing the view tree of the current application window by using a preset filter condition to determine the current application window.
  • the view tree includes the visibility of each message view; the view of the message view is visible as the visible message view as the interface element required by the current application window. For specific implementation, refer to the embodiment shown in FIG. 8 below.
  • the traversed matches with the key information, such as the visibility of the message view containing the key information, is visible, does not match the key information, and does not contain the key information.
  • the visibility of the message view is not visible.
  • the filtering condition is: masking the interface elements matching the set key information, the traversed matches with the key information, such as the visibility of the message view containing the key information is invisible, does not match the key information, does not contain the key The visibility of the message view of the information is visible.
  • the obtaining the view tree of the current application window includes: acquiring a window of the current application by using a window management system of the operating system to obtain a root view and an entire view tree corresponding to the current application window.
  • the information processing method of the present application further includes: re-measuring the size of each message view of the entire view tree, and each message according to the measurement.
  • the size of the view re-layouts the interface elements that need to be displayed in the current application window so that visibility is continuously displayed for visible interface elements.
  • step 301 the interface elements required by the current application window are displayed.
  • the interface element As the message information as an example, according to the processed view tree, finally displaying the information to the user in the message session window, that is, the original session scenario, is the visible message information according to the filter condition.
  • the interface element that is invisible for the determined visibility may be hidden or not displayed, or deleted directly.
  • the visibility of the interface element is adjusted by the filtering condition, so that the interface element not required by the current application window is not displayed in the original session scenario, and the filtering display function of the application interface is realized, so that the required information is obtained. It retains the original conversational context in which the information obtained is located.
  • This application also includes: setting filter conditions. For example, the user can set the filtering condition through a preset filtering setting interface of the current application.
  • the user can set the interface element filtering function of the current application to be turned on or off by using a preset filter setting interface of the current application, such as a preset filter switch.
  • a preset filter setting interface of the current application such as a preset filter switch.
  • Turning on the interface element filtering function means that the current application can filter the interface elements in the current application window according to the set filtering conditions; closing the interface element filtering function means that the current application does not respond to the set filtering conditions in the current application window.
  • the interface elements are filtered.
  • the application before the setting of the filtering condition, the application further includes: the user can set an application that needs to perform interface element filtering by using a preset application filtering setting interface, that is, setting an application that can set a filtering condition.
  • the application's window has the above filtering settings interface when the application is running.
  • the user is provided with an application selection interface, and the user selects which applications need to enable the filtering display function of the interface element, so that the filtering setting interface will only appear in the window of the application that the user requests to implement filtering, and no interface element is needed.
  • the filtered app runs, it does not display the filter settings interface on its interface.
  • the application allows the user to set the filtering conditions and the applications that need to be filtered by providing an interactive portal of filtering settings on the application side. After obtaining the filter setting condition through the interactive entry of the filtering setting, the display of the application is processed within the system level, and does not depend on whether the individual application itself provides the information filtering function. Through the information processing method provided by the present application, only the information of interest to the user is presented in the original session interface, and the information that the user is not interested in is shielded.
  • FIG. 4 is a schematic diagram of an embodiment of a selection interaction interface of an application requiring interface element filtering according to the present application.
  • FIG. 5 is a schematic diagram of an application window of a filter display function of an application interface A of the present application.
  • the user opens the application A that needs to be enabled for the filter display function as selected in FIG. 4, in the application.
  • a prompt icon with a filter setting interface appears on the window of A, as shown in the upper right corner of the window in the left side of Figure 5, the message filtering floating icon.
  • clicking the filter hover icon will enter the filter setting interface displayed in the window on the right side of FIG. 5.
  • the window on the right side of FIG. 5 As shown in the window on the right side of FIG.
  • the filtering setting interface in this embodiment provides two single options: one is to view only the message that the user is interested in, and the other is to block the message that the user does not want to see.
  • the user selects a message filtering method and enters a keyword in the corresponding input box, and then clicks the confirmation.
  • the group chat session interface of the current application A will display the message according to the filtering rule set by the user.
  • FIG. 6(a) is a schematic diagram of a first implementation manner of an embodiment of a filter setting interface setting of the present application.
  • the user selects a message that only views key information such as the keyword “Wang Er” in the filtering setting interface.
  • the filter settings interface will automatically close and return to the group chat session of application A.
  • only the messages matching the key information such as the keyword "Wang Er” will be displayed in the group chat session interface, while others do not Messages that match key information such as the keyword "Wang Er” will not be displayed in the group chat session interface.
  • a filter switch for enabling the set filter condition in the current application is also set in the filter setting interface, as shown in FIG. 6(b).
  • the filter setting interface shown on the right side of the diagram.
  • the filter switch is in the off state. Therefore, the set filter condition handles the uneditable state such as the grayed state, and the filter switch is turned off, regardless of whether the user has set the filter condition or not.
  • the information in the current application window is not filtered.
  • the filter switch handles the open state.
  • the last filter setting is the default setting after the filter switch is turned on.
  • the user can also modify the filter conditions, or directly use the filter conditions that were previously set and saved. Only when the filter switch is turned on and the user sets the filter condition, the current application window is filtered and displayed.
  • the user opens the filter switch in the setting interface and is set to see only " Wang Er's message.
  • FIG. 7( a ) is a schematic diagram of a first implementation manner of another embodiment of the filter setting interface setting of the present application.
  • the user selects a message in the filtering setting interface, such as a keyword “Zhang San”.
  • the filter settings interface will automatically close and return to the group chat session of application A.
  • all messages containing key information such as the keyword "Zhang San” in the group chat session interface will no longer be displayed.
  • the filter setting interface is further provided with a filter switch for enabling the set filter condition in the current application.
  • a filter switch for enabling the set filter condition in the current application.
  • the user opens the filter switch in the setting interface, and sets the mask. Zhang San's message.
  • FIG. 8 is a flowchart of an embodiment of processing an interface element of a current application window according to the present application.
  • the group chat session application is taken as an example in the embodiment, and the method includes: Step 800 to Step 806 .
  • step 800 the filter condition is obtained.
  • the filter keyword set by the user may be used as a filter condition in the filter setting interface of the current application that is set in advance. Filtering conditions can be handled by displaying only content that matches the keyword, or by blocking content that matches the keyword.
  • step 801 a root view of the current application window is obtained.
  • the root view of the currently running group chat session interface can be obtained through the window management system in the related art.
  • step 802 a message view node is obtained.
  • This step starts from the root view and traverses each view node in the view tree.
  • the node information is read and subsequently matched with the filter condition.
  • step 803 the filter condition is used to determine the visibility of the message node.
  • step 802 all the sub-views under the message view node obtained in step 802 are obtained one by one, and the keywords obtained in step 800 are compared with the text of each sub-view one by one to determine that the message view in the sub-view is displayed. Still hidden.
  • step 804 it is determined whether there is still a next message view node. If there is still a next unprocessed message view node, then return to step 802 to continue processing the next message view; if the message view nodes have been processed Then, the process proceeds to step 805.
  • step 805 the size of each message view in the view tree is measured.
  • the layout of the interface elements on the group chat session interface needs to be rearranged. For example, the location of the hidden message view is now vacant, and the location of subsequent messages can be adjusted forward. Therefore, before determining the position of the message view to be displayed on the screen, this step is required to measure the size of each message view.
  • step 806 the location of each message view in the view tree is calculated.
  • each view unit obtained in step 805 By the size of each view unit obtained in step 805, the positions of the respective message views can be sequentially calculated in accordance with the layout order.
  • Steps 805 and 806 are a process of re-adjusting the layout of the application interface. Through such adjustment, it is ensured that the display of the interface elements of the application window after the information processing of the present application is still continuous and beautiful.
  • FIG. 9 is a flowchart of a first embodiment for determining visibility of an interface element in the present application.
  • a filter condition set by a user is only displaying content that matches a keyword such as Wang Er, then, for a message
  • the processing of the view node is as shown in FIG. 9, and includes: step 900 to step 904.
  • step 900 a subview of the message view is obtained.
  • step 901 it is determined whether the message text of the sub-view matches the keyword, such as Wang Er. If the text of the sub-view contains a keyword such as Wang Er, indicating that the message is a message that the user wants to view, the process proceeds to step 902. If there is no match, that is, there is no keyword such as Wang Er in the text of the sub view, then step 903 is entered.
  • the keyword such as Wang Er
  • step 902 the visibility of the message view node is set to be visible. End this process.
  • step 903 it is determined whether there is a next subview to continue traversing the view tree. If there are still unprocessed subviews, then return to step 900 to continue processing the next subview; if there are no subviews to process, indicating that the message is not the message the user wants to see, then step 904 is entered.
  • step 904 the message view node is set to be invisible.
  • the parent view to which the subview belongs is regarded as the filtered view element.
  • These subviews are combined to be treated as an interface element, which is either hidden or displayed depending on the filter criteria.
  • FIG. 10 is a flowchart of a second embodiment for determining visibility of an interface element in the present application.
  • a filter condition set by a user is to block content matching a keyword such as a third
  • the processing of the node is as shown in FIG. 10, including: step 1000 to step 1004.
  • step 1000 a subview of the message view is obtained.
  • step 1001 it is determined whether the message text of the sub-view matches the keyword, such as Zhang San. If the text of the sub-view contains a keyword such as Zhang San, indicating that the message is a message that the user wants to block, the process proceeds to step 1002. If there is no match, that is, there is no keyword such as Zhang San in the text of the subview, then the process proceeds to step 1003.
  • step 1002 the message view node is set to be invisible. End this process.
  • step 1003 it is determined whether there is a next subview to continue traversing the view tree. If there is still an unprocessed subview, return to step 1000 to continue processing the next subview; if there is no subview to be processed, indicating that the message is not the message that the user wants to mask, even if the user wants to view the message, then enter the step 1004.
  • step 1004 the message view node is set to be visible.
  • the parent view to which the subview belongs is regarded as the filtered view element.
  • FIG. 11 is a flowchart of an embodiment of measuring a message view in an application window according to the present application.
  • the processing of a message view node is as shown in FIG. 11 .
  • the method includes: step 1100 to step 1104.
  • step 1100 it is determined whether there is an unprocessed message view. If not, it indicates that all the message views in the view tree have been measured, and the process ends when the measurement process ends; if there is an unprocessed message view, the process proceeds to the step. 1101.
  • step 1101 a message view is obtained.
  • step 1102 it is determined whether the visibility of the message view is visible, if it is visible, then proceeds to step 1103; if it is not visible, then proceeds to step 1104.
  • step 1103 the size of the view is calculated based on the parameters of the message view, and returns to step 1100.
  • how to calculate the size of the view is a common technical means for those skilled in the art, and the specific implementation is not intended to limit the scope of protection of the present application, and details are not described herein again.
  • step 1104 the size of the message view is directly set to 0 and returns to step 1100.
  • step 1200 is a flowchart of an embodiment of a message view in a layout application window of the present application. As shown in FIG. 12, the method includes: step 1200 to step 1203.
  • step 1200 it is determined whether there is an unprocessed message view. If not, it indicates that all the message views in the view tree have been processed, and the process of the view position completion is completed; if there is an unprocessed message view, the process is entered. Step 1201.
  • step 1201 a message view is obtained.
  • step 1202 the starting coordinates of the current message view are calculated according to the layout position of the previous message view immediately adjacent to the current message view.
  • the current message view is the first message view, its starting position can start from the origin; if the current message view has a message view before, the current message view is calculated according to parameters such as the coordinates and size of the starting position of the previous message view. The starting position.
  • step 1203 the coordinates of the end point of the current message view are calculated according to the size of the current message view; and according to the starting position obtained in step 1202, combined with parameters such as the size and margin of the message view, the coordinates of the end position of the current message view are calculated.
  • the present application also proposes a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of any of the methods described above for implementing information processing.
  • FIG. 13 is a schematic structural diagram of an apparatus for implementing information processing according to the present application. As shown in FIG. 13, a processor and a computer readable storage medium are stored. The computer readable storage medium stores instructions when the instructions are When the processor executes, any of the above methods for implementing information processing are implemented.
  • the computer readable storage medium includes any one or any of the following: a flash memory, a hard disk, a multimedia card, and a card type memory (for example, a Secure Digital Memory Card (SD) or a Data Register (DX). Memory, etc., random access memory (RAM), static random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (Electrically Erasable Programmable Read-Only Memory (EEPROM), Programmable Read-Only Memory (PROM), magnetic memory, magnetic disk, and optical disk.
  • a flash memory for example, a Secure Digital Memory Card (SD) or a Data Register (DX). Memory, etc., random access memory (RAM), static random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (Electrically Erasable Programmable Read-Only Memory (EEPROM), Programmable Read-Only Memory (PROM), magnetic memory, magnetic disk, and optical disk.
  • SD Secure Digital Memory Card
  • DX Data Register
  • the processor can be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip.
  • CPU Central Processing Unit
  • controller a controller
  • microcontroller a microcontroller
  • microprocessor a microprocessor
  • the present application further provides an information processing method, including: setting a filter condition by using a filter setting interface of the current application when triggering a filter display; processing an interface element of a current application window according to the input filter condition, and determining The interface element required by the current application window; the interface element required to display the current application window.
  • the method before the filtering condition is set by using the currently applied filtering setting interface, the method further includes: setting, by using a filtering setting interface, an interface element filtering function of the current application to be turned on or off.
  • the method before setting the filtering condition, or setting the filtering function of the interface element of the current application to be turned on or off, the method further includes: setting an application that needs to filter the interface element by using a preset application filtering setting interface.
  • different applications may correspond to different filtering setting interfaces, that is, each application has a filtering setting interface corresponding to itself.
  • FIG. 14 is a schematic structural diagram of the information processing apparatus of the present application. As shown in FIG. 14, the method includes at least: a processing module and a display module;
  • the processing module is configured to process the interface elements of the current application window according to the preset filtering conditions, and determine the interface elements required by the current application window.
  • the display module is set to display the interface elements required by the current application window.
  • the processing module is specifically configured to: determine the visibility of the interface element according to whether the interface element matches the key information; determine the interface element whose visibility is visible as the interface element required by the current application window.
  • the processing module is further configured to: obtain a view tree of the current application window, and traverse the view tree by using the filter condition to determine the visibility of each message view included in the view tree; Visibility is the interface element that is visible to the visible interface element that is required by the current application window.
  • the processing module is further configured to: re-measure the size of each message view of the entire view tree, and re-layout the interface elements that need to be displayed in the current application window, so that the visible interface elements are visible continuously. display.
  • the information processing apparatus of the present application further includes: a first setting module configured to set a filtering condition.
  • the first setting module is a filtering setting interface of the application, and different applications may have different filtering setting interfaces, and the user may set the filtering condition by using the filtering setting interface of the current application.
  • the first setting module is further configured to: set an interface element filtering function to enable or disable the current application.
  • the application further includes: a second setting module, configured to set an application that needs to perform interface element filtering.
  • the second setting module is configured to apply an application filtering setting interface, and the user can set an application that needs to perform interface element filtering by using a preset application filtering setting interface, that is, setting an application with setting filtering conditions.
  • the method includes at least: a message application and a filter setting application at an application layer, a window management system and a view system at a system framework layer, and a display system; ,
  • the messaging application is a variety of instant messaging messaging applications running on the operating system. These applications are developed by different developers, such as group chat sessions that provide multi-person instant messaging.
  • the filtering settings application that is, the interactive portal of the filtering settings described above, the user sets the message filtering conditions through the interactive portal.
  • the core function of this interactive portal is to get the user's filter conditions.
  • Both the messaging application and the filtering settings application run at the application layer of the system.
  • the window management system is responsible for the management of the window, including window addition and deletion, display and hiding, focus window and focus application management.
  • the application passes the interactive message to the window through the window management system.
  • a window managed in a window management system associates a window with a view system through a link that holds a root view.
  • the view tree of the current group chat session interface is obtained through the window management system, and the view tree and its sub-views of the session interface are filtered one by one according to the filtering conditions set by the filter setting application, and the message is reached. Filter the purpose of the display.
  • a view system that provides a mechanism for managing control interface elements.
  • interface elements are managed in the form of view units.
  • the window management system obtains the text of the sub-view through the view system, and matches the text with the filtering condition, so as to determine whether the text is a text matching the filtering condition, and further determines the upper level of the text. Whether the message corresponding to the message view is the message to be filtered.
  • Display system set to display the filtered message view.

Abstract

An information processing method and device. The information processing method comprises: performing, according to a preset filtering condition, processing on interface elements for a current application window to determine an interface element required for the current application window (300); and displaying the interface element required for the current application window (301).

Description

信息处理方法及装置Information processing method and device
本申请要求在2018年02月13日提交中国专利局、申请号为201810150918.2的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。The present application claims the priority of the Chinese Patent Application, the entire disclosure of which is hereby incorporated by reference.
技术领域Technical field
本申请涉及但不限于移动通信技术,例如涉及一种信息处理方法及装置。The present application relates to, but is not limited to, mobile communication technologies, for example, to an information processing method and apparatus.
背景技术Background technique
随着即时消息类应用的普遍使用,越来越多的用户使用这类应用相互通信。通过这种即时消息类应用相互发送消息,可以采用一对一的形式,也可以采用多人对多人的形式。其中,多人对多人互发消息,通常以群聊会话这种形式呈现。即多人发送的消息集中在同一个显示窗口中并按照时间先后顺序显示。这种群聊会话为用户提供了一个多人协同交流的空间。大多数的消息类应用都是将消息数据同步到客户端侧,然后,再将消息数据在应用所运行的图形用户界面系统中输出显示。这类消息类应用的显示都是基于图形用户界面系统的显示系统框架的。With the widespread use of instant messaging applications, more and more users are using these applications to communicate with each other. Messages can be sent to each other through such an instant messaging application, either in a one-to-one format or in a multi-person to multi-person format. Among them, multiple people send messages to multiple people, usually in the form of group chat sessions. That is, messages sent by multiple people are concentrated in the same display window and displayed in chronological order. This group chat session provides users with a space for multi-person collaboration. Most messaging applications synchronize message data to the client side, and then output the message data in a graphical user interface system in which the application runs. The display of such message class applications is based on the display system framework of the graphical user interface system.
虽然很多即时消息应用都支持多人会话,但是,大部分应用没有提供对这种多人会话的信息进行过滤处理的功能,有些消息应用的群聊,可以针对群聊信息搜索关键字得到所需的信息,并将搜索结果罗列显示出来,但是,搜索结果展示时已经不是原来的会话界面,也就是说,展示出来的只是按照关键字搜索出的所需的信息的集中显示,而不能展现所需的信息所处的原始的会话情境。Although many instant messaging applications support multi-person conversations, most applications do not provide the ability to filter the information of such multi-person conversations. Some group chats for messaging applications can be used to search for keywords for group chat information. The information, and the search results are displayed, but the search results are not the original session interface, that is, the only information displayed is the centralized display of the information required by the keyword search, but not the display. The original session context in which the required information is located.
发明内容Summary of the invention
本申请提供一种信息处理方法及装置,能够在获得所需信息的同时保留获得的信息所处的应用窗口情景。The present application provides an information processing method and apparatus capable of retaining an application window scenario in which the obtained information is located while obtaining desired information.
本申请提供了一种信息处理方法,包括:根据预先设置的过滤条件对当前应用窗口的界面元素进行处理,确定出当前应用窗口需要的界面元素;显示当前应用窗口需要的界面元素。The present application provides an information processing method, including: processing an interface element of a current application window according to a preset filter condition, determining an interface element required by the current application window; and displaying an interface element required by the current application window.
本申请还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任一项信息处理方法。The present application also provides a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements any of the above information processing methods.
本申请又提供了一种实现信息处理的设备,包括处理器和计算机可读存储介质,所述计算机可读存储介质中存储有指令,当所述指令被所述处理器执行时,实现上述任一项实现信息处理的方法。The present application further provides an apparatus for implementing information processing, comprising a processor and a computer readable storage medium, wherein the computer readable storage medium stores instructions for implementing the above-mentioned instructions when the instructions are executed by the processor A method of implementing information processing.
本申请再提供了一种信息处理装置,包括:处理模块,显示模块;其中,The present application further provides an information processing apparatus, including: a processing module, a display module;
处理模块,设置为根据预先设置的过滤条件对当前应用窗口的界面元素进行处理,确定出当前应用窗口需要的界面元素;The processing module is configured to process the interface element of the current application window according to the preset filtering condition, and determine an interface element required by the current application window;
显示模块,设置为显示当前应用窗口需要的界面元素。The display module is set to display the interface elements required by the current application window.
本申请还提供了一种信息处理方法,包括:当触发过滤显示时,通过当前应用的过滤设置界面设置过滤条件;The application further provides an information processing method, including: when triggering the filtering display, setting a filtering condition by using a filtering setting interface of the current application;
根据输入的过滤条件对当前应用窗口的界面元素进行处理,确定出当前应用窗口需要的界面元素;Processing interface elements of the current application window according to the input filtering conditions, and determining interface elements required by the current application window;
显示当前应用窗口需要的界面元素。Displays the interface elements required by the current application window.
本申请的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请而了解。本申请的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Other features and advantages of the present application will be set forth in the description which follows. The objectives and other advantages of the present invention can be realized and obtained by the structure of the invention.
附图概述BRIEF abstract
附图用来提供对本申请技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本申请的技术方案,并不构成对本申请技术方案的限制。The drawings are used to provide a further understanding of the technical solutions of the present application, and constitute a part of the specification, which is used together with the embodiments of the present application to explain the technical solutions of the present application, and does not constitute a limitation of the technical solutions of the present application.
图1为一个通用的群聊会话界面的视图树状结构示例图;Figure 1 is a diagram showing an example of a view tree structure of a general group chat session interface;
图2为一个典型的消息视图示例图;Figure 2 is a diagram showing an example of a typical message view;
图3为本申请信息处理方法的流程图;3 is a flowchart of an information processing method of the present application;
图4为本申请需要进行界面元素过滤的应用的选择交互界面实施例的示意图;4 is a schematic diagram of an embodiment of a selection interaction interface of an application requiring interface element filtering in the present application;
图5为本申请应用A开启界面元素的过滤显示功能的应用窗口实施例的示意图;FIG. 5 is a schematic diagram of an application window of a filter display function of an application interface A in the application A;
图6(a)为本申请过滤设置界面设置的一个实施例的第一实现方式的示意图;6(a) is a schematic diagram of a first implementation manner of an embodiment of a filter setting interface setting of the present application;
图6(b)为本申请过滤设置界面设置的一个实施例的第二实现方式的过程展示示意图;FIG. 6(b) is a schematic diagram showing the process of the second implementation manner of one embodiment of the filter setting interface setting of the present application;
图6(c)为本申请过滤设置界面设置的一个实施例的第二实现方式的结果展 示示意图;6(c) is a schematic diagram showing the result of a second implementation manner of an embodiment of the filter setting interface setting of the present application;
图7(a)为本申请过滤设置界面设置的另一个实施例的第一实现方式的示意图;7(a) is a schematic diagram of a first implementation manner of another embodiment of a filter setting interface setting of the present application;
图7(b)为本申请过滤设置界面设置的另一个实施例的第二实现方式的示意图;FIG. 7(b) is a schematic diagram of a second implementation manner of another embodiment of a filter setting interface setting according to the present application;
图8为本申请对当前应用窗口的界面元素进行处理的实施例的流程图;8 is a flowchart of an embodiment of processing an interface element of a current application window according to the present application;
图9为本申请确定界面元素可见性的第一实施例的流程图;9 is a flow chart of a first embodiment for determining visibility of an interface element according to the present application;
图10为本申请确定界面元素可见性的第二实施例的流程图;10 is a flow chart of a second embodiment for determining visibility of an interface element according to the present application;
图11为本申请测量应用窗口中的消息视图的实施例的流程图;11 is a flow chart of an embodiment of a message view in a measurement application window of the present application;
图12为本申请布局应用窗口中的消息视图的实施例的流程图;12 is a flow chart of an embodiment of a message view in a layout application window of the present application;
图13为本申请实现信息处理的设备的结构组成示意图;13 is a schematic structural diagram of a device for implementing information processing according to the present application;
图14为本申请信息处理装置的组成结构示意图;14 is a schematic structural diagram of a composition of an information processing apparatus according to the present application;
图15为本申请实现信息处理的系统架构示意图。FIG. 15 is a schematic structural diagram of a system for implementing information processing according to the present application.
具体实施方式Detailed ways
下文中将结合附图对本申请的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
当前各种即时消息类应用大都提供诸如群聊、会议聊天等这种多人即时通信的功能。这些应用安装并运行在各种通信终端操作系统上,其界面显示功能都是基于操作系统提供的图形用户界面开发接口开发的。应用界面的绘制和显示以及管理需要系统的应用框架层来支撑。Currently, various instant messaging applications mostly provide such multi-person instant messaging functions such as group chat, conference chat, and the like. These applications are installed and run on various communication terminal operating systems, and their interface display functions are developed based on the graphical user interface development interface provided by the operating system. The drawing and display of the application interface and management are supported by the application framework layer of the system.
应用呈现的交互界面,可以看成是一个整体的视图单元,称之为根视图。根视图又可以看成是几个大的视图单元组成,这种包含了一个到多个子视图的视图称之为视图组。按照这样的划分,一个应用的某一交互界面,可以用一个由视图和视图组组成的树状结构来描述。图1为一个通用的群聊会话界面的视图树状结构示例图,如图1所示,一个群聊会话界面可以整体看成一个根视图;会话界面的不同区域是根视图下面的子视图组,如群聊标题区域,消息展示区域;不同的子视图组又是由一个到多个子视图或者试图组组成。The interactive interface of the application presentation can be seen as a whole view unit called the root view. The root view can be thought of as several large view units. This view that contains one to many subviews is called a view group. According to this division, an interactive interface of an application can be described by a tree structure composed of views and view groups. Figure 1 is an example view of a general view of the group chat session interface. As shown in Figure 1, a group chat session interface can be viewed as a root view as a whole; different areas of the session interface are sub-view groups below the root view. For example, the group chat title area, the message display area; different sub-view groups are composed of one to more sub-views or an attempted group.
界面上的界面元素以视图单元的形式来管理。视图单元有不同类型,有文本类型的,图片类型的,还有各种复合类型的。虽然类型不同,但是都有一些共同的属性和可执行操作,比如:都具有描述视图的可见性的属性,通过设置 可见性可以控制一个界面元素在界面隐藏还是显示;再如:都具有描述位置和大小的属性,通过设置这些属性,可以控制一个界面元素在窗口的显示位置和显示大小。一个视图单元可以是一个最基本的界面元素如一条文本,也可以是多个界面元素的集合即多个视图单元组合起来的视图组。图2为一个典型的消息视图示例图,包含了头像视图、时间视图、名称视图,消息内容视图等几个子视图。一条消息可以看作是一个由几个子视图组成的视图组。这些子视图有些是文本类型的,用于显示文字。本文中的消息视图是一个组合型的视图即视图组。一个消息视图可以由多个子视图组成,至少包含有文本。Interface elements on the interface are managed in the form of view units. View units are of different types, with text types, image types, and various composite types. Although the types are different, they all have some common properties and executable operations. For example, they all have properties that describe the visibility of the view. By setting visibility, you can control whether an interface element is hidden or displayed on the interface. And size properties, by setting these properties, you can control the display position and display size of an interface element in the window. A view unit can be a basic interface element such as a piece of text, or a set of multiple interface elements, that is, a view group in which multiple view units are combined. Figure 2 is a typical message view example diagram, including several avatar views, time view, name view, message content view and so on. A message can be thought of as a group of views consisting of several subviews. Some of these subviews are of text type and are used to display text. The message view in this article is a combined view, a view group. A message view can consist of multiple subviews with at least text.
大多数消息应用的群聊并没有提供群聊会话界面“只看某人”或者是“不看某人”的发言信息的功能。在实际应用中,本申请申请人发现,对于在群聊中出现大量信息的情况,如果有这种功能,用户想只看自己感兴趣的内容或者不想被某些消息干扰时是特别有用的。为了显示所需信息,同时又能尽可能保留所需信息所处的原始界面信息,本申请提出一种信息处理方法。The group chat of most messaging applications does not provide the ability to "read only someone" or "not see someone" in the group chat session. In practical applications, the applicant of the present application found that, in the case of a large amount of information appearing in a group chat, it is particularly useful if the user wants to see only the content of interest or does not want to be interfered by certain messages if there is such a function. In order to display the required information while retaining as much as possible the original interface information in which the desired information is located, the present application proposes an information processing method.
图3为本申请信息处理方法的流程图,如图3所示,包括:步骤300和步骤301。FIG. 3 is a flowchart of the information processing method of the present application. As shown in FIG. 3, the method includes: step 300 and step 301.
在步骤300中,根据预先设置的过滤条件对当前应用窗口的界面元素进行处理,确定出当前应用窗口需要的界面元素。In step 300, the interface elements of the current application window are processed according to the preset filter conditions, and the interface elements required by the current application window are determined.
在一实施例中,过滤条件可以包括但不限于:预先设置的关键信息;所述确定出当前应用窗口需要的界面元素包括:根据所述界面元素是否与所述预先设置的关键信息匹配,确定所述界面元素的可见性;将所述界面元素的可见性为可见的界面元素确定为所述当前应用窗口需要的界面元素。In an embodiment, the filtering condition may include, but is not limited to, pre-set key information; the determining an interface element required by the current application window includes: determining, according to whether the interface element matches the preset key information, determining The visibility of the interface element; the interface element whose visibility of the interface element is visible is determined as an interface element required by the current application window.
在一实施例中,以界面元素为消息视图为例,本步骤包括:获取当前应用窗口的视图树,使用预先设置的过滤条件遍历所述当前应用窗口的视图树,以判断所述当前应用窗口的视图树包括的每个消息视图的可见性;将消息视图的可见性为可见的消息视图确定为当前应用窗口需要的界面元素。具体实现可参见下文图8所示实施例。In an embodiment, taking the interface element as the message view as an example, the step includes: obtaining a view tree of the current application window, and traversing the view tree of the current application window by using a preset filter condition to determine the current application window. The view tree includes the visibility of each message view; the view of the message view is visible as the visible message view as the interface element required by the current application window. For specific implementation, refer to the embodiment shown in FIG. 8 below.
比如:当过滤条件为:只显示与设置的关键信息匹配的界面元素时,遍历到的与关键信息匹配如含有关键信息的消息视图的可见性为可见,与关键信息不匹配如不包含关键信息的消息视图的可见性为不可见。For example, when the filter condition is: only the interface elements matching the set key information are displayed, the traversed matches with the key information, such as the visibility of the message view containing the key information, is visible, does not match the key information, and does not contain the key information. The visibility of the message view is not visible.
再如:当过滤条件为:屏蔽与设置的关键信息匹配的界面元素时,遍历到的与关键信息匹配如含有关键信息的消息视图的可见性为不可见,与关键信息 不匹配如不包含关键信息的消息视图的可见性为可见。Another example: when the filtering condition is: masking the interface elements matching the set key information, the traversed matches with the key information, such as the visibility of the message view containing the key information is invisible, does not match the key information, does not contain the key The visibility of the message view of the information is visible.
在一实施例中,获取当前应用窗口的视图树包括:利用操作系统的窗口管理系统获取当前应用的窗口,以获取所述当前应用窗口对应的根视图和整个视图树。In an embodiment, the obtaining the view tree of the current application window includes: acquiring a window of the current application by using a window management system of the operating system to obtain a root view and an entire view tree corresponding to the current application window.
在一实施例中,遍历完所有消息视图的可见性后,在步骤301之前,本申请信息处理方法还包括:对整个视图树每个消息视图的大小重新进行测量,根据测量得到的每个消息视图的大小对当前应用窗口中需要显示的界面元素重新布局,以使得可见性为可见的界面元素连续显示。In an embodiment, after traversing the visibility of all the message views, before the step 301, the information processing method of the present application further includes: re-measuring the size of each message view of the entire view tree, and each message according to the measurement. The size of the view re-layouts the interface elements that need to be displayed in the current application window so that visibility is continuously displayed for visible interface elements.
在步骤301中,显示当前应用窗口需要的界面元素。In step 301, the interface elements required by the current application window are displayed.
比如:以界面元素为消息信息为例,会根据处理后的视图树,最终在消息会话窗口中即原始会话情景下显示给用户的是按照过滤条件确定的可见性为可见的消息信息。For example, taking the interface element as the message information as an example, according to the processed view tree, finally displaying the information to the user in the message session window, that is, the original session scenario, is the visible message information according to the filter condition.
在一实施例中,对于确定的可见性为不可见的界面元素,可以是隐藏不显示,或者是直接删除。In an embodiment, the interface element that is invisible for the determined visibility may be hidden or not displayed, or deleted directly.
本申请信息处理方法,通过过滤条件对界面元素的可见性进行调整,使得当前应用窗口不需要的界面元素不显示在原始会话情景下,实现了应用界面的过滤显示功能,使得在获得所需信息的同时保留了获得的信息所处的原始会话情景。In the information processing method of the present application, the visibility of the interface element is adjusted by the filtering condition, so that the interface element not required by the current application window is not displayed in the original session scenario, and the filtering display function of the application interface is realized, so that the required information is obtained. It retains the original conversational context in which the information obtained is located.
本申请之前还包括:设置过滤条件。比如:用户可以通过预先设置的当前应用的过滤设置界面设置所述过滤条件。This application also includes: setting filter conditions. For example, the user can set the filtering condition through a preset filtering setting interface of the current application.
在一实施例中,用户可以通过预先设置的当前应用的过滤设置界面如预先设置的过滤开关,设置开启或关闭当前应用的界面元素过滤功能。开启界面元素过滤功能意味着,当前应用可以根据设置的过滤条件对当前应用窗口中的界面元素进行过滤处理;关闭界面元素过滤功能意味着,当前应用不会根据设置的过滤条件对当前应用窗口中的界面元素进行过滤处理。In an embodiment, the user can set the interface element filtering function of the current application to be turned on or off by using a preset filter setting interface of the current application, such as a preset filter switch. Turning on the interface element filtering function means that the current application can filter the interface elements in the current application window according to the set filtering conditions; closing the interface element filtering function means that the current application does not respond to the set filtering conditions in the current application window. The interface elements are filtered.
在一实施例中,在设置过滤条件之前,本申请还包括:用户可以通过预先设置的应用过滤设置界面,设置需要进行界面元素过滤的应用,即设置具备可以设置过滤条件的应用。In an embodiment, before the setting of the filtering condition, the application further includes: the user can set an application that needs to perform interface element filtering by using a preset application filtering setting interface, that is, setting an application that can set a filtering condition.
对于设置为需要进行界面元素过滤的应用,在应用运行时,应用的窗口中具有上述过滤设置界面。比如:向用户提供一个应用选择界面,由用户选择哪些应用需要开启界面元素的过滤显示功能,这样,过滤设置界面就只会出现在 那些用户要求实现过滤的应用的窗口中,不需要进行界面元素过滤的应用运行时,不会在其界面上显示过滤设置界面。For applications that are set to require interface element filtering, the application's window has the above filtering settings interface when the application is running. For example, the user is provided with an application selection interface, and the user selects which applications need to enable the filtering display function of the interface element, so that the filtering setting interface will only appear in the window of the application that the user requests to implement filtering, and no interface element is needed. When the filtered app runs, it does not display the filter settings interface on its interface.
本申请通过在应用侧提供一个过滤设置的交互入口,让用户对过滤条件和需要过滤的应用进行设置。通过过滤设置的交互入口获取过滤设置条件后,在系统级别内对应用的显示进行处理,不依赖于个体的应用本身是否提供信息过滤功能。通过本申请提供的信息处理方法,既实现了在原有会话界面中只呈现用户感兴趣的信息,又屏蔽了用户不感兴趣的信息。The application allows the user to set the filtering conditions and the applications that need to be filtered by providing an interactive portal of filtering settings on the application side. After obtaining the filter setting condition through the interactive entry of the filtering setting, the display of the application is processed within the system level, and does not depend on whether the individual application itself provides the information filtering function. Through the information processing method provided by the present application, only the information of interest to the user is presented in the original session interface, and the information that the user is not interested in is shielded.
图4为本申请需要进行界面元素过滤的应用的选择交互界面实施例的示意图,通过向用户提供一个应用过滤设置界面,由用户选择哪些应用需要开启消息的过滤显示功能。这样,过滤设置界面就只会出现在那些用户要求实现过滤的应用的窗口中,如图4所示,假设用户选择了应用A并按下确定按键,那么,当应用A运行时,在应用A的窗口中会出现过滤设置界面。FIG. 4 is a schematic diagram of an embodiment of a selection interaction interface of an application requiring interface element filtering according to the present application. By providing an application filtering setting interface to the user, the user selects which applications need to enable the filtering display function of the message. In this way, the filter setting interface will only appear in the window of the application that the user requests to implement filtering. As shown in FIG. 4, if the user selects the application A and presses the OK button, then when the application A runs, the application A The filter settings screen will appear in the window.
图5为本申请应用A开启界面元素的过滤显示功能的应用窗口实施例的示意图,如图5左侧窗口所示,用户打开如图4所选择的需要开启过滤显示功能的应用A,在应用A的窗口之上会出现具有过滤设置界面的提示图标,如图5左侧窗口中右上角所示的消息过滤悬浮图标。当用户想要对当前应用A的群聊会话界面进行过滤显示时,点击该过滤悬浮图标,就会进入图5右侧窗口展示的过滤设置界面。如图5右侧窗口所示,本实施例中的过滤设置界面提供两种单选项:一种是只看用户感兴趣的消息,另一种是屏蔽用户不想看的消息。用户选择一种消息过滤方式并在相应的输入框中输入关键字后点击确认,当前应用A的群聊会话界面便会按照用户设置的过滤规则进行消息的显示。5 is a schematic diagram of an application window of a filter display function of an application interface A of the present application. As shown in the left window of FIG. 5, the user opens the application A that needs to be enabled for the filter display function as selected in FIG. 4, in the application. A prompt icon with a filter setting interface appears on the window of A, as shown in the upper right corner of the window in the left side of Figure 5, the message filtering floating icon. When the user wants to filter the display of the group chat session interface of the current application A, clicking the filter hover icon will enter the filter setting interface displayed in the window on the right side of FIG. 5. As shown in the window on the right side of FIG. 5, the filtering setting interface in this embodiment provides two single options: one is to view only the message that the user is interested in, and the other is to block the message that the user does not want to see. The user selects a message filtering method and enters a keyword in the corresponding input box, and then clicks the confirmation. The group chat session interface of the current application A will display the message according to the filtering rule set by the user.
图6(a)为本申请过滤设置界面设置的一个实施例的第一实现方式的示意图,本实施例中,用户在过滤设置界面中选择只看关键信息如关键字“王二”的消息,点击确定后,过滤设置界面会自动关闭并回到应用A的群聊会话界面,此时,群聊会话界面中就只显示与关键信息如关键字“王二”匹配的消息,而其他不与关键信息如关键字“王二”匹配的消息不会在群聊会话界面中显示。6(a) is a schematic diagram of a first implementation manner of an embodiment of a filter setting interface setting of the present application. In this embodiment, the user selects a message that only views key information such as the keyword “Wang Er” in the filtering setting interface. After clicking OK, the filter settings interface will automatically close and return to the group chat session of application A. At this time, only the messages matching the key information such as the keyword "Wang Er" will be displayed in the group chat session interface, while others do not Messages that match key information such as the keyword "Wang Er" will not be displayed in the group chat session interface.
在一实施例中,在过滤设置界面中还设置有是否在当前应用中启用设置的过滤条件的过滤开关,如图6(b)中所示。如图6(b)的左侧图所示,假设本实施例中点击所示的在应用窗口上面显示的过滤悬浮图标,就会进入图6(b)的中间图所示或者图6(b)的右侧图所展示的过滤设置界面。在图6(b)的中间图中,过滤开关处于关闭状态,因此,设置的过滤条件处理不可编辑状态如置灰状态,此时是 过滤开关关闭的状态,无论用户是否设置过过滤条件,均不对当前应用窗口中的信息进行过滤显示。在图6(b)的右侧图中,过滤开关处理打开状态,此时,如果用户之前对过滤条件进行过设置,打开过滤开关后,上一次的过滤设置即为默认的设置。当然,用户也可以修改过滤条件,也可以直接使用之前设置并保存的过滤条件。只有当过滤开关处于开启状态,并且用户设置了过滤条件时,才会对当前应用窗口进行过滤显示,如图6(c)所示,用户在设置界面中打开过滤开关,并且设置为只看“王二”的消息。In an embodiment, a filter switch for enabling the set filter condition in the current application is also set in the filter setting interface, as shown in FIG. 6(b). As shown in the left diagram of FIG. 6(b), it is assumed that the filtered floating icon displayed on the application window as shown in this embodiment will enter the middle view of FIG. 6(b) or FIG. 6(b). The filter settings interface shown on the right side of the diagram. In the middle diagram of Fig. 6(b), the filter switch is in the off state. Therefore, the set filter condition handles the uneditable state such as the grayed state, and the filter switch is turned off, regardless of whether the user has set the filter condition or not. The information in the current application window is not filtered. In the right side view of Figure 6(b), the filter switch handles the open state. At this time, if the user has previously set the filter condition, the last filter setting is the default setting after the filter switch is turned on. Of course, the user can also modify the filter conditions, or directly use the filter conditions that were previously set and saved. Only when the filter switch is turned on and the user sets the filter condition, the current application window is filtered and displayed. As shown in Figure 6(c), the user opens the filter switch in the setting interface and is set to see only " Wang Er's message.
图7(a)为本申请过滤设置界面设置的另一个实施例的第一实现方式的示意图,本实施例中,用户在过滤设置界面中选择屏蔽关键信息如关键字为“张三”的消息,点击确定后,过滤设置界面会自动关闭并回到应用A的群聊会话界面,此时,群聊会话界面中所有包含有关键信息如关键字“张三”的消息将不再显示。FIG. 7( a ) is a schematic diagram of a first implementation manner of another embodiment of the filter setting interface setting of the present application. In this embodiment, the user selects a message in the filtering setting interface, such as a keyword “Zhang San”. After clicking OK, the filter settings interface will automatically close and return to the group chat session of application A. At this time, all messages containing key information such as the keyword "Zhang San" in the group chat session interface will no longer be displayed.
在一实施例中,在过滤设置界面中还设置有是否在当前应用中启用设置的过滤条件的过滤开关,如图7(b)所示,用户在设置界面中打开过滤开关,并且设置屏蔽“张三”的消息。In an embodiment, the filter setting interface is further provided with a filter switch for enabling the set filter condition in the current application. As shown in FIG. 7(b), the user opens the filter switch in the setting interface, and sets the mask. Zhang San's message.
图8为本申请对当前应用窗口的界面元素进行处理的实施例的流程图,如图8所示,本实施例中以群聊会话应用为例进行描述,包括:步骤800至步骤806。FIG. 8 is a flowchart of an embodiment of processing an interface element of a current application window according to the present application. As shown in FIG. 8 , the group chat session application is taken as an example in the embodiment, and the method includes: Step 800 to Step 806 .
在步骤800:获取过滤条件。At step 800: the filter condition is obtained.
本步骤可以在预先设置的当前应用的过滤设置界面,通过用户设置的过滤关键字作为过滤条件。通过过滤条件的处理方式可以是只显示与关键字匹配的内容,也可以设置为屏蔽与关键字匹配的内容。In this step, the filter keyword set by the user may be used as a filter condition in the filter setting interface of the current application that is set in advance. Filtering conditions can be handled by displaying only content that matches the keyword, or by blocking content that matches the keyword.
在步骤801中,获取当前应用窗口的根视图。In step 801, a root view of the current application window is obtained.
本步骤可以通过相关技术中的窗口管理系统获取当前正在运行的群聊会话界面的根视图。In this step, the root view of the currently running group chat session interface can be obtained through the window management system in the related art.
取得当前应用窗口的根视图后,就可以通过遍历这个群聊会话界面的所有界面元素,寻找到所有的消息并对其进行文本的关键字匹配,从而对消息的可见性进行控制管理。After obtaining the root view of the current application window, it is possible to control and manage the visibility of the message by traversing all the interface elements of the group chat session interface, finding all the messages and matching the keywords of the text.
在步骤802中,获取一个消息视图节点。In step 802, a message view node is obtained.
本步骤从根视图出发,在视图树中遍历每个视图节点,对于一个消息视图节点,会读取节点信息并与过滤条件进行后续匹配处理。This step starts from the root view and traverses each view node in the view tree. For a message view node, the node information is read and subsequently matched with the filter condition.
在步骤803中,使用过滤条件判断该消息节点的可见性。In step 803, the filter condition is used to determine the visibility of the message node.
本步骤中,会逐个获取步骤802获得的消息视图节点下的所有子视图,并使用步骤800中获得的关键字与每个子视图的文本一一比较,用以确定子视图下的消息视图是显示还是隐藏。In this step, all the sub-views under the message view node obtained in step 802 are obtained one by one, and the keywords obtained in step 800 are compared with the text of each sub-view one by one to determine that the message view in the sub-view is displayed. Still hidden.
在步骤804中,判断是否还有下一个消息视图节点,如果还存在下一个未处理过的消息视图节点,则返回步骤802以继续对下一个消息视图进行处理;如果消息视图节点都已处理完,则进入步骤805。In step 804, it is determined whether there is still a next message view node. If there is still a next unprocessed message view node, then return to step 802 to continue processing the next message view; if the message view nodes have been processed Then, the process proceeds to step 805.
在步骤805中,测量视图树中每一个消息视图的大小。In step 805, the size of each message view in the view tree is measured.
由于通过过滤条件使得某些消息视图被隐藏后,群聊会话界面上的界面元素的布局需要重新排列。比如,被隐藏的消息视图原来占据的位置现在空出来了,后续消息的位置可以往前调整。因此,在确定对要显示的消息视图在屏幕上显示的位置之前,需要通过本步骤来测量各个消息视图的大小。Since some message views are hidden by filtering conditions, the layout of the interface elements on the group chat session interface needs to be rearranged. For example, the location of the hidden message view is now vacant, and the location of subsequent messages can be adjusted forward. Therefore, before determining the position of the message view to be displayed on the screen, this step is required to measure the size of each message view.
在步骤806中,计算视图树中每一消息视图的位置。In step 806, the location of each message view in the view tree is calculated.
通过步骤805获得的每个视图单元的大小,就可以依照布局顺序依次计算各个消息视图的位置。By the size of each view unit obtained in step 805, the positions of the respective message views can be sequentially calculated in accordance with the layout order.
步骤805和步骤806就是一个重新调整应用界面布局的过程,通过这样的调整,保证了在进行本申请信息处理后的应用窗口的界面元素的显示仍然是连续的、美观的。 Steps 805 and 806 are a process of re-adjusting the layout of the application interface. Through such adjustment, it is ensured that the display of the interface elements of the application window after the information processing of the present application is still continuous and beautiful.
图9为本申请确定界面元素可见性的第一实施例的流程图,第一实施例中,假设用户设置的过滤条件是只显示与关键字如王二匹配的内容,那么,对于某个消息视图节点的处理如图9所示,包括:步骤900至步骤904。9 is a flowchart of a first embodiment for determining visibility of an interface element in the present application. In the first embodiment, assuming that a filter condition set by a user is only displaying content that matches a keyword such as Wang Er, then, for a message The processing of the view node is as shown in FIG. 9, and includes: step 900 to step 904.
在步骤900中,获取消息视图的一个子视图。In step 900, a subview of the message view is obtained.
在步骤901中,判断子视图的消息文本是否与关键字如王二匹配,如果匹配即子视图的文本中含有关键字如王二,说明该消息是用户想要查看的消息,则进入步骤902;如果不匹配即子视图的文本中没有关键字如王二,则进入步骤903。In step 901, it is determined whether the message text of the sub-view matches the keyword, such as Wang Er. If the text of the sub-view contains a keyword such as Wang Er, indicating that the message is a message that the user wants to view, the process proceeds to step 902. If there is no match, that is, there is no keyword such as Wang Er in the text of the sub view, then step 903 is entered.
在步骤902中,将该消息视图节点的可见性设置为可见。结束本流程。In step 902, the visibility of the message view node is set to be visible. End this process.
在步骤903中,判断是否还有下一个子视图,以继续对视图树进行遍历。如果还存在未处理的子视图,则返回步骤900继续处理下一个子视图;如果没有要处理的子视图,表明此条消息不是用户想要看的消息,则进入步骤904。In step 903, it is determined whether there is a next subview to continue traversing the view tree. If there are still unprocessed subviews, then return to step 900 to continue processing the next subview; if there are no subviews to process, indicating that the message is not the message the user wants to see, then step 904 is entered.
在步骤904中,将该消息视图节点设置为不可见。In step 904, the message view node is set to be invisible.
图9所示的第一实施例中,如果有任何一个子视图的文本可以匹配上过滤 条件中的关键字,那么这个子视图所属于的父视图即被视为过滤出来的视图元素。这些子视图组合起来被视为一个界面元素,整体根据过滤条件被隐藏或者显示。In the first embodiment shown in Fig. 9, if the text of any subview can match the keyword in the upper filter condition, the parent view to which the subview belongs is regarded as the filtered view element. These subviews are combined to be treated as an interface element, which is either hidden or displayed depending on the filter criteria.
图10为本申请确定界面元素可见性的第二实施例的流程图,第二实施例中,假设用户设置的过滤条件是屏蔽与关键字如张三匹配的内容,那么,对于某个消息视图节点的处理如图10所示,包括:步骤1000至步骤1004。10 is a flowchart of a second embodiment for determining visibility of an interface element in the present application. In the second embodiment, assuming that a filter condition set by a user is to block content matching a keyword such as a third, then, for a message view The processing of the node is as shown in FIG. 10, including: step 1000 to step 1004.
在步骤1000中,获取消息视图的一个子视图。In step 1000, a subview of the message view is obtained.
在步骤1001中,判断子视图的消息文本是否与关键字如张三匹配,如果匹配即子视图的文本中含有关键字如张三,说明该消息是用户想要屏蔽的消息,则进入步骤1002;如果不匹配即子视图的文本中没有关键字如张三,则进入步骤1003。In step 1001, it is determined whether the message text of the sub-view matches the keyword, such as Zhang San. If the text of the sub-view contains a keyword such as Zhang San, indicating that the message is a message that the user wants to block, the process proceeds to step 1002. If there is no match, that is, there is no keyword such as Zhang San in the text of the subview, then the process proceeds to step 1003.
在步骤1002中,将该消息视图节点设置为不可见。结束本流程。In step 1002, the message view node is set to be invisible. End this process.
在步骤1003中,判断是否还有下一个子视图,以继续对视图树进行遍历。如果还存在未处理的子视图,则返回步骤1000继续处理下一个子视图;如果没有要处理的子视图,表明此条消息不是用户想要屏蔽的消息即使用户想要查看的消息,则进入步骤1004。In step 1003, it is determined whether there is a next subview to continue traversing the view tree. If there is still an unprocessed subview, return to step 1000 to continue processing the next subview; if there is no subview to be processed, indicating that the message is not the message that the user wants to mask, even if the user wants to view the message, then enter the step 1004.
在步骤1004中,将该消息视图节点设置为可见。In step 1004, the message view node is set to be visible.
图10所示的第二实施例中,如果有任何一个子视图的文本可以匹配上过滤条件中的关键字,那么这个子视图所属于的父视图即被视为过滤出来的视图元素。这些子视图组合起来被视为一个界面元素,整体根据过滤条件被隐藏或者显示。In the second embodiment shown in FIG. 10, if the text of any subview can match the keyword in the upper filter condition, the parent view to which the subview belongs is regarded as the filtered view element. These subviews are combined to be treated as an interface element, which is either hidden or displayed depending on the filter criteria.
图11为本申请测量应用窗口中的消息视图的实施例的流程图,本实施例中,假设用户设置了屏蔽与关键字匹配的内容,那么,对于某条消息视图节点的处理如图11所示,包括:步骤1100至步骤1104。11 is a flowchart of an embodiment of measuring a message view in an application window according to the present application. In this embodiment, if a user sets a content that matches a keyword and a keyword, the processing of a message view node is as shown in FIG. 11 . The method includes: step 1100 to step 1104.
在步骤1100中,判断是否还有未处理的消息视图,如果没有,表明视图树中所有消息视图都已经测量完毕,测量过程结束即结束本流程;如果还有未处理的消息视图,则进入步骤1101。In step 1100, it is determined whether there is an unprocessed message view. If not, it indicates that all the message views in the view tree have been measured, and the process ends when the measurement process ends; if there is an unprocessed message view, the process proceeds to the step. 1101.
在步骤1101中,获取一个消息视图。In step 1101, a message view is obtained.
在步骤1102中,判断该消息视图的可见性是否为可见,如果为可见,则进入步骤1103;如果为不可见,则进入步骤1104。In step 1102, it is determined whether the visibility of the message view is visible, if it is visible, then proceeds to step 1103; if it is not visible, then proceeds to step 1104.
本步骤中只需要读取该消息视图的可见性属性即可获知其是否可见。In this step, you only need to read the visibility property of the message view to know whether it is visible.
在步骤1103中,根据消息视图的参数计算视图的大小,并返回步骤1100。这里,如何计算视图的大小属于本领域技术人员的惯用技术手段,具体实现并不用于限定本申请的保护范围,这里不再赘述。In step 1103, the size of the view is calculated based on the parameters of the message view, and returns to step 1100. Here, how to calculate the size of the view is a common technical means for those skilled in the art, and the specific implementation is not intended to limit the scope of protection of the present application, and details are not described herein again.
在步骤1104中,将该消息视图的大小直接设置为0,并返回步骤1100。In step 1104, the size of the message view is directly set to 0 and returns to step 1100.
图12为本申请布局应用窗口中的消息视图的实施例的流程图,如图12所示,包括:步骤1200至步骤1203。12 is a flowchart of an embodiment of a message view in a layout application window of the present application. As shown in FIG. 12, the method includes: step 1200 to step 1203.
在步骤1200中,判断是否还有未处理的消息视图,如果没有,表明视图树中所有消息视图都已经处理完毕,视图位置计算完成即结束本流程;如果还有未处理的消息视图,则进入步骤1201。In step 1200, it is determined whether there is an unprocessed message view. If not, it indicates that all the message views in the view tree have been processed, and the process of the view position completion is completed; if there is an unprocessed message view, the process is entered. Step 1201.
在步骤1201中,获取一个消息视图。In step 1201, a message view is obtained.
在步骤1202中,根据紧邻当前消息视图的上一消息视图的布局位置,计算当前消息视图的起始坐标。In step 1202, the starting coordinates of the current message view are calculated according to the layout position of the previous message view immediately adjacent to the current message view.
如果当前消息视图是第一个消息视图,则其起始位置可以从原点开始;如果当前消息视图之前有消息视图,则根据上一消息视图的起始位置坐标和大小等参数计算该当前消息视图的起始位置。If the current message view is the first message view, its starting position can start from the origin; if the current message view has a message view before, the current message view is calculated according to parameters such as the coordinates and size of the starting position of the previous message view. The starting position.
在步骤1203中,根据该当前消息视图的大小计算其终点坐标;根据步骤1202中得到的起始位置,再结合该消息视图的大小、边距等参数,计算当前消息视图的终点位置坐标。In step 1203, the coordinates of the end point of the current message view are calculated according to the size of the current message view; and according to the starting position obtained in step 1202, combined with parameters such as the size and margin of the message view, the coordinates of the end position of the current message view are calculated.
这样就最终确定了一个消息视图在应用窗口中的显示位置和范围。This finally determines the display position and extent of a message view in the application window.
本申请还提出了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任意一种实现信息处理的方法的步骤。The present application also proposes a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of any of the methods described above for implementing information processing.
图13为本申请实现信息处理的设备的结构组成示意图,如图13所示,包括处理器和计算机可读存储介质,所述计算机可读存储介质中存储有指令,当所述指令被所述处理器执行时,实现上述任意一种实现信息处理的方法。13 is a schematic structural diagram of an apparatus for implementing information processing according to the present application. As shown in FIG. 13, a processor and a computer readable storage medium are stored. The computer readable storage medium stores instructions when the instructions are When the processor executes, any of the above methods for implementing information processing are implemented.
其中,计算机可读存储介质包括以下任意一种或任意多种:闪存、硬盘、多媒体卡、卡型存储器(例如,安全数码卡(Secure Digital Memory Card,SD)或数据寄存器(Data Register,DX)存储器等)、随机访问存储器(Random Access Memory,RAM)、静态随机访问存储器(Static Random Access Memory,SRAM)、只读存储器(Read Only Memory,ROM)、电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、可编程只读存储器(Programmable Read-Only Memory,PROM)、磁性存储器、磁盘、以及光盘等。The computer readable storage medium includes any one or any of the following: a flash memory, a hard disk, a multimedia card, and a card type memory (for example, a Secure Digital Memory Card (SD) or a Data Register (DX). Memory, etc., random access memory (RAM), static random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (Electrically Erasable Programmable Read-Only Memory (EEPROM), Programmable Read-Only Memory (PROM), magnetic memory, magnetic disk, and optical disk.
处理器可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片等。The processor can be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip.
本申请还提供一种信息处理方法,包括:当触发过滤显示时,通过所述当前应用的过滤设置界面设置所述过滤条件;根据输入的过滤条件对当前应用窗口的界面元素进行处理,确定出当前应用窗口需要的界面元素;显示当前应用窗口需要的界面元素。The present application further provides an information processing method, including: setting a filter condition by using a filter setting interface of the current application when triggering a filter display; processing an interface element of a current application window according to the input filter condition, and determining The interface element required by the current application window; the interface element required to display the current application window.
在一实施例中,通过当前应用的过滤设置界面设置过滤条件之前,还包括:通过过滤设置界面设置开启或关闭当前应用的界面元素过滤功能。In an embodiment, before the filtering condition is set by using the currently applied filtering setting interface, the method further includes: setting, by using a filtering setting interface, an interface element filtering function of the current application to be turned on or off.
在一实施例中,设置过滤条件之前,或者设置开启或关闭当前应用的界面元素过滤功能,还包括:通过预先设置的应用过滤设置界面,设置需要进行界面元素过滤的应用。In an embodiment, before setting the filtering condition, or setting the filtering function of the interface element of the current application to be turned on or off, the method further includes: setting an application that needs to filter the interface element by using a preset application filtering setting interface.
在一实施例中,不同的应用可以对应不同的过滤设置界面,即每个应用具有与自身对应的过滤设置界面。In an embodiment, different applications may correspond to different filtering setting interfaces, that is, each application has a filtering setting interface corresponding to itself.
图14为本申请信息处理装置的组成结构示意图,如图14所示,至少包括:处理模块和显示模块;其中,FIG. 14 is a schematic structural diagram of the information processing apparatus of the present application. As shown in FIG. 14, the method includes at least: a processing module and a display module;
处理模块,设置为根据预先设置的过滤条件对当前应用窗口的界面元素进行处理,确定出当前应用窗口需要的界面元素。The processing module is configured to process the interface elements of the current application window according to the preset filtering conditions, and determine the interface elements required by the current application window.
显示模块,设置为显示当前应用窗口需要的界面元素。The display module is set to display the interface elements required by the current application window.
在一实施例中,处理模块具体设置为:根据界面元素是否与关键信息匹配,确定界面元素的可见性;将可见性为可见的界面元素确定为当前应用窗口需要的界面元素。In an embodiment, the processing module is specifically configured to: determine the visibility of the interface element according to whether the interface element matches the key information; determine the interface element whose visibility is visible as the interface element required by the current application window.
在一实施例中,当界面元素为消息视图时,处理模块还设置为:获取当前应用窗口的视图树,使用过滤条件遍历视图树,以判断视图树包括的每个消息视图的可见性;将可见性为可见的界面元素确定为当前应用窗口需要的界面元素。In an embodiment, when the interface element is a message view, the processing module is further configured to: obtain a view tree of the current application window, and traverse the view tree by using the filter condition to determine the visibility of each message view included in the view tree; Visibility is the interface element that is visible to the visible interface element that is required by the current application window.
在一实施例中,处理模块还设置为:对整个视图树每个消息视图的大小重新进行测量,并对当前应用窗口中需要显示的界面元素重新布局,以使得可见性为可见的界面元素连续显示。In an embodiment, the processing module is further configured to: re-measure the size of each message view of the entire view tree, and re-layout the interface elements that need to be displayed in the current application window, so that the visible interface elements are visible continuously. display.
本申请信息处理装置还包括:第一设置模块,设置为设置过滤条件。在一实施例中,第一设置模块为应用的过滤设置界面,不同应用可以有不同的过滤设置界面,用户可以通过当前应用的该过滤设置界面设置所述过滤条件。The information processing apparatus of the present application further includes: a first setting module configured to set a filtering condition. In an embodiment, the first setting module is a filtering setting interface of the application, and different applications may have different filtering setting interfaces, and the user may set the filtering condition by using the filtering setting interface of the current application.
在一实施例中,第一设置模块还设置为:设置开启或关闭当前应用的界面元素过滤功能。In an embodiment, the first setting module is further configured to: set an interface element filtering function to enable or disable the current application.
本申请还包括:第二设置模块,设置为设置需要进行界面元素过滤的应用。在一实施例中,第二设置模块设置为通过应用过滤设置界面,用户可以通过预先设置的应用过滤设置界面,设置需要进行界面元素过滤的应用,即设置具备设置过滤条件的应用。The application further includes: a second setting module, configured to set an application that needs to perform interface element filtering. In an embodiment, the second setting module is configured to apply an application filtering setting interface, and the user can set an application that needs to perform interface element filtering by using a preset application filtering setting interface, that is, setting an application with setting filtering conditions.
图15为本申请实现信息处理的系统架构示意图,如图15所示,至少包括:位于应用层的消息应用和过滤设置应用、位于系统框架层的窗口管理系统和视图系统,以及显示系统;其中,15 is a schematic structural diagram of a system for implementing information processing according to the present application. As shown in FIG. 15, the method includes at least: a message application and a filter setting application at an application layer, a window management system and a view system at a system framework layer, and a display system; ,
消息应用,是运行在操作系统的各种即时通信类消息应用,这些应用由不同的开发者开发,比如能提供多人即时通讯的群聊会话等功能。The messaging application is a variety of instant messaging messaging applications running on the operating system. These applications are developed by different developers, such as group chat sessions that provide multi-person instant messaging.
过滤设置应用,即上文所述的过滤设置的交互入口,用户通过这个交互入口对消息过滤条件进行设置。这个交互入口的核心功能是获取用户的过滤条件。在一实施例中,还可以进一步设置要对哪些应用进行过滤显示。The filtering settings application, that is, the interactive portal of the filtering settings described above, the user sets the message filtering conditions through the interactive portal. The core function of this interactive portal is to get the user's filter conditions. In an embodiment, it is further possible to set which applications are to be filtered and displayed.
消息应用和过滤设置应用都运行在系统的应用层。Both the messaging application and the filtering settings application run at the application layer of the system.
窗口管理系统,负责窗口的管理工作,包括窗口的添加和删除、显示和隐藏,焦点窗口和焦点应用的管理等。应用程序通过窗口管理系统与窗口传递交互消息。窗口管理系统中管理的窗口通过持有一个根视图的链接将窗口与视图系统联系起来。本文中所述的消息处理方法中,通过窗口管理系统获取当前群聊会话界面的视图树,并按照过滤设置应用设置的过滤条件对会话界面的视图树及其子视图进行逐一过滤处理,达到消息过滤显示的目的。The window management system is responsible for the management of the window, including window addition and deletion, display and hiding, focus window and focus application management. The application passes the interactive message to the window through the window management system. A window managed in a window management system associates a window with a view system through a link that holds a root view. In the message processing method described in the present disclosure, the view tree of the current group chat session interface is obtained through the window management system, and the view tree and its sub-views of the session interface are filtered one by one according to the filtering conditions set by the filter setting application, and the message is reached. Filter the purpose of the display.
视图系统,提供一套管理控制界面元素的机制。在视图系统中,界面元素以视图单元的形式来管理。本申请的信息处理方法中,窗口管理系统通过视图系统获取子视图的文本,并将文本与过滤条件进行匹配,就能判断该文本是否为与过滤条件匹配的文本,进一步判断出该文本上级的消息视图对应的消息是否为要过滤的消息。A view system that provides a mechanism for managing control interface elements. In a view system, interface elements are managed in the form of view units. In the information processing method of the present application, the window management system obtains the text of the sub-view through the view system, and matches the text with the filtering condition, so as to determine whether the text is a text matching the filtering condition, and further determines the upper level of the text. Whether the message corresponding to the message view is the message to be filtered.
显示系统,设置为显示过滤后的消息视图。Display system, set to display the filtered message view.

Claims (20)

  1. 一种信息处理方法,包括:An information processing method includes:
    根据预先设置的过滤条件对当前应用窗口的界面元素进行处理,确定出当前应用窗口需要的界面元素;Processing the interface elements of the current application window according to the preset filtering conditions, and determining the interface elements required by the current application window;
    显示当前应用窗口需要的界面元素。Displays the interface elements required by the current application window.
  2. 根据权利要求1所述的方法,其中,所述预先设置的过滤条件包括:预先设置的关键信息;The method according to claim 1, wherein the pre-set filter condition comprises: key information set in advance;
    所述确定出当前应用窗口需要的界面元素包括:The interface elements required to determine the current application window include:
    根据所述界面元素是否与所述预先设置的关键信息匹配,确定所述界面元素的可见性;Determining the visibility of the interface element according to whether the interface element matches the preset key information;
    将所述界面元素的可见性为可见的界面元素确定为所述当前应用窗口需要的界面元素。An interface element that has visibility of the interface element as visible is determined as an interface element required by the current application window.
  3. 根据权利要求2所述的方法,其中,所述预先设置的关键信息包括:预先设置的关键字。The method of claim 2, wherein the pre-set key information comprises: a preset keyword.
  4. 根据权利要求2所述的方法,其中,所述当前应用窗口的界面元素为消息视图;The method of claim 2, wherein the interface element of the current application window is a message view;
    所述确定出当前应用窗口需要的界面元素包括:The interface elements required to determine the current application window include:
    获取所述当前应用窗口的视图树,使用所述预先设置的过滤条件遍历所述当前应用窗口的视图树,以判断所述当前应用窗口的视图树包括的每个消息视图的可见性;Obtaining a view tree of the current application window, and traversing the view tree of the current application window by using the preset filter condition to determine visibility of each message view included in the view tree of the current application window;
    将消息视图的可见性为可见的消息视图确定为所述当前应用窗口需要的界面元素。The message view with the visibility of the message view as visible is determined as the interface element required by the current application window.
  5. 根据权利要求4所述的方法,其中,所述获取所述当前应用窗口的视图树包括:The method of claim 4, wherein the obtaining a view tree of the current application window comprises:
    利用操作系统的窗口管理系统获取所述当前应用的窗口,以获取所述当前应用窗口对应的根视图和所述视图树。The window of the current application is obtained by using a window management system of the operating system to obtain a root view corresponding to the current application window and the view tree.
  6. 根据权利要求4所述的方法,其中,所述判断所述当前应用窗口的视图树包括的每个消息视图的可见性包括:The method of claim 4, wherein the determining the visibility of each message view included in the view tree of the current application window comprises:
    遍历到的与所述预先设置的关键信息匹配的消息视图的可见性为可见,与所述预先设置的关键信息不匹配的消息视图的可见性为不可见;或者,The visibility of the message view traversed to match the preset key information is visible, and the visibility of the message view that does not match the preset key information is invisible; or
    遍历到的与所述预先设置的关键信息匹配的消息视图的可见性为不可见,与所述预先设置的关键信息不匹配的消息视图的可见性为可见。The visibility of the message view traversed to match the pre-set key information is invisible, and the visibility of the message view that does not match the pre-set key information is visible.
  7. 根据权利要求6所述的方法,在所述判断所述当前应用窗口的视图树包括的每个消息视图的可见性之后,所述显示当前应用窗口需要的界面元素之前,还包括:The method of claim 6, after the determining the visibility of each of the message views included in the view tree of the current application window, before the displaying the interface elements required by the current application window, the method further includes:
    测量所述当前应用窗口的视图树中的每个消息视图的大小;Measure the size of each message view in the view tree of the current application window;
    根据测量得到的所述视图树中的全部的消息视图的大小对所述当前应用窗口中需要显示的界面元素重新布局,以使得可见性为可见的消息视图连续显示。The interface elements that need to be displayed in the current application window are re-arranged according to the measured size of all the message views in the view tree, so that the visibility is continuously displayed for the visible message view.
  8. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1~权利要求7任一项信息处理方法。A computer readable storage medium having stored thereon a computer program, wherein the computer program is executed by a processor to implement an information processing method according to any one of claims 1 to 7.
  9. 一种实现信息处理的设备,包括处理器和计算机可读存储介质,所述计算机可读存储介质中存储有指令,当所述指令被所述处理器执行时,实现权利要求1~权利要求7任一项实现信息处理的方法。An apparatus for implementing information processing, comprising a processor and a computer readable storage medium, wherein the computer readable storage medium stores instructions for implementing the claims 1 to 7 when the instructions are executed by the processor Any method of implementing information processing.
  10. 一种信息处理装置,包括:处理模块和显示模块;其中,An information processing apparatus includes: a processing module and a display module; wherein
    处理模块,设置为根据预先设置的过滤条件对当前应用窗口的界面元素进行处理,确定出当前应用窗口需要的界面元素;The processing module is configured to process the interface element of the current application window according to the preset filtering condition, and determine an interface element required by the current application window;
    显示模块,设置为显示当前应用窗口需要的界面元素。The display module is set to display the interface elements required by the current application window.
  11. 根据权利要求10所述的装置,其中,所述预先设置的过滤条件包括:预先设置的关键信息;The apparatus according to claim 10, wherein said preset filter condition comprises: key information set in advance;
    所述处理模块设置为:根据所述界面元素是否与预先设置的关键信息匹配,确定所述界面元素的可见性;将所述界面元素的可见性为可见的界面元素确定为所述当前应用窗口需要的界面元素。The processing module is configured to determine visibility of the interface element according to whether the interface element matches key information set in advance; determine an interface element whose visibility of the interface element is visible as the current application window The required interface elements.
  12. 根据权利要求10所述的装置,其中,所述当前应用窗口的界面元素为消息视图;所述处理模块设置为:The device according to claim 10, wherein the interface element of the current application window is a message view; the processing module is configured to:
    获取所述当前应用窗口的视图树,使用所述预先设置的过滤条件遍历所述当前应用窗口的视图树,以判断所述当前应用窗口的视图树包括的每个消息视图的可见性;将消息视图的可见性为可见的消息视图确定为所述当前应用窗口需要的界面元素。Obtaining a view tree of the current application window, traversing the view tree of the current application window by using the preset filter condition to determine visibility of each message view included in the view tree of the current application window; The visibility of the view identifies the interface elements that are visible to the current application window for the visible message view.
  13. 根据权利要求12所述的装置,所述处理模块还设置为:The apparatus of claim 12, the processing module further configured to:
    对所述当前应用窗口的视图树中的每个消息视图的大小进行测量;根据测量结果对所述当前应用窗口中需要显示的界面元素重新布局,以使得可见性为可见的消息视图连续显示。Measure the size of each message view in the view tree of the current application window; re-layout the interface elements that need to be displayed in the current application window according to the measurement result, so that the visibility is visible for the visible message view.
  14. 根据权利要求10~13任一项所述的装置,还包括:第一设置模块,为 针对当前应用预先设置的过滤设置界面,设置为设置所述过滤条件。The apparatus according to any one of claims 10 to 13, further comprising: a first setting module configured to set the filtering condition for a filtering setting interface preset for the current application.
  15. 根据权利要求14所述的装置,所述第一设置模块还设置为:设置开启或关闭当前应用的界面元素过滤功能。The apparatus according to claim 14, wherein the first setting module is further configured to: set an interface element filtering function of turning on or off the current application.
  16. 根据权利要求14所述的装置,还包括:第二设置模块,设置为通过预先设置的应用过滤设置界面,设置需要进行界面元素过滤的应用。The apparatus according to claim 14, further comprising: a second setting module configured to set an application requiring interface element filtering through a preset application filtering setting interface.
  17. 一种信息处理方法,包括:An information processing method includes:
    当触发过滤显示时,通过当前应用的过滤设置界面设置过滤条件;When the filter display is triggered, the filter condition is set through the currently applied filter setting interface;
    根据设置的过滤条件对当前应用窗口的界面元素进行处理,确定出当前应用窗口需要的界面元素;The interface elements of the current application window are processed according to the set filtering conditions, and the interface elements required by the current application window are determined;
    显示当前应用窗口需要的界面元素。Displays the interface elements required by the current application window.
  18. 根据权利要求17所述的方法,在所述通过当前应用的过滤设置界面设置过滤条件之前,还包括:The method of claim 17, before the setting the filtering condition by using the currently applied filtering setting interface, further comprising:
    通过所述过滤设置界面中的过滤开关设置开启或关闭当前应用的界面元素过滤功能。The interface element filtering function of the current application is turned on or off by the filter switch setting in the filtering setting interface.
  19. 根据权利要求17或18所述的方法,所述设置过滤条件之前,或者所述设置开启或关闭当前应用的界面元素过滤功能之前,还包括:The method according to claim 17 or 18, before the setting of the filtering condition, or before the setting to enable or disable the interface element filtering function of the current application, the method further includes:
    通过预先设置的应用过滤设置界面,设置需要进行界面元素过滤的应用。Set the application that needs to filter the interface elements through the preset application filter setting interface.
  20. 根据权利要求17或18所述的方法,其中,不同的应用对应不同的所述过滤设置界面。The method according to claim 17 or 18, wherein different applications correspond to different said filter setting interfaces.
PCT/CN2019/074973 2018-02-13 2019-02-13 Information processing method and device WO2019158089A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810150918.2 2018-02-13
CN201810150918.2A CN110309401B (en) 2018-02-13 2018-02-13 Information processing method and device

Publications (1)

Publication Number Publication Date
WO2019158089A1 true WO2019158089A1 (en) 2019-08-22

Family

ID=67618902

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/074973 WO2019158089A1 (en) 2018-02-13 2019-02-13 Information processing method and device

Country Status (2)

Country Link
CN (1) CN110309401B (en)
WO (1) WO2019158089A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007055614A1 (en) * 2005-11-14 2007-05-18 Intel Corporation Structural content filtration of hypotheses in a cognitive control framework
CN103853454A (en) * 2012-12-05 2014-06-11 Lg电子株式会社 Mobile terminal and controlling method thereof
CN104102409A (en) * 2013-04-12 2014-10-15 三星电子(中国)研发中心 Scenario adaptation device and method for user interface
CN105630388A (en) * 2015-12-24 2016-06-01 魅族科技(中国)有限公司 Split-screen display method and terminal
CN107122175A (en) * 2017-03-30 2017-09-01 腾讯科技(深圳)有限公司 Interface creating method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753573B (en) * 2009-12-25 2012-05-23 山东大学 RSS information recommendation method based on collaborative filtering
US10031968B2 (en) * 2012-10-11 2018-07-24 Veveo, Inc. Method for adaptive conversation state management with filtering operators applied dynamically as part of a conversational interface
CN105630267B (en) * 2014-10-29 2019-04-12 阿里巴巴集团控股有限公司 View interface method for managing resource and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007055614A1 (en) * 2005-11-14 2007-05-18 Intel Corporation Structural content filtration of hypotheses in a cognitive control framework
CN103853454A (en) * 2012-12-05 2014-06-11 Lg电子株式会社 Mobile terminal and controlling method thereof
CN104102409A (en) * 2013-04-12 2014-10-15 三星电子(中国)研发中心 Scenario adaptation device and method for user interface
CN105630388A (en) * 2015-12-24 2016-06-01 魅族科技(中国)有限公司 Split-screen display method and terminal
CN107122175A (en) * 2017-03-30 2017-09-01 腾讯科技(深圳)有限公司 Interface creating method and device

Also Published As

Publication number Publication date
CN110309401A (en) 2019-10-08
CN110309401B (en) 2023-12-22

Similar Documents

Publication Publication Date Title
US9483161B2 (en) Controllable display of a collaboration framework system
US9571428B2 (en) Receiving and presenting detailed activity information regarding current and recent instant messaging sessions of remote users
KR20220127887A (en) Method and apparatus for displaying live broadcast data, device and storage medium
WO2017032235A1 (en) Method and device for generating mobile terminal theme
US9946535B2 (en) Application building blocks for on demand and on premise usage
EP2993877B1 (en) Terminal and processing method for head portrait of contact person
US11138216B2 (en) Automatically invoked unified visualization interface
US11797258B2 (en) Conversational analytics with data visualization snapshots
US10013148B2 (en) Method, system and computer storage medium for displaying microblog wall
WO2014099383A1 (en) Multi-tenant content provider
US11341209B2 (en) Method of designing a customizable website
US11729228B2 (en) Systems and methods for sharing content externally from a group-based communication platform
DE112016000290T5 (en) Techniques for sharing applications
US11079907B1 (en) Systems and methods for reacting to messages
US9898255B2 (en) Grid designer for multiple contexts
KR20170094229A (en) Document collaboration through networking credentials
CN107408004A (en) A kind of graphic user interface on method, information processor, portable electric appts and the portable electric appts that information is presented in locking screen interface
CN106062793B (en) The retrieval for the Enterprise content being presented
US20160055263A1 (en) Providing Action Search and Quick Action Cards
US9792008B2 (en) User interface with analytics overlay
WO2019158089A1 (en) Information processing method and device
CN112966300A (en) Schedule data processing method, device, equipment and medium
CN111401990A (en) Hotel information display and management method and device, electronic equipment and cloud service system
US20190026260A1 (en) Difference tracker
CN108427706B (en) Information publishing method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19754956

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 12/01/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19754956

Country of ref document: EP

Kind code of ref document: A1