WO2023030276A1 - 一种显示方法、装置、设备及存储介质 - Google Patents

一种显示方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2023030276A1
WO2023030276A1 PCT/CN2022/115633 CN2022115633W WO2023030276A1 WO 2023030276 A1 WO2023030276 A1 WO 2023030276A1 CN 2022115633 W CN2022115633 W CN 2022115633W WO 2023030276 A1 WO2023030276 A1 WO 2023030276A1
Authority
WO
WIPO (PCT)
Prior art keywords
link
application
interface
terminal device
access page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2022/115633
Other languages
English (en)
French (fr)
Inventor
李春东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to US18/687,515 priority Critical patent/US20240354128A1/en
Priority to EP22863411.9A priority patent/EP4369176A4/en
Publication of WO2023030276A1 publication Critical patent/WO2023030276A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

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

Definitions

  • the embodiments of the present application relate to the field of communication technologies, and in particular, to a display method, device, device, and storage medium.
  • Applications with social attributes can provide users with the function of sharing links.
  • the terminal device may receive a link shared by other users.
  • the link can be displayed in the interface of the chat application as part of the chat content, and the user can click the link to trigger the terminal device to display the access page of the link (or called the window corresponding to the link).
  • the accessed page of the link may be a page in another application, and the other application may be referred to as the application corresponding to the link, and the page may include text, picture, audio, video, web page and other types of data.
  • the terminal device may, in response to the user's operation of clicking the link, jump to an access page where the application corresponding to the link displays the link. If there is no application corresponding to the link installed on the terminal device, the terminal device may jump to a default application (such as a browser) to display the linked access page in response to the operation of clicking the link by the user.
  • a default application such as a browser
  • the terminal device jumps to the application corresponding to the link or the default application to display the linked access page
  • the linked access page is usually displayed in full screen or in the form of a floating window, which will block the interface of the original chat application.
  • the embodiments of the present application provide a display method, device, device, and storage medium, so that when a terminal device opens a linked access page, the accessed page will not block the application interface where the original link is located.
  • the embodiment of the present application provides a display method, the method includes: the terminal device displays the interface of the first application, the interface of the first application includes the first link; the terminal device receives the first operation, the first operation is to open The operation of 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 in the interface of the first application.
  • the terminal device can obtain the access page of the first link through the second application, And displaying the access page of the first link in the interface of the first application can prevent the access page of the first link from blocking the interface of the first application when displayed.
  • the first application may be a chat application
  • the first link may be a sharing link received by the user during chatting
  • the second application may be an application corresponding to the sharing link.
  • 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 will not block the interface of the chat application when displayed. User experience can be better.
  • the terminal device displays the access page of the first link in the interface of the first application, including: the terminal device replaces the screen where the first link is located in the interface of the first application with the access page of the first link page.
  • the terminal device replaces the screen at the location of the first link in 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 Replace 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.
  • the terminal device can acquire the access page of the first link, and display the access page of the first link in the interface of the first application.
  • the terminal device displaying the first linked access page in the first application interface includes: the terminal device adding the first linked access page in the first application interface.
  • adding the access page of the first link in the interface of the first application by the terminal device includes: adding a first interface view control in the interface of the first application by the terminal device; The first interface is assigned to the second interface created by the second application to obtain the access page of the first link.
  • the terminal device may add a first interface view control in a blank area of 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 to obtain the access page of the first link, which can also be realized in the interface of the first application. The visited page of the first link is displayed.
  • the method further includes: the terminal device receives a second operation, and the second operation is an operation of switching the access page of the first link to a full-screen display; Visit the page.
  • the terminal device displaying the access page of the first link in full screen includes: creating a full-screen interface on the terminal device, and assigning the full-screen interface to the second interface created by the second application to obtain the access page of the first link.
  • Providing the user with a way to switch the access page of the first link to a full-screen display can better meet the actual browsing needs of the user and improve user experience.
  • the method further includes: the terminal device receives a third operation, the third operation is an operation of canceling the full-screen display of the access page of the first link; the terminal device responds to the third operation, and displays in the interface of the first application The visited page of the first link.
  • the user may also perform a third operation to trigger the terminal device to switch the access page of the first link from full-screen display to embedded display.
  • the method further includes: when the access page of the first link is displayed in the interface of the first application, if the interface of the first application slides up or down, causing the access page of the first link to move to the interface of the screen , the terminal device floats to display the access page of the first link.
  • the terminal device floating and displaying the access page of the first link includes: creating a floating interface on the terminal device, and assigning the floating interface to the second interface created by the second application to obtain the access page of the first link.
  • the method further includes: when the access page of the first link is suspended and displayed, if the interface of the first application slides up or down, causing the access page of the first link to be far away from the screen junction, The access page of the first link is displayed in the interface.
  • the method further includes: when the access page of the first link is floating, the terminal device dynamically adjusts the first element 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 visited page of the link; the size of the visited page of the first link is related to the size of the first element.
  • the first application may be a chat application
  • the first element may be a chat box.
  • the terminal device dynamically adjusts the size of the first linked page according to the positional relationship between the chat box and the first linked page, so that the first linked page will not affect the chat box.
  • the method further includes: the terminal device receives a fourth operation, and the fourth operation is an operation of closing 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 The access page of the first link is displayed in the interface of the first application.
  • the terminal device realizes displaying the access page of the first link in the interface of the first application by replacing the screen where the first link is located in the interface of the first application with the access page of the first link; the terminal After the device closes the access page of the first link, the method further includes: the terminal device re-displays the first link in the interface of the first application.
  • the interface of the first application includes the first link means that the interface of the first application includes a thumbnail corresponding to the first link, and/or an open button of the first link.
  • the thumbnail corresponding to the first link includes: a thumbnail of the second application or a default thumbnail.
  • the second application includes an application corresponding to the first link, or a default application on the terminal device.
  • the area occupied by the access page of the first link in the interface of the first application is larger than that occupied by the first link in the interface of the first application. occupied area.
  • the embodiment of the present application provides a display apparatus, and the apparatus may be applied to a terminal device.
  • the device includes: a display module, configured to display the interface of the first application, and the interface of the first application includes a first link; a receiving module, configured to receive a first operation, where the first operation is an operation of opening the first link; a processing module In response to the first operation, the access page of the first link is acquired through the second application, and the access page of the first link is displayed in the interface of the first application through the display module.
  • the processing module is specifically configured to replace the screen where the first link is located 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 page.
  • the processing module is specifically configured to replace the view control at the location of the first link in the interface of the first application with the first interface view control; assign the first interface of the first interface view control to the second application to obtain the second A second interface created by a linked access page, so as to replace the screen where the first link is located in the interface of the first application with the first linked access page.
  • the processing module is specifically configured to add an 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.
  • the processing module is specifically configured to add a first interface view control to the interface of the first application; assign the first interface of the first interface view control to the first interface created by the second application to obtain the access page of the first link
  • the second interface is to add the first linked access page in the interface of the first application.
  • the receiving module 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 a full-screen display; the processing module is also configured to respond to the second operation by displaying the full-screen The visited page of the first link is displayed.
  • the processing module is specifically configured to create a full-screen interface, and assign the full-screen interface to the second interface created by the second application to obtain the access page of the first link, so as to display the access page of the first link in full screen.
  • the receiving module is further configured to receive a third operation, and the third operation is an operation of canceling the full-screen display of the access page of the first link;
  • the access page of the first link is displayed in the interface of the application.
  • the processing module when the access page of the first link is displayed in the interface of the first application, if the interface of the first application slides up or down and the access page of the first link moves to the screen junction, the processing module further It is used for hovering and displaying the access page of the first link through the display module.
  • the processing module is specifically configured to create a floating interface, and assign the floating interface to the second interface created by the second application to obtain the access page of the first link, so as to realize the floating display of the access page of the first link.
  • the processing module is further configured to display the first link on the first link through the display module.
  • the access page of the first link is displayed in the interface of the application.
  • the processing module is further configured to dynamically adjust the location 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 visited page; the size of the visited page of the first link is related to the size of the first element.
  • the receiving module is further configured to receive a fourth operation, where the fourth operation is an operation of closing the access page of the first link; the processing module is further configured to close the access page of the first link in response to the fourth operation, The access page of the first link is no longer displayed in the interface of the first application through the display module.
  • the processing module realizes displaying the access page of the first link in the interface of the first application by replacing the screen where the first link is located in the interface of the first application with the access page of the first link; the processing module, It is also used for redisplaying the first link in the interface of the first application through the display module after closing the access page of the first link.
  • the interface of the first application includes the first link means that the interface of the first application includes a thumbnail corresponding to the first link, and/or an open button of the first link.
  • the thumbnail corresponding to the first link includes: a thumbnail of the second application or a default thumbnail.
  • the second application includes an application corresponding to the first link, or a default application on the device.
  • the area occupied by the access page of the first link in the interface of the first application is larger than that occupied by the first link in the interface of the first application. occupied area.
  • an embodiment of the present application provides an electronic device, and the electronic device may be the terminal device described in the first aspect.
  • the electronic device includes: a processor, a memory for storing processor-executable instructions; when the processor is configured to execute the instructions, the electronic device implements the first aspect and any possible implementation manner of the first aspect. described method.
  • an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored; when the computer program instructions are executed by an electronic device, the electronic device realizes the first aspect and the first aspect.
  • the embodiment of the present application provides a computer program product, including computer readable code, or a non-volatile computer readable storage medium bearing computer readable code, when the computer readable code is stored in an electronic device During operation, the processor in the electronic device implements the method described in the first aspect and any possible implementation manner of the first aspect.
  • FIG. 1 is a schematic diagram of an interface of a chat application
  • FIG. 2 is another schematic diagram of an interface of a chat application
  • FIG. 3 is a schematic diagram of a full-screen display of the access page of link 2 by the terminal device
  • FIG. 4 is a schematic diagram of the terminal device displaying the access page of link 2 in the form of a floating window
  • FIG. 5 is another schematic diagram of the terminal device displaying the access page of link 2 in the form of a floating window
  • FIG. 6 shows a schematic structural diagram of a terminal device provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of the system architecture of the Android system provided by the embodiment of the present application.
  • FIG. 8 is a schematic diagram of the relationship between the imageview control and Surface_A provided by the embodiment of the present application.
  • FIG. 10 is a schematic diagram showing the content in Surface_B displayed on the surface of the surfaceview control in Surface_A provided by the embodiment of the present application;
  • FIG. 11 is a schematic diagram of the relationship between the imageview control, the surfaceview control, and Surface_A provided by the embodiment of the present application;
  • FIG. 12 is a schematic diagram of an interface of a chat application provided by an embodiment of the present application.
  • Figure 13 is a schematic diagram of the effect of displaying the short video P embedded in the interface of the chat application provided by the embodiment of the present application;
  • FIG. 14 is a schematic diagram of the effect of full-screen display of the short video P provided by the embodiment of the present application.
  • 15 is a schematic diagram of the interface of the chat application sliding upward when the short video P provided by the embodiment of the present application is embedded in the interface of the chat application for display;
  • FIG. 16 is a schematic diagram of the interface of the chat application sliding down when the short video P provided by the embodiment of the present application is embedded in the interface of the chat application for display;
  • FIG. 17 is a schematic diagram of a short video P floating on the interface of the chat application for display when the interface of the chat application provided by the embodiment of the present application slides upward;
  • FIG. 18 is a schematic diagram of a short video P floating on the interface of the chat application for display when the interface of the chat application provided by the embodiment of the present application slides down;
  • FIG. 19 is another schematic diagram of the interface of the chat application provided by the embodiment of the present application.
  • FIG. 20 is another schematic diagram of the interface of the chat application provided by the embodiment of the present application.
  • FIG. 21 is another schematic diagram of the interface of the chat application provided by the embodiment of the present application.
  • Fig. 22 is a schematic diagram of the interface of the mailbox provided by the embodiment of the present application.
  • Fig. 23 is a schematic diagram showing the effect of displaying the short video P embedded in the mailbox interface provided by the embodiment of the present application.
  • FIG. 24 is a schematic diagram of the interface of the status bar of the mobile phone provided by the embodiment of the present application.
  • Fig. 25 is a schematic diagram showing the specific content of "notification B" embedded in the interface of the status bar provided by the embodiment of the present application;
  • FIG. 26 is a schematic structural diagram of a display device provided by an embodiment of the present application.
  • references to "one embodiment” or “some embodiments” or the like in this specification means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically stated otherwise.
  • the terms “including”, “comprising”, “having” and variations thereof mean “including but not limited to”, unless specifically stated otherwise.
  • the term “connected” includes both direct and indirect connections, unless otherwise stated.
  • first and second are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as “first” and “second” may explicitly or implicitly include one or more of these features.
  • Applications with social attributes such as chat applications and mailboxes can provide users with the function of sharing links.
  • the terminal device may receive a link shared by other users.
  • the link can be displayed in the interface of the chat application as part of the chat content, and the user can click the link to trigger the terminal device to display the access page of the link (or called the window corresponding to the link, or the preview window, or the display window ).
  • the accessed page of the link may be a page in another application, and the page may include text, picture, audio, video, web page and other types of data.
  • terminal device 1 For example, in a 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.
  • the user 2 views a certain short video P in the short video application on the terminal device 2, the user 2 can send the link of the short video P to the terminal device 1 through the chat application.
  • the link of the short video P can be displayed in the interface of the chat application as part of the chat content, and the user 1 can click the link of the short video P in the interface of the chat application to trigger the terminal device 1 to display the access page of the link of the short video P,
  • the access page includes a short video P, and user 1 can view the short video P on the access page.
  • FIG. 1 is a schematic diagram of an interface of a chat application.
  • the link shared by user 2 to user 1 may be a URI in text form: "http://j.map.xxxxxxxxxxxx%A6&E5% 9Cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#". It can be understood that the URI shown in FIG. 1 is only an example.
  • FIG. 2 is another schematic diagram of an interface of a chat application.
  • the link shared by user 2 to user 1 may include link 1 and link 2, and link 1 and link 2 may be static cards.
  • the card corresponding to Link 1 may include identifiers such as "App A”, “Video 1", etc., and the identifiers such as "App A”, “Video 1” may be used to indicate that Link 1 is a link to Video 1 in App A.
  • the card corresponding to link 2 may include signs such as "Application B” and ""Recipe of Braised Pork”", and signs such as “Application B” and “"Recipe of Braised Pork”” can be used to indicate that link 2 is in application B, Link to the article titled “Recipe for Braised Pork in Red Sauce”.
  • the static card shown in Figure 2 as a link can display more detailed information related to the link.
  • the terminal device may jump to an access page where the application corresponding to the link displays the link in response to the operation of clicking the link by the user. If there is no application corresponding to the link installed on the terminal device, the terminal device may jump to a default application (such as a browser) to display the linked access page in response to the operation of clicking the link by the user.
  • a default application such as a browser
  • the terminal device jumps to the application corresponding to the link or the default application to display the linked access page
  • the linked access page is usually displayed in full screen or in the form of a floating window, which will block the interface of the original chat application.
  • FIG. 3 is a schematic diagram of an access page where the terminal device displays the link 2 in full screen.
  • the terminal device can respond to the operation of the user clicking on the link 2, and jump to the application corresponding to the link 2 or the default application to display the access page of the link 2 in full screen.
  • the access page of the link 2 may include the title "Recipe of Braised Pork in Braised Pork" 301 , a picture 302 , a text 303 and the like of the article corresponding to the link 2 . Since the access page of link 2 is displayed in full screen, the interface of the original chat application shown in Figure 2 above is completely blocked, and the user cannot perform other operations on the interface of the original chat application while browsing the access page of link 2, such as Enter text into the chat box.
  • FIG. 4 is a schematic diagram of a terminal device displaying an access page of the link 2 in the form of a floating window.
  • the terminal device may also jump to the application corresponding to link 2 or the default application and display the access page 402 of link 2 in the form of a floating window in response to the operation of the user clicking on link 2. . That is, the access page 402 of link 2 is displayed above the interface 401 of the original chat application in the form of a floating window.
  • FIG. 5 is another schematic diagram of the terminal device displaying the access page of link 2 in the form of a floating window. As shown in FIG. 5 , when the user opens the input keyboard 404 to input text into the chat box 403 , the access page 402 of link 2 may block the chat box 403 or even the input keyboard 404 .
  • an embodiment of the present application provides a display method, which can be applied to a terminal device, and the first application is installed in the terminal device.
  • the terminal device can obtain the access page of the link through the second application, and display the link on the interface of the first application.
  • the access page of the first link is displayed inside, so that the access page of the link will not block the interface of the first application when displayed.
  • the terminal device may embed the linked access page in the interface of the first application for display, so that the access page of the first link is displayed in the interface of the first application.
  • the first application is different from the second application
  • the second application may be an application corresponding to the link, or a default application (such as a browser) on the terminal device.
  • the fact that the second application is the application corresponding to the link means that the accessed page of the link is a page in the second application.
  • the application corresponding to the link may be an application on the terminal device where the first application is located, or may also be an application on another terminal device.
  • the terminal device where the first application is located is the first terminal
  • the application corresponding to the link may be an application on the first terminal or an application on the second terminal, and the first terminal and the second terminal are different.
  • the application does not limit the positional relationship of the application corresponding to the link relative to the first application.
  • the first application may be a chatting application (such as a Link application), or a mailbox (or called an email), or an application with social attributes or a function of sending and receiving information, such as a text message.
  • the application corresponding to the link may be an application capable of providing users with multimedia resources such as text, pictures, audio, video, and web pages.
  • the application corresponding to the link may be a short video application, a live broadcast application, a browser, a music application, etc., which is not limited here.
  • the terminal device may be a mobile phone, or a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device, a notebook computer , ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook, personal digital assistant (personal digital assistant, PDA), etc.
  • the embodiment of the present application does not limit the specific type of terminal equipment.
  • FIG. 6 shows a schematic structural diagram of the terminal device provided by the embodiment of the present application.
  • the mobile phone can include a processor 610, an external memory interface 620, an internal memory 621, a universal serial bus (universal serial bus, USB) interface 630, a charging management module 640, a power management module 641, a battery 642, and an antenna 1.
  • a processor 610 an external memory interface 620
  • an internal memory 621 a universal serial bus (universal serial bus, USB) interface 630
  • a charging management module 640 a power management module 641, a battery 642, and an antenna 1.
  • USB universal serial bus
  • Antenna 2 mobile communication module 650, wireless communication module 660, audio module 670, speaker 670A, receiver 670B, microphone 670C, earphone jack 670D, sensor module 680, button 690, motor 691, indicator 692, camera 693, display screen 694, and a subscriber identification module (subscriber identification module, SIM) card interface 695, etc.
  • SIM subscriber identification module
  • the processor 610 may include one or more processing units, for example: the processor 610 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit, NPU
  • the controller can be the nerve center and command center of the mobile phone.
  • the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 610 for storing instructions and data.
  • the memory in processor 610 is a cache memory.
  • the memory may hold instructions or data that the processor 610 has just used or recycled. If the processor 610 needs to use the instruction or data again, it can be directly recalled from the memory. Repeated access is avoided, and the waiting time of the processor 610 is reduced, thereby improving the efficiency of the system.
  • processor 610 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input/output (general-purpose input/output, GPIO) interface, SIM interface, and/or USB interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • the external memory interface 620 can be used to connect an external memory card, such as a Micro SD card, to expand 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. Such as saving music, video and other files in the external memory card.
  • the internal memory 621 may be used to store computer-executable program code, which includes instructions.
  • the processor 610 executes various functional applications and data processing of the mobile phone by executing instructions stored in the internal memory 621 .
  • an instruction corresponding to the display method described in the embodiment of the present application may be stored in the internal memory 621, and the processor 610 may execute the instruction to implement the display method.
  • the access page of the first link may be obtained through the second application, and the access page of the first link may be embedded in the interface of the first application for display.
  • the internal memory 621 may also include an area for storing programs and an area for storing data.
  • 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 embodiment of the present application) and the like.
  • the storage data area can store data created during the use of the mobile phone (such as chat information, first link, thumbnail, etc.) and the like.
  • the internal memory 521 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the charging management module 640 is configured to receive charging input from the charger. While the charging management module 640 is charging the battery 642 , it can also provide power for the mobile phone through the power management module 641 .
  • the power management module 641 is used for connecting the battery 642 , the charging management module 640 , and the processor 610 .
  • the power management module 641 can also receive the input of the battery 642 to provide power for the mobile phone.
  • the wireless communication function of the mobile phone can be realized by the antenna 1, the antenna 2, the mobile communication module 650, the wireless communication module 660, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in a mobile phone can be used to cover single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile phone may receive links sent by other devices (such as a second terminal, a server, etc.) through a wireless communication function.
  • the mobile phone can realize the audio function through the audio module 670, the speaker 670A, the receiver 670B, the microphone 670C, the earphone interface 670D, and the application processor. Such as music playback, recording, etc.
  • the sensor module 680 may include a pressure sensor 680A, a gyro sensor 680B, an air pressure 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, bone conduction sensor 680M, etc.
  • the display screen 694 is used to display images, videos and the like.
  • Display 694 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the mobile phone may include 1 or N display screens 694, where N is a positive integer greater than 1.
  • display screen 694 may be used to display application program interfaces.
  • the mobile phone can display the interface of the first application through the display screen 694 or display the access page of the first link in full screen.
  • the interface of the first application may 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 suspended on the interface of the first application.
  • the mobile phone realizes the display function through the GPU, the display screen 694, and the application processor.
  • the GPU is a microprocessor for image processing, connected to the display screen 694 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 610 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the structure shown in FIG. 6 does not constitute a specific limitation on the mobile phone.
  • the mobile phone may also include more or fewer components than those shown in FIG. 6 , or combine certain components, or separate certain components, or arrange different components.
  • some components shown in FIG. 6 may be implemented in hardware, software, or a combination of software and hardware.
  • terminal devices are other mobile terminals such as tablet computers, wearable devices, vehicle-mounted devices, AR/VR devices, notebook computers, UMPCs, netbooks, and PDAs
  • the specific structures of these other terminal devices can also refer to FIG. 6 .
  • other terminal devices may have components added or reduced on the basis of the structure shown in FIG. 6 , which will not be repeated here.
  • the operating system of the terminal device can be HongmengTM (harmony) system, AndroidTM (android) system, iosTM system, windowsTM system, macTM system, linuxTM system, etc., more specifically, it can also be HuaweiTM system or EMUITM system, Android WearTM system, Lite OSTM system, TizenTM system, watch osTM system, etc.
  • the operating system of the terminal device is also not limited here.
  • FIG. 7 is a schematic diagram of the architecture of the Android system provided by the embodiment of the present application.
  • the android system generally includes: an application layer (applications), an application framework layer (application framework), a system runtime layer (libraries), and a kernel layer.
  • the first application and the second application described in the embodiment of this application can be deployed in the application program layer, and the application program layer can also include other system applications such as calendar, map, browser and contact management, and developers use the Java language to design and third-party applications written.
  • the application framework layer may include a package manager service (PMS).
  • PMS can be responsible for scanning the specified directory in the operating system to find out the files ending with apk inside, and by analyzing these files, get all the information of the application program and complete the installation process of the application program.
  • the apk information parsed from the package management service can be used by other services.
  • the operating system of the terminal device is the android system
  • the interface of the first application includes the first link as an example.
  • the terminal device when the terminal device detects the operation of opening the first link, the terminal device passes The specific principle of the second application acquiring the access page of the first link and embedding the access page of the first link in the interface of the first application for display is introduced.
  • the terminal device detecting the operation of opening the first link may refer to: the terminal device detecting the user's operation of clicking the first link on the interface of the first application, or the operation of clicking the start button of the first link.
  • the terminal device may display an interface of a first application, and the interface of the first application includes a first link; the terminal device may receive a first operation, where the first operation is an operation of opening the first link.
  • the terminal device may start the second application (the application corresponding to the first link or the default application) by using a method of starting an activity component (startactivity).
  • startactivity a method of starting an activity component
  • the startactivity method may be: startActivity(Intent intent).
  • the startActivity (Intent intent) includes a start (intent) parameter
  • the intent parameter may include information about the second application to be started, such as: URI, package name (such as the package name of the second application), and the like.
  • a package manager service (package manager service, PMS) in the operating system of the terminal device may 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 and display specific content corresponding to the first link, such as a short video.
  • the second application accesses the specific content corresponding to the first link displayed by the above URI, that is, the accessed page of the first link.
  • the terminal device may obtain the first linked access page through the second application, and display the first linked access page in the interface of the first application.
  • the terminal device displays the access page of the first link in the interface of the first application, including: the terminal device replaces the screen where the first link is located in the interface of the first application with the access page of the first link page.
  • the terminal device replaces the screen at the location of the first link in 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 Replace 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.
  • the terminal device can replace the view control at the location of the first link in the interface of the first application with an interface/canvas view (surfaceview) control , and assign the surface of the surfaceview control to the surface of the second application displaying the specific content corresponding to the first link.
  • the surfaceview control is the above-mentioned first interface view control
  • the surface of the surfaceview control is the above-mentioned first interface
  • the surface of the second application displaying the specific content corresponding to the first link is the second interface created by the second application to obtain the access page of the first link .
  • the terminal device can acquire the access page of the first link, and embed the access page of the first link in the interface of the first application for display.
  • surface is used for the management interface.
  • the surfaces are independent of each other, and finally synthesized by the surface deliverer (surfaceflinger) and rendered to the screen.
  • the surface created later is generally located on the upper layer of the surface created first.
  • the default display mode of the surface is full-screen display, but the area occupied by the surface in the interface can also be adjusted by changing the display size of the surface. For example, surface1 is created first, and then surface2 is created. When surfaceflinger composites and renders surface1 and surface2 to the screen, surface2 is in the upper layer of surface1. If the size of surface2 is not adjusted, surface2 will be displayed in full screen by default, which will block surface1.
  • the size of surface2 is adjusted, for example, the layout size of surface2 is reduced, then surface2 can be displayed in a floating state above surface1, that is, surface2 can exist in the form of a floating window.
  • the size of the surface is related to the layout size of the view control, such as can be the same.
  • the first link is displayed on the interface of the first application based on a certain view control
  • the view control used to display the first link in the interface of the first application is related to the presentation form of the first link.
  • the view control used to display the first link in the interface of the first application may be a text view (textview) control.
  • the view controls for displaying the first link in the interface of the first application may include a textview control, an image view (image view) control, and the like.
  • the terminal device replacing the view control at the location of the first link in the interface of the first application with a surfaceview control may refer to: terminal equipment Replace that imageview control with a surfaceview control.
  • FIG. 8 shows the imageview control provided by the embodiment of the present application Schematic diagram of the relationship with Surface_A.
  • Surface_A 801 may include an imageview control 802, and the imageview control 802 is used to display the first link.
  • FIG. 9 is a schematic diagram of the relationship between the surfaceview control, Surface_A, and Surface_B provided by the embodiment of the present application.
  • the terminal device can replace the imageview control 802 in Surface_A 801 (that is, the view control where the first link is located) with a surfaceview control 803.
  • the surfaceview control 803 comes with a layer of surface.
  • the terminal device creates Surface_B 804 it can assign the surface of the surfaceview control 803 in Surface_A 801 to Surface_B 804. Then, the content in Surface_B 804 will be drawn to the surface of the surfaceview control 803 in Surface_A 801 for display.
  • FIG. 10 is 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.
  • the content in Surface_B 804 is drawn to 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.
  • the size of the surface may be the same as the layout size of the view controls. Therefore, after Surface_B 804 is assigned the surface of the surfaceview control 803 in Surface_A 801, when the content in Surface_B 804 is drawn to the surface of the surfaceview control 803 in Surface_A 801 for display, the content in Surface_B 804 occupies the proportion of Surface_A The area 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, it will be adaptively adjusted to the layout size of the surface of the surfaceview control 803.
  • the terminal device replaces the view control at the location of the first link in the interface of the first application with a surfaceview control so as to embed the access page of the first link in the first application displayed in the interface.
  • the terminal device may also add a surfaceview control to the interface of the first application, and assign the surface of the surfaceview control to the second application.
  • the application displays the surface of the specific content corresponding to the first link.
  • the specific content corresponding to the first link displayed by the access URI of the second application can also be displayed in the surfaceview control, so as to implement displaying the access page of the first link embedded in the interface of the first application.
  • the terminal device displaying the first linked access page in the first application interface includes: the terminal device adding the first linked access page in the first application interface.
  • Adding the access page of the first link in the interface of the first application by the terminal device includes: adding a first interface view control in the interface of the first application by the terminal device; assigning a value to the first interface of the first interface view control by the terminal device The second interface created by the access page of the first link is obtained for the second application.
  • the surfaceview control added by the terminal device in the interface of the first application may be below the view control where the first link is located.
  • FIG. 11 is a schematic diagram of the relationship between the imageview control, surfaceview control, and Surface_A provided by the embodiment of the present application.
  • the terminal device can also add a surfaceview control 803 in Surface_A 801, and the surfaceview control 803 can be under the imageview control 802, such as: it can be in the blank area below the imageview control 802.
  • the surfaceview control added by the terminal device in the interface of the first application may also be in other blank areas in the interface of the first application, and the position of the surfaceview control is not limited here.
  • the position of the surface view control may be related to the position of the first link in the interface of the first application.
  • the processing logic of the key (key) event may include: when the key event is generated, all return (back) events in the key event are sent by Surface_A Processing; other key events in the key event except the back event are dispatched by the window management service of the operating system, and are dispatched to the topmost focused window first; the topmost focused window can be Surface_A or Surface_B.
  • the logic of Surface_A processing the back event in the key event can be as follows:
  • the key event may be that the user clicks a certain button on the interface, or performs operations such as sliding or long pressing on the interface, or the user clicks the system return button, etc.
  • the back event in the key event may refer to the user clicking the system return button.
  • the terminal device obtains the access page of the first link through the second application, and embeds the access page of the first link in the first application
  • the specific principle of displaying in the interface will be introduced, but it should be understood that when the operating system of the terminal device is other than the android system, the terminal device obtains the access page of the first link through the second application, and uses the first link
  • the specific principle of displaying the access page embedded in the interface of the first application is similar to the above introduction. The only difference is 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, etc. may be different, and will not be described in detail here.
  • the first application is a chat application
  • the second application is a short video application: application A is an example, and the user receives a link of a short video P in application A while chatting with the chat application, and clicks on the link Link to view the scene of the short video P, and illustrate the display method provided by the embodiment of the present application with an example.
  • the link of the short video P is the above-mentioned first link.
  • FIG. 12 is a schematic interface diagram of a chat application provided by an embodiment of the present application.
  • the way the terminal device displays the link of the short video P in the interface of the chat application may include: the terminal device displays the thumbnail corresponding to the link of the short video P in the interface of the chat application 1201, and the open button 1202 of the link of the short video P.
  • the open button 1202 may also be called a start button, a play button, a browse button, etc., which is not limited here.
  • the thumbnail 1201 corresponding to the link of the short video P may be the thumbnail of the application A that can open the link of the short video P, or the default thumbnail, or the thumbnail of the default browser (in FIG. 12 is Take the thumbnail 1201 corresponding to the link of short video P as the thumbnail of application A as an example).
  • the terminal device can display a thumbnail of application A in the interface of the chat application; thumbnail or the thumbnail of the default browser.
  • a thumbnail file can be stored in the terminal device, and the thumbnail file can include one or more applications
  • the terminal device needs to display the thumbnail corresponding to a certain link, it can search for the thumbnail of the application that can click the link in the thumbnail file and display it.
  • the following description will be made by taking the application A installed on the terminal device as an example.
  • the thumbnail 1201 corresponding to the link of the short video P may also be replaced with the cover of the short video P, the first frame of the short video P, or one of the frames, etc., which is not limited in this application.
  • the terminal device can analyze the scheme field, host field, etc. of the URI according to the URI included in the link of the short video P, and configure the file according to the application package information of the installed application , to find the application matching the scheme field, host field and other fields parsed from the URI.
  • the application that matches the scheme field, host field and other fields parsed from the URI is the application that can open the link of the short video P, such as application A.
  • the terminal device may display a thumbnail of the application A and an open button 1202 of the link of the short video P.
  • the application package information configuration file is also called an application manifest (manifest) configuration file, and the configuration file includes the information of the application installation package.
  • the application package information configuration file may be an AndroidManifest configuration file.
  • 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 the imageview control.
  • the operation of the user clicking the open button 1202 shown in FIG. 12 is the operation of opening the first link.
  • the terminal device may replace the imageview control in the interface of the chat application with a surfaceview control in response to detecting that the user clicks the open button 1202, or, in the chat application Add a surfaceview control to the interface.
  • the imageview control in the interface of the chat application is replaced with the surfaceview control as an example.
  • the surfaceview control comes with a layer of surface.
  • the terminal device may respond to the user's click on the open button 1202 to start the application A through the startactivity method, and the application A may access the URI included in the link of the short video P and display the short video P.
  • the specific principles are as described in the foregoing embodiments, and will not be repeated here.
  • the terminal device When the terminal device creates a surface for application A to display the short video P, it can assign the surface of the surfaceview control in the interface of the chat application to the surface for application A to display the short video P. Then, the short video P will be drawn on the surface of the surfaceview control in the interface of the chat application for display. That is, the short video P can be embedded in the interface of the chat application for display.
  • FIG. 13 is a schematic diagram of the effect of displaying the short video P embedded in the interface of the chat application provided by the embodiment of the present application.
  • the short video P when the short video P is drawn on the surface of the surfaceview control in the interface of the chat application for display, the short video P can be embedded in the interface of the chat application.
  • the user can continue chatting on the interface of the chat application while browsing the short video P, and the short video P will not block the interface of the chat application when displayed.
  • the interface of the first application may further include a close button and a full screen button.
  • the close button may also be called a stop button
  • the full-screen button may also be called a maximize button, a zoom-in button, and the like.
  • the terminal device may close the access page of the first link and redisplay the first link in response to the user's operation of clicking the close button.
  • the terminal device may replace the surfaceview control with the view control where the original first link is located in response to the user's operation of clicking the close button, and redisplay the first link based on the view control.
  • the terminal device can also close the second application. That is, when the user clicks the close button, the terminal device may close the embedded display effect of the visited page of the first link, and re-display the first link.
  • the terminal device can display the access page of the first link in full screen in response to the operation of the user clicking the full screen button.
  • the terminal device can create a full screen surface (ie, a full screen interface ), and assign the full-screen surface to the surface of the visited page where the first link is displayed by the second application.
  • the access page of the first link will cover the interface of the first application to realize full-screen display.
  • the interface of the chat application may also include a close button 1301 and a full screen button 1302.
  • the terminal device can respond to the user's operation of clicking the close button 1301, replace the surfaceview control in the interface of the chat application with the imageview control that originally displayed the link of the short video P, and redisplay the short video based on the imageview control.
  • the link of the video P for example: display 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. It can be understood that when the terminal device re-displays the link of the short video P based on the imageview control, the interface of the chat application will restore to the interface shown in FIG. 12 above.
  • FIG. 14 is a schematic diagram of the full-screen display effect of the short video P provided by the embodiment of the present application. As shown in FIG. 14 , 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.
  • the display interface of the short video P may include a minimize button (not shown in the figure), and when the user clicks the minimize button, the terminal device may respond to the user clicking the minimize button.
  • the operation of the button reassigns 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, so that the display effect of the short video is switched from full-screen display to the above-mentioned interface embedded in the chat application for display.
  • 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 above-mentioned chat application), 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 that originally displayed the link of the short video P, and redisplay the content of the short video P based on the imageview control Links, for example: display 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.
  • a close button not shown in the figure, which can be the same as the close button 1301 in the interface of the above-mentioned chat application
  • 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 that originally displayed the link of the short video P, and
  • 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 called An operation for closing the visited page of the first link.
  • the aforementioned operation of closing the access page of the first link may also be referred to as the fourth operation.
  • the terminal device may respond to the fourth operation by closing the access page of the first link, and no longer The access page of the first link is displayed in the interface of the first application.
  • the operation of the user clicking the full-screen button in the interface of the first application may be referred to as an operation of switching the access page of the first link from embedded display to full-screen display, or as switching the access page of the first link to full-screen display. operate.
  • the aforementioned operation of switching the access page of the first link to full-screen display can also be referred to as the second operation.
  • the terminal device After receiving the second operation, the terminal device can display the access page of the first link in full screen in response to the second operation. page.
  • 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 called the operation of switching the access page of the first link from full-screen display to embedded display, Or it is called the operation of canceling the full-screen display of the access page of the first link.
  • the aforementioned operation of canceling the full-screen display of the access page of the first link may also be referred to as the third operation.
  • the terminal device may respond to the second operation and display The visited page of the first link. That is, the access page of the first link can be switched from full-screen display to embedded display.
  • functions such as closing the access page of the first link, switching the access page of the first link from embedded display to full-screen display, and switching the access page of the first link from full-screen display to embedded display can also be used.
  • other operation methods such as: the user can click, double-click, or long-press a certain area on the screen, or touch other function buttons, or perform certain sliding operations on the screen, etc., to trigger the terminal device to realize the aforementioned Function.
  • the above-mentioned embodiments are only illustrative descriptions, and the present application does not limit the specific operation manner in which the user triggers the terminal device to realize the aforementioned functions.
  • the terminal device when the terminal device obtains the access page of the first link through the second application, and embeds the access page of the first link in the interface of the first application for display, the terminal device can zoom in with animation The visited page of the first link. For example, taking the scene of the above-mentioned short video P as an example, when the terminal device detects that the user clicks the open button 1202 and replaces the imageview control in the interface of the chat application with the surfaceview control, the layout size of the surfaceview control can be adjusted to be larger than that of the imageview The layout size of the control.
  • 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 chat application relative to the thumbnail 1201 corresponding to the link of the short video P in the interface.
  • the enlargement mentioned here 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.
  • the terminal device replaces the view control at the location 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 second
  • the terminal device may also adaptively adjust the layout size of the surfaceview control according to the access page of the first link.
  • the terminal device 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 a horizontal screen, the terminal device can display the short video P according to the horizontal direction of the short video P And the size ratio of the vertical direction, adjust the size ratio of the horizontal direction and the vertical direction of the surfaceview control, so that the size of the horizontal direction of the surfaceview control is larger than the size of the vertical direction. If the short video P is a vertical screen, the terminal device can adjust the horizontal and vertical size ratio of the surfaceview control according to the horizontal and vertical size ratio of the short video P, so that the vertical size of the surfaceview control larger than the horizontal dimension.
  • the terminal device when the terminal device embeds the access page of the first link in the interface of the first application for display, the terminal device may respond to the user's upward or downward sliding operation to control the interface of the first application to move up or down. Swipe down, or, the terminal device may automatically slide the interface of the first application according to the addition of other content in the interface of the first application.
  • the access page of the first link embedded in the interface of the first application may move out of the screen of the terminal device as the interface of the first application slides.
  • the terminal device when the terminal device embeds the short video P in the interface of the chat application for display, the user may swipe up or down the interface of the chat application to view more chat information.
  • the interface of the chat application will slide down as chat information increases.
  • the short video P embedded in the interface of the chat application for display may move out of the screen of the terminal device as the interface of the chat application slides.
  • FIG. 15 is a schematic diagram of the interface of the chat application sliding up when the short video P provided by the embodiment of the present application is embedded in the interface of the chat application for display.
  • FIG. 15 when the interface of the chat application is slid upwards, the short video P will move out of the screen of the terminal device from above (top) the interface of the chat application.
  • FIG. 16 is a schematic diagram of the interface of the chat application sliding down when the short video P provided by the embodiment of the present application is embedded in the interface of the chat application for display. As shown in FIG. 16 , when the interface of the chat application slides down, the short video P will move out of the screen of the terminal device from the bottom (bottom) of the interface of the chat application.
  • the terminal device may monitor the position (or offset value) of the surfaceview control in the interface of the first application.
  • the terminal device can detect whether the upper edge of the surfaceview control is offset to the screen junction (that is, the edge of the screen).
  • the terminal device can detect whether the bottom edge of the surfaceview control is shifted (that is, moved) to the interface of the screen.
  • the terminal device can obtain the position and size of the surfaceview control relative to the screen, and increase it at the system layer according to the position and size of the surfaceview control relative to the screen.
  • a surface with exactly the same position and size as the surfaceview control relative to the screen (for convenience of description, it can be called a floating surface, that is, a floating interface). Then, the terminal device may assign the suspended surface to the surface of the visited page where the second application displays the first link.
  • the access page of the first link will be drawn on the floating surface for display, that is, the access page of the first link can be switched from displaying in the interface embedded in the first application to floating in the interface of the first application displayed on the Since the access page of the first link is suspended on the interface of the first application for display, the access page of the first link will not move out of the screen of the terminal device as the interface of the first application slides up or down.
  • the method for the terminal device to obtain the position and size of the surfaceview control relative to the screen may include: the terminal device obtains the position of the surfaceview control relative to the screen through the View. Method (or function) to get the size of the surfaceview control.
  • the terminal device may obtain the position and size of the surfaceview control relative to the screen in a similar manner.
  • the terminal device when the terminal device embeds the short video P in the interface of the chat application for display, the terminal device can monitor the position (or offset value) of the surfaceview control in the interface of the chat application.
  • the terminal device When the interface of the chat application is slid upwards, the terminal device can detect whether the upper edge of the surfaceview control is offset to the screen junction.
  • the terminal device When the interface of the chat application slides down, the terminal device can detect whether the bottom edge of the surfaceview control is offset to the screen junction. If the terminal device detects that the upper or lower edge of the surfaceview control is shifted to the screen junction, the terminal device can obtain the position and size of the surfaceview control relative to the screen, and increase it at the system layer according to the position and size of the surfaceview control relative to the screen.
  • the terminal device can assign the suspended surface to the surface for application A to display the short video P.
  • the short video P will be drawn on the floating surface for display, that is, the short video P can be switched from being displayed in the interface embedded in the chat application to being displayed floating on the interface of the chat application.
  • FIG. 17 is a schematic diagram of a short video P floating on the interface of the chat application for display when the interface of the chat application provided by the embodiment of the present application is slid upwards.
  • the short video P can be displayed and switched from the interface embedded in the chat application to Displayed by hovering over 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 upwards.
  • FIG. 18 is a schematic diagram of a short video P floating on the interface of the chat application for display when the interface of the chat application provided by the embodiment of the present application slides down.
  • the short video P can also be displayed in the interface embedded in the chat application Switch to display on the interface suspended in 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 down.
  • the terminal device can continue to monitor the SurfaceView control on the interface of the first application position in .
  • the terminal device can monitor whether the upper edge of the surfaceview control is far away from the screen junction (top of the screen) .
  • the terminal device can monitor whether the lower edge of the surfaceview control is far away from the screen junction (bottom of the screen) ).
  • the terminal device can reassign the surface of the surfaceview control to the surface of the page visited by the second application to display the first link, so that the surface of the first link
  • the access page is switched from being displayed while floating on the interface of the first application to being displayed embedded in the interface of the first application.
  • the short video P can be suspended in the chat
  • the display on the interface of the application is switched to the interface embedded in the chat application for display.
  • the short video P can also be suspended on the chat application switch to display on the interface embedded in the chat application.
  • the access page of the first link or the interface of the first application may also include the full screen button, minimum button, close button, etc., no more details.
  • the access page of the first link when the access page of the first link is suspended on the interface of the first application for display, the access page of the first link will block a part of the interface of the first application, and the user expects to go to the interface of the first application. Some other elements used or browsed may be blocked, and the user will be affected to some extent when performing other operations on the interface of the first application. For example, when the short video P is suspended on the interface of the chat application for display, if the user opens the input keyboard to enter text into the chat box, the short video P may block the chat box, or even block the input keyboard (chat box, input keyboard, etc.) other elements).
  • the terminal device when the access page of the first link is suspended on the interface of the first application for display, the terminal device can use other elements (such as the first element) in the interface of the first application to display the floating page.
  • the positional relationship between the access pages of the first link (which may be called floating windows), dynamically adjust the size of the access page of the first link being displayed in suspension, so as to avoid other elements in the interface of the first application being blocked , so that the user can perform some other operations on the interface of the first application while browsing the visited page of the first link being displayed in suspension.
  • the size of the visited page of the first link may be related to the first element.
  • the short video P is suspended on the interface of the chat application for display, and when the user opens the input keyboard to enter text into the chat box, the terminal device can The positional relationship between the floating windows of the short video P, dynamically adjust the size of the floating windows of the short video P, so as to avoid the chat box being blocked by the floating windows of the short video P.
  • the chat box can be the above-mentioned first element, and the size of the floating window of the short video P is related to the chat box.
  • FIG. 19 to FIG. 21 are three schematic diagrams of the interface of the chat application provided by the embodiment of the present application.
  • the following describes the process and specific principle of dynamically adjusting the size of the floating window of the short video P by the terminal device according to the positional relationship between the chat box and the floating window of the short video P with reference to FIG. 19 to FIG. 21 .
  • the chat box 1902 when the user opens the input keyboard 1903 to input text into the chat box 1902, the chat box 1902 will gradually increase in size as the input text increases. When the chat box 1902 is gradually enlarged, the upper edge of the chat box 1902 will gradually approach the floating window 1901 of the short video P.
  • the chat box 1902 when the chat box 1902 gradually increases with the increase of input text, when the upper edge of the chat box 1902 is close to touching the floating window 1901 of the short video P, or, when the floating window of the short video P When the distance between the lower edges of the window 1901 is less than a certain threshold (such as 1 millimeter (mm), 2mm, or 1 pixel, etc.), if the chat box 1902 continues to increase, the terminal device can follow the increase of the chat box 1902. Enlarge and squeeze (or reduce) the size of the floating window 1901 of the short video P. For example, every time the chat box 1902 is increased by 1 mm upward, the terminal device may adjust the lower edge of the floating window 1901 of the short video P to shrink upward by 1 mm.
  • a certain threshold such as 1 millimeter (mm), 2mm, or 1 pixel, etc.
  • FIG. 21 The effect of dynamically adjusting the size of the floating window 1901 of the short video P can be referred to in FIG. 21 .
  • the terminal device during the process of the chat box 1902 gradually increasing with the increase of input text, the terminal device, according to the positional relationship between the chat box 1902 and the floating window 1901 of the short video P, Dynamically adjust the size of the floating window 1901 of the short video P so that the floating window 1901 of the short video P does not block the chat box 1902.
  • the floating display of the access page of the first link is implemented in the interface of the first application through the floating surface.
  • the terminal device may adjust the size of the visited page of the first link being displayed in the floating state by adjusting the size of the floating surface.
  • the embodiment of this application provides The display method is illustrated as an example. However, it should be understood that although the above description is based on the terminal device displaying the thumbnail corresponding to the link of the short video P in the interface of the chat application and the opening button of the link of the short video P as an example, the present application does not display the thumbnail corresponding to the link of the short video P
  • the way of linking the short video P is not limited.
  • the terminal device may display the link of the short video P by displaying a URI in the form of text or a card and an open button of the link of the short video P.
  • the terminal device may 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 open button of the link of the short video P, but the short video
  • the thumbnail corresponding to the link of P, or the URI itself in the form of text or card can be used as the open button.
  • the terminal device may be triggered to detect that the user opens the link of the short video P.
  • the first application is taken as an example of a chat application for illustration.
  • the first application is a mailbox (or called an email), or a text message and other functions that have the function of sending and receiving information
  • the various implementation manners mentioned in the foregoing embodiments are also applicable.
  • FIG. 22 is a schematic interface diagram of a mailbox provided in the embodiment of the present application.
  • the way in which the terminal device displays the link of the short video P in the interface of the mailbox can be the same as the way in which the link of the short video P is displayed in the interface of the above-mentioned chat application, and the terminal device can display the link of the short video P in the interface of the mailbox
  • the thumbnail 2201 corresponding to the link of the short video P and the open button 2202 of the link of the short video P are displayed on the interface.
  • the terminal device may respond to detecting the user's operation of clicking the open button 2202, and access the short video P included in the link through the application A.
  • URI and the short video P is embedded in the interface of the mailbox for display (the specific principle is the same as the previous embodiment).
  • FIG. 23 is a schematic diagram of the effect of displaying the short video P embedded in the mailbox interface provided by the embodiment of the present application. As shown in Figure 23, when the short video P is embedded in the interface of the mailbox and displayed, the short video P will not block the interface of the mailbox.
  • the first application described in the embodiments of the present application may also refer to the notification bar (the notification bar may also be called the status bar) of the terminal device (such as a mobile phone or a computer), and the notification bar may include a portable There are notifications such as URI information, software update reminders, and push messages. These notifications may also be called links, and the second application may be an application that can open the notification in the notification bar. For example, assuming that notification B is included in the notification bar, and notification B is a push message pushed by application B, the second application may be application B or a default browser.
  • FIG. 24 is a schematic diagram of an interface of the status bar of the mobile phone provided by the embodiment of the present application.
  • the mobile phone can display a status bar 2402 in a pull-down interface 2401 .
  • the drop-down interface refers to the display interface that appears after sliding down the top of the main interface (or called the desktop) of the mobile phone, and the buttons of the functions commonly used by the user can be displayed in the drop-down interface, such as: WLAN, Bluetooth, etc., for the convenience of the user Quick access to relevant functions.
  • the user can perform a downward sliding operation on the top of the mobile phone screen to trigger the mobile phone to switch the display interface from the desktop to the drop-down interface (or overlay and display the drop-down interface on the desktop).
  • the interface of the status bar 2402 may include notifications such as "Notification A”, “Notification B”, and “Notification C”.
  • “notification B” is a push message pushed by application B, and application B is installed on the mobile phone
  • the mobile phone can respond to the user clicking "notification B” in the status bar 2402. B" operation, 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 interface of the status bar 2402
  • the view control used to display "notification B” is replaced by the surfaceview control as an example.
  • the surfaceview control comes with a layer of surface.
  • the mobile phone can respond to the user's operation of clicking "Notification B" in the status bar 2402, and start the application B through the startactivity method, and the application B can access the URI included in the "Notification B” and display the specific content of the "Notification B".
  • the mobile phone When the mobile phone creates a surface for application B to display the specific content of "notification B", it can assign the surface of the surfaceview control in the interface of the status bar 2402 to the surface for application B to display the specific content of "notification B". Then, the specific content of "notification B” will be drawn on the surface of the surfaceview control in the interface of the status bar 2402 for display. That is, the specific content of "notification B” can be embedded in the interface of the status bar 2402 for display.
  • FIG. 25 is a schematic diagram showing the effect of displaying the specific content of "notification B” embedded in the interface of the status bar provided by the embodiment of the present application.
  • the "window of application B” includes the specific content of "notification B”, and when the specific content of "notification B” is drawn on the surface of the surfaceview control in the interface of the status bar 2402 for display, The “window of application B” may be embedded in the interface of the status bar 2402 .
  • the user can browse the specific content of "Notification B” in the interface of status bar 2402, and the specific content of "Notification B” will not block the interface of status bar 2402 when displayed.
  • notification B is the first link above, and the user's operation of clicking "notification B" in the status bar 2402 is the operation of opening the first link.
  • the first application described in the embodiments of the present application may also refer to a negative screen of a terminal device (such as a mobile phone), and the negative screen may also include recommendations such as information carrying URIs and push messages.
  • Information, or service information such as health services, financial services, and shopping services.
  • the recommendation information, service information, etc. included in the negative screen may also be referred to as links
  • the first link may be one of the links
  • the second application may be an application capable of opening the link in the negative screen.
  • the negative screen refers to the display interface that appears after sliding the main interface (or desktop) of the mobile phone to the right.
  • the negative screen can display the user's frequently used applications, functions, subscribed services and information, etc., which is convenient for users to quickly Browse and use. For example, when the current display interface of the mobile phone is the desktop, the user can perform a rightward sliding operation on the screen of the mobile phone to trigger the mobile phone to switch the display interface from the desktop to a negative screen.
  • one negative screen is just a word used in the embodiment of the present application, and its meaning has been recorded in the embodiment of the present application, but its name does not constitute any limitation to the embodiment of the present application; in addition, in some other embodiments, “one negative screen” may also be called other names such as “desktop assistant”, “shortcut menu”, “Widget collection interface”, etc., which is not limited here.
  • the scenarios where the first application is a chat application, email, notification bar, negative screen, etc. are only some scenarios that can be realized in the embodiments of the present application, and the present application does not limit the specific type of the first application here.
  • first link is a short video P or "notification B"
  • first link being other Scenarios for linking data such as text, pictures, audio, video, and web pages. That is to say, the technical solution described in the embodiment of the present application can be applied to scenarios where the first link is a link of different types of data such as text, picture, audio, short video or video, web page, etc.
  • the specific data corresponding to the first link The type is also not limited.
  • an embodiment of the present application provides a display device, which can be applied to the above-mentioned terminal device, to implement the display method described in the foregoing embodiments.
  • the functions of the device can be realized by hardware, and can also be realized by executing corresponding software by hardware.
  • the hardware or software includes one or more modules or units corresponding to the steps in the above display method.
  • FIG. 26 is a schematic structural diagram of a display device provided by an embodiment of the present application.
  • 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 may be used to cooperate to implement the display methods described in the foregoing embodiments.
  • the display module 2601 is used to display the interface of the first application, the interface of the first application includes the first link;
  • the receiving module 2602 is used to receive the first operation, the first operation is the operation of opening the first link;
  • the processing module 2603 configured to, in response to the first operation, acquire the access page of the first link through the second application, and display the access page of the first link in the interface of the first application through the display module 2601 .
  • the processing module 2603 is specifically configured to replace the screen where the first link is located in the interface of the first application with the access page of the first link, so as to realize the display of the first link in the interface of the first application. Visit the page.
  • the processing module 2603 is specifically configured to replace the view control at the location of the first link in the interface of the first application with the first interface view control; assign the first interface of the first interface view control to the second application to obtain The second interface created by the access page of the first link is used to replace the screen where the first link is located in the interface of the first application with the access page of the first link.
  • the processing module 2603 is specifically configured to add an 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.
  • the processing module 2603 is specifically configured to add a first interface view control to the interface of the first application; assign the first interface of the first interface view control to the access page created by the second application to obtain the first link
  • the second interface is to add the first linked access page in the interface of the first application.
  • the receiving module 2602 is further configured to receive a second operation, the second operation is an operation of switching the access page of the first link to a full-screen display; the processing module 2603 is further configured to respond to the second operation by displaying Module 2601 displays the accessed page of the first link in full screen.
  • the processing module 2603 is specifically configured to create a full-screen interface, and assign the full-screen interface to the second interface created by the second application to obtain the access page of the first link, so as to display the access page of the first link in full screen.
  • the receiving module 2602 is further configured to receive a third operation, the third operation is an operation of canceling the full-screen display of the access page of the first link; the processing module 2603 is further configured to respond to the third operation, through the display module 2601 The access page of the first link is displayed in the interface of the first application.
  • the processing module 2603 when the access page of the first link is displayed in the interface of the first application, if the interface of the first application slides up or down and the access page of the first link moves to the screen junction, the processing module 2603, It is also used for hovering and displaying the access page of the first link through the display module 2601 .
  • the processing module 2603 is specifically configured to create a floating interface, and assign the floating interface to the second interface created by the second application to obtain the access page of the first link, so as to realize the floating display of the access page of the first link.
  • the processing module 2603 is further configured to use the display module 2601 to display The access page of the first link is displayed in the interface of the first application.
  • the processing module 2603 is further configured to dynamically adjust 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 visited page of the first link; the size of the visited page of the first link is related to the size of the first element.
  • the receiving module 2602 is further configured to receive a fourth operation, the fourth operation is an operation of closing the access page of the first link; the processing module 2603 is further configured to close the access page of the first link in response to the fourth operation page, the access page of the first link is no longer displayed in the interface of the first application through the display module 2601.
  • the processing module 2603 realizes displaying the access page of the first link in the interface of the first application by replacing the screen where the first link is located in the interface of the first application with the access page of the first link; the processing module Step 2603 is further configured to redisplay the first link in the interface of the first application through the display module 2601 after closing the access page of the first link.
  • the interface of the first application includes the first link means that the interface of the first application includes a thumbnail corresponding to the first link, and/or an open button of the first link.
  • the thumbnail corresponding to the first link includes: a thumbnail of the second application or a default thumbnail.
  • the second application includes an application corresponding to the first link, or a default application on the device.
  • the area occupied by the access page of the first link in the interface of the first application is larger than that occupied by the first link in the interface of the first application. occupied area.
  • the division of modules (or called units) in the above device is only a division of logical functions, and may be fully or partially integrated into a physical entity or physically separated during actual implementation.
  • the units in the device can all be implemented in the form of software called by the processing element; they can also be implemented in the form of hardware; some units can also be implemented in the form of software called by the processing element, and some units can be implemented in the form of hardware.
  • each unit can be a separate processing element, or it can be integrated in a certain chip of the device. In addition, it can also be stored in the memory in the form of a program, which is called and executed by a certain processing element of the device. Function. In addition, all or part of these units can be integrated together, or implemented independently.
  • the processing element described here may also be referred to as a processor, and may be an integrated circuit with a signal processing capability. In the process of implementation, each step of the above method or each unit above may be implemented by an integrated logic circuit of hardware in the processor element or implemented in the form of software called by the processing element.
  • the units in the above device may be one or more integrated circuits configured to implement the above method, for example: one or more application specific integrated circuits (ASIC), or, one or more A digital signal processor (DSP), or, one or more field programmable gate arrays (FPGA), or a combination of at least two of these integrated circuit forms.
  • ASIC application specific integrated circuits
  • DSP digital signal processor
  • FPGA field programmable gate arrays
  • the processing element can be a general-purpose processor, such as a central processing unit (central processing unit, CPU) or other processors that can call programs.
  • CPU central processing unit
  • these units can be integrated together and implemented in the form of a system-on-a-chip (SOC).
  • the units of the above apparatus for implementing each corresponding step in the above method may be implemented in the form of a processing element scheduler.
  • the apparatus may include a processing element and a storage element, and the processing element invokes a program stored in the storage element to execute the methods described in the above method embodiments.
  • the storage element may be a storage element on the same chip as the processing element, that is, an on-chip storage element.
  • the program for executing the above method may be stored in a storage element on a different chip from the processing element, that is, an off-chip storage element.
  • the processing element invokes or loads a program from the off-chip storage element to the on-chip storage element, so as to invoke and execute the methods described in the above method embodiments.
  • the embodiment of the present application also provides an electronic device.
  • the electronic device may be the terminal device described in the first aspect above.
  • the electronic device includes: a processor, and a memory for storing processor-executable instructions; when the processor is configured to execute the instructions, the electronic device implements the methods 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.
  • the electronic device may 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, and the like.
  • the unit of the electronic device that implements each step in the above method may be configured as one or more processing elements, where the processing elements may be integrated circuits, for example: one or more ASICs, or one Or multiple DSPs, or, one or more FPGAs, or a combination of these types of integrated circuits. These integrated circuits can be integrated together to form a chip.
  • an embodiment of the present application further provides a chip, and the chip can be applied to the above-mentioned electronic device.
  • the chip includes one or more interface circuits and one or more processors; the interface circuits and processors are interconnected through lines; the processor receives and executes computer instructions from the memory of the electronic device through the interface circuits, so as to realize the method.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium.
  • the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution 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 several instructions to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all of the methods described in various embodiments of the present application. or partial steps.
  • the aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.
  • an embodiment of the present application further provides a computer-readable storage medium on which computer program instructions are stored; when the computer program instructions are executed by an electronic device, the electronic device implements the method described in the embodiment.
  • an embodiment of the present application further provides a computer program product, including: computer readable codes, or a non-volatile computer readable storage medium bearing computer readable codes, when the computer readable codes are stored in the electronic device
  • the processor in the electronic device implements the method described in the foregoing embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请提供一种显示方法、装置、设备及存储介质,涉及通信技术领域。该方法包括:终端设备显示第一应用的界面,第一应用的界面包括第一链接;终端设备接收第一操作,第一操作为打开第一链接的操作;终端设备响应于第一操作,通过第二应用获取第一链接的访问页面,并在所述第一应用的界面内显示所述第一链接的访问页面。第一链接的访问页面内嵌于第一应用的界面内进行显示,可以使得第一链接的访问页面在显示时不会遮挡第一应用的界面。

Description

一种显示方法、装置、设备及存储介质
本申请要求于2021年08月30日提交国家知识产权局、申请号为202111005587.1、申请名称为“一种显示方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及通信技术领域,尤其涉及一种显示方法、装置、设备及存储介质。
背景技术
聊天应用、邮箱等具有社交属性(或具有收发信息的功能)的应用可以为用户提供分享链接的功能。例如,用户在使用终端设备上的聊天应用的过程中,终端设备可能会接收到其他用户分享过来的链接。该链接可以作为聊天内容的一部分显示在聊天应用的界面中,用户可以点击该链接,以触发终端设备显示该链接的访问页面(或称为该链接对应的窗口)。其中,该链接的访问页面可以是其他应用中的页面,其他应用可以称为该链接对应的应用,页面中可以包括文本、图片、音频、视频、网页等类型的数据。
当用户点击链接时,如果终端设备上安装有链接对应的应用,则终端设备可以响应于用户点击链接的操作,跳转至链接对应的应用显示链接的访问页面。如果终端设备上没有安装有链接对应的应用,则终端设备可以响应于用户点击链接的操作,跳转至默认的应用(如浏览器)显示链接的访问页面。
目前,终端设备跳转至链接对应的应用或默认的应用显示链接的访问页面时,链接的访问页面通常全屏显示或者以悬浮窗的形式显示,会遮挡原来的聊天应用的界面。
发明内容
本申请实施例提供一种显示方法、装置、设备及存储介质,可以使得终端设备在打开链接的访问页面时,访问页面不会遮挡原来链接所在的应用界面。
第一方面,本申请实施例提供一种显示方法,所述方法包括:终端设备显示第一应用的界面,第一应用的界面包括第一链接;终端设备接收第一操作,第一操作为打开第一链接的操作;终端设备响应于第一操作,通过第二应用获取第一链接的访问页面,并在第一应用的界面内显示第一链接的访问页面。
本申请中,对终端设备安装的第一应用的界面中包括的第一链接,当终端设备检测到打开该链接的第一操作后,终端设备可以通过第二应用获取第一链接的访问页面,并在第一应用的界面内显示第一链接的访问页面,能够使得第一链接的访问页面在显示时不会遮挡第一应用的界面。
例如,第一应用可以是聊天应用,第一链接可以是用户聊天过程中接收到的某个分享链接,第二应用可以是该分享链接对应的应用。通过本申请提供的显示方法,可以实现在聊天应用的界面内显示分享链接的访问页面,分享链接的访问页面在显示时不会遮挡聊天应用的界面。用户的体验可以更好。
一种实现方式中,所述终端设备在第一应用的界面内显示第一链接的访问页面,包括:终端设备将第一应用的界面内第一链接所在位置的画面替换为第一链接的访问页面。
可选地,所述终端设备将第一应用的界面内第一链接所在位置的画面替换为第一链接的访问页面,包括:终端设备将第一应用的界面中第一链接所在位置的视图控件替换为第一界面视图控件;终端设备将第一界面视图控件的第一界面赋值给第二应用获取第一链接的访问页面所创建的第二界面。
由于第一界面视图控件的第一界面赋值给了第二应用获取第一链接的访问页面所创建的第二界面,所以第二应用访问第一链接所获取到的第一链接的访问页面可以显示在第一界面视图控件中。从而,终端设备可以实现获取第一链接的访问页面,并在第一应用的界面内显示第一链接的访问页面。
或者,另一种实现方式中,所述终端设备在第一应用的界面内显示第一链接的访问页面,包括:终端设备在第一应用的界面内增加第一链接的访问页面。
可选地,所述终端设备在第一应用的界面内增加第一链接的访问页面,包括:终端设备在第一应用的界面中增加第一界面视图控件;终端设备将第一界面视图控件的第一界面赋值给第二应用获取第一链接的访问页面所创建的第二界面。
示例性地,终端设备可以在第一应用的界面中的空白区域增加第一界面视图控件。增加第一界面视图控件后,终端设备将第一界面视图控件的第一界面赋值给第二应用获取第一链接的访问页面所创建的第二界面后,同样可以实现在第一应用的界面内显示第一链接的访问页面。
一些实现方式中,所述方法还包括:终端设备接收第二操作,第二操作为将第一链接的访问页面切换为全屏显示的操作;终端设备响应于第二操作,全屏显示第一链接的访问页面。
可选地,所述终端设备全屏显示第一链接的访问页面,包括:终端设备创建全屏界面,并将全屏界面赋值给第二应用获取第一链接的访问页面所创建的第二界面。
为用户提供将第一链接的访问页面切换为全屏显示的方式,可以更符合用户的实际浏览需求,提高用户体验。
可选地,所述方法还包括:终端设备接收第三操作,第三操作为将第一链接的访问页面取消全屏显示的操作;终端设备响应于第三操作,在第一应用的界面内显示第一链接的访问页面。
本方式中,用户在全屏浏览第一链接的访问页面时,还可以执行第三操作,触发终端设备将第一链接的访问页面由全屏显示切换为内嵌显示。
一些实现方式中,所述方法还包括:第一链接的访问页面在第一应用的界面内显示时,如果第一应用的界面向上滑动或向下滑动导致第一链接的访问页面移动到屏幕交界处,终端设备悬浮显示第一链接的访问页面。
可选地,所述终端设备悬浮显示第一链接的访问页面,包括:终端设备创建悬浮界面,并将悬浮界面赋值给第二应用获取第一链接的访问页面所创建的第二界面。
本方式中,当第一应用的界面向上滑动或向下滑动导致第一链接的访问页面移动到屏幕交界处时,由于第一链接的访问页面悬浮于第一应用的界面上进行显示,所以 第一链接的访问页面不会随着第一应用的界面的向上滑动或向下滑动而移出终端设备的屏幕。
可选地,所述方法还包括:第一链接的访问页面悬浮显示时,如果第一应用的界面向上滑动或向下滑动导致第一链接的访问页面远离屏幕交界处,终端设备在第一应用的界面内显示第一链接的访问页面。
可选地,所述方法还包括:第一链接的访问页面悬浮显示时,终端设备根据第一应用的界面中的第一元素与第一链接的访问页面之间的位置关系,动态调整第一链接的访问页面的大小;第一链接的访问页面的大小与第一元素的大小相关。
例如,第一应用可以是聊天应用,第一元素可以是聊天框。本方式中,终端设备根据聊天框与第一链接的访问页面之间的位置关系,动态调整第一链接的访问页面的大小,可以使得第一链接的访问页面不会对聊天框造成影响。
一些实现方式中,所述方法还包括:终端设备接收第四操作,第四操作为关闭第一链接的访问页面的操作;终端设备响应于第四操作,关闭第一链接的访问页面,不再在第一应用的界面内显示第一链接的访问页面。
可选地,终端设备是通过将第一应用的界面内第一链接所在位置的画面替换为第一链接的访问页面,实现在第一应用的界面内显示第一链接的访问页面;所述终端设备关闭第一链接的访问页面后,所述方法还包括:终端设备在第一应用的界面内重新显示第一链接。
可选地,第一应用的界面包括第一链接,是指:第一应用的界面包括第一链接对应的缩略图,和/或,第一链接的打开按钮。
一些实现方式中,第一链接对应的缩略图包括:第二应用的缩略图或者默认的缩略图。
一些实现方式中,第二应用包括第一链接对应的应用,或者,终端设备上的默认应用。
一些实现方式中,第一链接的访问页面在第一应用的界面内显示时,第一链接的访问页面在第一应用的界面中所占的区域大于第一链接在第一应用的界面中所占的区域。
第二方面,本申请实施例提供一种显示装置,所述装置可以应用于终端设备。所述装置包括:显示模块,用于显示第一应用的界面,第一应用的界面包括第一链接;接收模块,用于接收第一操作,第一操作为打开第一链接的操作;处理模块,用于响应于第一操作,通过第二应用获取第一链接的访问页面,并通过显示模块在第一应用的界面内显示第一链接的访问页面。
一种实现方式中,处理模块,具体用于将第一应用的界面内第一链接所在位置的画面替换为第一链接的访问页面,以实现在第一应用的界面内显示第一链接的访问页面。
可选地,处理模块,具体用于将第一应用的界面中第一链接所在位置的视图控件替换为第一界面视图控件;将第一界面视图控件的第一界面赋值给第二应用获取第一链接的访问页面所创建的第二界面,以实现将第一应用的界面内第一链接所在位置的画面替换为第一链接的访问页面。
或者,另一种实现方式中,处理模块,具体用于在第一应用的界面内增加第一链接的访问页面,以实现在第一应用的界面内显示第一链接的访问页面。
可选地,处理模块,具体用于在第一应用的界面中增加第一界面视图控件;将第一界面视图控件的第一界面赋值给第二应用获取第一链接的访问页面所创建的第二界面,以实现在第一应用的界面内增加第一链接的访问页面。
一些实现方式中,接收模块,还用于接收第二操作,第二操作为将第一链接的访问页面切换为全屏显示的操作;处理模块,还用于响应于第二操作,通过显示模块全屏显示第一链接的访问页面。
可选地,处理模块,具体用于创建全屏界面,并将全屏界面赋值给第二应用获取第一链接的访问页面所创建的第二界面,以实现全屏显示第一链接的访问页面。
可选地,接收模块,还用于接收第三操作,第三操作为将第一链接的访问页面取消全屏显示的操作;处理模块,还用于响应于第三操作,通过显示模块在第一应用的界面内显示第一链接的访问页面。
一些实现方式中,第一链接的访问页面在第一应用的界面内显示时,如果第一应用的界面向上滑动或向下滑动导致第一链接的访问页面移动到屏幕交界处,处理模块,还用于通过显示模块悬浮显示第一链接的访问页面。
可选地,处理模块,具体用于创建悬浮界面,并将悬浮界面赋值给第二应用获取第一链接的访问页面所创建的第二界面,以实现悬浮显示第一链接的访问页面。
可选地,第一链接的访问页面悬浮显示时,如果第一应用的界面向上滑动或向下滑动导致第一链接的访问页面远离屏幕交界处,处理模块,还用于通过显示模块在第一应用的界面内显示第一链接的访问页面。
可选地,第一链接的访问页面悬浮显示时,处理模块,还用于根据第一应用的界面中的第一元素与第一链接的访问页面之间的位置关系,动态调整第一链接的访问页面的大小;第一链接的访问页面的大小与第一元素的大小相关。
一些实现方式中,接收模块,还用于接收第四操作,第四操作为关闭第一链接的访问页面的操作;处理模块,还用于响应于第四操作,关闭第一链接的访问页面,不再通过显示模块在第一应用的界面内显示第一链接的访问页面。
可选地,处理模块是通过将第一应用的界面内第一链接所在位置的画面替换为第一链接的访问页面,实现在第一应用的界面内显示第一链接的访问页面;处理模块,还用于在关闭第一链接的访问页面后,通过显示模块在第一应用的界面内重新显示第一链接。
可选地,第一应用的界面包括第一链接,是指:第一应用的界面包括第一链接对应的缩略图,和/或,第一链接的打开按钮。
一些实现方式中,第一链接对应的缩略图包括:第二应用的缩略图或者默认的缩略图。
一些实现方式中,第二应用包括第一链接对应的应用,或者,所述装置上的默认应用。
一些实现方式中,第一链接的访问页面在第一应用的界面内显示时,第一链接的访问页面在第一应用的界面中所占的区域大于第一链接在第一应用的界面中所占的区 域。
第三方面,本申请实施例提供一种电子设备,该电子设备可以是上述第一方面中所述的终端设备。电子设备包括:处理器,用于存储处理器可执行指令的存储器;处理器被配置为执行所述指令时,使得电子设备实现如第一方面及第一方面的任意一种可能的实现方式所述的方法。
第四方面,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序指令;当所述计算机程序指令被电子设备执行时,使得电子设备实现如第一方面及第一方面的任意一种可能的实现方式所述的方法。
第五方面,本申请实施例提供一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器实现如第一方面及第一方面的任意一种可能的实现方式所述的方法。
上述第二方面至第五方面所具备的有益效果,可参考第一方面中所述,在此不再赘述。
应当理解的是,本申请中对技术特征、技术方案、有益效果或类似语言的描述并不是暗示在任意的单个实施例中可以实现所有的特点和优点。相反,可以理解的是对于特征或有益效果的描述意味着在至少一个实施例中包括特定的技术特征、技术方案或有益效果。因此,本说明书中对于技术特征、技术方案或有益效果的描述并不一定是指相同的实施例。进而,还可以任何适当的方式组合本实施例中所描述的技术特征、技术方案和有益效果。本领域技术人员将会理解,无需特定实施例的一个或多个特定的技术特征、技术方案或有益效果即可实现实施例。在其他实施例中,还可在没有体现所有实施例的特定实施例中识别出额外的技术特征和有益效果。
附图说明
图1为一种聊天应用的界面的示意图;
图2为一种聊天应用的界面的另一示意图;
图3为终端设备全屏显示链接2的访问页面的示意图;
图4为终端设备以悬浮窗的形式显示链接2的访问页面的示意图;
图5为终端设备以悬浮窗的形式显示链接2的访问页面的另一示意图;
图6示出了本申请实施例提供的终端设备的结构示意图;
图7为本申请实施例提供的安卓系统的体系架构示意图;
图8为本申请实施例提供的imageview控件与Surface_A的关系示意图;
图9为本申请实施例提供的surfaceview控件、Surface_A、以及Surface_B的关系示意图;
图10为本申请实施例提供的Surface_B中的内容在Surface_A中的surfaceview控件的surface上进行显示的效果示意图;
图11为本申请实施例提供的imageview控件、surfaceview控件、以及Surface_A的关系示意图;
图12为本申请实施例提供的聊天应用的界面示意图;
图13为本申请实施例提供的短视频P内嵌于聊天应用的界面进行显示的效果示意 图;
图14为本申请实施例提供的短视频P全屏显示的效果示意图;
图15为本申请实施例提供的短视频P内嵌于聊天应用的界面中进行显示时,聊天应用的界面向上滑动的示意图;
图16为本申请实施例提供的短视频P内嵌于聊天应用的界面中进行显示时,聊天应用的界面向下滑动的示意图;
图17为本申请实施例提供的聊天应用的界面向上滑动时,短视频P悬浮于聊天应用的界面上进行显示的示意图;
图18为本申请实施例提供的聊天应用的界面向下滑动时,短视频P悬浮于聊天应用的界面上进行显示的示意图;
图19为本申请实施例提供的聊天应用的界面的另一示意图;
图20为本申请实施例提供的聊天应用的界面的又一示意图;
图21为本申请实施例提供的聊天应用的界面的又一示意图;
图22为本申请实施例提供的邮箱的界面示意图;
图23为本申请实施例提供的短视频P内嵌于邮箱的界面进行显示的效果示意图;
图24为本申请实施例提供的手机状态栏的界面示意图;
图25为本申请实施例提供的“通知B”的具体内容内嵌于状态栏的界面进行显示的效果示意图;
图26为本申请实施例提供的显示装置的结构示意图。
具体实施方式
以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请以下各实施例中,“至少一个”、“一个或多个”是指一个或两个以上(包含两个)。字符“/”一般表示前后关联对象是一种“或”的关系。
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。术语“连接”包括直接连接和间接连接,除非另外说明。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。
在本申请实施例中,“示例性地”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性地”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性地” 或者“例如”等词旨在以具体方式呈现相关概念。
聊天应用、邮箱等具有社交属性(或具有收发信息的功能)的应用可以为用户提供分享链接的功能。例如,用户在使用终端设备上的聊天应用的过程中,终端设备可能会接收到其他用户分享过来的链接。该链接可以作为聊天内容的一部分显示在聊天应用的界面中,用户可以点击该链接,以触发终端设备显示该链接的访问页面(或称为该链接对应的窗口、或预览窗口、又或者显示窗口)。其中,该链接的访问页面可以是其他应用中的页面,页面中可以包括文本、图片、音频、视频、网页等类型的数据。
例如,一种可能的实现场景中,用户1持有终端设备1,用户2持有终端设备2,且终端设备1和终端设备2上均安装有聊天应用和短视频应用。当用户2在终端设备2上查看短视频应用中的某个短视频P时,用户2可以将短视频P的链接通过聊天应用发送给终端设备1。短视频P的链接可以作为聊天内容的一部分显示在聊天应用的界面中,用户1可以在聊天应用的界面中点击短视频P的链接,以触发终端设备1显示短视频P的链接的访问页面,访问页面中包括了短视频P,用户1可以在访问页面查看短视频P。
在聊天应用中,链接的一种呈现形式为以文本形式存在的统一资源标识符(uniform resource identifier,URI)。例如,图1为一种聊天应用的界面的示意图。如图1所示,用户1和用户2使用聊天应用进行聊天的过程中,用户2向用户1分享的链接可以是以文本形式存在的URI:“http://j.map.xxxxxxxxxxxxx%A6&E5%9Cxxxxxxxxxxxxxxxxxxxxxxx#”。可以理解,图1中所示出的URI仅作为示例。
链接的另一种呈现形式为卡片形式。例如,图2为一种聊天应用的界面的另一示意图。如图2所示,用户1和用户2使用聊天应用进行聊天的过程中,用户2向用户1分享的链接可以包括链接1和链接2,链接1和链接2可以是静态的卡片。链接1对应的卡片中可以包括“应用A”、“视频1”等标识,“应用A”、“视频1”等标识可以用于表明链接1为应用A中的视频1的链接。链接2对应的卡片中可以包括“应用B”、“《红烧肉的做法》”等标识,“应用B”、“《红烧肉的做法》”等标识可以用于表明链接2为应用B中、标题为“《红烧肉的做法》”的文章的链接。相对于以文本形式存在的URI作为链接的呈现形式而言,图2所示的静态卡片作为链接,可以展现出更多与链接相关的详细信息。
对于上述图1和图2中所示的链接,当用户(用户1)点击链接时,如果终端设备上安装有链接对应的应用(如上述链接1对应的应用为应用A,上述链接2对应的应用为应用B),则终端设备可以响应于用户点击链接的操作,跳转至链接对应的应用显示链接的访问页面。如果终端设备上没有安装有链接对应的应用,则终端设备可以响应于用户点击链接的操作,跳转至默认的应用(如浏览器)显示链接的访问页面。
目前,终端设备跳转至链接对应的应用或默认的应用显示链接的访问页面时,链接的访问页面通常全屏显示或者以悬浮窗的形式显示,会遮挡原来的聊天应用的界面。
以用户点击上述图2中所示的链接2为例,图3为终端设备全屏显示链接2的访问页面的示意图。如图3所示,当用户点击链接2时,终端设备可以响应于用户点击 链接2的操作,跳转至链接2对应的应用或默认的应用全屏显示链接2的访问页面。链接2的访问页面中可以包括链接2对应的文章的标题《红烧肉的做法》301、图片302、正文303等。由于链接2的访问页面是全屏显示,所以上述图2所示的原来的聊天应用的界面被完全遮挡,用户无法在浏览链接2的访问页面的同时在原来的聊天应用的界面进行其他操作,如输入文字到聊天框。
同样以用户点击上述图2中所示的链接2为例,图4为终端设备以悬浮窗的形式显示链接2的访问页面的示意图。如图4所示,当用户点击链接2时,终端设备也可以响应于用户点击链接2的操作,跳转至链接2对应的应用或默认的应用以悬浮窗的形式显示链接2的访问页面402。也即,链接2的访问页面402以悬浮窗的形式显示在原来的聊天应用的界面401的上方。链接2的访问页面402以悬浮窗的形式显示在原来的聊天应用的界面401的上方,可以避免原来的聊天应用的界面401被完全遮挡,用户可以在浏览链接2的访问页面402的同时在原来的聊天应用的界面401进行一些其他操作。但由于链接2的访问页面402仍然遮挡了原来的聊天应用的界面401的部分区域,所以用户在浏览链接2的访问页面402的同时在原来的聊天应用的界面401进行其他操作时仍然会受到一定的影响。例如,图5为终端设备以悬浮窗的形式显示链接2的访问页面的另一示意图。如图5所示,当用户打开输入键盘404向聊天框403中输入文字时,链接2的访问页面402可能会遮挡聊天框403,甚至遮挡输入键盘404。
在此背景技术下,本申请实施例提供了一种显示方法,可以应用于终端设备,终端设备中安装有第一应用。该方法中,对第一应用的界面中包括的某个链接,当终端设备检测到打开该链接的操作后,终端设备可以通过第二应用获取该链接的访问页面,并在第一应用的界面内显示第一链接的访问页面,使得该链接的访问页面在显示时不会遮挡第一应用的界面。
例如,一些实现方式中,终端设备可以将该链接的访问页面内嵌于第一应用的界面中进行显示,实现在第一应用的界面内显示第一链接的访问页面。
其中,第一应用和第二应用不同,第二应用可以是该链接对应的应用,或者,终端设备上的默认应用(如浏览器)。第二应用是该链接对应的应用是指:该链接的访问页面为第二应用中的页面。
可选地,该链接对应的应用可以是第一应用所在的终端设备上的应用,或者也可以是其他终端设备上的应用。例如,第一应用所在的终端设备为第一终端,则该链接对应的应用可以是第一终端上的应用,也可以是第二终端上的应用,第一终端和第二终端不同。本申请对该链接对应的应用相对于第一应用的位置关系不作限制。
一些实施例中,第一应用可以是聊天应用(如畅联应用)、或者邮箱(或称为电子邮件)、又或者短信等具有社交属性或具有收发信息的功能的应用。该链接对应的应用可以是能够为用户提供文本、图片、音频、视频、网页等多媒体资源的应用。例如,该链接对应的应用可以是短视频应用、直播应用、浏览器、音乐应用等,在此不作限制。
可选地,本申请实施例中,终端设备可以是手机,也可以是平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、 上网本、个人数字助理(personal digital assistant,PDA)等,本申请实施例对终端设备的具体类型不作限制。
以终端设备为手机为例,图6示出了本申请实施例提供的终端设备的结构示意图。如图6所示,手机可以包括处理器610,外部存储器接口620,内部存储器621,通用串行总线(universal serial bus,USB)接口630,充电管理模块640,电源管理模块641,电池642,天线1,天线2,移动通信模块650,无线通信模块660,音频模块670,扬声器670A,受话器670B,麦克风670C,耳机接口670D,传感器模块680,按键690,马达691,指示器692,摄像头693,显示屏694,以及用户标识模块(subscriber identification module,SIM)卡接口695等。
处理器610可以包括一个或多个处理单元,例如:处理器610可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是手机的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器610中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器610中的存储器为高速缓冲存储器。该存储器可以保存处理器610刚用过或循环使用的指令或数据。如果处理器610需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器610的等待时间,因而提高了系统的效率。
在一些实施例中,处理器610可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,SIM接口,和/或USB接口等。
外部存储器接口620可以用于连接外部存储卡,例如Micro SD卡,实现扩展手机的存储能力。外部存储卡通过外部存储器接口620与处理器610通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器621可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器610通过运行存储在内部存储器621的指令,从而执行手机的各种功能应用以及数据处理。例如,内部存储器621中可以存储有本申请实施例所述的显示方法对应的指令,处理器610可以执行该指令以实现显示方法。如:可以通过第二应用获取第一链接的访问页面,并将第一链接的访问页面内嵌于第一应用的界面中进行显示。
内部存储器621还可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如本申请实施例中所述的第一应用、第二应用等)等。存储数据区可存储手机使用过程中所创建的数据(比如聊天信息、第 一链接、缩略图等)等。此外,内部存储器521可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
充电管理模块640用于从充电器接收充电输入。充电管理模块640为电池642充电的同时,还可以通过电源管理模块641为手机供电。电源管理模块641用于连接电池642,充电管理模块640,以及处理器610。电源管理模块641也可接收电池642的输入为手机供电。
手机的无线通信功能可以通过天线1,天线2,移动通信模块650,无线通信模块660,调制解调处理器以及基带处理器等实现。天线1和天线2用于发射和接收电磁波信号。手机中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。例如,手机可以通过无线通信功能接收其他设备(如第二终端、服务器等)发送的链接。
手机可以通过音频模块670,扬声器670A,受话器670B,麦克风670C,耳机接口670D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
传感器模块680可以包括压力传感器680A,陀螺仪传感器680B,气压传感器680C,磁传感器680D,加速度传感器680E,距离传感器680F,接近光传感器680G,指纹传感器680H,温度传感器680J,触摸传感器680K,环境光传感器680L,骨传导传感器680M等。
显示屏694用于显示图像,视频等。显示屏694包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,手机可以包括1个或N个显示屏694,N为大于1的正整数。例如,显示屏694可以用于显示应用程序界面。如:手机可以通过显示屏694显示第一应用的界面或者全屏显示第一链接的访问页面。第一应用的界面可以包括第一链接、或者内嵌于第一应用的界面中的第一链接的访问页面、或者悬浮于第一应用的界面上的第一链接的访问页面。
手机通过GPU,显示屏694,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏694和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器610可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
可以理解的是,图6所示的结构并不构成对手机的具体限定。在一些实施例中,手机也可以包括比图6所示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置等。又或者,图6所示的一些部件可以以硬件,软件或软件和硬件的组合实现。
另外,当终端设备是其他平板电脑、可穿戴设备、车载设备、AR/VR设备、笔记本电脑、UMPC、上网本、PDA等移动终端时,这些其他终端设备的具体结构也可以参考图6所示。示例性地,其他终端设备可以是在图6给出的结构的基础上增加或减 少了组件,在此不再一一赘述。
可选地,终端设备的操作系统可以是鸿蒙TM(harmony)系统、安卓TM(android)系统、iosTM系统、windowsTM系统、macTM系统、linuxTM系统等,更具体的,还可以是小米TM系统或EMUITM系统,Android WearTM系统、Lite OSTM系统、TizenTM系统、watch osTM系统等。在此对终端设备的操作系统也不作限制。
以终端设备的操作系统为andriod系统为例,图7为本申请实施例提供的安卓系统的体系架构示意图。如图7所示,android系统一般包括:应用程序层(applications)、应用程序框架层(application framework)、系统运行库层(libraries)、以及内核层。
本申请实施例中所述的第一应用和第二应用可以部署在应用程序层,应用程序层还可以包含日历、地图、浏览器和联系人管理等其他系统应用,以及开发人员利用Java语言设计和编写的第三方应用。
应用程序框架层中可以包括包管理服务(package manager service,PMS)。PMS可以负责扫描操作系统中指定目录,找出里面以apk结尾的文件,通过对这些文件进行解析,得到应用程序的所有信息并完成应用程序的安装过程。包管理服务中解析出来的apk信息可以供其它服务使用。
下面以终端设备的操作系统为android系统、第一应用的界面中包括第一链接为例,对本申请实施例提供的显示方法中,当终端设备检测到打开第一链接的操作后,终端设备通过第二应用获取第一链接的访问页面,并将第一链接的访问页面内嵌于第一应用的界面中进行显示的具体原理进行介绍。
示例性地,终端设备检测到打开第一链接的操作可以是指:终端设备检测到用户在第一应用的界面点击第一链接的操作、或者点击第一链接的启动按钮的操作。例如,终端设备可以显示第一应用的界面,第一应用的界面包括第一链接;终端设备可以接收第一操作,第一操作为打开第一链接的操作。
当终端设备检测到打开第一链接的操作后,终端设备可以通过启动活动组件(startactivity)方法启动第二应用(第一链接对应的应用或默认应用)。其中,当终端设备安装了第一链接对应的应用时,终端设备可以通过startactivity方法启动第一链接对应的应用;当终端设备未安装第一链接对应的应用时,终端设备可以通过startactivity方法启动默认应用。
示例性地,startactivity方法可以是:startActivity(Intent intent)。startActivity(Intent intent)中包含启动(intent)参数,intent参数中可以包含需要启动的第二应用的信息,如:URI、包名(如第二应用的包名)等。终端设备的操作系统中的包管理服务(package manager service,PMS)可以调用与intent参数中包含的URI对应的第二应用,将intent参数中包含的URI传给第二应用。第二应用可以访问该URI,显示第一链接对应的具体内容,如某个短视频。第二应用访问上述URI所显示第一链接对应的具体内容即第一链接的访问页面。
也即,终端设备可以响应于上述第一操作,通过第二应用获取第一链接的访问页面,并在第一应用的界面内显示第一链接的访问页面。
一种实现方式中,所述终端设备在第一应用的界面内显示第一链接的访问页面,包括:终端设备将第一应用的界面内第一链接所在位置的画面替换为第一链接的访问 页面。
可选地,所述终端设备将第一应用的界面内第一链接所在位置的画面替换为第一链接的访问页面,包括:终端设备将第一应用的界面中第一链接所在位置的视图控件替换为第一界面视图控件;终端设备将第一界面视图控件的第一界面赋值给第二应用获取第一链接的访问页面所创建的第二界面。
例如,在第二应用访问上述URI显示第一链接对应的具体内容时,终端设备可以将第一应用的界面中第一链接所在位置的视图(view)控件替换为界面/画布视图(surfaceview)控件,并将该surfaceview控件的surface赋值给第二应用显示第一链接对应的具体内容的surface。surfaceview控件即上述第一界面视图控件,surfaceview控件的surface即上述第一界面,第二应用显示第一链接对应的具体内容的surface即第二应用获取第一链接的访问页面所创建的第二界面。由于该surfaceview控件的surface赋值给了第二应用显示第一链接对应的具体内容的surface,所以第二应用访问上述URI所显示的第一链接对应的具体内容可以显示在该surfaceview控件中。从而,终端设备可以实现获取第一链接的访问页面,并将第一链接的访问页面内嵌于第一应用的界面中进行显示。
其中,surface用于管理界面。surface之间相互独立,最终由surface投递者(surfaceflinger)进行合成,渲染到屏幕上。在显示时,后创建的surface一般位于先创建的surface的上层。一般而言,surface的默认显示方式为全屏显示,但是,也可以通过改变surface的显示大小,调整surface在界面中所占的区域大小。例如,先创建surface1,后创建surface2,surfaceflinger对surface1和surface2进行合成渲染到屏幕上时,surface2处于surface1的上层。如果不对surface2的大小进行调整,则surface2默认为全屏显示,会遮挡surface1。如果对surface2的大小进行调整,如:缩小surface2的布局尺寸,则surface2可以实现在surface1上层悬浮显示,也即,surface2可以以悬浮窗的形式存在。又例如,对于界面中的某些视图控件(如上述surfaceview控件)的surface而言,这类surface在界面中显示时,surface的大小与视图控件的布局尺寸相关,如可以相同。通过调整视图控件的布局尺寸,可以实现对视图控件的surface的大小进行调整。
可以理解的,第一链接是基于某个view控件在第一应用的界面中进行显示的,第一应用的界面中用于显示第一链接的view控件与第一链接的呈现形式相关。例如,第一链接为上述以文本形式存在的URI时,第一应用的界面中用于显示第一链接的view控件可以是文本视图(textview)控件。或者,第一链接为上述卡片形式存在的URI时,第一应用的界面中用于显示第一链接的view控件可以包括textview控件、图像视图(image view)控件等。以第一应用的界面中用于显示第一链接的view控件为imageview控件为例,上述终端设备将第一应用的界面中第一链接所在位置的view控件替换为surfaceview控件可以是指:终端设备将该imageview控件替换为surfaceview控件。
示例性地,以第一应用的界面为Surface_A,Surface_A中用于显示第一链接的view控件为imageview控件,第一链接的访问页面为Surface_B为例,图8为本申请实施例提供的imageview控件与Surface_A的关系示意图。如图8所示,Surface_A 801中 可以包括imageview控件802,该imageview控件802用于显示第一链接。
图9为本申请实施例提供的surfaceview控件、Surface_A、以及Surface_B的关系示意图。如图9所示,对于图8所示的Surface_A 801,终端设备可以将Surface_A 801中的imageview控件802(即第一链接所在位置的view控件)替换为surfaceview控件803。surfaceview控件803自带一层surface。之后,终端设备在创建Surface_B 804时,可以对Surface_B 804赋值Surface_A 801中的surfaceview控件803的surface。则,Surface_B 804中的内容会被绘制到Surface_A 801中的surfaceview控件803的surface上进行显示。
例如,图10为本申请实施例提供的Surface_B中的内容在Surface_A中的surfaceview控件的surface上进行显示的效果示意图。如图10所示,Surface_B 804中的内容被绘制到Surface_A 801中的surfaceview控件803的surface上进行显示,也即实现了将Surface_B 804内嵌于Surface_A 801中进行显示。
需要说明的是,如前述实施例中所述,对于界面中的某些视图控件的surface而言,这类surface在界面中显示时,surface的大小与视图控件的布局尺寸可以相同。所以,对Surface_B 804赋值Surface_A 801中的surfaceview控件803的surface后,Surface_B 804中的内容被绘制到Surface_A 801中的surfaceview控件803的surface上进行显示时,Surface_B 804中的内容在Surface_A中所占的区域即为surfaceview控件803的surface所占的区域。例如,Surface_B 804中的内容在surfaceview控件803的surface上进行显示时,会被适应性调整为surfaceview控件803的surface的布局尺寸。
可选地,上面所述的实施例中,终端设备是将第一应用的界面中第一链接所在位置的view控件替换为surfaceview控件以实现将第一链接的访问页面内嵌于第一应用的界面中进行显示。在另外一些实施例中,在第二应用访问URI显示第一链接对应的具体内容时,终端设备也可以在第一应用的界面中增加一个surfaceview控件,并将该surfaceview控件的surface赋值给第二应用显示第一链接对应的具体内容的surface。此时,第二应用访问URI所显示的第一链接对应的具体内容同样可以显示在该surfaceview控件中,以实现将第一链接的访问页面内嵌于第一应用的界面中进行显示。
也即,另一种实现方式中,所述终端设备在第一应用的界面内显示第一链接的访问页面,包括:终端设备在第一应用的界面内增加第一链接的访问页面。所述终端设备在第一应用的界面内增加第一链接的访问页面,包括:终端设备在第一应用的界面中增加第一界面视图控件;终端设备将第一界面视图控件的第一界面赋值给第二应用获取第一链接的访问页面所创建的第二界面。
示例性地,终端设备在第一应用的界面中增加的surfaceview控件,可以在第一链接所在位置的view控件的下方。例如,同样以第一应用的界面为Surface_A,Surface_A中用于显示第一链接的view控件为imageview控件为例,图11为本申请实施例提供的imageview控件、surfaceview控件、以及Surface_A的关系示意图。如图11所示,终端设备也可以在Surface_A 801中增加一个surfaceview控件803,surfaceview控件803可以在imageview控件802的下方,如:可以在imageview控件802的下方空白区域。
可选地,终端设备在第一应用的界面中增加的surfaceview控件,也可以在第一应 用的界面中的其他空白区域,在此对surfaceview控件的位置不作限制。surface view控件的位置可以与第一链接在第一应用的界面中的位置相关。
可以理解,上述示例中,Surface_A和Surface_B本质上还是独立的两个surface,因此,Surface_A和Surface_B都能占据焦点,例如,用户在Surface_A中进行点击操作,则Surface_A占据焦点;用户在Surface_B中进行点击操作,则Surface_B占据焦点。可选地,本申请实施例中,将Surface_B内嵌于Surface_A中进行显示时,按键(key)事件的处理逻辑可以包括:当key事件产生时,key事件中的返回(back)事件全部由Surface_A处理;key事件中除了back事件之外的其他key事件由操作系统的窗口管理服务进行派发,优先派发给最顶层占焦点的窗口;最顶层占焦点的窗口可以是Surface_A或Surface_B。Surface_A处理key事件中的back事件的逻辑可以如下:
1)当Surface_B内嵌于Surface_A中运行时(如短视频P正在播放时),Surface_A处理back事件的逻辑为停止运行Surface_B;
2)当Surface_B内嵌于Surface_A中未运行时(如短视频P暂停播放时),Surface_A处理back事件的逻辑为返回上一页。
其中,key事件可以是用户点击界面上的某个按钮、或者在界面上进行滑动、长按等操作、又或者用户点击系统返回按键等。key事件中的back事件可以是指用户点击系统返回按键。
需要说明的是,上面虽然是以终端设备的操作系统为android系统为例,对终端设备通过第二应用获取第一链接的访问页面,并将第一链接的访问页面内嵌于第一应用的界面中进行显示的具体原理进行介绍,但应当理解,当终端设备的操作系统为除android系统之外的其他系统时,终端设备通过第二应用获取第一链接的访问页面,并将第一链接的访问页面内嵌于第一应用的界面中进行显示的具体原理与上面的介绍相似。其区别仅仅在于,其他操作系统中,终端设备启动第二应用时所采用的方法、用于显示界面中的具体内容的view控件等可能不同,在此不再详述。
下面以第一应用为聊天应用,第二应用为短视频应用:应用A为例,结合用户在使用聊天应用进行聊天的过程中接收到应用A中的某个短视频P的链接,并点击该链接查看该短视频P的场景,对本申请实施例提供的显示方法进行举例说明。可以理解,短视频P的链接即上述第一链接。
当用户使用终端设备上安装的聊天应用与其他用户进行聊天的过程中,终端设备接收到其他用户分享过来的短视频P的链接时,终端设备可以在聊天应用的界面中显示短视频P的链接。示例性地,图12为本申请实施例提供的聊天应用的界面示意图。如图12所示,本申请一些实施例中,终端设备在聊天应用的界面中显示短视频P的链接的方式可以包括:终端设备在聊天应用的界面中显示短视频P的链接对应的缩略图1201、以及短视频P的链接的打开按钮1202。打开按钮1202也可以称为启动按钮、播放按钮、浏览按钮等,在此不作限制。
一些实施例中,短视频P的链接对应的缩略图1201可以是能够打开短视频P的链接的应用A的缩略图,或者默认的缩略图,又或者默认浏览器的缩略图(图12中是以短视频P的链接对应的缩略图1201为应用A的缩略图为例)。例如,当终端设备上安装有应用A时,终端设备可以在聊天应用的界面中显示应用A的缩略图;当终端 设备上没有安装有应用A时,终端设备可以在聊天应用的界面中显示默认的缩略图或者默认浏览器的缩略图。前述应用A的缩略图、默认的缩略图、默认浏览器的缩略图等可以预设在终端设备中,如:终端设备中可以存储一个缩略图文件,缩略图文件中可以包括一个或多个应用的缩略图,当终端设备需要显示某个链接对应的缩略图时,可以在缩略图文件中查找能够打该链接的应用的缩略图进行显示。下面将以终端设备上安装有应用A为例进行说明。
另外一些实施例中,短视频P的链接对应的缩略图1201也可以被替换为短视频P封面、短视频P的第一帧或者其中的某一帧等,本申请对此不作限制。
示例性地,终端设备在接收到短视频P的链接后,可以根据短视频P的链接中包括的URI,解析该URI的scheme字段、host字段等,并根据已安装应用的应用包信息配置文件,找到与从该URI解析出的scheme字段、host字段等字段相匹配的应用。与从该URI解析出的scheme字段、host字段等字段相匹配的应用即为能够打开短视频P的链接的应用,如应用A。然后,终端设备可以显示应用A的缩略图,以及短视频P的链接的打开按钮1202。其中,应用包信息配置文件也称应用清单(manifest)配置文件,该配置文件包含了应用安装包的信息。例如,安卓系统中,应用包信息配置文件可以是AndroidManifest配置文件。
本申请实施例中,终端设备可以通过imageview控件在聊天应用的界面中显示短视频P的链接对应的缩略图1201。用户点击上述图12中所示的打开按钮1202的操作即为上述打开第一链接的操作。当用户点击上述图12中所示的打开按钮1202时,终端设备可以响应于检测到用户点击打开按钮1202的操作,将聊天应用的界面中的imageview控件替换为surfaceview控件,或者,在聊天应用的界面中增加一个surfaceview控件,此处以将聊天应用的界面中的imageview控件替换为surfaceview控件为例。surfaceview控件自带一层surface。另外,终端设备可以响应于检测到用户点击打开按钮1202的操作,通过startactivity方法启动应用A,应用A可以访问短视频P的链接中包括的URI,显示短视频P。具体原理如前述实施例中所述,不再赘述。
终端设备在创建应用A显示短视频P的surface时,可以将聊天应用的界面中的surfaceview控件的surface赋值给应用A显示短视频P的surface。则,短视频P会被绘制到聊天应用的界面中的surfaceview控件的surface上进行显示。也即,短视频P可以被内嵌于聊天应用的界面中进行显示。
例如,图13为本申请实施例提供的短视频P内嵌于聊天应用的界面进行显示的效果示意图。如图13所示,短视频P被绘制到聊天应用的界面中的surfaceview控件的surface上进行显示时,短视频P可以内嵌于聊天应用的界面中。此时,用户可以在浏览短视频P的同时,继续在聊天应用的界面进行聊天,短视频P在显示时不会遮挡聊天应用的界面。
一些实施例中,第一链接的访问页面在第一应用的界面中内嵌显示时,第一应用的界面中还可以包括关闭按钮和全屏按钮。其中,关闭按钮也可以称为停止按钮,全屏按钮也可以称为最大化按钮、放大按钮等。
当用户点击关闭按钮时,终端设备可以响应于用户点击关闭按钮的操作,关闭第一链接的访问页面,重新显示第一链接。例如,终端设备可以响应于用户点击关闭按 钮的操作,将surfaceview控件替换为原来的第一链接所在位置的view控件,并基于该view控件重新显示第一链接。终端设备还可以关闭第二应用。也即,当用户点击关闭按钮时,终端设备可以关闭第一链接的访问页面的内嵌显示效果,重新显示第一链接。
当用户点击全屏按钮时,终端设备可以响应于用户点击全屏按钮的操作,全屏显示第一链接的访问页面,例如,终端设备可以响应于用户点击全屏按钮的操作,创建一个全屏surface(即全屏界面),并将全屏surface赋值给第二应用显示第一链接的访问页面的surface。此时,第一链接的访问页面会覆盖第一应用的界面,实现全屏显示。
以上述图12和图13所示的场景为例,请继续参考图13所示,短视频P在聊天应用的界面中内嵌显示时,聊天应用的界面中还可以包括关闭按钮1301和全屏按钮1302。当用户点击关闭按钮1301时,终端设备可以响应于用户点击关闭按钮1301的操作,将聊天应用的界面中的surfaceview控件替换为原来显示短视频P的链接的imageview控件,并基于imageview控件重新显示短视频P的链接,如:显示短视频P的链接对应的缩略图1201、以及短视频P的链接的打开按钮1202。可以理解,终端设备基于imageview控件重新显示短视频P的链接时,聊天应用的界面会恢复到上述图12中所示的界面。
当用户点击全屏按钮1302时,终端设备可以响应于用户点击全屏按钮1302的操作,创建一个全屏surface,并将全屏surface赋值给应用A显示短视频P的surface。此时,终端设备会全屏显示短视频P,短视频P的显示界面会覆盖聊天应用的界面。例如,图14为本申请实施例提供的短视频P全屏显示的效果示意图。如图14所示,短视频P全屏显示时,短视频P的显示界面会覆盖聊天应用的界面。
可选地,当短视频P全屏显示时,短视频P的显示界面中可以包括一个最小化按钮(图中未示出),当用户点击最小化按钮时,终端设备可以响应于用户点击最小化按钮的操作,重新将聊天应用的界面中的surfaceview控件的surface赋值给应用A显示短视频P的surface,使得短视频的显示效果由全屏显示切换至上述内嵌于聊天应用的界面中进行显示。或者,当短视频P全屏显示时,短视频P的显示界面中还可以包括一个关闭按钮(图中未示出,可以与上述聊天应用的界面中的关闭按钮1301相同),当用户点击关闭按钮时,终端设备可以响应于用户点击关闭按钮的操作,关闭全屏surface,将聊天应用的界面中的surfaceview控件替换为原来显示短视频P的链接的imageview控件,并基于imageview控件重新显示短视频P的链接,如:显示短视频P的链接对应的缩略图1201、以及短视频P的链接的打开按钮1202。
上述提到的用户点击第一应用的界面中的关闭按钮的操作、以及用户点击短视频P的全屏显示界面(第一链接的访问页面的全屏显示界面)中的关闭按钮的操作,均可以称为关闭第一链接的访问页面的操作。在本申请中,前述关闭第一链接的访问页面的操作也可以称为第四操作,终端设备接收到第四操作后,可以响应于第四操作,关闭第一链接的访问页面,不再在第一应用的界面内显示第一链接的访问页面。
用户点击第一应用的界面中的全屏按钮的操作,可以称为将第一链接的访问页面由内嵌显示切换为全屏显示的操作,或称为将第一链接的访问页面切换为全屏显示的操作。在本申请中,前述将第一链接的访问页面切换为全屏显示的操作也可以称为第 二操作,终端设备接收到第二操作后,可以响应于第二操作,全屏显示第一链接的访问页面。
用户点击短视频P的全屏显示界面(第一链接的访问页面的全屏显示界面)中的最小化按钮的操作,可以称为将第一链接的访问页面由全屏显示切换为内嵌显示的操作,或称为将第一链接的访问页面取消全屏显示的操作。在本申请中,前述将第一链接的访问页面取消全屏显示的操作也可以称为第三操作,终端设备接收到第三操作后,可以响应于第二操作,在第一应用的界面内显示第一链接的访问页面。也即,可以将第一链接的访问页面由全屏显示切换为内嵌显示。
也有一些实施例中,前述关闭第一链接的访问页面、将第一链接的访问页面由内嵌显示切换为全屏显示、将第一链接的访问页面由全屏显示切换为内嵌显示等功能也可以基于其他的操作方式实现,如:用户可以单击、双击、或长按屏幕上某个区域,或者通过触控其他功能按键、又或者在屏幕上进行某些滑动操作等,触发终端设备实现前述功能。需要说明的是,上述实施例仅为示例性说明,本申请对用户触发终端设备实现前述功能的具体操作方式并不作限制。
可选地,本申请实施例中,终端设备通过第二应用获取第一链接的访问页面,并将第一链接的访问页面内嵌于第一应用的界面中进行显示时,终端设备可以动画放大第一链接的访问页面。例如,以上述短视频P的场景为例,终端设备响应于检测到用户点击打开按钮1202的操作,将聊天应用的界面中的imageview控件替换为surfaceview控件时,可以调整surfaceview控件的布局尺寸大于imageview控件的布局尺寸,之后,终端设备将surfaceview控件的surface赋值给应用A显示短视频P的surface时,短视频P相对于短视频P的链接对应的缩略图1201而言,会放大显示在聊天应用的界面中。应当理解,这里所述的放大,是指短视频P在聊天应用的界面中所占的区域大于短视频P的链接对应的缩略图1201在聊天应用的界面中所占的区域。
一些实施例中,终端设备将第一应用的界面中第一链接所在位置的view控件替换为surfaceview控件,或者,在第一应用的界面中增加surfaceview控件后,将该surfaceview控件的surface赋值给第二应用显示第一链接的访问页面(即第一链接对应的具体内容)的surface时,终端设备还可以根据第一链接的访问页面对surfaceview控件的布局大小进行适应性调整。例如,以上述短视频P的场景为例,终端设备将surfaceview控件的surface赋值给应用A显示短视频P的surface时,如果短视频P为横屏,则终端设备可以根据短视频P的水平方向和竖直方向的尺寸比例,调整surfaceview控件的水平方向和竖直方向的尺寸比例,使得surfaceview控件的水平方向的尺寸大于竖直方向的尺寸。如果短视频P为竖屏,则终端设备可以根据短视频P的水平方向和竖直方向的尺寸比例,调整surfaceview控件的水平方向和竖直方向的尺寸比例,使得surfaceview控件的竖直方向的尺寸大于水平方向的尺寸。
一些可能的场景中,终端设备将第一链接的访问页面内嵌于第一应用的界面中进行显示时,终端设备可能会响应于用户向上或向下的滑动操作控制第一应用的界面向上或向下滑动,或者,终端设备可能会根据第一应用的界面中其他内容的增加,自动滑动第一应用的界面。当第一应用的界面向上或向下滑动时,内嵌于第一应用的界面中进行显示的第一链接的访问页面可能会随着第一应用的界面的滑动而移出终端设备 的屏幕。
以上述短视频P的场景为例,终端设备将短视频P内嵌于聊天应用的界面中进行显示时,用户可能会向上或向下滑动聊天应用的界面,以查看更多的聊天信息。或者,用户继续在聊天应用的界面进行聊天时,随着聊天信息的增加,聊天应用的界面会向下滑动。当聊天应用的界面向上或向下滑动时,内嵌于聊天应用的界面中进行显示的短视频P可能会随着聊天应用的界面的滑动而移出终端设备的屏幕。
例如,图15为本申请实施例提供的短视频P内嵌于聊天应用的界面中进行显示时,聊天应用的界面向上滑动的示意图。如图15所示,聊天应用的界面向上滑动时,短视频P会从聊天应用的界面的上方(顶部)移出终端设备的屏幕。图16为本申请实施例提供的短视频P内嵌于聊天应用的界面中进行显示时,聊天应用的界面向下滑动的示意图。如图16所示,聊天应用的界面向下滑动时,短视频P会从聊天应用的界面的下方(底部)移出终端设备的屏幕。
对于上述第一链接的访问页面内嵌于第一应用的界面中进行显示时,随着第一应用的界面的滑动而移出终端设备的屏幕的场景,本申请实施例中,终端设备(或者说第一应用)可以监听surfaceview控件在第一应用的界面中的位置(或偏移值)。当第一应用的界面向上滑动时,终端设备可以监测到surfaceview控件的上边沿是否偏移到屏幕交界处(也即屏幕边缘处)。当第一应用的界面向下滑动时,终端设备可以监测到surfaceview控件的下边沿是否偏移(即,移动)到屏幕交界处。如果终端设备监测到surfaceview控件的上边沿或者下边沿偏移到屏幕交界处,则终端设备可以获取surfaceview控件相对于屏幕的位置和大小,并根据surfaceview控件相对于屏幕的位置和大小在系统层增加一个与surfaceview控件相对于屏幕的位置和大小完全相同的surface(为方便描述,可称为悬浮surface,即悬浮界面)。然后,终端设备可以将该悬浮surface赋值给第二应用显示第一链接的访问页面的surface。此时,第一链接的访问页面会被绘制到悬浮surface上进行显示,也即,第一链接的访问页面可以由内嵌于第一应用的界面中进行显示切换至悬浮于第一应用的界面上进行显示。由于第一链接的访问页面悬浮于第一应用的界面上进行显示,所以第一链接的访问页面不会随着第一应用的界面的向上滑动或向下滑动而移出终端设备的屏幕。
例如,终端设备的操作系统为安卓系统时,终端设备获取surfaceview控件相对于屏幕的位置和大小的方式,可以包括:终端设备通过View.getLocationOnScreen方法获取surfaceview控件相对于屏幕的位置,通过getWidth,getHeight方法(或函数)获取surfaceview控件的大小。类似地,终端设备的操作系统为其他操作系统时,终端设备可以采用类似的方式获取到surfaceview控件相对于屏幕的位置和大小。
以上述短视频P的场景为例,终端设备将短视频P内嵌于聊天应用的界面中进行显示时,终端设备可以监听surfaceview控件在聊天应用的界面中的位置(或偏移值)。当聊天应用的界面向上滑动时,终端设备可以监测到surfaceview控件的上边沿是否偏移到屏幕交界处。当聊天应用的界面向下滑动时,终端设备可以监测到surfaceview控件的下边沿是否偏移到屏幕交界处。如果终端设备监测到surfaceview控件的上边沿或者下边沿偏移到屏幕交界处,则终端设备可以获取surfaceview控件相对于屏幕的位置和大小,并根据surfaceview控件相对于屏幕的位置和大小在系统层增加一个与 surfaceview控件相对于屏幕的位置和大小完全相同的悬浮surface。然后,终端设备可以将该悬浮surface赋值给应用A显示短视频P的surface。此时,短视频P会被绘制到悬浮surface上进行显示,也即,短视频P可以由内嵌于聊天应用的界面中进行显示切换至悬浮于聊天应用的界面上进行显示。
示例性地,图17为本申请实施例提供的聊天应用的界面向上滑动时,短视频P悬浮于聊天应用的界面上进行显示的示意图。如图17所示,聊天应用的界面向上滑动时,如果短视频P对应的surfaceview控件的上边沿偏移到屏幕交界处,则短视频P可以由内嵌于聊天应用的界面中进行显示切换至悬浮于聊天应用的界面上进行显示。此时,短视频P不会随着聊天应用的界面继续向上滑动而移出终端设备的屏幕。
示例性地,图18为本申请实施例提供的聊天应用的界面向下滑动时,短视频P悬浮于聊天应用的界面上进行显示的示意图。如图18所示,聊天应用的界面向下滑动时,如果短视频P对应的surfaceview控件的下边沿偏移到屏幕交界处,则短视频P也可以由内嵌于聊天应用的界面中进行显示切换至悬浮于聊天应用的界面上进行显示。此时,短视频P不会随着聊天应用的界面继续向下滑动而移出终端设备的屏幕。
一些实施例中,第一链接的访问页面由内嵌于第一应用的界面中进行显示切换至悬浮于第一应用的界面上进行显示时,终端设备可以继续监听surfaceview控件在第一应用的界面中的位置。对于上面提到的第一应用的界面向上滑动的场景,如果第一应用的界面由向上滑动改变为向下滑动时,终端设备可以监测到surfaceview控件的上边沿是否远离屏幕交界处(屏幕顶部)。对于上面提到的第一应用的界面向下滑动的场景,如果第一应用的界面由向下滑动改变为向上滑动时,终端设备可以监测到surfaceview控件的下边沿是否远离屏幕交界处(屏幕底部)。如果终端设备监测到surfaceview控件的上边沿远离屏幕顶部或者下边沿远离屏幕底部,则终端设备可以重新将surfaceview控件的surface赋值给第二应用显示第一链接的访问页面的surface,使得第一链接的访问页面由悬浮于第一应用的界面上进行显示切换至内嵌于第一应用的界面中进行显示。
例如,对于上述图17所示的场景,当聊天应用的界面由向上滑动改变为向下滑动时,如果短视频P对应的surfaceview控件的上边沿远离屏幕顶部,则短视频P可以由悬浮于聊天应用的界面上进行显示切换至内嵌于聊天应用的界面中进行显示。对于上述图18所示的场景,当聊天应用的界面由向下滑动改变为向上滑动时,如果短视频P对应的surfaceview控件的下边沿远离屏幕底部,则短视频P也可以由悬浮于聊天应用的界面上进行显示切换至内嵌于聊天应用的界面中进行显示。
可选地,当第一链接的访问页面悬浮于第一应用的界面上进行显示时,第一链接的访问页面或者第一应用的界面中也可以包括前述实施例中提到的全屏按钮、最小化按钮、关闭按钮等,不再赘述。
可以理解的,当第一链接的访问页面悬浮于第一应用的界面上进行显示时,第一链接的访问页面会遮挡第一应用的界面中的部分区域,第一应用的界面中用户期望去使用或浏览的一些其他元素可能被遮挡,用户在第一应用的界面上进行一些其他操作时会受到一定的影响。例如,当短视频P悬浮于聊天应用的界面上进行显示时,如果用户打开输入键盘向聊天框中输入文字时,短视频P可能会遮挡聊天框,甚至遮挡输 入键盘(聊天框、输入键盘即其他元素)。
对此,本申请实施例中,第一链接的访问页面悬浮于第一应用的界面上进行显示时,终端设备可以根据第一应用的界面中的其他元素(如第一元素)与正在悬浮显示的第一链接的访问页面(可称为悬浮窗)之间的位置关系,对正在悬浮显示的第一链接的访问页面的大小进行动态调整,以避免第一应用的界面中的其他元素被遮挡,使得用户在浏览正在悬浮显示的第一链接的访问页面的同时,也能够在第一应用的界面上进行一些其他操作。对正在悬浮显示的第一链接的访问页面的大小进行动态调整时,第一链接的访问页面的大小可以与第一元素相关。
例如,以第一链接的访问页面为上述短视频P为例,短视频P悬浮于聊天应用的界面上进行显示,且用户打开输入键盘向聊天框中输入文字时,终端设备可以根据聊天框与短视频P的悬浮窗之间的位置关系,对短视频P的悬浮窗的大小进行动态调整,以避免聊天框被短视频P的悬浮窗遮挡。用户在浏览短视频P的同时,也能够在聊天应用的界面上继续向聊天框中输入文字以进行聊天。其中,聊天框即可以是上述第一元素,短视频P的悬浮窗的大小进与聊天框相关。
示例性地,图19至图21依次为本申请实施例提供的聊天应用的界面的三种示意图。下面结合图19至图21对终端设备根据聊天框与短视频P的悬浮窗之间的位置关系,对短视频P的悬浮窗的大小进行动态调整的过程及具体原理进行说明。
请参考图19所示,短视频P的悬浮窗1901悬浮于聊天应用的界面上时,用户可以打开输入键盘1903向聊天框1902中输入文字。
请参考图20所示,用户打开输入键盘1903向聊天框1902中输入文字的过程中,聊天框1902会随着输入文字的增多而逐渐增大。聊天框1902逐渐增大时,聊天框1902的上边缘会逐渐靠近短视频P的悬浮窗1901。
本申请实施例中,聊天框1902随着输入文字的增多而逐渐增大的过程中,当聊天框1902的上边缘靠近至接触到短视频P的悬浮窗1901,或者,与短视频P的悬浮窗1901的下边缘之间的距离小于某个阈值(如1毫米(mm)、2mm,或者1个像素点等)时,如果聊天框1902继续增大,终端设备可以随着聊天框1902的增大而挤压(或者说缩小)短视频P的悬浮窗1901的大小。例如,聊天框1902每向上增大1mm,终端设备可以调整短视频P的悬浮窗1901的下边缘向上缩小1mm。
对短视频P的悬浮窗1901的大小进行动态调整的效果可以参考图21所示。如图21所示,聊天框1902随着输入文字的增多而逐渐增大的过程中,终端设备按照上述方式根据聊天框1902与短视频P的悬浮窗1901之间的位置关系,对短视频P的悬浮窗1901的大小进行动态调整,可以使得短视频P的悬浮窗1901不遮挡聊天框1902。
如上所述,第一链接的访问页面悬浮是通过上述悬浮surface在第一应用的界面中实现悬浮显示的。本申请实施例中,终端设备可以通过调整该悬浮surface的大小,实现对正在悬浮显示的第一链接的访问页面的大小进行调整。
需要说明的是,以上结合用户在使用聊天应用进行聊天的过程中接收到应用A中的某个短视频P的链接,并点击该链接查看该短视频P的场景为例,对本申请实施例提供的显示方法进行了示例性说明。但应当理解,虽然上述说明是以终端设备在聊天应用的界面中显示短视频P的链接对应的缩略图、以及短视频P的链接的打开按钮为 例进行了说明,但本申请对终端设备显示短视频P的链接的方式不作限制。
例如,一些实施例中,终端设备显示短视频P的链接的方式也可以是显示以文本形式或者卡片形式存在的URI、以及短视频P的链接的打开按钮。
又例如,另外一些实施例中,终端设备也可以只显示短视频P的链接对应的缩略图、或者以文本形式或者卡片形式存在的URI,不显示短视频P的链接的打开按钮,但短视频P的链接对应的缩略图、或者以文本形式或者卡片形式存在的URI本身可以作为打开按钮。用户点击短视频P的链接对应的缩略图、或者以文本形式或者卡片形式存在的URI时,可以触发终端设备检测到用户打开短视频P的链接的操作。
上述实施例中是以第一应用为聊天应用作为示例进行了说明,在另外一些实施例中,当第一应用是邮箱(或称为电子邮件)、又或者短信等其他具有收发信息的功能的应用时,上述实施例中所提到的各种实现方式同样适用。
例如,以第一应用为邮箱、第二应用为上述应用A为例,假设邮箱接收到其他用户通过邮件发送过来的应用A中的短视频P的链接,则当用户打开该邮件后,邮箱的界面中可以显示短视频P的链接。示例性地,图22为本申请实施例提供的邮箱的界面示意图。如图22所示,一些实施例中,终端设备在邮箱的界面中显示短视频P的链接的方式与上述聊天应用的界面中显示短视频P的链接的方式可以相同,终端设备可以在邮箱的界面中显示短视频P的链接对应的缩略图2201、以及短视频P的链接的打开按钮2202。当用户点击图22中所示的打开按钮2202时(如通过鼠标点击打开按钮2202),终端设备可以响应于检测到用户点击打开按钮2202的操作,通过应用A访问短视频P的链接中包括的URI,并将短视频P被内嵌于邮箱的界面中进行显示(具体原理与前述实施例相同)。
示例性地,图23为本申请实施例提供的短视频P内嵌于邮箱的界面进行显示的效果示意图。如图23所示,短视频P内嵌于邮箱的界面中显示时,短视频P不会遮挡邮箱的界面。
类似地,上述结合聊天应用为例所给出的其他实施例同样适用于第一应用为邮箱的场景,不再一一赘述。
还有一些实施例中,本申请实施例中所述的第一应用也可以是指终端设备(如手机或电脑)的通知栏(通知栏也可以称为状态栏),通知栏中可以包括携带有URI的资讯、软件更新提醒、推送消息等通知,这些通知也可以称为链接,第二应用可以是能够打开通知栏中的通知的应用。例如,假设通知栏中包括通知B,通知B为应用B推送的一条推送消息,则第二应用可以是应用B或者默认浏览器。
以第一应用为手机的状态栏为例,图24为本申请实施例提供的手机状态栏的界面示意图。如图24所示,手机可以在下拉界面2401中显示状态栏2402。其中,下拉界面是指在将手机的主界面(或称为桌面)的顶部向下滑动后出现的显示界面,下拉界面中可以显示用户常用的功能的按键,如:WLAN、蓝牙等,方便用户快速使用相关功能。例如,手机当前显示界面为桌面时,用户可在手机屏幕顶部上执行向下的滑动操作,以触发手机将显示界面由桌面切换至下拉界面(或者在桌面上叠加显示下拉界面)。
状态栏2402的界面中可以包括“通知A”、“通知B”、“通知C”等通知。假 设“通知B”为应用B推送的一条推送消息,且手机上安装有应用B,则当用户点击状态栏2402中的“通知B”时,手机可以响应于用户点击状态栏2402中的“通知B”的操作,将状态栏2402的界面中用于显示“通知B”的view控件替换为surfaceview控件,或者,在状态栏2402的界面中增加一个surfaceview控件,此处以将状态栏2402的界面中用于显示“通知B”的view控件替换为surfaceview控件为例。surfaceview控件自带一层surface。另外,手机可以响应于用户点击状态栏2402中的“通知B”的操作,通过startactivity方法启动应用B,应用B可以访问“通知B”中包括的URI,显示“通知B”的具体内容。
手机在创建应用B显示“通知B”的具体内容的surface时,可以将状态栏2402的界面中的surfaceview控件的surface赋值给应用B显示“通知B”的具体内容的surface。则,“通知B”的具体内容会被绘制到状态栏2402的界面中的surfaceview控件的surface上进行显示。也即,“通知B”的具体内容可以被内嵌于状态栏2402的界面中进行显示。
例如,图25为本申请实施例提供的“通知B”的具体内容内嵌于状态栏的界面进行显示的效果示意图。如图25所示,其中,“应用B的窗口”中包括“通知B”的具体内容,“通知B”的具体内容被绘制到状态栏2402的界面中的surfaceview控件的surface上进行显示时,“应用B的窗口”可以内嵌于状态栏2402的界面中。此时,用户可以在状态栏2402的界面中浏览“通知B”的具体内容,且“通知B”的具体内容在显示时不会遮挡状态栏2402的界面。
上述图24和图25所示的场景中,“通知B”即上述第一链接,用户点击状态栏2402中的“通知B”的操作即打开第一链接的操作。
类似地,上述结合聊天应用为例所给出的其他实施例同样适用于第一应用为通知栏的场景,不再一一赘述。
还有一些实施例中,本申请实施例中所述的第一应用也可以是指终端设备(如手机)的负一屏,负一屏中也可以包括携带有URI的资讯、推送消息等推荐信息、或者健康服务、金融服务、购物服务等服务信息。负一屏中包括这些推荐信息、服务信息等也可以称为链接,第一链接可以是其中的某一个链接,第二应用可以是能够打开负一屏中的链接的应用。其中,负一屏是指将手机的主界面(或称为桌面)向右滑动后出现的显示界面,负一屏中可以显示用户常用的应用、功能以及订阅的服务和资讯等,方便用户快速浏览和使用。例如,手机当前显示界面为桌面时,用户可在手机屏幕上执行向右的滑动操作,以触发手机将显示界面由桌面切换至负一屏。
可以理解的是,“负一屏”只是本申请实施例中所使用的一个词语,其代表的含义在本申请实施例中已经记载,但其名称并不能对本申请实施例构成任何限制;另外,在其他一些实施例中,“负一屏”也可以被称为例如“桌面助理”、“快捷菜单”、“Widget集合界面”等其他名称,在此不作限制。
类似地,上述结合聊天应用为例所给出的其他实施例同样适用于第一应用为负一屏的场景,不再一一赘述。
以上实施例中第一应用为聊天应用、邮箱、通知栏、负一屏等应用的场景仅为本申请实施例可以实现的一些场景,本申请在此对第一应用的具体类型并不作限制。
另外,还需要说明的是,以上实施例中仅为第一链接为短视频P、或者“通知B”等场景进行了说明,但应当理解,以上各个实施例同样可以适用于第一链接是其他文本、图片、音频、视频、网页等类型数据的链接的场景。也即,本申请实施例所述的技术方案可以适用于第一链接是文本、图片、音频、短视频或视频、网页等不同类型数据的链接的场景,在此对第一链接对应的具体数据类型也不作限制。
应当理解,以上各实施例中所述仅为对本申请实施例提供的显示方法的示例性说明。在其他一些可能的实现方式中,以上所述的各实施例也可以删减或增加某些执行步骤,或者以上实施例中所述的部分步骤的顺序也可以进行调整,本申请对此均不作限制。
对应于前述实施例中所述的显示方法,本申请实施例提供一种显示装置,该装置可以应用于上述终端设备,用于实现前述实施例所述的显示方法。该装置的功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述显示方法中的步骤相对应的模块或单元。
例如,图26为本申请实施例提供的显示装置的结构示意图。如图26所示,该装置可以包括:显示模块2601、接收模块2602、以及处理模块2603。显示模块2601、接收模块2602、以及处理模块2603可以用于配合实现前述实施例所述的显示方法。
如:显示模块2601,用于显示第一应用的界面,第一应用的界面包括第一链接;接收模块2602,用于接收第一操作,第一操作为打开第一链接的操作;处理模块2603,用于响应于第一操作,通过第二应用获取第一链接的访问页面,并通过显示模块2601在第一应用的界面内显示第一链接的访问页面。
一种实现方式中,处理模块2603,具体用于将第一应用的界面内第一链接所在位置的画面替换为第一链接的访问页面,以实现在第一应用的界面内显示第一链接的访问页面。
可选地,处理模块2603,具体用于将第一应用的界面中第一链接所在位置的视图控件替换为第一界面视图控件;将第一界面视图控件的第一界面赋值给第二应用获取第一链接的访问页面所创建的第二界面,以实现将第一应用的界面内第一链接所在位置的画面替换为第一链接的访问页面。
或者,另一种实现方式中,处理模块2603,具体用于在第一应用的界面内增加第一链接的访问页面,以实现在第一应用的界面内显示第一链接的访问页面。
可选地,处理模块2603,具体用于在第一应用的界面中增加第一界面视图控件;将第一界面视图控件的第一界面赋值给第二应用获取第一链接的访问页面所创建的第二界面,以实现在第一应用的界面内增加第一链接的访问页面。
一些实现方式中,接收模块2602,还用于接收第二操作,第二操作为将第一链接的访问页面切换为全屏显示的操作;处理模块2603,还用于响应于第二操作,通过显示模块2601全屏显示第一链接的访问页面。
可选地,处理模块2603,具体用于创建全屏界面,并将全屏界面赋值给第二应用获取第一链接的访问页面所创建的第二界面,以实现全屏显示第一链接的访问页面。
可选地,接收模块2602,还用于接收第三操作,第三操作为将第一链接的访问页面取消全屏显示的操作;处理模块2603,还用于响应于第三操作,通过显示模块2601 在第一应用的界面内显示第一链接的访问页面。
一些实现方式中,第一链接的访问页面在第一应用的界面内显示时,如果第一应用的界面向上滑动或向下滑动导致第一链接的访问页面移动到屏幕交界处,处理模块2603,还用于通过显示模块2601悬浮显示第一链接的访问页面。
可选地,处理模块2603,具体用于创建悬浮界面,并将悬浮界面赋值给第二应用获取第一链接的访问页面所创建的第二界面,以实现悬浮显示第一链接的访问页面。
可选地,第一链接的访问页面悬浮显示时,如果第一应用的界面向上滑动或向下滑动导致第一链接的访问页面远离屏幕交界处,处理模块2603,还用于通过显示模块2601在第一应用的界面内显示第一链接的访问页面。
可选地,第一链接的访问页面悬浮显示时,处理模块2603,还用于根据第一应用的界面中的第一元素与第一链接的访问页面之间的位置关系,动态调整第一链接的访问页面的大小;第一链接的访问页面的大小与第一元素的大小相关。
一些实现方式中,接收模块2602,还用于接收第四操作,第四操作为关闭第一链接的访问页面的操作;处理模块2603,还用于响应于第四操作,关闭第一链接的访问页面,不再通过显示模块2601在第一应用的界面内显示第一链接的访问页面。
可选地,处理模块2603是通过将第一应用的界面内第一链接所在位置的画面替换为第一链接的访问页面,实现在第一应用的界面内显示第一链接的访问页面;处理模块2603,还用于在关闭第一链接的访问页面后,通过显示模块2601在第一应用的界面内重新显示第一链接。
可选地,第一应用的界面包括第一链接,是指:第一应用的界面包括第一链接对应的缩略图,和/或,第一链接的打开按钮。
一些实现方式中,第一链接对应的缩略图包括:第二应用的缩略图或者默认的缩略图。
一些实现方式中,第二应用包括第一链接对应的应用,或者,所述装置上的默认应用。
一些实现方式中,第一链接的访问页面在第一应用的界面内显示时,第一链接的访问页面在第一应用的界面中所占的区域大于第一链接在第一应用的界面中所占的区域。
应理解以上装置中模块(或称为单元)的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且装置中的单元可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分单元以软件通过处理元件调用的形式实现,部分单元以硬件的形式实现。
例如,各个单元可以为单独设立的处理元件,也可以集成在装置的某一个芯片中实现,此外,也可以以程序的形式存储于存储器中,由装置的某一个处理元件调用并执行该单元的功能。此外这些单元全部或部分可以集成在一起,也可以独立实现。这里所述的处理元件又可以称为处理器,可以是一种具有信号的处理能力的集成电路。在实现过程中,上述方法的各步骤或以上各个单元可以通过处理器元件中的硬件的集成逻辑电路实现或者以软件通过处理元件调用的形式实现。
在一个例子中,以上装置中的单元可以是被配置成实施以上方法的一个或多个集 成电路,例如:一个或多个专用集成电路(application specific integrated circuit,ASIC),或,一个或多个数字信号处理器(digital signal process,DSP),或,一个或者多个现场可编辑逻辑门阵列(field programmable gate array,FPGA),或这些集成电路形式中至少两种的组合。
再如,当装置中的单元可以通过处理元件调度程序的形式实现时,该处理元件可以是通用处理器,例如中央处理器(central processing unit,CPU)或其它可以调用程序的处理器。再如,这些单元可以集成在一起,以片上系统(system-on-a-chip,SOC)的形式实现。
在一种实现中,以上装置实现以上方法中各个对应步骤的单元可以通过处理元件调度程序的形式实现。例如,该装置可以包括处理元件和存储元件,处理元件调用存储元件存储的程序,以执行以上方法实施例所述的方法。存储元件可以为与处理元件处于同一芯片上的存储元件,即片内存储元件。
在另一种实现中,用于执行以上方法的程序可以在与处理元件处于不同芯片上的存储元件,即片外存储元件。此时,处理元件从片外存储元件调用或加载程序于片内存储元件上,以调用并执行以上方法实施例所述的方法。
本申请实施例还提供一种电子设备。该电子设备可以是上述第一方面中所述的终端设备。电子设备包括:处理器,用于存储处理器可执行指令的存储器;处理器被配置为执行所述指令时,使得电子设备实现如前述实施例所述的方法。该存储器可以位于该电子设备之内,也可以位于该电子设备之外。且该处理器包括一个或多个。
示例性地,该电子设备可以是手机,也可以是平板电脑、可穿戴设备、车载设备、AR/VR设备、笔记本电脑、UMPC、上网本、PDA等。
在又一种实现中,该电子设备实现以上方法中各个步骤的单元可以是被配置成一个或多个处理元件,这里的处理元件可以为集成电路,例如:一个或多个ASIC,或,一个或多个DSP,或,一个或者多个FPGA,或者这些类集成电路的组合。这些集成电路可以集成在一起,构成芯片。
例如,本申请实施例还提供一种芯片,该芯片可以应用于上述电子设备。芯片包括一个或多个接口电路和一个或多个处理器;接口电路和处理器通过线路互联;处理器通过接口电路从电子设备的存储器接收并执行计算机指令,以实现如前述实施例所述的方法。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。
基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的 部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,如:程序。该软件产品存储在一个程序产品,如计算机可读存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
例如,本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序指令;当所述计算机程序指令被电子设备执行时,使得电子设备实现如实施例所述的方法。
又例如,本申请实施例还提供一种计算机程序产品,包括:计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器实现如前述实施例所述的方法。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (21)

  1. 一种显示方法,其特征在于,所述方法包括:
    终端设备显示第一应用的界面,所述第一应用的界面包括第一链接;
    所述终端设备接收第一操作,所述第一操作为打开所述第一链接的操作;
    所述终端设备响应于所述第一操作,通过第二应用获取所述第一链接的访问页面,并在所述第一应用的界面内显示所述第一链接的访问页面。
  2. 根据权利要求1所述的方法,其特征在于,所述终端设备在所述第一应用的界面内显示所述第一链接的访问页面,包括:
    所述终端设备将所述第一应用的界面内所述第一链接所在位置的画面替换为所述第一链接的访问页面,或者,所述终端设备在所述第一应用的界面内增加所述第一链接的访问页面。
  3. 根据权利要求2所述的方法,其特征在于,所述终端设备将所述第一应用的界面内所述第一链接所在位置的画面替换为所述第一链接的访问页面,包括:
    所述终端设备将所述第一应用的界面中所述第一链接所在位置的视图控件替换为第一界面视图控件;
    所述终端设备将所述第一界面视图控件的第一界面赋值给所述第二应用获取所述第一链接的访问页面所创建的第二界面。
  4. 根据权利要求2所述的方法,其特征在于,所述终端设备在所述第一应用的界面内增加所述第一链接的访问页面,包括:
    所述终端设备在所述第一应用的界面中增加第一界面视图控件;
    所述终端设备将所述第一界面视图控件的第一界面赋值给所述第二应用获取所述第一链接的访问页面所创建的第二界面。
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述方法还包括:
    所述终端设备接收第二操作,所述第二操作为将所述第一链接的访问页面切换为全屏显示的操作;
    所述终端设备响应于所述第二操作,全屏显示所述第一链接的访问页面。
  6. 根据权利要求5所述的方法,其特征在于,所述终端设备全屏显示所述第一链接的访问页面,包括:
    所述终端设备创建全屏界面,并将所述全屏界面赋值给所述第二应用获取所述第一链接的访问页面所创建的第二界面。
  7. 根据权利要求5或6所述的方法,其特征在于,所述方法还包括:
    所述终端设备接收第三操作,所述第三操作为将所述第一链接的访问页面取消全屏显示的操作;
    所述终端设备响应于所述第三操作,在所述第一应用的界面内显示所述第一链接的访问页面。
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述方法还包括:
    所述第一链接的访问页面在所述第一应用的界面内显示时,如果所述第一应用的界面向上滑动或向下滑动导致所述第一链接的访问页面移动到屏幕交界处,所述终端设备悬浮显示所述第一链接的访问页面。
  9. 根据权利要求8所述的方法,其特征在于,所述终端设备悬浮显示所述第一链接的访问页面,包括:
    所述终端设备创建悬浮界面,并将所述悬浮界面赋值给所述第二应用获取所述第一链接的访问页面所创建的第二界面。
  10. 根据权利要求8或9所述的方法,其特征在于,所述方法还包括:
    所述第一链接的访问页面悬浮显示时,如果所述第一应用的界面向上滑动或向下滑动导致所述第一链接的访问页面远离屏幕交界处,所述终端设备在所述第一应用的界面内显示所述第一链接的访问页面。
  11. 根据权利要求8-10任一项所述的方法,其特征在于,所述方法还包括:
    所述第一链接的访问页面悬浮显示时,所述终端设备根据所述第一应用的界面中的第一元素与所述第一链接的访问页面之间的位置关系,动态调整所述第一链接的访问页面的大小;
    所述第一链接的访问页面的大小与所述第一元素的大小相关。
  12. 根据权利要求1-11任一项所述的方法,其特征在于,所述方法还包括:
    所述终端设备接收第四操作,所述第四操作为关闭所述第一链接的访问页面的操作;
    所述终端设备响应于所述第四操作,关闭所述第一链接的访问页面,不再在所述第一应用的界面内显示所述第一链接的访问页面。
  13. 根据权利要求12所述的方法,其特征在于,所述终端设备是通过将所述第一应用的界面内所述第一链接所在位置的画面替换为所述第一链接的访问页面,实现在所述第一应用的界面内显示所述第一链接的访问页面;所述终端设备关闭所述第一链接的访问页面后,所述方法还包括:
    所述终端设备在所述第一应用的界面内重新显示所述第一链接。
  14. 根据权利要求1-13任一项所述的方法,其特征在于,所述第一应用的界面包括第一链接,是指:所述第一应用的界面包括所述第一链接对应的缩略图,和/或,所述第一链接的打开按钮。
  15. 根据权利要求14所述的方法,其特征在于,所述第一链接对应的缩略图包括:所述第二应用的缩略图或者默认的缩略图。
  16. 根据权利要求1-15任一项所述的方法,其特征在于,所述第二应用包括所述第一链接对应的应用,或者,所述终端设备上的默认应用。
  17. 根据权利要求1-16任一项所述的方法,其特征在于,所述第一链接的访问页面在所述第一应用的界面内显示时,所述第一链接的访问页面在所述第一应用的界面中所占的区域大于所述第一链接在所述第一应用的界面中所占的区域。
  18. 一种显示装置,其特征在于,所述装置包括:
    显示模块,用于显示第一应用的界面,所述第一应用的界面包括第一链接;
    接收模块,用于接收第一操作,所述第一操作为打开所述第一链接的操作;
    处理模块,用于响应于所述第一操作,通过第二应用获取所述第一链接的访问页面,并在所述第一应用的界面内显示所述第一链接的访问页面。
  19. 一种电子设备,其特征在于,包括:处理器,用于存储所述处理器可执行指 令的存储器;
    所述处理器被配置为执行所述指令时,使得所述电子设备实现如权利要求1-17任一项所述的方法。
  20. 一种计算机可读存储介质,其上存储有计算机程序指令;其特征在于,当所述计算机程序指令被电子设备执行时,使得电子设备实现如权利要求1-17任一项所述的方法。
  21. 一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,其特征在于,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器实现如权利要求1-17任一项所述的方法。
PCT/CN2022/115633 2021-08-30 2022-08-29 一种显示方法、装置、设备及存储介质 Ceased WO2023030276A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US18/687,515 US20240354128A1 (en) 2021-08-30 2022-08-29 Display method and apparatus, device, and storage medium
EP22863411.9A EP4369176A4 (en) 2021-08-30 2022-08-29 Display method, apparatus, device, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111005587.1 2021-08-30
CN202111005587.1A CN115729495B (zh) 2021-08-30 2021-08-30 一种显示方法、装置、设备及存储介质

Publications (1)

Publication Number Publication Date
WO2023030276A1 true WO2023030276A1 (zh) 2023-03-09

Family

ID=85290859

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/115633 Ceased WO2023030276A1 (zh) 2021-08-30 2022-08-29 一种显示方法、装置、设备及存储介质

Country Status (4)

Country Link
US (1) US20240354128A1 (zh)
EP (1) EP4369176A4 (zh)
CN (1) CN115729495B (zh)
WO (1) WO2023030276A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2025064531A1 (en) * 2023-09-19 2025-03-27 Snap Inc. Implementing user interfaces of other applications

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117850632A (zh) * 2022-09-30 2024-04-09 腾讯科技(深圳)有限公司 一种页面处理方法、装置、设备、存储介质及产品
CN118796317A (zh) * 2023-04-13 2024-10-18 北京字跳网络技术有限公司 信息交互方法、装置、电子设备及存储介质
CN120295698A (zh) * 2024-01-10 2025-07-11 华为技术有限公司 一种内容显示方法和电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080235594A1 (en) * 2005-12-23 2008-09-25 Soujanya Bhumkar Methods and systems for enhancing internet experiences
CN102929486A (zh) * 2012-10-31 2013-02-13 东莞宇龙通信科技有限公司 终端和链接处理方法
CN104331224A (zh) * 2013-07-22 2015-02-04 腾讯科技(深圳)有限公司 一种网页内容浏览方法及装置、终端设备
CN108038150A (zh) * 2017-11-30 2018-05-15 广州市动景计算机科技有限公司 网页打开方法、装置及终端设备

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2337497C2 (ru) * 2004-03-10 2008-10-27 Квэлкомм Инкорпорейтед Устройство и способ для реализации интерфейса с высокой скоростью передачи данных
US20120084644A1 (en) * 2010-09-30 2012-04-05 Julien Robert Content preview
US20120144289A1 (en) * 2010-12-03 2012-06-07 James Morley-Smith Displaying a Portion of a First Application Over a Second Application
CN104243273A (zh) * 2013-06-09 2014-12-24 阿里巴巴集团控股有限公司 即时通讯客户端显示信息的方法及设备和信息显示系统
CN108664303B (zh) * 2018-04-28 2023-06-30 北京小米移动软件有限公司 网页内容的显示方法及装置
CN112751744B (zh) * 2019-10-31 2022-06-21 腾讯科技(深圳)有限公司 一种控制视频播放的方法、装置、计算设备及存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080235594A1 (en) * 2005-12-23 2008-09-25 Soujanya Bhumkar Methods and systems for enhancing internet experiences
CN102929486A (zh) * 2012-10-31 2013-02-13 东莞宇龙通信科技有限公司 终端和链接处理方法
CN104331224A (zh) * 2013-07-22 2015-02-04 腾讯科技(深圳)有限公司 一种网页内容浏览方法及装置、终端设备
CN108038150A (zh) * 2017-11-30 2018-05-15 广州市动景计算机科技有限公司 网页打开方法、装置及终端设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4369176A4

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2025064531A1 (en) * 2023-09-19 2025-03-27 Snap Inc. Implementing user interfaces of other applications

Also Published As

Publication number Publication date
CN115729495A (zh) 2023-03-03
US20240354128A1 (en) 2024-10-24
EP4369176A1 (en) 2024-05-15
EP4369176A4 (en) 2024-11-13
CN115729495B (zh) 2026-03-20

Similar Documents

Publication Publication Date Title
WO2023030276A1 (zh) 一种显示方法、装置、设备及存储介质
WO2021057830A1 (zh) 一种信息处理方法及电子设备
US20170235435A1 (en) Electronic device and method of application data display therefor
CN114237778B (zh) 界面显示方法及电子设备
WO2023029993A1 (zh) 一种搜索方法和电子设备
WO2023226455A1 (zh) 应用图标的显示方法、电子设备及可读存储介质
WO2022242503A1 (zh) 投屏方法及相关装置
CN108230014A (zh) 电子装置及使用电子装置显示网页的方法
WO2023284625A1 (zh) 应用的跨平台显示方法、可读介质和电子设备
WO2024169305A1 (zh) 应用管理的方法和电子设备
CN116033062B (zh) 应用程序的界面显示方法、电子设备及可读存储介质
WO2024001770A1 (zh) 一种广告归因的系统、方法以及装置
WO2026056659A1 (zh) 数据传输的方法、系统和电子设备
CN116700554A (zh) 信息的显示方法、电子设备及可读存储介质
WO2025107801A1 (zh) 发送信息的方法和电子设备
WO2024104094A1 (zh) 截图分享方法及电子设备
CN119248135B (zh) 窗口的显示方法、电子设备和计算机可读存储介质
WO2024109220A1 (zh) 显示卡片的方法、电子设备及可读存储介质
WO2023131312A1 (zh) 窗口交互方法和电子设备
CN118394242B (zh) 一种悬浮窗的管理方法及相关装置
CN115408708A (zh) 图形界面显示方法、电子设备、介质以及程序产品
US20250264976A1 (en) Display method, display apparatus, and electronic device
EP4647917A1 (en) Animation effect display method and electronic device
WO2025016282A1 (zh) 显示方法和电子设备
WO2025107914A1 (zh) 一种显示方法及电子设备

Legal Events

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

Ref document number: 22863411

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2022863411

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2022863411

Country of ref document: EP

Effective date: 20240208

WWE Wipo information: entry into national phase

Ref document number: 18687515

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE