A display method, device, apparatus and storage medium

By embedding a link within the chat application interface to access the page, the problem of full-screen or floating window display obstruction is solved, improving the user experience.

CN115729495BActive Publication Date: 2026-03-20HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-30
Publication Date
2026-03-20

AI Technical Summary

Technical Problem

In existing technologies, when a terminal device navigates to a linked access page, it is usually displayed in full screen or as a floating window, which obscures the original chat application interface, preventing the user from performing other operations simultaneously.

Method used

By displaying the access page of the first link within the interface of the first application, and using the second application to obtain the access page and embed it within the interface of the first application, the original interface is not obscured.

Benefits of technology

This feature allows links to access pages to be displayed within the chat application interface without obscuring the original interface, improving the user experience and allowing users to perform other operations while browsing links.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115729495B_ABST
    Figure CN115729495B_ABST
Patent Text Reader

Abstract

The application provides a display method and device, equipment and a storage medium, and relates to the technical field of communication. The method comprises the following steps: a terminal device displays an interface of a first application, the interface of the first application comprising a first link; the terminal device receives a first operation, the first operation being an operation of opening the first link; and the terminal device, in response to the first operation, acquires an access page of the first link through a second application and displays the access page of the first link in the interface of the first application. The access page of the first link is displayed in the interface of the first application, so that the access page of the first link does not block the interface of the first application when being displayed.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the technical field of communication, and particularly relate to a display method and device, equipment and a storage medium. BACKGROUND

[0002] Chat applications, email, and other applications with social attributes (or information sending and receiving functions) can provide a function of sharing links. For example, during use of a chat application on a terminal device, the terminal device can receive a link shared by another user. The link can be displayed as part of chat content in an interface of the chat application, and the user can click the link to trigger the terminal device to display an access page of the link (or a window corresponding to the link). The access page of the link can be a page in another application, which can be referred to as an application corresponding to the link, and the page can include text, pictures, audio, video, web pages, and other types of data.

[0003] When the user clicks the link, if the terminal device has installed the application corresponding to the link, the terminal device can jump to the application corresponding to the link to display the access page of the link in response to the operation of the user clicking the link. If the terminal device does not have the application corresponding to the link installed, the terminal device can jump to a default application (such as a browser) to display the access page of the link in response to the operation of the user clicking the link.

[0004] Currently, when the terminal device jumps to the application corresponding to the link or the default application to display the access page of the link, the access page of the link is usually displayed full screen or in the form of a floating window, which can block the original interface of the chat application. SUMMARY

[0005] Embodiments of the present application provide a display method, device, equipment and storage medium, which can enable the terminal device to display the access page of the link without blocking the original application interface of the link when the access page of the link is opened.

[0006] In a first aspect, embodiments of the present application provide a display method, which includes: a terminal device displays an interface of a first application, the interface of the first application including a first link; the terminal device receives a first operation, the first operation being an operation of opening the first link; and the terminal device acquires an access page of the first link through a second application and displays the access page of the first link in the interface of the first application in response to the first operation.

[0007] In the present application, when the terminal device detects a first operation of opening a first link included in an interface of a first application installed on the terminal device, the terminal device can obtain an access page of the first link through a second application and display the access page of the first link in the interface of the first application, so that the access page of the first link does not block the interface of the first application when displayed.

[0008] For example, the first application can be a chat application, the first link can be a certain sharing link received by a user in a chat process, and the second application can be an application corresponding to the sharing link. Through the display method provided in the present application, the access page of the sharing link can be displayed in the interface of the chat application, and the access page of the sharing link does not block the interface of the chat application when displayed. The user experience can be better.

[0009] In an implementation manner, the terminal device displays the access page of the first link in the interface of the first application, including: the terminal device replaces a picture of a position of the first link in the interface of the first application with the access page of the first link.

[0010] Optionally, the terminal device replaces the picture of the position of the first link in the interface of the first application with the access page of the first link, including: the terminal device replaces a view control of the position of the first link in the interface of the first application with a first interface view control; and the terminal device assigns a first interface of the first interface view control to a second interface created by the second application to obtain the access page of the first link.

[0011] Since the first interface of the first interface view control is assigned to the second interface created by the second application to obtain the access page of the first link, the access page of the first link obtained by the second application accessing the first link can be displayed in the first interface view control. Thus, the terminal device can obtain the access page of the first link and display the access page of the first link in the interface of the first application.

[0012] Alternatively, in another implementation manner, the terminal device displays the access page of the first link in the interface of the first application, including: the terminal device adds the access page of the first link in the interface of the first application.

[0013] Optionally, the terminal device adds the access page of the first link in the interface of the first application, including: the terminal device adds a first interface view control in the interface of the first application; and the terminal device assigns a first interface of the first interface view control to a second interface created by the second application to obtain the access page of the first link.

[0014] Exemplarily, the terminal device can add the first interface view control in a blank area in the interface of the first application. After adding the first interface view control, the terminal device assigns the first interface of the first interface view control to the second interface created by the second application after obtaining the access page of the first link, and the access page of the first link can also be displayed in the interface of the first application.

[0015] In some implementations, the method further includes: receiving, by the terminal device, a second operation, the second operation being an operation of switching the access page of the first link to full-screen display; and in response to the second operation, displaying, by the terminal device, the access page of the first link in full screen.

[0016] Optionally, the terminal device displays the access page of the first link in full screen, including: creating, by the terminal device, a full-screen interface, and assigning the full-screen interface to the second interface created by the second application after obtaining the access page of the first link.

[0017] Providing the user with a way to switch the access page of the first link to full-screen display can better meet the actual browsing needs of the user and improve the user experience.

[0018] Optionally, the method further includes: receiving, by the terminal device, a third operation, the third operation being an operation of canceling full-screen display of the access page of the first link; and in response to the third operation, displaying, by the terminal device, the access page of the first link in the interface of the first application.

[0019] In this way, the user can also perform the third operation when browsing the access page of the first link in full screen, triggering the terminal device to switch the access page of the first link from full-screen display to embedded display.

[0020] In some implementations, the method further includes: when the interface of the first application is slid upward or downward to cause the access page of the first link to move to the screen boundary, the terminal device displays the access page of the first link in suspension.

[0021] Optionally, the terminal device displays the access page of the first link in suspension, including: creating, by the terminal device, a suspension interface, and assigning the suspension interface to the second interface created by the second application after obtaining the access page of the first link.

[0022] In this way, when the interface of the first application is slid upward or downward to cause the access page of the first link to move to the screen boundary, the access page of the first link is displayed in suspension on the interface of the first application, so the access page of the first link will not move out of the screen of the terminal device with the upward or downward sliding of the interface of the first application.

[0023] Optionally, the method further comprises: when the access page of the first link is displayed in suspension, if the interface of the first application is slid upward or downward to cause the access page of the first link to move away from the screen border, the terminal device displays the access page of the first link in the interface of the first application.

[0024] Optionally, the method further comprises: when the access page of the first link is displayed in suspension, the terminal device dynamically adjusts the size of the access page of the first link according to the positional relationship between the first element in the interface of the first application and the access page of the first link; the size of the access page of the first link is related to the size of the first element.

[0025] For example, the first application can be a chat application, and the first element can be a chat box. In this way, the terminal device dynamically adjusts the size of the access page of the first link according to the positional relationship between the chat box and the access page of the first link, so that the access page of the first link does not affect the chat box.

[0026] In some implementations, the method further comprises: the terminal device receives a fourth operation, the fourth operation being an operation of closing the access page of the first link; and the terminal device closes the access page of the first link in response to the fourth operation, and no longer displays the access page of the first link in the interface of the first application.

[0027] Optionally, the terminal device displays the access page of the first link in the interface of the first application by replacing the picture of the position of the first link in the interface of the first application with the access page of the first link; and after the terminal device closes the access page of the first link, the method further comprises: the terminal device displays the first link in the interface of the first application again.

[0028] Optionally, the interface of the first application includes the first link, which means that the interface of the first application includes a thumbnail corresponding to the first link, and / or an opening button of the first link.

[0029] In some implementations, the thumbnail corresponding to the first link includes a thumbnail of the second application or a default thumbnail.

[0030] In some implementations, the second application includes an application corresponding to the first link, or a default application on the terminal device.

[0031] In some implementations, when the access page of the first link is displayed in the interface of the first application, the area occupied by the access page of the first link in the interface of the first application is greater than the area occupied by the first link in the interface of the first application.

[0032] In a second aspect, the embodiments of the present application provide a display device, which can be applied to a terminal device. The device comprises: a display module configured to display an interface of a first application, the interface of the first application comprising a first link; a receiving module configured to receive a first operation, the first operation being an operation of opening the first link; and a processing module configured to, in response to the first operation, acquire an access page of the first link by using a second application, and display the access page of the first link in the interface of the first application by using the display module.

[0033] In an implementation manner, the processing module is specifically configured to replace a picture at a position of the first link in the interface of the first application with the access page of the first link, so as to display the access page of the first link in the interface of the first application.

[0034] Optionally, the processing module is specifically configured to replace a view control at the position of the first link in the interface of the first application with a first interface view control, and assign a first interface of the first interface view control to a second interface created by the second application to acquire the access page of the first link, so as to replace the picture at the position of the first link in the interface of the first application with the access page of the first link.

[0035] Alternatively, in another implementation manner, the processing module is specifically configured to add the access page of the first link in the interface of the first application, so as to display the access page of the first link in the interface of the first application.

[0036] Optionally, the processing module is specifically configured to add a first interface view control in the interface of the first application, and assign a first interface of the first interface view control to a second interface created by the second application to acquire the access page of the first link, so as to add the access page of the first link in the interface of the first application.

[0037] In some implementation manners, the receiving module is further configured to receive a second operation, the second operation being an operation of switching the access page of the first link to full-screen display; and the processing module is further configured to, in response to the second operation, display the access page of the first link in full screen by using the display module.

[0038] Optionally, the processing module is specifically configured to create a full-screen interface, and assign the full-screen interface to a second interface created by the second application to acquire the access page of the first link, so as to display the access page of the first link in full screen.

[0039] Optionally, the receiving module is further configured to receive a third operation, the third operation being an operation of canceling full-screen display of the access page of the first link; and the processing module is further configured to, in response to the third operation, display the access page of the first link in the interface of the first application by using the display module.

[0040] In some embodiments, when the access page of the first link is displayed in the interface of the first application, if the interface of the first application is slid upward or downward to cause the access page of the first link to move to the screen boundary, the processing module is further configured to display the access page of the first link in suspension by the display module.

[0041] Optionally, the processing module is specifically configured to create a suspension interface, and assign the suspension interface to a second interface created by the second application for obtaining the access page of the first link, so as to display the access page of the first link in suspension.

[0042] Optionally, when the access page of the first link is displayed in suspension, if the interface of the first application is slid upward or downward to cause the access page of the first link to move away from the screen boundary, the processing module is further configured to display the access page of the first link in the interface of the first application by the display module.

[0043] Optionally, when the access page of the first link is displayed in suspension, the processing module is further configured to dynamically adjust the size of the access page of the first link according to the positional relationship between a first element in the interface of the first application and the access page of the first link; the size of the access page of the first link is related to the size of the first element.

[0044] In some embodiments, the receiving module is further configured to receive a fourth operation, the fourth operation being an operation of closing the access page of the first link; and the processing module is further configured to, in response to the fourth operation, close the access page of the first link, and no longer display the access page of the first link in the interface of the first application by the display module.

[0045] Optionally, the processing module displays the access page of the first link in the interface of the first application by replacing a picture at a position of the first link in the interface of the first application with the access page of the first link; and the processing module is further configured to, after closing the access page of the first link, display the first link in the interface of the first application by the display module.

[0046] Optionally, the interface of the first application includes the first link, which means that the interface of the first application includes a thumbnail corresponding to the first link, and / or an opening button of the first link.

[0047] In some embodiments, the thumbnail corresponding to the first link includes a thumbnail of the second application or a default thumbnail.

[0048] In some embodiments, the second application includes an application corresponding to the first link, or a default application on the device.

[0049] In some embodiments, when the access page of the first link is displayed in the interface of the first application, the access page of the first link occupies a larger area in the interface of the first application than the first link does in the interface of the first application.

[0050] In a third aspect, an embodiment of the present application provides an electronic device, which can be the terminal device in the first aspect. The electronic device includes a processor and a memory storing processor-executable instructions. The processor is configured to execute the instructions, so that the electronic device implements the method in the first aspect and any possible implementation manner of the first aspect.

[0051] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing computer program instructions. When the computer program instructions are executed by an electronic device, the electronic device implements the method in the first aspect and any possible implementation manner of the first aspect.

[0052] In a fifth aspect, an embodiment of the present application provides a computer program product including computer-readable code, or a non-transitory computer-readable storage medium carrying computer-readable code. When the computer-readable code is run in an electronic device, a processor in the electronic device implements the method in the first aspect and any possible implementation manner of the first aspect.

[0053] The beneficial effects of the second aspect to the fifth aspect can refer to the description in the first aspect, which will not be repeated here.

[0054] It should be understood that the description of technical features, technical solutions, beneficial effects or similar language in the present application does not imply that all features and advantages can be achieved in any single embodiment. On the contrary, it can be understood that the description of a feature or a beneficial effect means that the specific technical feature, technical solution or beneficial effect is included in at least one embodiment. Therefore, the description of technical features, technical solutions or beneficial effects in the specification does not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions and beneficial effects described in the embodiments can be combined in any appropriate manner. Those skilled in the art will understand that the embodiments can be implemented without one or more specific technical features, technical solutions or beneficial effects of a particular embodiment. In other embodiments, additional technical features and beneficial effects can be identified in specific embodiments that do not embody all embodiments. BRIEF DESCRIPTION OF DRAWINGS

[0055] Figure 1 A schematic diagram of an interface of a chat application;

[0056] Figure 2 Another schematic diagram of an interface of a chat application;

[0057] Figure 3 A schematic diagram for the terminal device to display the access page of link 2 in full screen;

[0058] Figure 4 A schematic diagram for the terminal device to display the access page of link 2 in the form of a floating window;

[0059] Figure 5 Another schematic diagram for the terminal device to display the access page of link 2 in the form of a floating window;

[0060] Figure 6 A structural schematic diagram of the terminal device provided by the embodiment of the present application is shown;

[0061] Figure 7 A schematic diagram of the architecture of the Android system provided by the embodiment of the present application is shown;

[0062] Figure 8 A schematic diagram of the relationship between the imageview control and Surface_A provided by the embodiment of the present application is shown;

[0063] Figure 9 A schematic diagram of the relationship among the surfaceview control, Surface_A, and Surface_B provided by the embodiment of the present application is shown;

[0064] Figure 10 A schematic diagram of the effect of displaying the content in Surface_B on the surface of the surfaceview control in Surface_A provided by the embodiment of the present application is shown;

[0065] Figure 11 A schematic diagram of the relationship among the imageview control, surfaceview control, and Surface_A provided by the embodiment of the present application is shown;

[0066] Figure 12 A schematic diagram of the interface of the chat application provided by the embodiment of the present application is shown;

[0067] Figure 13 A schematic diagram of the effect of displaying the short video P in the interface of the chat application provided by the embodiment of the present application is shown;

[0068] Figure 14 A schematic diagram of the effect of full screen display of the short video P provided by the embodiment of the present application is shown;

[0069] Figure 15 A schematic diagram of the interface of the chat application sliding up when the short video P is displayed in the interface of the chat application provided by the embodiment of the present application is shown;

[0070] Figure 16 A schematic diagram of the interface of the chat application when sliding down for the short video P provided by the embodiment of the present application to be displayed in the interface of the chat application;

[0071] Figure 17 A schematic diagram of the short video P displayed on the interface of the chat application when sliding up for the interface of the chat application provided by the embodiment of the present application;

[0072] Figure 18 A schematic diagram of the short video P displayed on the interface of the chat application when sliding down for the interface of the chat application provided by the embodiment of the present application;

[0073] Figure 19 Another schematic diagram of the interface of the chat application provided by the embodiment of the present application;

[0074] Figure 20 Still another schematic diagram of the interface of the chat application provided by the embodiment of the present application;

[0075] Figure 21 Still another schematic diagram of the interface of the chat application provided by the embodiment of the present application;

[0076] Figure 22 A schematic diagram of the interface of the mailbox provided by the embodiment of the present application;

[0077] Figure 23 An effect schematic diagram of the short video P displayed in the interface of the mailbox provided by the embodiment of the present application;

[0078] Figure 24 A schematic diagram of the interface of the status bar of the mobile phone provided by the embodiment of the present application;

[0079] Figure 25 An effect schematic diagram of the specific content of the "notification B" displayed in the interface of the status bar provided by the embodiment of the present application;

[0080] Figure 26 A structural schematic diagram of the display device provided by the embodiment of the present application. DETAILED DESCRIPTION

[0081] The terminology used in the following description merely for the purpose of describing particular embodiments and is not intended to limit the application. As used in this description and the accompanying claims, the singular forms "a," "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0082] Reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" or "in other embodiments" or "in some embodiments" in various places throughout this specification are not necessarily all referring to the same embodiment, unless otherwise indicated. The terms "including," "containing," "having," and variations thereof are meant to encompass the terms "including," "containing," "having," and variations thereof, unless otherwise indicated. The term "connected" is intended to include both direct and indirect connections, unless otherwise indicated.

[0083] Hereinafter, the terms "first" and "second" are used only for the purpose of description and should not be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined with "first" and "second" can explicitly or implicitly include one or more of the features.

[0084] In the embodiments of the present application, the words "exemplary" and "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the words "exemplary" and "for example" is intended to present concepts in a concrete manner. In the embodiments of the present application, the terms "include" and "comprise" and variations thereof are intended to mean "including but not limited to."

[0085] Chat applications, mailboxes, and other applications with social attributes (or information sending and receiving functions) can provide a function of sharing links for users. For example, during the use of a chat application on a terminal device, the terminal device can receive a link shared by another user. The link can be displayed as part of the chat content in the interface of the chat application, and the user can click the link to trigger the terminal device to display the access page of the link (or the window corresponding to the link, or a preview window, or a display window). The access page of the link can be a page in another application, and the page can include text, pictures, audio, video, web pages, and other types of data.

[0086] For example, in one possible implementation scenario, user 1 holds terminal device 1, user 2 holds terminal device 2, and both terminal device 1 and terminal device 2 are installed with a chat application and a short video application. When user 2 views a short video P in the short video application on terminal device 2, user 2 can send the link of short video P to terminal device 1 through the chat application. The link of short video P can be displayed as part of the chat content in the interface of the chat application, and user 1 can click the link of short video P in the interface of the chat application to trigger terminal device 1 to display the access page of the link of short video P, which includes short video P, and user 1 can view short video P in the access page.

[0087] In the chat application, one presentation form of the link is a uniform resource identifier (URI) in text form. For example, Figure 1 is a schematic diagram of an interface of a chat application. As Figure 1 shown, during the chat between user 1 and user 2 using the chat application, the link shared by user 2 to user 1 can be a URI in text form: “http: / / j.map.xxxxxxxxxxxxx%A6&E5%9Cxxxxxxxxxxxxxxxxxxxxxxx#”. It can be understood that Figure 1 the URI shown in is only an example.

[0088] Another presentation form of the link is a card form. For example, Figure 2 is another schematic diagram of an interface of a chat application. As Figure 2As shown, in the process that user 1 and user 2 chat using the chat application, the links shared by user 2 to user 1 can include link 1 and link 2, and link 1 and link 2 can be static cards. The card corresponding to link 1 can include identifiers such as "application A" and "video 1", which can be used to indicate that link 1 is a link to video 1 in application A. The card corresponding to link 2 can include identifiers such as "application B" and "How to make braised pork", which can be used to indicate that link 2 is a link to an article titled "How to make braised pork" in application B. Compared with the presentation form of a URI in the form of text as a link, Figure 2 The static card shown as a link can display more detailed information related to the link.

[0089] For the links shown in the above Figure 1 and Figure 2 , when a user (user 1) clicks on a link, if the terminal device has installed the application corresponding to the link (for example, the application corresponding to link 1 is application A, and the application corresponding to link 2 is application B), the terminal device can jump to the access page of the link displayed by the application corresponding to the link in response to the user's operation of clicking on the link. If the terminal device does not have the application corresponding to the link installed, the terminal device can jump to the access page of the link displayed by the default application (such as a browser) in response to the user's operation of clicking on the link.

[0090] Currently, when the terminal device jumps to the access page of the link displayed by the application corresponding to the link or the default application, the access page of the link is usually displayed full screen or in the form of a floating window, which can block the original chat application interface.

[0091] Taking the link 2 shown in the above Figure 2 as an example, Figure 3 a schematic diagram of the terminal device displaying the access page of link 2 full screen. As shown in Figure 3 , when the user clicks on link 2, the terminal device can jump to the access page of link 2 displayed by the application corresponding to link 2 or the default application in response to the user's operation of clicking on link 2. The access page of link 2 can include the title "How to make braised pork" 301, the picture 302, and the text 303 of the article corresponding to link 2. Since the access page of link 2 is displayed full screen, the original chat application interface shown in the above Figure 2 is completely blocked, and the user cannot perform other operations in the original chat application interface while browsing the access page of link 2, such as inputting text into the chat box.

[0092] Similarly, taking the link 2 shown in the above Figure 2 as an example, Figure 4A schematic diagram for the terminal device to display the access page of the link 2 in the form of a floating window. As shown in Figure 4 When the user clicks the link 2, the terminal device can also jump to the application corresponding to the link 2 or a default application to display the access page 402 of the link 2 in the form of a floating window in response to the operation of the user clicking the link 2. That is, the access page 402 of the link 2 is displayed in the form of a floating window above the interface 401 of the original chat application. The access page 402 of the link 2 is displayed in the form of a floating window above the interface 401 of the original chat application, which can avoid the interface 401 of the original chat application being completely blocked, and the user can browse the access page 402 of the link 2 while performing some other operations in the interface 401 of the original chat application. However, since the access page 402 of the link 2 still blocks part of the interface 401 of the original chat application, the user will still be affected to some extent when browsing the access page 402 of the link 2 while performing other operations in the interface 401 of the original chat application. For example, Figure 5 Another schematic diagram for the terminal device to display the access page of the link 2 in the form of a floating window. As shown in Figure 5 When the user opens the input keyboard 404 to input text into the chat box 403, the access page 402 of the link 2 can block the chat box 403, or even the input keyboard 404.

[0093] In this background, the embodiments of the present application provide a display method, which can be applied to a terminal device, and the terminal device has a first application installed therein. In the method, for a certain link included in an interface of the first application, when the terminal device detects an operation of opening the link, the terminal device can obtain an access page of the link through a second application, and display the access page of the first link in the interface of the first application, so that the access page of the link does not block the interface of the first application when being displayed.

[0094] For example, in some implementations, the terminal device can display the access page of the link by embedding it in the interface of the first application, so as to display the access page of the first link in the interface of the first application.

[0095] The first application and the second application are different, and the second application can be an application corresponding to the link, or a default application (such as a browser) on the terminal device. The second application being the application corresponding to the link means that the access page of the link is a page in the second application.

[0096] Optionally, the application corresponding to the link can be an application on the terminal device where the first application is located, or can also be an application on another terminal device. For example, the terminal device where the first application is located is a first terminal, and the application corresponding to the link can be an application on the first terminal or an application on a second terminal, and the first terminal and the second terminal are different. The present application does not limit the positional relationship of the application corresponding to the link relative to the first application.

[0097] In some embodiments, the first application can be a chat application (such as a chat application), or a mailbox (also known as an email), or a short message, or an application with a social attribute or a function of sending and receiving information. The application corresponding to the link can be an application capable of providing multimedia resources such as text, pictures, audio, video, and web pages for the user. For example, the application corresponding to the link can be a short video application, a live broadcast application, a browser, a music application, and the like, which are not limited herein.

[0098] Optionally, in the embodiments of the present application, the terminal device can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), and the like. The specific type of the terminal device is not limited in the embodiments of the present application.

[0099] Taking the terminal device as a mobile phone as an example, Figure 6 A structural schematic diagram of a terminal device provided by an embodiment of the present application is shown. As shown in Figure 6 The mobile phone can include a processor 610, an external memory interface 620, an internal memory 621, a universal serial bus (USB) interface 630, a charge management module 640, a power management module 641, a battery 642, an antenna 1, an antenna 2, a mobile communication module 650, a wireless communication module 660, an audio module 670, a speaker 670A, a receiver 670B, a microphone 670C, an earphone interface 670D, a sensor module 680, a key 690, a motor 691, an indicator 692, a camera 693, a display screen 694, and a subscriber identification module (SIM) card interface 695, and the like.

[0100] The processor 610 can include one or more processing units, for example: the processor 610 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices, or can be integrated in one or more processors.

[0101] The controller can be the nerve center and command center of the mobile phone. The controller can generate operation control signals according to instruction operation codes and timing signals to complete the control of instruction fetching and instruction execution.

[0102] The memory in the processor 610 can also be configured to store instructions and data. In some embodiments, the memory in the processor 610 is a cache memory. The memory can save instructions or data that the processor 610 has just used or repeatedly uses. If the processor 610 needs to use the instructions or data again, it can directly call from the memory. This avoids repeated access and reduces the waiting time of the processor 610, thereby improving the efficiency of the system.

[0103] In some embodiments, the processor 610 can include one or more interfaces. The interface can include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and / or a USB interface, etc.

[0104] The external memory interface 620 can be used to connect an external memory card, such as a Micro SD card, to extend the storage capacity of the mobile phone. The external memory card communicates with the processor 610 through the external memory interface 620 to implement a data storage function. For example, files such as music and videos can be saved in the external memory card.

[0105] The internal memory 621 can be used to store computer executable program codes, which include instructions. The processor 610 executes various functional applications and data processing of the mobile phone by running the instructions stored in the internal memory 621. For example, the internal memory 621 can store instructions corresponding to the display method described in the embodiments of the present application, and the processor 610 can execute the instructions to implement the display method. For example, the access page of the first link can be acquired through the second application, and the access page of the first link can be embedded in the interface of the first application for display.

[0106] The internal memory 621 can further include a program storage area and a data storage area. The program storage area can store an operating system, at least one application program required by a function (such as the first application, the second application, etc. described in the embodiments of the present application), etc. The data storage area can store data created during use of the mobile phone (such as chat information, a first link, a thumbnail, etc.). In addition, the internal memory 521 can include a high-speed random access memory, and can further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0107] The charging management module 640 is used to receive charging input from a charger. The charging management module 640 can also supply power to the mobile phone through the power management module 641 while charging the battery 642. The power management module 641 is used to connect the battery 642, the charging management module 640, and the processor 610. The power management module 641 can also receive input from the battery 642 to supply power to the mobile phone.

[0108] The wireless communication function of the mobile phone can be implemented through an antenna 1, an antenna 2, a mobile communication module 650, a wireless communication module 660, a modem processor, and a baseband processor, etc. The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the mobile phone can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example, the antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch. For example, the mobile phone can receive a link sent by other devices (such as a second terminal, a server, etc.) through the wireless communication function.

[0109] The phone can implement audio functions through the audio module 670, the speaker 670A, the receiver 670B, the microphone 670C, the earphone interface 670D, and the application processor, etc. For example, music playing, recording, etc.

[0110] The sensor module 680 can include a pressure sensor 680A, a gyro sensor 680B, a barometric sensor 680C, a magnetic sensor 680D, an acceleration sensor 680E, a distance sensor 680F, a proximity light sensor 680G, a fingerprint sensor 680H, a temperature sensor 680J, a touch sensor 680K, an ambient light sensor 680L, a bone conduction sensor 680M, etc.

[0111] The display screen 694 is used to display images, videos, etc. The display screen 694 includes a display panel. The display panel can adopt a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flex light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the phone can include 1 or N display screens 694, N being a positive integer greater than 1. For example, the display screen 694 can be used to display an application interface. For example, the phone can display an interface of a first application or a full-screen display of an access page of a first link through the display screen 694. The interface of the first application can include the first link, or an access page of the first link embedded in the interface of the first application, or an access page of the first link floating on the interface of the first application.

[0112] The phone implements display functions through the GPU, the display screen 694, and the application processor, etc. The GPU is a microprocessor for image processing, connected with the display screen 694 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 610 can include one or more GPUs, which execute program instructions to generate or change display information.

[0113] It can be understood that, Figure 6 The structures shown do not constitute specific limitations on the phone. In some embodiments, the phone can also include more or fewer components than those shown. Figure 6more or less components, or combine certain components, or split certain components, or different arrangement of components, etc. Alternatively, Figure 6 Some components shown can be implemented in hardware, software, or a combination of software and hardware.

[0114] In addition, when the terminal device is other mobile terminal such as a tablet computer, a wearable device, a vehicle-mounted device, an AR / VR device, a notebook computer, a UMPC, a netbook, a PDA, etc., the specific structure of these other terminal devices can also be referred to Figure 6 as shown. Exemplarily, the other terminal device can be a mobile terminal in Figure 6 the structure given above on the basis of increasing or decreasing components, which will not be repeated here.

[0115] Optionally, the operating system of the terminal device can be a harmony system, an android system, an ios system, a windows system, a mac system, a linux system, etc., and more specifically, it can be a Xiaomi system or an EMUI system, an Android Wear system, a Lite OS system, a Tizen system, a watch os system, etc. The operating system of the terminal device is not limited here. TM TM TM TM TM TM TM TM TM TM TM TM The operating system of the terminal device is not limited here.

[0116] Taking the operating system of the terminal device as an example, the android system, Figure 7 the architecture of the android system provided by the embodiments of the present application is shown. As Figure 7 shown, the android system generally includes: an application layer (applications), an application framework layer (application framework), a system library layer (libraries), and a kernel layer.

[0117] The first application and the second application described in the embodiments of the present application can be deployed in the application layer, and the application layer can also contain other system applications such as calendar, map, browser and contact management, as well as third-party applications designed and written by developers using Java language.

[0118] ​​​​​​​​​​​The application framework layer can include a package manager service (PMS). The PMS can be responsible for scanning a specified directory in the operating system to find files ending with apk, and by parsing these files, obtaining all information of the application and completing the installation process of the application. The parsed apk information in the package manager service can be used by other services.

[0119] The following describes the specific principle of the display method provided by the embodiment of the application, with the operating system of the terminal device being an android system and the interface of the first application including a first link as an example. When the terminal device detects an operation of opening the first link, the terminal device obtains an access page of the first link through a second application, and displays the access page of the first link in the interface of the first application.

[0120] Illustratively, the operation of opening the first link detected by the terminal device can refer to that the terminal device detects an operation of clicking the first link in the interface of the first application or an operation of clicking a start button of the first link. For example, the terminal device can display the interface of the first application, and the interface of the first application includes the first link. The terminal device can receive a first operation, and the first operation is the operation of opening the first link.

[0121] When the terminal device detects the operation of opening the first link, the terminal device can start the second application (an application corresponding to the first link or a default application) through a start activity component (startactivity) method. When the terminal device installs the application corresponding to the first link, the terminal device can start the application corresponding to the first link through the startactivity method. When the terminal device does not install the application corresponding to the first link, the terminal device can start the default application through the startactivity method.

[0122] Illustratively, the startactivity method can be: startActivity(Intent intent). The startactivity(Intent intent) includes a start (intent) parameter, and the intent parameter can include information of the second application to be started, such as a URI, a package name (such as a package name of the second application), etc. The package manager service (PMS) in the operating system of the terminal device can call the second application corresponding to the URI included in the intent parameter, and pass the URI included in the intent parameter to the second application. The second application can access the URI to display specific content corresponding to the first link, such as a certain short video. The second application accesses the URI to display the access page of the first link corresponding to the specific content of the first link.

[0123] That is, the terminal device can acquire the access page of the first link through the second application in response to the first operation, and display the access page of the first link in the interface of the first application.

[0124] In an implementation, the terminal device displays the access page of the first link in the interface of the first application, including: the terminal device replaces a picture of a position of the first link in the interface of the first application with the access page of the first link.

[0125] Optionally, the terminal device replaces the picture of the position of the first link in the interface of the first application with the access page of the first link, including: the terminal device replaces a view control of the position of the first link in the interface of the first application with a first interface view control; and the terminal device assigns a first interface of the first interface view control to a second interface created by the second application to acquire the access page of the first link.

[0126] For example, when the second application displays the specific content corresponding to the first link according to the URI, the terminal device can replace a view control of the position of the first link in the interface of the first application with a surfaceview control, and assign a surface of the surfaceview control to a surface of the second application to display the specific content corresponding to the first link. The surfaceview control is the first interface view control, the surface of the surfaceview control is the first interface, and the surface of the second application to display the specific content corresponding to the first link is the second interface created by the second application to acquire the access page of the first link. Since the surface of the surfaceview control is assigned to the surface of the second application to display the specific content corresponding to the first link, the specific content corresponding to the first link displayed by the second application according to the URI can be displayed in the surfaceview control. Thus, the terminal device can acquire the access page of the first link and embed and display the access page of the first link in the interface of the first application.

[0127] The surfaces are independent of each other and are finally synthesized by a surface flinger and rendered onto a screen. When displayed, a surface created later is generally located on the upper layer of a surface created earlier. Generally, the default display mode of a surface is full screen display, but the area size of the surface in the interface can also be adjusted by changing the display size of the surface. For example, surface 1 is created earlier and surface 2 is created later. When the surface flinger synthesizes and renders surface 1 and surface 2 onto a screen, surface 2 is located on the upper layer of surface 1. If the size of surface 2 is not adjusted, surface 2 is displayed in full screen by default and surface 1 is blocked. If the size of surface 2 is adjusted, for example, the layout size of surface 2 is reduced, surface 2 can be displayed on the upper layer of surface 1 in a floating manner, that is, surface 2 can exist in the form of a floating window. For example, for the surface of some view controls (such as the surface view control described above) in the interface, the size of the surface is related to the layout size of the view control when the surface is displayed in the interface, for example, the size of the surface can be the same as the layout size of the view control. By adjusting the layout size of the view control, the size of the surface of the view control can be adjusted.

[0128] It can be understood that the first link is displayed based on a view control in the interface of the first application. The view control for displaying the first link in the interface of the first application is related to the presentation form of the first link. For example, when the first link is a URI existing in the form of text, the view control for displaying the first link in the interface of the first application can be a text view (textview) control. Alternatively, when the first link is a URI existing in the form of a card, the view control for displaying the first link in the interface of the first application can include a text view control, an image view control, and the like. Taking the view control for displaying the first link in the interface of the first application as an image view control as an example, the terminal device replacing the view control at the position of the first link in the interface of the first application with a surface view control can mean that the terminal device replaces the image view control with a surface view control.

[0129] Exemplarily, taking the interface of the first application as Surface_A, the view control for displaying the first link in Surface_A as an imageview control, and the access page of the first link as Surface_B as an example, Figure 8 A schematic diagram of the relationship between the imageview control provided by the embodiment of the present application and Surface_A is shown in FIG. 8A. Figure 8 As shown in FIG. 8A, the imageview control 802 in Surface_A 801 is used to display the first link.

[0130] Figure 9 A schematic diagram of the relationship between the surfaceview control, Surface_A, and Surface_B provided by the embodiment of the present application is shown in FIG. 8B. Figure 9 As shown in FIG. 8B, for the Surface_A 801 shown in FIG. 8A, Figure 8 the terminal device can replace the imageview control 802 (i.e., the view control at the location of the first link) in Surface_A 801 with a surfaceview control 803. The surfaceview control 803 has a layer of surface. Then, when creating Surface_B 804, the terminal device can assign the surface of the surfaceview control 803 in Surface_A 801 to Surface_B 804. Then, the content in Surface_B 804 is drawn on the surface of the surfaceview control 803 in Surface_A 801 for display.

[0131] For example, Figure 10 A schematic diagram of the effect of displaying the content in Surface_B on the surface of the surfaceview control in Surface_A is shown in FIG. 8C. Figure 10 As shown in FIG. 8C, the content in Surface_B 804 is drawn on the surface of the surfaceview control 803 in Surface_A 801 for display, that is, the Surface_B 804 is embedded in Surface_A 801 for display.

[0132] It should be noted that, as described in the foregoing embodiments, for the surface of some view controls in the interface, the size of the surface can be the same as the layout size of the view control when the surface is displayed in the interface. Therefore, after the surface of the surfaceview control 803 in Surface_A 801 is assigned to Surface_B 804, when the content in Surface_B 804 is drawn and displayed on the surface of the surfaceview control 803 in Surface_A 801, the area occupied by the content in Surface_B 804 in Surface_A is the area occupied by the surface of the surfaceview control 803. For example, when the content in Surface_B 804 is displayed on the surface of the surfaceview control 803, the content is adaptively adjusted to the layout size of the surface of the surfaceview control 803.

[0133] Optionally, in the foregoing embodiments, the terminal device replaces the view control at the position of the first link in the interface of the first application with the surfaceview control to realize embedding and displaying the access page of the first link in the interface of the first application. In some other embodiments, when the second application accesses the URI to display the specific content corresponding to the first link, the terminal device can also add a surfaceview control in the interface of the first application, and assign the surface of the surfaceview control to the surface of the second application displaying the specific content corresponding to the first link. At this time, the specific content corresponding to the first link displayed by the second application accessing the URI can also be displayed in the surfaceview control, to realize embedding and displaying the access page of the first link in the interface of the first application.

[0134] That is, in another implementation manner, the terminal device displays the access page of the first link in the interface of the first application, including: the terminal device adds the access page of the first link in the interface of the first application. The terminal device adds the access page of the first link in the interface of the first application, including: the terminal device adds a first interface view control in the interface of the first application; and the terminal device assigns a second interface of the first interface view control to a second interface created by the second application to obtain the access page of the first link.

[0135] Exemplarily, the surfaceview control added by the terminal device in the interface of the first application can be below the view control at the position of the first link. For example, still taking the interface of the first application as Surface_A and the view control for displaying the first link in Surface_A as an imageview control as an example, Figure 11 A relationship diagram of the imageview control, the surfaceview control, and Surface_A provided by the embodiment of the present application is shown in FIG. 8. As shown in FIG. 8, the terminal device can also add a surfaceview control 803 in Surface_A 801, and the surfaceview control 803 can be below the imageview control 802, for example, in a blank area below the imageview control 802. Figure 11

[0136] Optionally, the surfaceview control added by the terminal device in the interface of the first application can also be in other blank areas in the interface of the first application, and the position of the surfaceview control is not limited herein. The position of the surfaceview control can be related to the position of the first link in the interface of the first application.

[0137] It can be understood that in the above examples, Surface_A and Surface_B are still two independent surfaces in nature, and therefore, Surface_A and Surface_B can both occupy the focus. For example, when the user performs a click operation in Surface_A, Surface_A occupies the focus; when the user performs a click operation in Surface_B, Surface_B occupies the focus. Optionally, when Surface_B is displayed by being embedded in Surface_A in the embodiment of the present application, the processing logic of the key (key) event can include: when the key event occurs, all back events in the key event are processed by Surface_A; other key events in the key event except the back events are dispatched by a window management service of an operating system, and are preferentially dispatched to a topmost window occupying the focus. The topmost window occupying the focus can be Surface_A or Surface_B. The logic of Surface_A processing the back event in the key event can be as follows:

[0138] 1) When Surface_B is running by being embedded in Surface_A (for example, when short video P is playing), the logic of Surface_A processing the back event is to stop running Surface_B.

[0139] ​2) When Surface_B is embedded in Surface_A and is not running (such as when a short video P is paused), the logic of Surface_A processing the back event is to return to the previous page.

[0140] The key event can be that a user clicks a button on an interface, or performs a sliding, long pressing, or other operation on the interface, or clicks a system back button. The back event in the key event can refer to a user clicking a system back button.

[0141] It should be noted that, although the operating system of the terminal device is taken as an example of the Android system, the specific principle of the terminal device obtaining the access page of the first link through the second application and displaying the access page of the first link embedded in the interface of the first application is introduced above, but it should be understood that when the operating system of the terminal device is other than the Android system, the specific principle of the terminal device obtaining the access page of the first link through the second application and displaying the access page of the first link embedded in the interface of the first application is similar to the introduction above. The difference is only that in other operating systems, the method used by the terminal device to start the second application, the view control used to display the specific content in the interface, and the like can be different, which will not be described in detail here.

[0142] The following takes the first application as a chat application and the second application as a short video application: application A as an example, and illustrates the display method provided by the embodiments of the application in combination with the scenario that a user receives a link of a certain short video P in application A and clicks the link to view the short video P in the process of using the chat application to chat. It can be understood that the link of the short video P is the first link described above.

[0143] When the terminal device receives a link of a short video P shared by another user in the process of the user using a chat application installed on the terminal device to chat with the other user, the terminal device can display the link of the short video P in the interface of the chat application. Exemplarily, Figure 12 The interface of the chat application provided by the embodiments of the application is shown in FIG. 12. As shown in FIG. 12, Figure 12 In some embodiments of the application, the terminal device can display a thumbnail 1201 corresponding to the link of the short video P and an opening button 1202 of the link of the short video P in the interface of the chat application. The opening button 1202 can also be referred to as a starting button, a playing button, a browsing button, and the like, which is not limited here.

[0144] In some embodiments, the thumbnail 1201 corresponding to the link of the short video P can be a thumbnail of the application A that can open the link of the short video P, or a default thumbnail, or a thumbnail of a default browser.Figure 12 The thumbnail 1201 corresponding to the link of the short video P is taken as an example of the thumbnail of the application A. For example, when the application A is installed on the terminal device, the terminal device can display the thumbnail of the application A in the interface of the chat application; when the application A is not installed on the terminal device, the terminal device can display a default thumbnail or a thumbnail of a default browser in the interface of the chat application. The thumbnail of the application A, the default thumbnail, the thumbnail of the default browser, etc. can be preset in the terminal device, for example, a thumbnail file can be stored in the terminal device, and the thumbnail file can include one or more thumbnails of applications. When the terminal device needs to display a thumbnail corresponding to a link, the terminal device can search for a thumbnail of an application capable of opening the link in the thumbnail file and display the thumbnail. The following will be described by taking the terminal device on which the application A is installed as an example.

[0145] In some other embodiments, the thumbnail 1201 corresponding to the link of the short video P can also be replaced by a cover of the short video P, a first frame of the short video P, or a certain frame thereof, and the present application does not limit this.

[0146] For example, after receiving the link of the short video P, the terminal device can parse the scheme field, the host field, etc. of the URI included in the link of the short video P, and find an application matching the scheme field, the host field, etc. parsed from the URI according to the application package information configuration file of the installed application. The application matching the scheme field, the host field, etc. parsed from the URI is an application capable of opening the link of the short video P, such as the application A. Then, the terminal device can display the thumbnail of the application A and the opening button 1202 of the link of the short video P. The application package information configuration file is also called a manifest configuration file, which contains information of an application installation package. For example, in the Android system, the application package information configuration file can be an AndroidManifest configuration file.

[0147] In the embodiments of the present application, the terminal device can display the thumbnail 1201 corresponding to the link of the short video P in the interface of the chat application through an imageview control. The operation of the user clicking the opening button 1202 shown in the above Figure 12 The operation of the user clicking the opening button 1202 shown in the above Figure 12When the open button 1202 is pressed, the terminal device can, in response to detecting the user's click on the open button 1202, replace the ImageView control in the chat application's interface with a SurfaceView control, or add a SurfaceView control to the chat application's interface. Here, we take replacing the ImageView control in the chat application's interface with a SurfaceView control as an example. The SurfaceView control has its own surface layer. Additionally, in response to detecting the user's click on the open button 1202, the terminal device can launch application A via the startActivity method. Application A can access the URI included in the link of the short video P and display the short video P. The specific principle is as described in the previous embodiments and will not be repeated here.

[0148] When a terminal device creates a surface for displaying a short video P in application A, it can assign the surface of a SurfaceView control from the chat application's interface to the surface of the short video P displayed in application A. Then, the short video P will be drawn onto the surface of the SurfaceView control in the chat application's interface for display. In other words, the short video P can be embedded within the chat application's interface for display.

[0149] For example, Figure 13 This is a schematic diagram illustrating the effect of displaying a short video P embedded in a chat application interface, as provided in an embodiment of this application. Figure 13 As shown, when the short video P is drawn onto the surface of a SurfaceView control in the chat application's interface, the short video P can be embedded within the chat application's interface. In this case, the user can browse the short video P while continuing to chat within the chat application's interface, and the short video P will not obscure the chat application's interface when displayed.

[0150] In some embodiments, when the access page of the first link is embedded in the interface of the first application, the interface of the first application may also include a close button and a full-screen button. The close button may also be called a stop button, and the full-screen button may also be called a maximize button, a zoom button, etc.

[0151] When a user clicks the close button, the terminal device can respond to this action by closing the access page of the first link and redisplaying the first link. For example, the terminal device can replace the SurfaceView control with the original View control where the first link was located, and redisplay the first link based on that View control. The terminal device can also close the second application. That is, when the user clicks the close button, the terminal device can close the embedded display effect of the access page of the first link and redisplay the first link.

[0152] When a user clicks the full-screen button, the terminal device can respond to this action by displaying the access page of the first link in full-screen mode. For example, the terminal device can create a full-screen surface (i.e., a full-screen interface) in response to the user clicking the full-screen button and assign this full-screen surface to the surface of the second application that displays the access page of the first link. At this time, the access page of the first link will cover the interface of the first application, achieving full-screen display.

[0153] Based on the above Figure 12 and Figure 13 For example, please refer to the scenario shown below. Figure 13 As shown, when the short video P is embedded in the chat application's interface, the chat application's interface can also include a close button 1301 and a full-screen button 1302. When the user clicks the close button 1301, the terminal device can respond to the user's click operation by replacing the SurfaceView control in the chat application's interface with the ImageView control that originally displayed the link to the short video P, and redisplaying the link to the short video P based on the ImageView control, such as displaying the thumbnail 1201 corresponding to the link to the short video P, and the open button 1202 for the link to the short video P. It can be understood that when the terminal device redisplays the link to the short video P based on the ImageView control, the chat application's interface will revert to the aforementioned state. Figure 12 The interface shown.

[0154] When the user clicks the full-screen button 1302, the terminal device can respond to the user's click by creating a full-screen surface and assigning the full-screen surface to the surface on which application A displays the short video P. At this time, the terminal device will display the short video P in full-screen mode, and the display interface of the short video P will cover the interface of the chat application. For example, Figure 14 This is a schematic diagram illustrating the effect of full-screen display of a short video P provided in an embodiment of this application. For example... Figure 14 As shown, when the short video P is displayed in full screen, the display interface of the short video P will cover the interface of the chat application.

[0155] Optionally, when the short video P is displayed in full screen, the display interface of the short video P can include a minimize button (not shown in the figure), and when the user clicks the minimize button, the terminal device can reassign the surface of the surfaceview control in the interface of the chat application to the surface of the application A displaying the short video P in response to the user's operation of clicking the minimize button, so that the display effect of the short video is switched from full screen display to the above-mentioned display embedded in the interface of the chat application. Alternatively, when the short video P is displayed in full screen, the display interface of the short video P can also include a close button (not shown in the figure, which can be the same as the close button 1301 in the interface of the chat application mentioned above), and when the user clicks the close button, the terminal device can close the full screen surface in response to the user's operation of clicking the close button, replace the surfaceview control in the interface of the chat application with the imageview control originally displaying the link of the short video P, and re-display the link of the short video P based on the imageview control, such as displaying the thumbnail 1201 corresponding to the link of the short video P and the open button 1202 of the link of the short video P.

[0156] The above-mentioned operation of the user clicking the close button in the interface of the first application and the operation of the user clicking the close button in the full screen display interface of the short video P (the full screen display interface of the access page of the first link) can be referred to as the operation of closing the access page of the first link. In the present application, the above-mentioned operation of closing the access page of the first link can also be referred to as the fourth operation, and after the terminal device receives the fourth operation, the terminal device can close the access page of the first link in response to the fourth operation and no longer display the access page of the first link in the interface of the first application.

[0157] The operation of the user clicking the full screen button in the interface of the first application can be referred to as the operation of switching the access page of the first link from embedded display to full screen display, or the operation of switching the access page of the first link to full screen display. In the present application, the above-mentioned operation of switching the access page of the first link to full screen display can also be referred to as the second operation, and after the terminal device receives the second operation, the terminal device can display the access page of the first link in full screen in response to the second operation.

[0158] The operation of the user clicking the minimize button in the full-screen display interface of the short video P (the full-screen display interface of the access page of the first link) can be referred to as an operation of switching the access page of the first link from full-screen display to embedded display, or an operation of canceling full-screen display of the access page of the first link. In this application, the aforementioned operation of canceling full-screen display of the access page of the first link can also be referred to as a third operation. After receiving the third operation, the terminal device can display the access page of the first link in the interface of the first application in response to the second operation. That is, the access page of the first link can be switched from full-screen display to embedded display.

[0159] In some embodiments, the aforementioned functions of closing the access page of the first link, switching the access page of the first link from embedded display to full-screen display, switching the access page of the first link from full-screen display to embedded display, etc. can also be implemented based on other operation modes. For example, the user can click, double-click, or long-press a certain area on the screen, or trigger the terminal device to implement the aforementioned functions by touching other function keys or performing certain sliding operations on the screen. It should be noted that the above embodiments are only exemplary, and the specific operation mode of the user triggering the terminal device to implement the aforementioned functions is not limited in this application.

[0160] Optionally, in the embodiments of the present application, when the terminal device obtains the access page of the first link through the second application and displays the access page of the first link in the interface of the first application, the terminal device can animate and enlarge the access page of the first link. For example, taking the above scenario of the short video P as an example, when the terminal device replaces the imageview control in the interface of the chat application with the surfaceview control in response to detecting the operation of the user clicking the open button 1202, the terminal device can adjust the layout size of the surfaceview control to be larger than the layout size of the imageview control. Then, when the terminal device assigns the surface of the surfaceview control to the surface of the application A to display the short video P, the short video P will be enlarged and displayed in the interface of the chat application relative to the thumbnail 1201 corresponding to the link of the short video P. It should be understood that the enlargement described herein means that the area occupied by the short video P in the interface of the chat application is larger than the area occupied by the thumbnail 1201 corresponding to the link of the short video P in the interface of the chat application.

[0161] In some embodiments, the terminal device replaces the view control at the position of the first link in the interface of the first application with a surfaceview control, or, after adding the surfaceview control in the interface of the first application, assigns the surface of the surfaceview control to the surface of the second application to display the access page (i.e., the specific content corresponding to the first link) of the first link, the terminal device can further adaptively adjust the layout size of the surfaceview control according to the access page of the first link. For example, taking the above short video P scenario as an example, when the terminal device assigns the surface of the surfaceview control to the surface of the application A to display the short video P, if the short video P is in landscape mode, the terminal device can adjust the size ratio of the horizontal direction and the vertical direction of the surfaceview control according to the size ratio of the horizontal direction and the vertical direction of the short video P, so that the size of the horizontal direction of the surfaceview control is greater than the size of the vertical direction. If the short video P is in portrait mode, the terminal device can adjust the size ratio of the horizontal direction and the vertical direction of the surfaceview control according to the size ratio of the horizontal direction and the vertical direction of the short video P, so that the size of the vertical direction of the surfaceview control is greater than the size of the horizontal direction.

[0162] In some possible scenarios, when the terminal device displays the access page of the first link embedded in the interface of the first application, the terminal device can control the interface of the first application to slide up or down in response to the user's up or down sliding operation, or the terminal device can automatically slide the interface of the first application according to the increase of other content in the interface of the first application. When the interface of the first application slides up or down, the access page of the first link displayed embedded in the interface of the first application can move out of the screen of the terminal device with the sliding of the interface of the first application.

[0163] Taking the above short video P scenario as an example, when the terminal device displays the short video P embedded in the interface of the chat application, the user can slide the interface of the chat application up or down to view more chat information. Or, when the user continues to chat in the interface of the chat application, the interface of the chat application will slide down with the increase of chat information. When the interface of the chat application slides up or down, the short video P displayed embedded in the interface of the chat application can move out of the screen of the terminal device with the sliding of the interface of the chat application.

[0164] For example, Figure 15 For the short video P embedded in the interface of the chat application and displayed by the terminal device, a schematic diagram of the interface of the chat application sliding up is provided. As shown in FIG. 8A, the interface of the chat application slides up, and the short video P embedded in the interface of the chat application moves out of the screen of the terminal device with the sliding of the interface of the chat application. Figure 15As shown, when the interface of the chat application slides upward, the short video P will move out of the screen of the terminal device from the top of the interface of the chat application. Figure 16 A schematic diagram of the interface of the chat application sliding downward when the short video P is displayed in the interface of the chat application according to an embodiment of the present application is shown in FIG. 4B. As shown, when the interface of the chat application slides downward, the short video P will move out of the screen of the terminal device from the bottom of the interface of the chat application. Figure 16 A schematic diagram of the interface of the chat application sliding downward when the short video P is displayed in the interface of the chat application according to an embodiment of the present application is shown in FIG. 4B. As shown, when the interface of the chat application slides downward, the short video P will move out of the screen of the terminal device from the bottom of the interface of the chat application.

[0165] For the scenario that the access page of the first link moves out of the screen of the terminal device with the sliding of the interface of the first application when the access page of the first link is displayed in the interface of the first application, in the embodiment of the present application, the terminal device (or the first application) can monitor the position (or offset value) of the surfaceview control in the interface of the first application. When the interface of the first application slides upward, the terminal device can monitor whether the upper edge of the surfaceview control is offset to the screen boundary (i.e., the screen edge). When the interface of the first application slides downward, the terminal device can monitor whether the lower edge of the surfaceview control is offset (i.e., moved) to the screen boundary. If the terminal device monitors that the upper edge or the lower edge of the surfaceview control is offset to the screen boundary, the terminal device can acquire the position and size of the surfaceview control relative to the screen, and add a surface (for convenience of description, referred to as a floating surface, i.e., a floating interface) having the same position and size as the surfaceview control relative to the screen in the system layer. Then, the terminal device can assign the floating surface to the second application to display the surface of the access page of the first link. At this time, the access page of the first link will be drawn on the floating surface for display, i.e., the access page of the first link can be switched from being displayed in the interface of the first application to being displayed floating on the interface of the first application. Since the access page of the first link is displayed floating on the interface of the first application, the access page of the first link will not move out of the screen of the terminal device with the upward sliding or downward sliding of the interface of the first application.

[0166] For example, when the operating system of the terminal device is an Android system, the terminal device can obtain the position and size of the surfaceview control relative to the screen in the following manner: the terminal device obtains the position of the surfaceview control relative to the screen by using the View.getLocationOnScreen method, and obtains the size of the surfaceview control by using the getWidth and getHeight methods (or functions). Similarly, when the operating system of the terminal device is another operating system, the terminal device can obtain the position and size of the surfaceview control relative to the screen in a similar manner.

[0167] For example, when the terminal device displays the short video P embedded in the interface of the chat application, the terminal device can monitor the position (or offset value) of the surfaceview control in the interface of the chat application. When the interface of the chat application is swiped upward, the terminal device can monitor whether the upper edge of the surfaceview control is offset to the screen boundary. When the interface of the chat application is swiped downward, the terminal device can monitor whether the lower edge of the surfaceview control is offset to the screen boundary. If the terminal device monitors that the upper edge or the lower edge of the surfaceview control is offset to the screen boundary, the terminal device can obtain the position and size of the surfaceview control relative to the screen, and add a floating surface having the same position and size as the surfaceview control relative to the screen at the system layer. Then, the terminal device can assign the floating surface to the surface of the application A for displaying the short video P. At this time, the short video P is drawn on the floating surface and displayed, that is, the short video P can be switched from being displayed embedded in the interface of the chat application to being displayed floating on the interface of the chat application.

[0168] For example, Figure 17 For example, when the terminal device displays the short video P embedded in the interface of the chat application, the terminal device can monitor the position (or offset value) of the surfaceview control in the interface of the chat application. When the interface of the chat application is swiped upward, the terminal device can monitor whether the upper edge of the surfaceview control is offset to the screen boundary. When the interface of the chat application is swiped downward, the terminal device can monitor whether the lower edge of the surfaceview control is offset to the screen boundary. If the terminal device monitors that the upper edge or the lower edge of the surfaceview control is offset to the screen boundary, the terminal device can obtain the position and size of the surfaceview control relative to the screen, and add a floating surface having the same position and size as the surfaceview control relative to the screen at the system layer. Then, the terminal device can assign the floating surface to the surface of the application A for displaying the short video P. At this time, the short video P is drawn on the floating surface and displayed, that is, the short video P can be switched from being displayed embedded in the interface of the chat application to being displayed floating on the interface of the chat application. Figure 17 For example, when the terminal device displays the short video P embedded in the interface of the chat application, the terminal device can monitor the position (or offset value) of the surfaceview control in the interface of the chat application. When the interface of the chat application is swiped upward, the terminal device can monitor whether the upper edge of the surfaceview control is offset to the screen boundary. When the interface of the chat application is swiped downward, the terminal device can monitor whether the lower edge of the surfaceview control is offset to the screen boundary. If the terminal device monitors that the upper edge or the lower edge of the surfaceview control is offset to the screen boundary, the terminal device can obtain the position and size of the surfaceview control relative to the screen, and add a floating surface having the same position and size as the surfaceview control relative to the screen at the system layer. Then, the terminal device can assign the floating surface to the surface of the application A for displaying the short video P. At this time, the short video P is drawn on the floating surface and displayed, that is, the short video P can be switched from being displayed embedded in the interface of the chat application to being displayed floating on the interface of the chat application.

[0169] For example, Figure 18Fig. 6 is a schematic view of the interface of the chat application provided by the embodiment of the present application when the interface of the chat application is slid downward, and the short video P is displayed in the interface of the chat application. Figure 18 As shown in Fig. 6, when the interface of the chat application is slid downward, if the lower edge of the surfaceview control corresponding to the short video P is shifted to the screen boundary, the short video P can be switched from being displayed in the interface of the chat application to being displayed on the interface of the chat application. At this time, the short video P will not move out of the screen of the terminal device as the interface of the chat application continues to slide downward.

[0170] In some embodiments, when the access page of the first link is switched from being displayed in the interface of the first application to being displayed on the interface of the first application, the terminal device can continue to monitor the position of the surfaceview control in the interface of the first application. For the above-mentioned scenario in which the interface of the first application is slid upward, if the interface of the first application is changed from being slid upward to being slid downward, the terminal device can monitor whether the upper edge of the surfaceview control is away from the screen boundary (the top of the screen). For the above-mentioned scenario in which the interface of the first application is slid downward, if the interface of the first application is changed from being slid downward to being slid upward, the terminal device can monitor whether the lower edge of the surfaceview control is away from the screen boundary (the bottom of the screen). If the terminal device monitors that the upper edge of the surfaceview control is away from the top of the screen or the lower edge of the surfaceview control is away from the bottom of the screen, the terminal device can reassign the surface of the surfaceview control to the surface of the second application to display the access page of the first link, so that the access page of the first link is switched from being displayed on the interface of the first application to being displayed in the interface of the first application.

[0171] For example, for the scenario shown in Fig. 6, when the interface of the chat application is changed from being slid upward to being slid downward, if the upper edge of the surfaceview control corresponding to the short video P is away from the top of the screen, the short video P can be switched from being displayed on the interface of the chat application to being displayed in the interface of the chat application. Figure 17 As shown in Fig. 6, when the interface of the chat application is slid downward, if the lower edge of the surfaceview control corresponding to the short video P is shifted to the screen boundary, the short video P can be switched from being displayed in the interface of the chat application to being displayed on the interface of the chat application. At this time, the short video P will not move out of the screen of the terminal device as the interface of the chat application continues to slide downward. Figure 18 As shown in Fig. 6, when the interface of the chat application is slid downward, if the lower edge of the surfaceview control corresponding to the short video P is shifted to the screen boundary, the short video P can be switched from being displayed in the interface of the chat application to being displayed on the interface of the chat application. At this time, the short video P will not move out of the screen of the terminal device as the interface of the chat application continues to slide downward.

[0172] Optionally, when the access page of the first link is displayed in suspension on the interface of the first application, the access page of the first link or the interface of the first application can also include the full-screen button, the minimize button, the close button and the like mentioned in the foregoing embodiments, and will not be described herein again.

[0173] It can be understood that when the access page of the first link is displayed in suspension on the interface of the first application, the access page of the first link will block part of the area in the interface of the first application, and some other elements in the interface of the first application that the user expects to use or browse can be blocked, and the user can be affected when performing some other operations on the interface of the first application. For example, when the short video P is displayed in suspension on the interface of the chat application, if the user opens the input keyboard to input text into the chat box, the short video P can block the chat box, and even block the input keyboard (the chat box and the input keyboard are other elements).

[0174] To this end, in the embodiments of the present application, when the access page of the first link is displayed in suspension on the interface of the first application, the terminal device can dynamically adjust the size of the access page of the first link being displayed in suspension according to the positional relationship between the other element (such as the first element) in the interface of the first application and the access page of the first link being displayed in suspension (which can be referred to as a suspension window), so as to avoid the other element in the interface of the first application being blocked, and enable the user to perform some other operations on the interface of the first application while browsing the access page of the first link being displayed in suspension. When the size of the access page of the first link being displayed in suspension is dynamically adjusted, the size of the access page of the first link can be related to the first element.

[0175] For example, taking the access page of the first link as the short video P described above, when the short video P is displayed in suspension on the interface of the chat application, and the user opens the input keyboard to input text into the chat box, the terminal device can dynamically adjust the size of the suspension window of the short video P according to the positional relationship between the chat box and the suspension window of the short video P, so as to avoid the chat box being blocked by the suspension window of the short video P. The user can continue to input text into the chat box to chat while browsing the short video P. The chat box can be the first element described above, and the size of the suspension window of the short video P is related to the chat box.

[0176] Exemplarily, Figures 19 to 21 The three schematic diagrams of the interface of the chat application provided by the embodiments of the present application are sequentially shown. The following will be described in combination with Figures 19 to 21 The process and specific principles of dynamically adjusting the size of the suspension window of the short video P according to the positional relationship between the chat box and the suspension window of the short video P by the terminal device will be described.

[0177] Please refer to Figure 19As shown, when the floating window 1901 of the short video P floats on the interface of the chat application, the user can open the input keyboard 1903 to input text into the chat box 1902.

[0178] Please refer to Figure 20 As shown, when a user opens the input keyboard 1903 and enters text into the chat box 1902, the chat box 1902 will gradually increase in size as more text is entered. As the chat box 1902 gradually increases in size, its upper edge will gradually approach the floating window 1901 of the short video P.

[0179] In this embodiment, as the chat box 1902 gradually increases in size as the input text increases, when the upper edge of the chat box 1902 approaches and touches the floating window 1901 of the short video P, or when the distance between the upper edge of the chat box 1902 and the lower edge of the floating window 1901 of the short video P is less than a certain threshold (such as 1 millimeter (mm), 2 mm, or 1 pixel, etc.), if the chat box 1902 continues to increase in size, the terminal device can compress (or shrink) the size of the floating window 1901 of the short video P as the chat box 1902 increases in size. For example, for every 1 mm increase in the chat box 1902, the terminal device can adjust the lower edge of the floating window 1901 of the short video P to shrink upwards by 1 mm.

[0180] The effect of dynamically adjusting the size of the floating window 1901 of the short video P can be seen in the following example. Figure 21 As shown. Figure 21 As shown, as the chat box 1902 gradually increases in size as more text is entered, the terminal device dynamically adjusts the size of the floating window 1901 of the short video P according to the positional relationship between the chat box 1902 and the floating window 1901 of the short video P, so that the floating window 1901 of the short video P does not obscure the chat box 1902.

[0181] As described above, the floating access page of the first link is achieved by the aforementioned floating surface within the interface of the first application. In this embodiment, the terminal device can adjust the size of the floating access page of the first link by adjusting the size of the floating surface.

[0182] It should be noted that the above example, using the scenario of a user receiving a link to a short video P from application A while chatting in a chat application and clicking the link to view the short video P, exemplifies the display method provided in this application. However, it should be understood that although the above description uses the display of a thumbnail corresponding to the link to the short video P and an open button for the short video P on the interface of the chat application as examples, this application does not limit the way the terminal device displays the link to the short video P.

[0183] For example, in some embodiments, the terminal device can also display the URI in the form of text or card and the opening button of the link of the short video P.

[0184] For another example, in some other embodiments, the terminal device can only display the thumbnail corresponding to the link of the short video P or the URI in the form of text or card, and does not display the opening button of the link of the short video P, but the thumbnail corresponding to the link of the short video P or the URI in the form of text or card can be used as the opening button. When the user clicks the thumbnail corresponding to the link of the short video P or the URI in the form of text or card, the terminal device can detect the operation of the user opening the link of the short video P.

[0185] The above embodiments are described by taking the first application as a chat application as an example, and in some other embodiments, the above-mentioned various implementation manners are also applicable when the first application is a mailbox (or an email) or other application with the function of sending and receiving information.

[0186] For example, taking the first application as a mailbox and the second application as the above-mentioned application A as an example, assuming that the mailbox receives the link of the short video P in the application A sent by other users through the mail, when the user opens the mail, the interface of the mailbox can display the link of the short video P. For example, Figure 22 The interface of the mailbox provided by the embodiments of the present application is shown in FIG. 22. As shown in FIG. 22, Figure 22 In some embodiments, the terminal device can display the thumbnail 2201 corresponding to the link of the short video P and the opening button 2202 of the link of the short video P in the interface of the mailbox. When the user clicks the opening button 2202 shown in FIG. 22 (for example, by clicking the opening button 2202 with a mouse), the terminal device can access the URI included in the link of the short video P through the application A in response to detecting the operation of the user clicking the opening button 2202, and display the short video P embedded in the interface of the mailbox (the specific principle is the same as the above-mentioned embodiments). Figure 22 The effect diagram of the short video P embedded in the interface of the mailbox and displayed is shown in FIG. 23. As shown in FIG. 23,

[0187] The short video P is displayed in the interface of the mailbox. Figure 23 Figure 23 The short video P does not block the interface of the mailbox when the short video P is displayed in the interface of the mailbox.

[0188] ​Similarly, other embodiments given above in combination with the chat application as an example are also applicable to the scenario where the first application is a mailbox, and thus will not be repeated here.

[0189] In some embodiments, the first application described in the embodiments of the present application can also refer to a notification bar (the notification bar can also be referred to as a status bar) of a terminal device (such as a mobile phone or a computer), and the notification bar can include information carrying a URI, software update reminders, push messages, and other notifications. These notifications can also be referred to as links, and the second application can be an application capable of opening the notifications in the notification bar. For example, assuming that the notification bar includes notification B, which is a push message pushed by application B, the second application can be application B or a default browser.

[0190] Taking the first application as the status bar of a mobile phone as an example, Figure 24 A schematic diagram of the interface of the status bar of the mobile phone is provided in the embodiments of the present application. As shown in Figure 24 The mobile phone can display the status bar 2402 in the pull-down interface 2401. The pull-down interface refers to a display interface that appears after the top of the main interface (or referred to as the desktop) of the mobile phone is slid downward, and the pull-down interface can display the keys of functions frequently used by the user, such as WLAN, Bluetooth, etc., to facilitate the user to quickly use the related functions. For example, when the current display interface of the mobile phone is the desktop, the user can perform a downward sliding operation on the top of the screen of the mobile phone to trigger the mobile phone to switch the display interface from the desktop to the pull-down interface (or to display the pull-down interface on the desktop).

[0191] The interface of the status bar 2402 can include notifications A, B, and C. Assuming that notification B is a push message pushed by application B, and application B is installed on the mobile phone, when the user clicks notification B in the status bar 2402, the mobile phone can replace the view control used to display notification B in the interface of the status bar 2402 with a surfaceview control, or add a surfaceview control in the interface of the status bar 2402. Here, the view control used to display notification B in the interface of the status bar 2402 is replaced with a surfaceview control as an example. The surfaceview control has a layer of surface. In addition, the mobile phone can start application B through the startactivity method in response to the operation of the user clicking notification B in the status bar 2402, and application B can access the URI included in notification B to display the specific content of notification B.

[0192] The mobile phone can assign the surface of the surfaceview control in the interface of the status bar 2402 to the surface of the application B displaying the specific content of the notification B when creating the surface of the application B displaying the specific content of the notification B. Then, the specific content of the notification B is drawn on the surface of the surfaceview control in the interface of the status bar 2402 and displayed. That is, the specific content of the notification B can be displayed in the interface of the status bar 2402.

[0193] For example, Figure 25 The effect schematic diagram of the specific content of the notification B displayed in the interface of the status bar is provided in the embodiments of the present application. As shown in Figure 25 the specific content of the notification B is drawn on the surface of the surfaceview control in the interface of the status bar 2402 and displayed, the window of the application B can be embedded in the interface of the status bar 2402. At this time, the user can browse the specific content of the notification B in the interface of the status bar 2402, and the specific content of the notification B will not block the interface of the status bar 2402 when displayed.

[0194] The above Figure 24 and Figure 25 In the scenario shown in the above, the notification B is the first link, and the operation of the user clicking the notification B in the status bar 2402 is the operation of opening the first link.

[0195] Similarly, the other embodiments given in combination with the chat application are also applicable to the scenario that the first application is the notification bar, and will not be repeated here.

[0196] In some embodiments, the first application in the embodiments of the present application can also refer to the negative one screen of the terminal device (such as a mobile phone). The negative one screen can also include recommended information such as information carrying a URI, push messages, or service information such as health services, financial services, and shopping services. The negative one screen including these recommended information, service information, and the like can also be referred to as a link, and the first link can be one of the links. The second application can be an application capable of opening the link in the negative one screen. The negative one screen refers to the display interface that appears after the main interface (or referred to as the desktop) of the mobile phone is swiped to the right. The negative one screen can display commonly used applications, functions, and subscribed services and information of the user, etc., to facilitate the user to quickly browse and use. For example, when the current display interface of the mobile phone is the desktop, the user can perform a swiping operation to the right on the screen of the mobile phone to trigger the mobile phone to switch the display interface from the desktop to the negative one screen.

[0197] It is understood that "negative one screen" is just a term used in the embodiments of this application, and its meaning has been recorded in the embodiments of this application, but its name does not constitute any limitation on the embodiments of this application; in addition, in some other embodiments, "negative one screen" may also be called other names such as "desktop assistant", "shortcut menu", "widget collection interface" etc., which are not limited here.

[0198] Similarly, the other embodiments given above, using chat applications as an example, are also applicable to scenarios where the first application is the negative one screen, and will not be described in detail hereafter.

[0199] The scenarios in the above embodiments where the first application is a chat application, email, notification bar, negative one screen, etc., are only some scenarios that can be implemented in the embodiments of this application. This application does not limit the specific type of the first application.

[0200] Furthermore, it should be noted that the above embodiments only illustrate scenarios where the first link is a short video P or a "notification B," etc. However, it should be understood that the above embodiments are also applicable to scenarios where the first link is a link to other types of data such as text, images, audio, video, or web pages. That is, the technical solutions described in the embodiments of this application can be applied to scenarios where the first link is a link to different types of data such as text, images, audio, short videos, or videos and web pages, and there is no limitation on the specific data type corresponding to the first link.

[0201] It should be understood that the above embodiments are merely illustrative examples of the display methods provided in this application. In other possible implementations, some execution steps may be omitted or added to the above embodiments, or the order of some steps in the above embodiments may be adjusted, and this application does not impose any limitations on these aspects.

[0202] Corresponding to the display method described in the foregoing embodiments, this application provides a display device that can be applied to the aforementioned terminal device to implement the display method described in the foregoing embodiments. The function of this device can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the steps in the aforementioned display method.

[0203] For example, Figure 26 This is a schematic diagram of the structure of a display device provided in an embodiment of this application. Figure 26 As shown, the device may include a display module 2601, a receiving module 2602, and a processing module 2603. The display module 2601, the receiving module 2602, and the processing module 2603 can be used to cooperate in implementing the display method described in the foregoing embodiments.

[0204] For example, the display module 2601 is configured to display an interface of a first application, and the interface of the first application includes a first link; the receiving module 2602 is configured to receive a first operation, and the first operation is an operation of opening the first link; and the processing module 2603 is configured to, in response to the first operation, acquire an access page of the first link by using a second application, and display the access page of the first link in the interface of the first application by using the display module 2601.

[0205] In an implementation manner, the processing module 2603 is specifically configured to replace a picture at a position of the first link in the interface of the first application with the access page of the first link, so as to display the access page of the first link in the interface of the first application.

[0206] Optionally, the processing module 2603 is specifically configured to replace a view control at the position of the first link in the interface of the first application with a first interface view control; and assign a first interface of the first interface view control to a second interface created by the second application acquiring the access page of the first link, so as to replace the picture at the position of the first link in the interface of the first application with the access page of the first link.

[0207] Alternatively, in another implementation manner, the processing module 2603 is specifically configured to add the access page of the first link in the interface of the first application, so as to display the access page of the first link in the interface of the first application.

[0208] Optionally, the processing module 2603 is specifically configured to add a first interface view control in the interface of the first application; and assign a first interface of the first interface view control to a second interface created by the second application acquiring the access page of the first link, so as to add the access page of the first link in the interface of the first application.

[0209] In some implementation manners, the receiving module 2602 is further configured to receive a second operation, and the second operation is an operation of switching the access page of the first link to full-screen display; and the processing module 2603 is further configured to, in response to the second operation, display the access page of the first link in full screen by using the display module 2601.

[0210] Optionally, the processing module 2603 is specifically configured to create a full-screen interface, and assign the full-screen interface to a second interface created by the second application acquiring the access page of the first link, so as to display the access page of the first link in full screen.

[0211] Optionally, the receiving module 2602 is further configured to receive a third operation, and the third operation is an operation of canceling full-screen display of the access page of the first link; and the processing module 2603 is further configured to, in response to the third operation, display the access page of the first link in the interface of the first application by using the display module 2601.

[0212] In some embodiments, when the access page of the first link is displayed in the interface of the first application, if the interface of the first application is slid upward or downward to cause the access page of the first link to move to the screen boundary, the processing module 2603 is further configured to display the access page of the first link in suspension by the display module 2601.

[0213] Optionally, the processing module 2603 is specifically configured to create a suspension interface, and assign the suspension interface to a second interface created by the second application for obtaining the access page of the first link, so as to display the access page of the first link in suspension.

[0214] Optionally, when the access page of the first link is displayed in suspension, if the interface of the first application is slid upward or downward to cause the access page of the first link to move away from the screen boundary, the processing module 2603 is further configured to display the access page of the first link in the interface of the first application by the display module 2601.

[0215] Optionally, when the access page of the first link is displayed in suspension, the processing module 2603 is further configured to dynamically adjust the size of the access page of the first link according to the positional relationship between the first element in the interface of the first application and the access page of the first link; the size of the access page of the first link is related to the size of the first element.

[0216] In some embodiments, the receiving module 2602 is further configured to receive a fourth operation, the fourth operation being an operation of closing the access page of the first link; and the processing module 2603 is further configured to, in response to the fourth operation, close the access page of the first link, and stop displaying the access page of the first link in the interface of the first application by the display module 2601.

[0217] Optionally, the processing module 2603 displays the access page of the first link in the interface of the first application by replacing the picture of the position of the first link in the interface of the first application with the access page of the first link; and the processing module 2603 is further configured to, after closing the access page of the first link, display the first link in the interface of the first application by the display module 2601.

[0218] Optionally, the interface of the first application includes the first link, which means that the interface of the first application includes a thumbnail corresponding to the first link, and / or an opening button of the first link.

[0219] In some embodiments, the thumbnail corresponding to the first link includes a thumbnail of the second application or a default thumbnail.

[0220] In some embodiments, the second application includes an application corresponding to the first link, or a default application on the device.

[0221] In some embodiments, when the access page of the first link is displayed in the interface of the first application, the access page of the first link occupies a larger area in the interface of the first application than the first link does.

[0222] It should be understood that the division of the modules (or units) in the above apparatus is only a logical functional division, and all or part of the modules can be integrated into one physical entity or physically separated. The units in the apparatus can all be implemented in the form of software invoked by a processing element; or all be implemented in the form of hardware; or some units are implemented in the form of software invoked by a processing element and some units are implemented in the form of hardware.

[0223] For example, each unit can be a separate processing element, or can be integrated into a chip of the apparatus, or can be stored in the form of a program in a memory and invoked and executed by a processing element of the apparatus. In addition, all or part of the units can be integrated together or independently. The processing element mentioned herein can also be referred to as a processor, which can be an integrated circuit with signal processing capability. In the implementation process, each step of the above method or each unit can be implemented by integrated logic circuits of hardware in the processing element or in the form of software invoked by the processing element.

[0224] In one example, the units in the above apparatus can be one or more integrated circuits configured to implement the above method, such as one or more application specific integrated circuits (ASICs), or one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs), or a combination of at least two of the integrated circuit forms.

[0225] For another example, when the units in the apparatus can be implemented in the form of a program invoked by a processing element, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processor that can invoke a program. For another example, the units can be integrated together to implement in the form of a system-on-a-chip (SOC).

[0226] In one implementation, the units for implementing the respective steps in the above method can be implemented in the form of a processing element scheduler. For example, the apparatus can include a processing element and a storage element, and the processing element invokes the program stored in the storage element to perform the method described in the above method embodiments. The storage element can be a storage element on the same chip as the processing element, i.e., an on-chip storage element.

[0227] In another implementation, the program for performing the above method can be in a storage element on a different chip from the processing element, i.e., an off-chip storage element. At this time, the processing element invokes or loads the program from the off-chip storage element to the on-chip storage element to invoke and perform the method described in the above method embodiments.

[0228] Embodiments of the present application also provide an electronic device. The electronic device can be the terminal device described in the first aspect. The electronic device includes a processor, a memory for storing processor-executable instructions, and the processor is configured to execute the instructions so that the electronic device implements the method described in the foregoing embodiments. The memory can be located inside the electronic device or outside the electronic device. The processor includes one or more.

[0229] Exemplarily, the electronic device can be a mobile phone, or a tablet computer, a wearable device, a vehicle-mounted device, an AR / VR device, a notebook computer, a UMPC, a netbook, a PDA, etc.

[0230] In yet another implementation, the units for implementing the respective steps in the above method can be configured as one or more processing elements, and the processing element can be an integrated circuit, such as one or more ASICs, or one or more DSPs, or one or more FPGAs, or a combination of these integrated circuits. These integrated circuits can be integrated together to form a chip.

[0231] For example, embodiments of the present application also provide a chip that can be applied to the above electronic device. The chip includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through a circuit; the processor receives and executes computer instructions from the memory of the electronic device through the interface circuit to implement the method described in the foregoing embodiments.

[0232] Through the description of the above embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional modules is taken as an example for illustration, and in actual application, the above functions can be completed by different functional modules according to needs, i.e., the internal structure of the apparatus is divided into different functional modules to complete all or part of the functions described above.

[0233] In addition, each function unit in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software function unit.

[0234] The integrated unit, if realized in the form of a software function unit and sold or used as an independent product, can be stored in a readable storage medium.

[0235] Based on such understanding, the technical solutions of the embodiments of the present application, in essence or the part that contributes to the prior art, or all or part of the technical solutions can be embodied in the form of a software product, such as a program. The software product is stored in a program product, such as a computer readable storage medium, and includes a plurality of instructions for causing an apparatus (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the method described in the embodiments of the present application. The aforementioned storage medium includes a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk, and various media that can store program codes.

[0236] For example, the embodiments of the present application also provide a computer readable storage medium having computer program instructions stored thereon; when the computer program instructions are executed by an electronic device, the electronic device implements the method as described in the embodiments.

[0237] For another example, the embodiments of the present application also provide a computer program product, including: computer readable code or a non-volatile computer readable storage medium carrying computer readable code; when the computer readable code runs in an electronic device, a processor in the electronic device implements the method as described in the foregoing embodiments.

[0238] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any change or replacement within the technical scope disclosed in the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A display method, characterized in that, The method includes: The terminal device displays the interface of a first application, and the interface of the first application includes a first link; The terminal device receives a first operation, which is to open the first link. In response to the first operation, the terminal device obtains the access page of the first link through the second application and displays the access page of the first link within the interface of the first application; wherein, the access page of the first link is a page in the second application, and the second application is an application that corresponds to the first link but is different from the first application; The terminal device displays the access page of the first link within the interface of the first application, including: the terminal device replacing the screen at the location of the first link within the interface of the first application with the access page of the first link, or the terminal device embedding and adding the access page of the first link within the interface of the first application. When the access page of the first link is displayed within the interface of the first application, if the interface of the first application is swiped up or down, causing the access page of the first link to move to the screen boundary, the terminal device displays the access page of the first link in a floating manner.

2. The method according to claim 1, characterized in that, The terminal device replaces the screen at the location of the first link within the interface of the first application with the access page of the first link, including: The terminal device replaces the view control at the location of the first link in the interface of the first application with the first interface view control. The terminal device assigns the first interface of the first interface view control to the second interface created by the second application to obtain the access page of the first link.

3. The method according to claim 1, characterized in that, The terminal device adds an access page for the first link within the interface of the first application, including: The terminal device adds a first interface view control to the interface of the first application; The terminal device assigns the first interface of the first interface view control to the second interface created by the second application to obtain the access page of the first link.

4. The method according to any one of claims 1-3, characterized in that, The method further includes: The terminal device receives a second operation, which is to switch the access page of the first link to full-screen display; In response to the second operation, the terminal device displays the access page of the first link in full screen.

5. The method according to claim 4, characterized in that, The terminal device displays the access page of the first link in full screen, including: The terminal device creates a full-screen interface and assigns the full-screen interface to the second interface created by the second application to access the first link's access page.

6. The method according to claim 4, characterized in that, The method further includes: The terminal device receives a third operation, which is to cancel the full-screen display of the access page of the first link; In response to the third operation, the terminal device displays the access page of the first link within the interface of the first application.

7. The method according to claim 1, characterized in that, The terminal device displays a floating access page for the first link, including: The terminal device creates a floating interface and assigns the floating interface to the second interface created by the second application to obtain the access page of the first link.

8. The method according to claim 1, characterized in that, The method further includes: When the access page of the first link is displayed in a floating position, if the interface of the first application is swiped up or down, causing the access page of the first link to move away from the screen boundary, the terminal device displays the access page of the first link within the interface of the first application.

9. The method according to claim 1, characterized in that, The method further includes: When the access page of the first link is displayed in a floating state, the terminal device dynamically adjusts the size of the access page of the first link according to the positional relationship between the first element in the interface of the first application and the access page of the first link. The size of the page accessed by the first link is related to the size of the first element.

10. The method according to any one of claims 1-3, characterized in that, The method further includes: The terminal device receives a fourth operation, which is to close the access page of the first link; In response to the fourth operation, the terminal device closes the access page of the first link and no longer displays the access page of the first link in the interface of the first application.

11. The method according to claim 10, characterized in that, The terminal device achieves the display of the access page of the first link within the interface of the first application by replacing the screen at the location of the first link within the interface of the first application with the access page of the first link. After the terminal device closes the access page of the first link, the method further includes: The terminal device redisplays the first link within the interface of the first application.

12. The method according to any one of claims 1-3, characterized in that, The interface of the first application includes a first link, which means that the interface of the first application includes a thumbnail corresponding to the first link and / or an open button for the first link.

13. The method according to claim 12, characterized in that, The thumbnail corresponding to the first link includes: the thumbnail of the second application or the default thumbnail.

14. The method according to any one of claims 1-3, characterized in that, The second application includes the application corresponding to the first link, or the default application on the terminal device.

15. The method according to any one of claims 1-3, characterized in that, When the access page of the first link is displayed within the interface of the first application, the area occupied by the access page of the first link in the interface of the first application is larger than the area occupied by the first link in the interface of the first application.

16. A display device, characterized in that, The device includes: The display module is used to display the interface of the first application, the interface of the first application including the first link; The receiving module is used to receive a first operation, wherein the first operation is to open the first link; The processing module is configured to respond to the first operation by obtaining the access page of the first link through the second application and displaying the access page of the first link within the interface of the first application; wherein the access page of the first link is a page in the second application, and the second application is an application that corresponds to the first link but is different from the first application. The processing module is specifically used to replace the screen at the location of the first link in the interface of the first application with the access page of the first link, or to embed and add the access page of the first link in the interface of the first application; when the access page of the first link is displayed in the interface of the first application, if the interface of the first application is swiped up or down, causing the access page of the first link to move to the screen boundary, the display device displays the access page of the first link in a floating manner.

17. An electronic device, characterized in that, include: A processor, and a memory for storing processor-executable instructions; When the processor is configured to execute the instructions, it causes the electronic device to implement the method as described in any one of claims 1-15.

18. A computer-readable storage medium having computer program instructions stored thereon; characterized in that, When the computer program instructions are executed by the electronic device, the electronic device causes the electronic device to perform the method as described in any one of claims 1-15.

19. A computer program product comprising computer-readable code, or a non-volatile computer-readable storage medium carrying computer-readable code, characterized in that, When the computer-readable code is run in an electronic device, the processor in the electronic device implements the method as described in any one of claims 1-15.

Citation Information

Patent Citations

  • Method and device for displaying information on instant messaging client and information display system

    CN104243273A

  • Webpage opening method and device and terminal device

    CN108038150A