Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The display method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Please refer to fig. 1, which is a schematic flow chart of a display method according to an embodiment of the present application, and as shown in fig. 1, the display method includes the following steps:
step 101, under the condition of running a target application program, acquiring a target instruction of a first recommended page of the target application program;
102, displaying an abstract of the first recommended page in a second recommended page of the target application program, wherein the second recommended page is different from the first recommended page, the abstract is generated in response to the target instruction, the abstract comprises N pieces of text information, the N pieces of text information are associated with N pieces of first recommended content controls in the first recommended page, and N is a positive integer;
103, under the condition that a first input aiming at the target text information in the abstract is received, displaying a target recommended content control, wherein the target recommended content control is a recommended content control associated with the target text information in the N first recommended content controls.
Based on the method, in the process of running the target application program, the electronic device can respond to the target instruction to generate the abstract of the first recommended page currently displayed by the target application program, and display the abstract of the first recommended page in the refreshed second recommended page, so that the electronic device can display the page including the recommended content control in the first recommended page under the condition that the electronic device receives the input aiming at the text information in the abstract after the recommended page is refreshed. Therefore, by the display method in the embodiment of the application, the user can review the content which is interested by the user in the recommended page before refreshing through the generated abstract, especially after the recommended page is refreshed due to misoperation of the user.
In this embodiment of the application, in step 101, when the electronic device runs the target application, the electronic device may obtain a target instruction for a first recommended page currently displayed by the target application.
The target application may be any application having an information recommendation function. For example, the target application may be a video playing application, and when the video playing application is running, the electronic device may update the page content in the recommended page as shown in fig. 2 according to the content clicked and viewed by the user.
In addition, the first recommendation page is a recommendation page currently displayed in an application program interface by the electronic device when the target application program runs, and the first recommendation page at least includes one recommendation content control, where the recommendation content control is used for a user to view content recommended by the target application program, that is: and displaying the recommended content corresponding to the recommended content control in the application program interface under the condition that the electronic equipment receives input aiming at the recommended content control (such as clicking the recommended content control).
For example, in a case where the electronic device displays the recommendation page 20 as shown in fig. 2, the recommendation page may include the recommended content controls 21 to 26 and profile information associated with each recommended content control, and the like, then, in a case where the electronic device receives a click input for the recommended content control 21, the electronic device plays a cell phone performance introduction video in the video playing application interface, and the like.
In this embodiment of the application, the target instruction may be any instruction used for instructing the electronic device to generate the abstract of the first recommended page, and the target instruction may be generated or triggered according to a preset condition.
Specifically, the above-mentioned obtaining of the target instruction of the first recommended page for the target application includes any one of the following:
generating a target instruction aiming at a first recommended page under the condition that the recommended page of the target application program is refreshed to the first recommended page in response to the received page refreshing input;
under the condition that a preset duration is reached, generating a target instruction of a first recommended page aiming at the target application program;
generating a target instruction in a case that a target input for a first recommended page of the target application program is received.
Based on this, the target instruction can be generated when the recommended page of the application program is refreshed, or the target instruction is generated when a preset time length is reached, or the target instruction is generated according to the input of the user for the recommended page, so that the mode of generating the target instruction can cover the scene of automatically generating the target instruction and the user requirement, and the application scene of the electronic equipment is wider.
In the embodiment of the application, the target instruction for the first recommended page is generated in the case that the recommended page of the target application program is refreshed to the first recommended page in response to the received page refresh input, which can be understood as that when the electronic device refreshes the content of the recommended page of the target application program according to the page refresh input of the user, the electronic device can automatically generate the target instruction when the first recommended page is displayed after the page refresh is completed.
The page refresh input may be any input for instructing to refresh the recommended page of the target application program, and may be at least one of a voice input, an air gesture input, a touch input, and the like. For example, the page refresh input may be a touch input that a user touches a recommended page displayed by the target application and slides toward a preset direction (e.g., downward), and the like.
In the above, when the recommended page of the target application is refreshed to the first recommended page, the target command for the first recommended page may be generated at the same time when the display of the first recommended page is completed, or may be generated when a preset time interval (e.g., 1s, 5s, or 10 s) arrives after the display of the first recommended page is completed, which is not limited herein.
Or the preset time length may be preset in the electronic device, and the electronic device may also generate a target instruction for a first recommended page currently displayed by a target application program when the preset time length is reached.
It should be noted that the preset time period may be a time period preset by a user, and the time period may be a non-periodic time period or a periodic time period.
For example, a time period of 30s (i.e., a preset duration) may be set, and the electronic device generates the target instruction once every 30s to periodically save the summary of the recommended page of the target application.
Alternatively, when the electronic device receives a target input for the first recommended page of the target application program, the target instruction may be generated in response to the target input.
The target input may be any input for instructing the electronic device to generate the summary of the first recommended page, and may be at least one of a voice input, a gesture input during the blank period, a touch input, and the like.
For example, as shown in fig. 2, when the recommendation page 20 is displayed on the display interface of the video playback application, if the electronic device receives an input of two consecutive presses of the volume entity key provided on the side frame of the electronic device by the user, the electronic device generates the target command.
In this embodiment of the application, in the step 102, after the electronic device receives the target instruction, the electronic device may generate the summary of the first recommended page in response to the target instruction, and display the summary of the first recommended page when the recommended page of the target application is refreshed from the first recommended page to the second recommended page.
The abstract of the first recommended page may include N pieces of text information, where the N pieces of text information are associated with N pieces of first recommended content controls in the first recommended page, and here, the N pieces of first recommended content controls may be part or all of the recommended content controls in the first recommended page.
In addition, the electronic device may recognize text information associated with each recommended content control in the first recommended page through an image recognition technology, and generate the abstract of the first recommended page through the recognized text information.
For example, the electronic device may recognize the text in the display area associated with each recommended content control through image recognition technology, and extract the recognized text as the text information associated with the recommended content control, such as recognizing the text in the display area 211 (the display area 211 may be identified by a red frame line) below the recommended content control 21 shown in fig. 2, and shoot the recognized text "shoot all B beautiful glass months |)! Is this exactly glass month? I stroll an … "as textual information associated with the recommended content control 21, and so on.
Alternatively, since the view of the display page of the application program generally follows a tree structure, the summary may be generated by outputting the display content of the recommended page in a text in an eXtensible Markup Language (XML) format and extracting the text information associated with the recommended content control in the XML text. Specifically, before the step 102, the method may further include:
responding to the target instruction, and acquiring a first snapshot of the first recommended page;
generating a first eXtensible Markup Language (XML) text of the first recommended page based on the first snapshot, wherein the first XML text includes text information of each recommended content control in the first recommended page;
and generating the abstract of the first recommended page according to the N text messages in the first XML text.
Based on the above, the XML text of the first recommended page is generated through the snapshot of the first recommended page, and the abstract of the first recommended page is generated through the text information in the XML text of the first recommended page, so that the comprehensiveness of the text information in the generated abstract can be improved due to the fact that the text information of the recommended content control included in the XML text information is comprehensive; meanwhile, the text information of the non-recommended content control in the recommended page can be prevented from being used as the text information for generating the abstract, and the accuracy of the abstract is improved.
The obtaining of the first snapshot of the first recommended page may be understood as that the electronic device performs a screen capture operation on the first recommended page in response to the target instruction, and takes a picture captured by the screen capture operation as the first snapshot.
In this embodiment of the application, the generating of the first XML text of the first recommended page based on the first snapshot may be that the electronic device records information of each control in the first recommended page in a text form based on a preset XML text generating method, so as to generate the first XML text.
It should be noted that the preset XML text generation method may be a conventional XML text generation method in the art, and may be a related method provided by a Software Development Kit (SDK) of an electronic device, which is not described herein again.
The XML text at least includes text information of each recommended content control in the first recommended page, where the text information may be text information displayed in a display area associated with the recommended content control in the recommended page, or may also be profile information of content corresponding to the recommended content control, and so on.
Of course, the XML text may also include other attribute information of each recommended content control. For example, the electronic device may generate an XML Text as shown in fig. 3 according to the snapshot (i.e., the first snapshot) of the recommendation page 20 as shown in fig. 2, where the XML Text includes multiple control attributes and information of the control attributes, the multiple control attributes include at least a Text (Text) attribute (i.e., the Text information is information of the Text attribute), and the multiple control attributes may further include a resource identification (resource-id) attribute, a class (class) attribute, a package (package) attribute, and the like.
In addition, after the first XML text is generated, the electronic device may generate the abstract of the first recommended page according to all text information in the first XML text (i.e., text information of all recommended content controls in the first recommended page), that is, the generated abstract includes all text information in the first XML text, and the N text information is all text information in the first XML text.
For example, the electronic device may generate the summary 1 shown in table 1 below from the text information of all recommended content controls in the XML text shown in fig. 3, that is, the summary 1 includes the text information of all recommended content controls in the XML text.
Table 1 abstract 1
Or, the abstract of the first recommended page is generated according to the N pieces of text information in the first XML text, or the abstract is generated by selecting, from the text information of all recommended content controls included in the first XML text, the text information of the recommended content space that meets the preset control screening rule through the preset control screening rule.
Specifically, the first XML text further includes M pieces of control attribute information of each recommended content control in the first recommended page, where the control attribute information is information of a control attribute, and M is a positive integer;
the generating the summary of the first recommended page according to the N text information in the first XML text may include:
comparing the control attribute information of each recommended content control in the first XML text with corresponding preset control attribute information to obtain a comparison result;
determining N first recommended content controls in all recommended content controls in the first recommended page based on the comparison result, wherein M pieces of control attribute information of the first recommended controls are the same as corresponding preset control attribute information;
and generating the abstract of the first recommended page through the N text messages of the N first recommended content controls in the first XML text.
Based on the above, the text information of the recommended control with the same control attribute information as the corresponding preset control attribute information can be used as the text information for generating the abstract, so that the redundancy of the text information in the abstract can be reduced.
It should be noted that the M pieces of control attribute information correspond to M item tag control attributes, the M item tag control attributes may be at least one control attribute except for a text attribute in an XML text, and each target control attribute may be pre-specified. For example, the M item tag control attribute may include at least one of resource-id, class, and package.
In the embodiment of the application, after obtaining the first XML text, the electronic device may compare the M pieces of control attribute information of each recommended content control with the preset control attribute information corresponding to each piece of control attribute information, respectively, to obtain a comparison result, where the comparison result is used to indicate whether each piece of control attribute information of the recommended content control is consistent with the corresponding preset control attribute information.
The control attribute information of each recommended content control in the first XML text is compared with the corresponding preset control attribute information, it can be understood that the attributes of different project mark controls are provided with the corresponding preset control attribute information, and the control attribute information of each target control attribute is compared with the corresponding preset control attribute information during comparison.
For example, in the case that the M item label control attributes include resource-id, class, and package as shown in fig. 3, the electronic device may compare the resource-id information (i.e., tv.danmaku.bili: id/title) of the recommended content control 21 with the preset resource-id information, compare the class information (i.e., android.widget.textview) with the preset class information, and compare the package information (i.e., tv.danmaku.bili) with the preset package information, to compare the respective control attribute information of the recommended content control 21 as shown in fig. 2.
In addition, the preset control attribute information may be information manually input by a user; or, before comparing the control attribute information of each recommended content control in the first XML text with the corresponding preset control attribute information, the method further includes:
receiving snapshot capture input for a third recommended page under the condition that the target application program is operated and the third recommended page is displayed;
generating a second snapshot of the third recommended page and a second XML text of the third recommended page in response to the snapshot intercept input;
receiving a control indication input in the second snapshot, wherein the control indication input is used for indicating a second recommended content control in the third recommended page;
and responding to the control indication input, and determining the information of the target control attribute of each item of the second recommended content control in the second XML text as preset control attribute information.
Based on the method, the preset control attribute information can be formed through the control attribute information of the recommended content control selected by the user in other recommended pages, so that the operation of setting the preset space attribute information is convenient and fast, and time is saved.
The third recommendation page may be any recommendation page before the first recommendation page. For example, before the video playback application interface of the electronic device displays the recommendation page 20 as shown in FIG. 2, the video playback application interface may display the recommendation page 40 as shown in FIG. 4.
In addition, the snapshot capture input may be any input for instructing the electronic device to capture the picture of the third recommended page, and may be at least one of a voice input, an air gesture input, a touch input, and the like.
It should be noted that, the generating of the second snapshot and the second XML text of the third recommended page may be implemented by taking a captured picture of the third recommended page as the second snapshot, then generating the second XML text based on the second snapshot, and a process of generating the second XML text based on the second snapshot is similar to a process of generating the first XML text based on the first snapshot, which is not described herein again.
In this embodiment of the application, after the second snapshot is generated, the electronic device may directly display the second snapshot, or may display the second snapshot according to an input of a user, for example, when the electronic device receives an input of the user for the second snapshot in the snapshot list, the second snapshot is displayed.
In addition, in the case that the electronic device displays the second snapshot, the electronic device may receive a control indication input for a second recommended content control in a third recommended content page, which is input in the second snapshot by the user.
The control indication input may be any input for indicating the second recommended content control, and may be at least one of a voice input, an air gesture input, a touch input, and the like.
For example, in the case where the electronic device displays a snapshot of the recommendation page 40 as shown in fig. 4, if the electronic device receives a user click input within the display area 41 (the display area 41 may be identified by a red-colored frame), the electronic device receives a control indication input for the recommended content control 42.
In addition, after the electronic device receives the control indication input, the electronic device may determine, in response to the control indication input, information of each target control attribute in the second recommended content control indicated by the control indication input as preset control attribute information corresponding to the target control attribute.
For example, in the case that the M item label control attributes include resource-id, class, and package, and the control indicates that the input indicates the recommended content control 42 as shown in fig. 4, the electronic device may set the preset control attribute information corresponding to resource-id to tv.
In this embodiment of the application, after the comparison result is obtained, the electronic device may determine, based on the comparison result, the N first recommended content controls, that is, recommended content controls in which the M control attribute information is the same as the corresponding preset control attribute information, as the first recommended content controls, from all the recommended content controls in the first recommended page.
For example, when the resource-id information of the recommended content control 21 is the same as the preset resource-id information, the class information is the same as the preset class information, and the package information is the same as the preset package information, the recommended content control 21 is determined as the first recommended content control.
It should be noted that, the N first recommended content controls may be part or all of all recommended content controls in the first recommended page, and are not limited herein.
In addition, after the electronic device determines the N first recommended content controls, the electronic device may generate the summary through text information of the N first recommended content controls in the first XML text.
In this embodiment of the application, after the electronic device generates the summary of the first recommended page in response to the target instruction, the electronic device may directly use the generated summary as content displayed in the second recommended page; alternatively, the generated summary may be processed, and the processed summary may be used as the content displayed on the second recommended page.
Specifically, before the step 102, the method may further include:
performing optimization processing on the text information in the abstract, wherein the optimization processing comprises at least one of the following items:
setting a prompt identifier for the text information;
filtering the text information;
limiting the number of text messages in the summary;
the text information is deduplicated.
Based on the method, the text information in the abstract can be optimized, so that the displayed abstract is more reasonable.
In the embodiment of the present application, the setting of the prompt identifier for the text information may be an identifier for setting an emphasized prompt for the text information, that is, the identified text information is text information with high importance or priority in the abstract. For example, the text information may be identified by a preset color, or the text information may be displayed in an enlarged manner, or the like.
The text information with the prompt mark can be the text information meeting the preset mark condition in the abstract. For example, the summary may be a preset keyword, and when the summary is saved, a prompt identifier is set for text information including the preset keyword in the summary; or, text information identified by the user-defined regular filtering setting prompt can be used, and the like.
In addition, the filtering of the text information may be to remove the text information satisfying a preset filtering condition from the summary. For example, the summary may be a preset keyword, and when the summary is saved, text information including the preset keyword in the summary is filtered; or, the text information which is regularly screened by the user can be customized, and the like.
In the embodiment of the application, the text information in the abstract can be prevented from being too much by limiting the number of the text information in the abstract, and specifically, the number of the text information in the abstract can be limited by setting rules such as the maximum length of the text information in the abstract, the maximum number of the text information, the storage date of the text information and the like.
For example, text information with a length greater than the maximum length in the abstract may be removed, and only text information with a length less than or equal to the maximum length may be saved; or, in a case that the number of the text information in the summary message exceeds the maximum number, deleting part of the text information, for example, deleting the text information corresponding to the recommended content with a low access amount, so that the number of the text information in the summary does not exceed the maximum number; or, according to the storage date of the recommended content corresponding to the text information, only the text information corresponding to the recommended content with the storage date within a preset period is stored, and the like.
In addition, the redundancy of the text information in the abstract can be reduced by carrying out duplication elimination on the text information in the abstract, namely removing the repeated text information in the abstract.
In the embodiment of the application, the displaying of the abstract of the first recommended page in the second recommended page of the target application may be that, after the electronic device generates the abstract of the first recommended page, the electronic device may directly display the abstract in the second recommended page when the recommended page of the target application is switched from the first recommended page to the second recommended page. For example, the summary may be displayed in a semi-transparent floating window in the second recommendation page, and so on.
Or, the displaying the summary of the first recommended page in the second recommended page of the target application program may be that after the electronic device generates the summary of the first recommended page, the electronic device stores the summary; and under the condition that the recommended page of the target application program is switched from the first recommended page to the second recommended page, the electronic equipment receives a second input in the second recommended page, responds to the second input, retrieves the stored abstract of the first recommended page and displays the abstract in the second recommended page.
The second input may be any input for instructing to retrieve the summary of the saved first recommended page, and may be at least one of a voice input, an air gesture input, a touch input, and the like.
For example, in a case that the electronic device currently displays a recommended page (i.e., a second recommended page), if the electronic device receives two consecutive clicks of the user on the currently displayed recommended page, the electronic device displays an abstract of a last recommended page (i.e., a first recommended page) in the currently displayed recommended page.
In this embodiment of the application, in step 103, after the electronic device displays the abstract of the first recommended page in the second recommended page, in a case that a first input for any text information (i.e., target text information) in the N text information in the abstract is received, the electronic device may display a recommended content control (i.e., target recommended content control) associated with the text information in the N first recommended content controls.
The first input may be any input for any text information in the abstract (i.e., target text information) and used for indicating to display a recommended content control associated with the text information, and may be at least one of a voice input, an air gesture input, a touch input, and the like.
It should be noted that the first input may be an input performed in the abstract; alternatively, the input may be made in the content associated with the above summary, and any one of the text information in the summary may be indicated by the input.
Specifically, before the step 103, the method may further include:
acquiring a third snapshot of the first recommended page;
identifying the content corresponding to the N text messages in the abstract in the third snapshot;
associating the summary with the identified third snapshot, wherein the first input is: in a case that the third snapshot is displayed, an input for target content identified in the third snapshot is received, and the target content corresponds to the target text information.
Based on the method, when the abstract is generated, the content corresponding to the text information in the abstract in the third snapshot is identified, and the third snapshot of the first recommended page is associated with the abstract, so that when the user views the content interested before refreshing after refreshing the recommended page, the content interested by the user before refreshing can be called through the text information in the abstract, the content interested by the user before refreshing can be called through the content identified in the third snapshot, and the operation mode of the user is more flexible and convenient.
The third snapshot may be obtained by automatically capturing the picture of the first recommended page by the electronic device when the refresh to the first recommended page is completed, or when the preset is reached, or may be obtained by capturing the picture of the first recommended page by the electronic device according to the input of the user, that is, the third snapshot may be the first snapshot.
In addition, the above-mentioned identifying the content corresponding to the N text messages in the summary in the third snapshot may be identifying an image area where the content corresponding to the text messages in the third snapshot is located with a preset color or line, or the like.
It should be noted that, the above-mentioned storing the summary and the identified third snapshot, and associating the summary with the identified third snapshot, may be to store the summary and the third snapshot to the same file address, and so on.
In this embodiment, the displaying of the target recommended content control may be performed after the summary is generated or associated with the third snapshot in the electronic device, under the condition that the electronic equipment refreshes the recommended page of the target application program to the second recommended page, if the user needs to check the recommended content of the first recommended page before refreshing, the user may cause the electronic device to display at least one of the summary and the third snapshot by input, and under the condition that the electronic equipment displays at least one of the abstract and the third snapshot, if the electronic equipment receives target text information in the user indication abstract, the electronic device may display a target page including a target recommended content control in a display interface of the target application, so that the user can view the content of interest before the recommendation page is refreshed through the target recommendation content control in the target page.
For example, in the case that the electronic device displays the abstract shown in table 1, if the electronic device receives an input (i.e., a first input) that a user copies a starry sky delayed shooting ensemble in [ starry sky delay ] 2020 in the abstract (i.e., target text information) to a search engine of a video playing application and performs a search, the electronic device displays a search result page (i.e., a target page) including a recommended content control 24 (i.e., a target recommended content control) corresponding to the starry sky delayed shooting ensemble in [ starry sky delay ] 2020; or, in a case that the electronic device displays the third snapshot and receives a user input to click an image area corresponding to the "starry sky delayed shooting aggregation" in the third snapshot, the electronic device directly searches for the "starry sky delayed shooting aggregation" in 2020 as a keyword in a background process, and displays a search result page, where the search result page includes the recommended content control 24 (i.e., the target recommended content control) corresponding to the "starry sky delayed shooting aggregation" in 2020 (starry sky delay), and so on.
Referring to fig. 5, an embodiment of the present application provides a display device, as shown in fig. 5, the display device 500 includes:
the instruction obtaining module 501 is configured to, in a case where a target application is running, obtain a target instruction of a first recommended page for the target application;
a first display module 502, configured to display, in a second recommended page of the target application, an abstract of the first recommended page, where the second recommended page is different from the first recommended page, the abstract is generated in response to the target instruction, and the abstract includes N pieces of text information, where the N pieces of text information are associated with N pieces of first recommended content controls in the first recommended page, and N is a positive integer;
a second display module 503, configured to display a target recommended content control in a case that a first input for target text information in the abstract is received, where the target recommended content control is a recommended content control associated with the target text information in the N first recommended content controls.
Based on this, in the process of running the target application program, the electronic device may respond to the target instruction to generate a summary of a first recommended page currently displayed by the target application program, and display the summary of the first recommended page in the refreshed second recommended page, so that the electronic device may display a page including the recommended content control in the first recommended page in a case where the electronic device receives an input for text information in the summary after the recommended page is refreshed. Therefore, by the display method in the embodiment of the application, the user can review the content which is interested by the user in the recommended page before refreshing through the generated abstract, especially after the recommended page is refreshed due to misoperation of the user.
Optionally, the apparatus 500 further includes:
the first snapshot obtaining module is used for responding to the target instruction and obtaining a first snapshot of the first recommended page;
a first XML text generating module, configured to generate a first XML text of the first recommended page based on the first snapshot, where the first XML text includes text information of each recommended content control in the first recommended page;
and the abstract generating module is used for generating an abstract of the first recommended page according to the N text messages in the first XML text.
Based on the above, the XML text of the first recommended page is generated through the snapshot of the first recommended page, and the abstract of the first recommended page is generated according to the text information in the XML text of the first recommended page, so that the comprehensiveness of the text information in the generated abstract can be improved due to the fact that the text information of the recommended content control included in the XML text information is comprehensive; meanwhile, the text information of the non-recommended content control in the recommended page can be prevented from being used as the text information for generating the abstract, and the accuracy of the abstract is improved.
Optionally, the first XML text further includes M pieces of control attribute information of each recommended content control in the first recommended page, where the control attribute information is information of a target control attribute, and M is a positive integer;
the abstract generation module comprises:
the comparison unit is used for comparing the control attribute information of each recommended content control in the first XML text with the corresponding preset control attribute information to obtain a comparison result;
a control determining unit, configured to determine, based on the comparison result, N first recommended content controls from among all recommended content controls in the first recommended page, where the M pieces of control attribute information of the first recommended control are all the same as corresponding preset control attribute information;
and the abstract generating unit is used for generating an abstract of the first recommended page according to the N text information of the N first recommended content controls in the first XML text.
Based on the above, the text information of the recommended control with the same control attribute information as the corresponding preset control attribute information can be used as the text information for generating the abstract, so that the redundancy of the text information in the abstract can be reduced.
Optionally, the digest generation module further includes:
the snapshot intercepting input receiving unit is used for receiving snapshot intercepting input aiming at a third recommended page under the condition that the target application program is operated and the third recommended page is displayed;
a second XML text generating unit, configured to generate a second snapshot of the third recommended page and generate a second XML text of the third recommended page in response to the snapshot intercepting input;
a control indication input receiving unit, configured to receive a control indication input in the second snapshot when the second snapshot is displayed, where the control indication input is used to indicate a second recommended content control in the third recommended page;
and the attribute information determining unit is used for responding to the control indication input and determining the information of the target control attribute of each item of the second recommended content control in the second XML text as preset control attribute information.
Based on the method, the preset control attribute information can be formed through the control attribute information of the recommended content control selected by the user in other recommended pages, so that the operation of setting the preset space attribute information is convenient and fast, and time is saved.
Optionally, the apparatus 500 further includes:
the abstract optimization module is used for optimizing the text information in the abstract, wherein the optimization comprises at least one of the following items:
setting a prompt identifier for the text information;
filtering the text information;
limiting the number of text messages in the summary;
the text information is deduplicated.
Based on the method, the text information in the abstract can be optimized, so that the displayed abstract is more reasonable.
Optionally, the instruction obtaining module 501 is specifically configured to any one of the following:
generating a target instruction aiming at a first recommended page under the condition that the recommended page of the target application program is refreshed to the first recommended page in response to the received page refreshing input;
under the condition that a preset duration is reached, generating a target instruction of a first recommended page aiming at the target application program;
generating a target instruction in a case that a target input for a first recommended page of the target application program is received.
Based on this, the target instruction can be generated when the recommended page of the application program is refreshed, or the target instruction is generated when a preset time length is reached, or the target instruction is generated according to the input of the user for the recommended page, so that the mode of generating the target instruction can cover the scene of automatically generating the target instruction and the user requirement, and the application scene of the electronic equipment is wider.
Optionally, the apparatus 500 further includes:
the second snapshot obtaining module is used for obtaining a third snapshot of the first recommended page;
the identification module is used for identifying the contents corresponding to the N text messages in the abstract in the third snapshot;
an association module, configured to associate the summary with the identified third snapshot, where the first input is: in a case that the third snapshot is displayed, an input for target content identified in the third snapshot is received, and the target content corresponds to the target text information.
Based on the method, when the abstract is generated, the content corresponding to the text information in the abstract in the third snapshot is identified, and the third snapshot of the first recommended page is associated with the abstract, so that when the user views the content interested before refreshing after refreshing the recommended page, the content interested by the user before refreshing can be called through the text information in the abstract, the content interested by the user before refreshing can be called through the content identified in the third snapshot, and the operation mode of the user is more flexible and convenient.
The display device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The display device provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 6, an electronic device 600 is further provided in this embodiment of the present application, where the electronic device 600 includes a processor 601, a memory 602, and a program or an instruction stored in the memory 602 and capable of being executed on the processor 601, and when the program or the instruction is executed by the processor 601, the process of the display method embodiment is implemented, and the same technical effect can be achieved, and is not described herein again to avoid repetition.
It should be noted that the first electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.
Those skilled in the art will appreciate that the electronic device 700 may also include a power supply (e.g., a battery) for powering the various components, and the power supply may be logically coupled to the processor 710 via a power management system, such that the functions of managing charging, discharging, and power consumption may be performed via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
Wherein, the processor 710 is configured to:
under the condition of running a target application program, acquiring a target instruction of a first recommended page of the target application program;
a display unit 706 for:
displaying an abstract of the first recommended page in a second recommended page of the target application program, wherein the second recommended page is different from the first recommended page, the abstract is generated in response to the target instruction, the abstract comprises N pieces of text information, the N pieces of text information are associated with N pieces of first recommended content control in the first recommended page, and N is a positive integer;
and under the condition that a first input aiming at the target text information in the abstract is received, displaying a target recommended content control, wherein the target recommended content control is a recommended content control associated with the target text information in the N first recommended content controls.
Based on this, in the process of running the target application program, the electronic device may respond to the target instruction to generate a summary of a first recommended page currently displayed by the target application program, and display the summary of the first recommended page in the refreshed second recommended page, so that the electronic device may display a page including the recommended content control in the first recommended page in a case where the electronic device receives an input for text information in the summary after the recommended page is refreshed. Therefore, by the display method in the embodiment of the application, the user can review the content which is interested by the user in the recommended page before refreshing through the generated abstract, especially after the recommended page is refreshed due to misoperation of the user.
Optionally, the processor 710 is further configured to:
responding to the target instruction, and acquiring a first snapshot of the first recommended page;
generating a first extensible markup language (XML) text of the first recommended page based on the first snapshot, wherein the first XML text comprises text information of each recommended content control in the first recommended page;
and generating the abstract of the first recommended page according to the N text messages in the first XML text.
Based on the above, the XML text of the first recommended page is generated through the snapshot of the first recommended page, and the abstract of the first recommended page is generated through the text information in the XML text of the first recommended page, so that the comprehensiveness of the text information in the generated abstract can be improved due to the fact that the text information of the recommended content control included in the XML text information is comprehensive; meanwhile, the text information of the non-recommended content control in the recommended page can be prevented from being used as the text information for generating the abstract, and the accuracy of the abstract is improved.
Optionally, the first XML text further includes M pieces of control attribute information of each recommended content control in the first recommended page, where the control attribute information is information of a target control attribute, and M is a positive integer;
the processor 710 is specifically configured to:
comparing the control attribute information of each recommended content control in the first XML text with corresponding preset control attribute information to obtain a comparison result;
determining N first recommended content controls in all recommended content controls in the first recommended page based on the comparison result, wherein M pieces of control attribute information of the first recommended controls are the same as corresponding preset control attribute information;
and generating the abstract of the first recommended page through the N text messages of the N first recommended content controls in the first XML text.
Based on the above, the text information of the recommended control with the same control attribute information as the corresponding preset control attribute information can be used as the text information for generating the abstract, so that the redundancy of the text information in the abstract can be reduced.
Optionally, the user input unit 707 is configured to:
receiving snapshot capture input for a third recommended page under the condition that the target application program is operated and the third recommended page is displayed;
the processor 710 is specifically configured to:
generating a second snapshot of the third recommended page and a second XML text of the third recommended page in response to the snapshot intercept input;
a user input unit 707 further for:
receiving a control indication input in the second snapshot with the second snapshot displayed, wherein the control indication input is used for indicating a second recommended content control in the third recommended page;
the processor 710 is specifically configured to:
and responding to the control indication input, and determining the information of the target control attribute of each item of the second recommended content control in the second XML text as preset control attribute information.
Based on the method, the preset control attribute information can be formed through the control attribute information of the recommended content control selected by the user in other recommended pages, so that the operation of setting the preset space attribute information is convenient and fast, and time is saved.
Optionally, the processor 710 is further configured to:
performing optimization processing on the text information in the abstract, wherein the optimization processing comprises at least one of the following items:
setting a prompt identifier for the text information;
filtering the text information;
limiting the number of text messages in the summary;
the text information is deduplicated.
Based on the method, the text information in the abstract can be optimized, so that the displayed abstract is more reasonable.
Optionally, the processor 710 is specifically configured to any one of:
generating a target instruction aiming at a first recommended page under the condition that the recommended page of the target application program is refreshed to the first recommended page in response to the received page refreshing input;
under the condition that a preset duration is reached, generating a target instruction of a first recommended page aiming at the target application program;
generating a target instruction in a case that a target input for a first recommended page of the target application program is received.
Based on this, the target instruction can be generated when the recommended page of the application program is refreshed, or the target instruction is generated when a preset time length is reached, or the target instruction is generated according to the input of the user for the recommended page, so that the mode of generating the target instruction can cover the scene of automatically generating the target instruction and the user requirement, and the application scene of the electronic equipment is wider.
Optionally, the processor 710 is further configured to:
acquiring a third snapshot of the first recommended page;
identifying the content corresponding to the N text messages in the abstract in the third snapshot;
associating the summary with the identified third snapshot, wherein the first input is: in the case of the saved third snapshot, receiving an input for target content identified in the third snapshot, the target content corresponding to the target text information.
Based on the method, when the abstract is generated, the content corresponding to the text information in the abstract in the third snapshot is identified, and the third snapshot of the first recommended page is associated with the abstract, so that when the user views the content interested before refreshing after refreshing the recommended page, the content interested by the user before refreshing can be called through the text information in the abstract, the content interested by the user before refreshing can be called through the content identified in the third snapshot, and the operation mode of the user is more flexible and convenient.
It should be understood that in the embodiment of the present application, the input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics Processing Unit 7041 processes image data of still pictures or videos obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two parts of a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 709 may be used to store software programs as well as various data, including but not limited to applications and operating systems. Processor 710 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements the processes of the display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the display method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.