CN111913774A - Floating window management method and device - Google Patents

Floating window management method and device Download PDF

Info

Publication number
CN111913774A
CN111913774A CN202010762627.6A CN202010762627A CN111913774A CN 111913774 A CN111913774 A CN 111913774A CN 202010762627 A CN202010762627 A CN 202010762627A CN 111913774 A CN111913774 A CN 111913774A
Authority
CN
China
Prior art keywords
floating window
page
application program
displaying
attribute information
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.)
Pending
Application number
CN202010762627.6A
Other languages
Chinese (zh)
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.)
Beijing Didi Infinity Technology and Development Co Ltd
Original Assignee
Beijing Didi Infinity Technology and Development 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 Beijing Didi Infinity Technology and Development Co Ltd filed Critical Beijing Didi Infinity Technology and Development Co Ltd
Priority to CN202010762627.6A priority Critical patent/CN111913774A/en
Publication of CN111913774A publication Critical patent/CN111913774A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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; CALCULATING OR 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
    • G06F3/04883Interaction 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 for inputting data by handwriting, e.g. gesture or text

Landscapes

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

Abstract

The embodiment of the disclosure provides a floating window management method and a device, and the method is applied to terminal equipment and comprises the following steps: in the process of displaying a first page by the terminal equipment, responding to a first operation of a user, and generating a floating window corresponding to the first page, wherein the first page is a page in a first application program; and when the terminal equipment displays the page of the first application program, displaying the floating window on the page of the first application program. According to the scheme provided by the embodiment of the disclosure, active authorization of a user is not needed, the operation is simple and convenient, no matter the permission setting of the system of the terminal equipment is convergent or open, the floating window can be displayed on the page of the first application program, and the user can be helped to find the first page simply, conveniently and quickly.

Description

Floating window management method and device
Technical Field
The embodiment of the disclosure relates to computer technologies, and in particular, to a floating window management method and device.
Background
The mobile phone is a commonly used electronic product for human, and a user can carry out various operations such as conversation, browsing news web pages and the like through the mobile phone.
When a user uses a mobile phone, there may be simultaneous operation of multiple APPs. For example, when browsing a web page, a sudden entry into a message requires a reply. When the user quits the browsed webpage and replies the message, and wants to open the browsed webpage, the user needs to re-open the original APP and click to enter the webpage step by step. The above operation is cumbersome and the user may not be able to remember the source of the previously viewed web page after replying to the message. In order to solve the problem, the current solution is to reduce the current browsing page to a desktop floating window, and after obtaining the user authorization, the floating window is displayed on the page of the mobile phone. After the message reply is completed, the original page can be accessed by directly clicking the floating window.
The disadvantage of the above solution is that each time the floating window is generated and displayed, active authorization of the user is required, which causes additional burden to the user.
Disclosure of Invention
The embodiment of the disclosure provides a floating window management method and device, which are used for solving the problem that active authorization of a user is required for generating and displaying a floating window every time, and extra burden is caused to the user.
In a first aspect, an embodiment of the present disclosure provides a floating window management method, which is applied to a terminal device, and the method includes:
in the process of displaying a first page by the terminal equipment, responding to a first operation of a user, and generating a floating window corresponding to the first page, wherein the first page is a page in a first application program;
and when the terminal equipment displays the page of the first application program, displaying the floating window on the page of the first application program.
In a possible implementation manner, when the terminal device displays a page of the first application, displaying the floating window on the page of the first application includes:
when the terminal equipment displays the page of the first application program, acquiring attribute information of the floating window;
and displaying the floating window on the page of the first application program according to the attribute information of the floating window.
In a possible implementation, before obtaining the attribute information of the floating window, the method further includes:
generating a corresponding floating window control according to the floating window;
generating attribute information of the floating window according to the floating window control;
and storing the attribute information of the floating window in a local memory of the terminal equipment.
In a possible implementation manner, obtaining the attribute information of the floating window includes:
and acquiring the attribute information of the floating window from a local memory of the terminal equipment.
In one possible implementation, the attribute information includes a size of the floating window control and a display position of the floating window control.
In one possible implementation, displaying the floating window on the page of the first application according to the attribute information of the floating window includes:
displaying the floating window on the page of the first application program according to the size of the floating window control and the display position of the floating window control;
the size of the floating window displayed on the page of the first application program is equal to the size of the floating window control, and the display position of the floating window displayed on the page of the first application program is equal to the display position of the floating window control.
In one possible embodiment, the method further comprises:
and when the terminal equipment displays a page of a second application program, displaying the floating window on the page of the second application program, wherein the second application program is any application program except the first application program.
In one possible implementation, before displaying the floating window on the page of the second application, the method further includes:
and acquiring a floating window display permission, wherein the floating window display permission is used for indicating that the floating window is allowed to be displayed on a page except the page of the first application program.
In one possible implementation, after displaying the floating window on the page of the first application, the method further includes:
acquiring a touch instruction, wherein a touch point of the touch instruction on a page of the first application program is located at the position of the floating window on the page of the first application program;
and displaying the first page according to the touch instruction.
In a second aspect, an embodiment of the present disclosure provides a floating window management device, including:
the processing module is used for responding to a first operation of a user in the process of displaying a first page by the terminal equipment and generating a floating window corresponding to the first page, wherein the first page is a page in a first application program;
and the display module is used for displaying the floating window on the page of the first application program when the terminal equipment displays the page of the first application program.
In a possible implementation, the display module is specifically configured to:
when the terminal equipment displays the page of the first application program, acquiring attribute information of the floating window;
and displaying the floating window on the page of the first application program according to the attribute information of the floating window.
In a possible implementation manner, the display module is further configured to, before acquiring the attribute information of the floating window:
generating a corresponding floating window control according to the floating window;
generating attribute information of the floating window according to the floating window control;
and storing the attribute information of the floating window in a local memory of the terminal equipment.
In a possible implementation manner, the display module is further specifically configured to:
and acquiring the attribute information of the floating window from a local memory of the terminal equipment.
In one possible implementation, the attribute information includes a size of the floating window control and a display position of the floating window control.
In a possible implementation manner, the display module is further specifically configured to:
displaying the floating window on the page of the first application program according to the size of the floating window control and the display position of the floating window control;
the size of the floating window displayed on the page of the first application program is equal to the size of the floating window control, and the display position of the floating window displayed on the page of the first application program is equal to the display position of the floating window control.
In one possible implementation, the display module is further configured to:
and when the terminal equipment displays a page of a second application program, displaying the floating window on the page of the second application program, wherein the second application program is any application program except the first application program.
In one possible implementation, the display module is further configured to, before displaying the floating window on the page of the second application:
and acquiring a floating window display permission, wherein the floating window display permission is used for indicating that the floating window is allowed to be displayed on a page except the page of the first application program.
In one possible implementation, the display module is further configured to, after displaying the floating window on the page of the first application:
acquiring a touch instruction, wherein a touch point of the touch instruction on a page of the first application program is located at the position of the floating window on the page of the first application program;
and displaying the first page according to the touch instruction.
In a third aspect, an embodiment of the present disclosure provides a terminal device, including: a memory and a processor;
the memory is to store program instructions;
the processor is configured to invoke program instructions in the memory to perform the floating window management method according to any of the first aspects.
In a fourth aspect, embodiments of the present disclosure provide a computer-readable storage medium having a computer program stored thereon; the computer program, when executed, implements a floating window management method as claimed in any one of the first aspects.
According to the floating window management method and device provided by the embodiment of the disclosure, firstly, in the process of displaying a first page by a terminal device, a floating window corresponding to the first page is generated in response to a first operation of a user. When the user wants to find the first page again, the user only needs to control the terminal device to open the first application program, and then when the terminal device displays the page of the first application program, the floating window can be displayed on the page of the first application program, and the user can find the first page again through the floating window. According to the scheme provided by the embodiment of the disclosure, active authorization of a user is not needed, the operation is simple and convenient, no matter the permission setting of the system of the terminal equipment is convergent or open, the floating window can be displayed on the page of the first application program, and the user can be helped to find the first page simply, conveniently and quickly.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a first schematic view of an application scenario provided in the embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a floating window management method according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram illustrating a floating window generation provided by an embodiment of the present disclosure;
fig. 4 is a schematic diagram of an application scenario provided by the embodiment of the present disclosure;
fig. 5 is a schematic diagram of an application scenario three provided by the embodiment of the present disclosure;
fig. 6 is a schematic flow chart illustrating a floating window according to an embodiment of the present disclosure;
FIG. 7 is a schematic illustration of a floating window display provided by an embodiment of the present disclosure;
fig. 8 is a schematic view of a touch floating window according to an embodiment of the disclosure;
fig. 9 is a schematic structural diagram of a floating window management device according to an embodiment of the present disclosure;
fig. 10 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present disclosure;
with the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
An application scenario in which the present disclosure is applicable is first described.
Fig. 1 is a schematic view of an application scenario provided by an embodiment of the present disclosure, as shown in fig. 1, a page 11 displayed on a terminal device 10 is a display page of a certain piece of news in a certain instant messaging application, and a user finds the page 11 by finding an author of the news in the instant messaging application and then clicking multiple times.
When the user browses the page 11, if the user suddenly needs to exit the page 11 to enter another page, the user wants to be able to find the page 11 to continue viewing. However, after the user exits the page 11, the user may need to click step by step according to the source of the page 11 to find the page 11. In some cases, if the user forgets the source of the page 11, the user may not find the page 11 at all, resulting in a poor user experience.
In order to solve the above problem, a solution may be adopted to generate a corresponding floating window for the page 11, such as the floating window 12 illustrated in fig. 1. The floating window 12 may be displayed on the interface of the terminal device 10. When the user wants to find the page 11, this is done by clicking on the floating window 12.
The suspension window is pushed out, so that the operation of a user is greatly facilitated. At any time, the user can reduce the required page into the desktop floating window, and the generated floating window can be floated on any page of the terminal device. When the user wants to open the page, the user only needs to click the floating window on the current display page.
However, as the system authority of the terminal device converges, when the user wants to display the floating window on any page of the application program, the user is required to jump to a designated authorization page for manual authorization.
The purpose of rights convergence is to prevent some developers from arbitrarily placing a floating window on a user's page to affect the user experience. However, when the user has a normal floating window requirement, the operation flow of the user needs to be interrupted to authorize, which is unreasonable. For some sensitive users, the function of the floating window is not clear, since the system does not release the authority, the floating window is considered to be risky, and the user may not authorize manually due to distrust, thereby affecting the normal needs and processes of the user.
Based on the pain point in the development process, the embodiment of the disclosure manages the floating window of each application program by using the page of each application program, and provides a floating window solution which is convenient for both developers and users by matching with the advantages of the floating window of the system (the floating window can be displayed on other apps). Therefore, when the user only needs to display the floating window on the page of the App, the user is not required to jump out of the floating window for authorization, otherwise, manual authorization is required, so that the user experience is greatly improved, and the development difficulty of a developer is reduced.
The following describes in detail the technical solutions of the embodiments of the present disclosure and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present disclosure will be described below with reference to the accompanying drawings.
Fig. 2 is a schematic flowchart of a floating window management method provided in an embodiment of the present disclosure, where the method is applied to a terminal device, and as shown in fig. 2, the method may include:
s21, in the process that the terminal device displays the first page, responding to the first operation of the user, and generating a floating window corresponding to the first page, wherein the first page is a page in the first application program.
And in the process of displaying the first page by the terminal equipment, the first page is the current display page of the terminal equipment. In the embodiment of the present disclosure, the first page is a page in the first application. The first page is a page in the first application program, which means that a user needs to open the first application program and click and open a page in the first application program. For example, when the first application program is a news type APP, the user opens the news type APP, the displayed page is a page in the news type APP, and if the user opens some news to browse, the page corresponding to the news is also a page in the news type APP.
The page in the first application includes not only the display page when the first application is opened, but also the related page when various links or interfaces in the first application are clicked, for example, a secondary or tertiary page of the display page when the first application is opened, and the like. If a certain link is clicked in a certain page in the first application program and the other application program is jumped to, the obtained page does not belong to the page in the first application program any more.
When the user views or browses the first page, the terminal equipment displays the first page. If the user needs to do other things at this time, for example, enter another page in the first application program or enter another page in another application program, but the user still wants to continue browsing the first page subsequently, the first operation may be performed on the terminal device at this time. The terminal equipment responds to the first operation of the user to generate a floating window corresponding to the first page, and the subsequent user can find the first page according to the floating window.
And S22, when the terminal device displays the page of the first application program, displaying the floating window on the page of the first application program.
After the terminal device generates the floating window corresponding to the first page in response to the first operation of the user, the user may operate the terminal device to jump to another page, where the other page may be a page in the first application (different from the first page) or a page in another application.
In any case, when the user wants to review the first page, the user only needs to open the first application program, and no matter which page of the first application program is, the floating window corresponding to the first page is displayed on the page. The user can find the first page through the floating window and display the first page on the terminal device.
The floating window management method provided by the embodiment of the disclosure is applied to a terminal device, and firstly, in the process of displaying a first page by the terminal device, a floating window corresponding to the first page is generated in response to a first operation of a user. When the user wants to find the first page again, the user only needs to control the terminal device to open the first application program, and then when the terminal device displays the page of the first application program, the floating window can be displayed on the page of the first application program, and the user can find the first page again through the floating window. According to the scheme provided by the embodiment of the disclosure, active authorization of a user is not needed, the operation is simple and convenient, no matter the permission setting of the system of the terminal equipment is convergent or open, the floating window can be displayed on the page of the first application program, and the user can be helped to find the first page simply, conveniently and quickly.
The embodiments of the present disclosure will be described in detail with reference to specific examples.
The floating window generation process of the embodiment of the present disclosure is first described with reference to fig. 3.
Fig. 3 is a schematic diagram illustrating the generation of the floating window according to the embodiment of the present disclosure, as shown in fig. 3, a page displayed on the terminal device 30 is a first page 31, and a user is browsing the first page 31 at this time.
In some cases, the user may need to temporarily exit the first page 31 first, but the first page 31 is still a page of interest to the user, and subsequent users still want to be able to find the first page 31. The scheme provided by the embodiment of the present disclosure is that before the user exits from the first page 31, a first operation is performed, and the terminal device 30 generates the floating window corresponding to the first page 31 by responding to the first operation of the user.
The first operation may be set in advance by a developer of the terminal device or a developer of the application program, and then the user may execute the first operation. For example, in fig. 3, it is illustrated that double-clicking on the first page 31 generates a floating window 32 corresponding to the first page, and displays the floating window on the page of the terminal device 30. It is to be understood that the first operation may also be a long press of the first page 31, a slide operation, or the like, and the double-click operation illustrated in fig. 3 is only a possible example of the first operation.
In the above embodiment, the generation process of the floating window is described with reference to fig. 3, and two possible application scenarios that need to generate the floating window are described with reference to fig. 4 and 5.
Fig. 4 is a schematic view of a second application scenario provided by the embodiment of the present disclosure, as shown in fig. 4, a page displayed on the terminal device 40 is a first page 41, and a user is browsing the first page 41 at this time.
In the example of fig. 4, the first page 41 is a browsing page of a news item in an instant messaging application, and the user can only enter the first page 41 by finding the publisher of the news item in the instant messaging application and then clicking further.
When the user is browsing the first page 41, the terminal device 40 prompts the user to receive an instant message that another user sent to the user via the instant messaging application needs to handle immediately.
At this point, the user must first exit the first page 41 and reply to the instant message. However, if the user directly exits and waits for the user to complete the reply, if the user wishes to re-enter the first page 41, the user needs to find the publisher of the news again and then click to enter, so that the user can enter the first page 41. The above operation is complicated, and especially in the case that the first page 41 is displayed by the user through one click of multiple levels, the user is likely to miss the source of the first page 41, and the user cannot find the first page 41. Therefore, in this scenario, before exiting the first page 41, a floating window corresponding to the first page may be generated through a first operation, and the generation process may refer to the embodiment shown in fig. 3, and then the first page 41 may be quickly and accurately found through the floating window.
Fig. 4 illustrates an application scenario requiring generation of a floating window, and another application scenario is described below in conjunction with fig. 5.
Fig. 5 is a schematic view of a third application scenario provided by the embodiment of the present disclosure, as shown in fig. 5, a page displayed on the terminal device 50 is a first page 51, and a user is browsing the first page 51 at this time.
In some cases, the user needs to exit the first page 51 and exit the first application, browse another page, or suspend use of the terminal device 50. Typically, if the user re-enters the first application in a short time, the first page 51 may be displayed after this entry. However, if the user enters the first application after a long time, the previous browsing history may be cleared, and the first page 51 is not displayed on the terminal device 50 after entering the first application. For example, in fig. 5, after the user clicks the home key, the user returns to the desktop, and after a certain time interval, even if the first application is opened again, the first page 51 is not displayed, because the terminal device 50 clears the cache of the first application. Therefore, in this scenario, before exiting the first page 51, a floating window corresponding to the first page may be generated through a first operation, and the generation process may refer to the embodiment shown in fig. 3, and then the first page 51 may be quickly and accurately found through the floating window.
In the above embodiment, the partial application scenario requiring the generation of the floating window and the process of generating the floating window are described, and the display scheme of the floating window will be described below.
Fig. 6 is a schematic flow chart of displaying a floating window according to an embodiment of the present disclosure, as shown in fig. 6, including:
and S61, acquiring the attribute information of the floating window when the terminal device displays the page of the first application program.
Aiming at the problem that the permission of the system of the current terminal equipment is converged and the user needs to actively authorize each time when the floating window is displayed, the scheme of the embodiment of the disclosure is that the permission of the internal part of each independent application program is allowed to be released based on the system, and the floating window corresponding to the first page is only displayed on the page of the first application program. When the page displayed by the terminal device is not the page of the first application program, the floating window corresponding to the first page is not displayed, and at the moment, the floating window is only displayed on the page within the first application degree, belongs to the floating window related to the first application program, and is not limited by the system authority, so that the active authorization of a user is not needed.
Specifically, when displaying a page of a first application program, the terminal device first obtains attribute information of a floating window, where the attribute information is used to subsequently display the floating window on the page of the first application program.
In the embodiment of the present disclosure, the page of the first application may be the first page, or may not be the first page.
Before the terminal device obtains the attribute information of the floating window, the attribute information of the floating window is generated.
Specifically, according to the scheme of the embodiment of the present disclosure, after the terminal device responds to the first operation of the user and generates the floating window corresponding to the first page, the corresponding floating window control is generated according to the floating window. And then, generating attribute information of the floating window according to the floating window control.
Optionally, the attribute information of the floating window includes a size of the floating window control and a display position of the floating window control.
After generating the attribute information of the floating window, the terminal device stores the attribute information of the floating window in a local memory of the terminal device. The local memory is a storage area different from the ordinary memory, and relevant data stored in the ordinary memory can be automatically cleared after a certain period of time. For example, after the user browses the web page on the web page, the browsing record of the user is stored in the ordinary memory within a period of time after the user exits the web page. After a certain period of time, the terminal device will remove the browsing records of the user in the normal memory.
And the related data in the local memory cannot be automatically cleared by the terminal equipment, and the data in the local memory can exist all the time as long as the user does not actively delete the data. In the embodiment of the disclosure, after the attribute information of the floating window is stored in the local memory of the terminal device, even if the user exits from the first application program, the attribute information of the floating window is always present and cannot be actively cleaned by the terminal device.
Therefore, after the terminal device exits the first application program, even after a long period of time, the attribute information of the floating window is still stored in the local memory. When the user operates the terminal device to enter the first application program again, the terminal device can still obtain the attribute information of the floating window from the local memory.
S62, displaying the floating window on the page of the first application program according to the attribute information of the floating window.
When the terminal device displays the page of the first application program, the terminal device can acquire attribute information of the floating window, wherein the attribute information comprises the size of the floating window control and the display position of the floating window control. Then, the terminal device can display the floating window on the page of the first application program according to the size of the floating window control and the display position of the floating window control;
the size of the floating window displayed on the page of the first application program is equal to that of the floating window control, and the display position of the floating window displayed on the page of the first application program is equal to that of the floating window control.
The size and the display position of the floating window control are obtained and stored in a local memory. No matter the user properly operates the terminal device to enter the first application program, the size and the display position of the floating window control can be obtained from the local memory, and the floating window is displayed on the page of the first application program according to the size and the display position of the floating window control.
Fig. 7 is a schematic view illustrating a floating window display provided by an embodiment of the present disclosure, and as shown in fig. 7, after a user exits from a first application program, no floating window exists on a currently displayed page. On the left side of fig. 7, it is illustrated that terminal device 70 exits the interface where the application returns to the desktop, where the floating window is not displayed on the interface. After the user enters the first application program, the floating window 72 is displayed on the current display page 71 of the terminal device 70 according to the acquired attribute information of the floating window.
It should be noted that fig. 7 is only an example of a scenario in which the user operates the terminal device to exit the first application and then enter the first application again, and does not represent a scenario only applicable to a user exiting the first application first and then entering the first application again. For example, a user may initially view a first page in a first application, then jump to a second page in the first application, at this time, a corresponding floating window may be generated on the second page, and the user may quickly enter the first page through the floating window.
In the above embodiment, a scheme of displaying the floating window corresponding to the first page in the same application program is described, and because the floating window is in the same application program, the floating window is not affected by the permission convergence of the system, and active authorization of a user is not required when the floating window is displayed. After the first application program is quitted, the floating window is not displayed any more, so that the excessive disturbance to the user can be avoided, and the user experience is improved.
In some embodiments, a system hover window, i.e., a hover window that is displayable in all pages of the terminal device, may also be provided. Because the system is a floating window, the system is influenced by the authority of the system, and active authorization of a user is required.
Specifically, it is first necessary to acquire a floating window display permission indicating that the floating window is allowed to be displayed on a page other than the page of the first application.
After the user actively authorizes the floating window display authority, when the terminal device displays the page of the second application program, the floating window can also be displayed on the page of the second application program. In the embodiment of the present disclosure, the second application is an arbitrary application other than the first application.
After the floating window is generated and displayed on the page of the first application program, the user can control the terminal device to enter the first page by touching the floating window. Fig. 8 is a schematic view of a touch floating window provided in the embodiment of the present disclosure, as shown in fig. 8, a page of a first application, that is, a page 71, is illustrated on a terminal device 70, where the first application is an instant messaging application, and therefore, when just opened, the displayed page 71 is a chat page.
Since the first page before is a page in the first application, the floating window 72 is displayed on the page 71 after the first application is opened. When the user wants to find the original first page, the user may click the position of the floating window 72 to send a touch instruction to the terminal device 70, where a touch point on the page 71 of the first application is located at the position of the floating window 72 on the page 71 of the first application. After receiving the touch instruction, the terminal device may jump to the first page 80 corresponding to the floating window 72 as shown in fig. 8, and at this time, the first page 80 is displayed on the terminal device 70.
The floating window management method provided by the embodiment of the disclosure is applied to a terminal device, and firstly, in the process of displaying a first page by the terminal device, a floating window corresponding to the first page is generated in response to a first operation of a user. When the user wants to find the first page again, the user only needs to control the terminal device to open the first application program, and then when the terminal device displays the page of the first application program, the floating window can be displayed on the page of the first application program, and the user can find the first page again through the floating window. According to the scheme provided by the embodiment of the disclosure, active authorization of a user is not needed, the operation is simple and convenient, no matter the permission setting of the system of the terminal equipment is convergent or open, the floating window can be displayed on the page of the first application program, and the user can be helped to find the first page simply, conveniently and quickly.
Fig. 9 is a schematic structural diagram of a floating window management apparatus provided in an embodiment of the present disclosure, as shown in fig. 9, including a processing module 91 and a display module 92, where:
the processing module 91 is configured to generate a floating window corresponding to a first page in response to a first operation of a user in a process that the terminal device displays the first page, where the first page is a page in a first application;
the display module 92 is configured to display the floating window on the page of the first application when the terminal device displays the page of the first application.
In a possible implementation, the display module 92 is specifically configured to:
when the terminal equipment displays the page of the first application program, acquiring attribute information of the floating window;
and displaying the floating window on the page of the first application program according to the attribute information of the floating window.
In a possible implementation, the display module 92 is further configured to, before acquiring the attribute information of the floating window:
generating a corresponding floating window control according to the floating window;
generating attribute information of the floating window according to the floating window control;
and storing the attribute information of the floating window in a local memory of the terminal equipment.
In a possible implementation, the display module 92 is further specifically configured to:
and acquiring the attribute information of the floating window from a local memory of the terminal equipment.
In one possible implementation, the attribute information includes a size of the floating window control and a display position of the floating window control.
In a possible implementation, the display module 92 is further specifically configured to:
displaying the floating window on the page of the first application program according to the size of the floating window control and the display position of the floating window control;
the size of the floating window displayed on the page of the first application program is equal to the size of the floating window control, and the display position of the floating window displayed on the page of the first application program is equal to the display position of the floating window control.
In one possible implementation, the display module 92 is further configured to:
and when the terminal equipment displays a page of a second application program, displaying the floating window on the page of the second application program, wherein the second application program is any application program except the first application program.
In a possible implementation, the display module 92 is further configured to, before displaying the floating window on the page of the second application:
and acquiring a floating window display permission, wherein the floating window display permission is used for indicating that the floating window is allowed to be displayed on a page except the page of the first application program.
In a possible implementation, the display module 92 is further configured to, after displaying the floating window on the page of the first application:
acquiring a touch instruction, wherein a touch point of the touch instruction on a page of the first application program is located at the position of the floating window on the page of the first application program;
and displaying the first page according to the touch instruction.
The floating window management device provided by the embodiment of the present disclosure is used for executing the above method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 10 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present disclosure. The terminal device of the embodiment includes: a processor 101 and a memory 102;
a memory 102 for storing a computer program;
the processor 101 is configured to execute the computer program stored in the memory to implement the steps performed by the network device in the foregoing embodiments, or to implement the steps performed by the terminal device in the foregoing embodiments. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, the memory 102 may be independent of the processor 101 or independent of the terminal device, or may be within the processor 101 or the terminal device. The memory 102 may be a physically independent unit, or may be a storage space on a cloud server or a network hard disk.
When the memory 102 is a device independent of the processor 101, the terminal apparatus may further include: a bus 103 for connecting the memory 102 and the processor 101.
The bus 103 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
In addition, the Processor 101 may be a central processing unit, a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in the incorporated application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure.
The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, a digital signal processor and a microprocessor, or the like. In addition, the memory 102 may include: volatile memory (volatile memory), such as random-access memory (RAM); the memory may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory), a hard disk (HDD) or a solid-state drive (SSD), a cloud Storage (cloud Storage), a Network Attached Storage (NAS), a network disk (network drive), and the like; the memory may also comprise a combination of the above types of memory or any other form of medium or article having a memory function.
An embodiment of the present application further provides a storage medium, where the storage medium includes a computer program, and the computer program is used to implement the method described in the foregoing various possible embodiments.
Embodiments of the present application also provide a computer program product, which includes computer program code, when the computer program code runs on a computer, the computer is caused to execute the method as described in the above various possible embodiments.
An embodiment of the present application further provides a chip, which includes a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a terminal device installed with the chip executes the method described in the above various possible embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. The embodiments of the disclosure are intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (20)

1. A floating window management method is applied to terminal equipment, and comprises the following steps:
in the process of displaying a first page by the terminal equipment, responding to a first operation of a user, and generating a floating window corresponding to the first page, wherein the first page is a page in a first application program;
and when the terminal equipment displays the page of the first application program, displaying the floating window on the page of the first application program.
2. The method according to claim 1, wherein displaying the floating window on the page of the first application while the terminal device displays the page of the first application comprises:
when the terminal equipment displays the page of the first application program, acquiring attribute information of the floating window;
and displaying the floating window on the page of the first application program according to the attribute information of the floating window.
3. The method of claim 2, wherein prior to obtaining the attribute information of the floating window, the method further comprises:
generating a corresponding floating window control according to the floating window;
generating attribute information of the floating window according to the floating window control;
and storing the attribute information of the floating window in a local memory of the terminal equipment.
4. The method of claim 3, wherein obtaining attribute information of the floating window comprises:
and acquiring the attribute information of the floating window from a local memory of the terminal equipment.
5. The method of claim 4, wherein the property information comprises a size of the floating window control and a display position of the floating window control.
6. The method of claim 5, wherein displaying the floating window on the page of the first application according to the attribute information of the floating window comprises:
displaying the floating window on the page of the first application program according to the size of the floating window control and the display position of the floating window control;
the size of the floating window displayed on the page of the first application program is equal to the size of the floating window control, and the display position of the floating window displayed on the page of the first application program is equal to the display position of the floating window control.
7. The method of claim 1, further comprising:
and when the terminal equipment displays a page of a second application program, displaying the floating window on the page of the second application program, wherein the second application program is any application program except the first application program.
8. The method of claim 7, wherein prior to displaying the floating window on the page of the second application, the method further comprises:
and acquiring a floating window display permission, wherein the floating window display permission is used for indicating that the floating window is allowed to be displayed on a page except the page of the first application program.
9. The method of any of claims 1-6, wherein after displaying the floating window on the page of the first application, the method further comprises:
acquiring a touch instruction, wherein a touch point of the touch instruction on a page of the first application program is located at the position of the floating window on the page of the first application program;
and displaying the first page according to the touch instruction.
10. A floating window management device, comprising:
the processing module is used for responding to a first operation of a user in the process of displaying a first page by the terminal equipment and generating a floating window corresponding to the first page, wherein the first page is a page in a first application program;
and the display module is used for displaying the floating window on the page of the first application program when the terminal equipment displays the page of the first application program.
11. The apparatus of claim 10, wherein the display module is specifically configured to:
when the terminal equipment displays the page of the first application program, acquiring attribute information of the floating window;
and displaying the floating window on the page of the first application program according to the attribute information of the floating window.
12. The apparatus of claim 11, wherein the display module is further configured to, prior to obtaining the attribute information of the floating window:
generating a corresponding floating window control according to the floating window;
generating attribute information of the floating window according to the floating window control;
and storing the attribute information of the floating window in a local memory of the terminal equipment.
13. The apparatus of claim 12, wherein the display module is further specifically configured to:
and acquiring the attribute information of the floating window from a local memory of the terminal equipment.
14. The apparatus of claim 13, wherein the property information comprises a size of the floating window control and a display position of the floating window control.
15. The apparatus of claim 14, wherein the display module is further specifically configured to:
displaying the floating window on the page of the first application program according to the size of the floating window control and the display position of the floating window control;
the size of the floating window displayed on the page of the first application program is equal to the size of the floating window control, and the display position of the floating window displayed on the page of the first application program is equal to the display position of the floating window control.
16. The apparatus of claim 10, wherein the display module is further configured to:
and when the terminal equipment displays a page of a second application program, displaying the floating window on the page of the second application program, wherein the second application program is any application program except the first application program.
17. The apparatus of claim 16, wherein the display module is further configured to, prior to displaying the floating window on the page of the second application:
and acquiring a floating window display permission, wherein the floating window display permission is used for indicating that the floating window is allowed to be displayed on a page except the page of the first application program.
18. The apparatus of any of claims 10-15, wherein the display module is further configured to, after displaying the flyover window on the page of the first application:
acquiring a touch instruction, wherein a touch point of the touch instruction on a page of the first application program is located at the position of the floating window on the page of the first application program;
and displaying the first page according to the touch instruction.
19. A terminal device, comprising: a memory and a processor;
the memory is to store program instructions;
the processor is configured to invoke program instructions in the memory to perform the floating window management method of any of claims 1-9.
20. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program; the computer program, when executed, implements a floating window management method as claimed in any one of claims 1-9.
CN202010762627.6A 2020-07-31 2020-07-31 Floating window management method and device Pending CN111913774A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010762627.6A CN111913774A (en) 2020-07-31 2020-07-31 Floating window management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010762627.6A CN111913774A (en) 2020-07-31 2020-07-31 Floating window management method and device

Publications (1)

Publication Number Publication Date
CN111913774A true CN111913774A (en) 2020-11-10

Family

ID=73287502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010762627.6A Pending CN111913774A (en) 2020-07-31 2020-07-31 Floating window management method and device

Country Status (1)

Country Link
CN (1) CN111913774A (en)

Similar Documents

Publication Publication Date Title
US11799984B2 (en) Installable web applications
US10191856B2 (en) Method of managing web browser cache size using logical relationships and clustering
US20190334872A1 (en) Advertisement interception method, terminal device and storage medium
EP3550788A1 (en) Data acquisition method and device
US9325717B1 (en) Web-store restriction of external libraries
US8671342B2 (en) Desired font rendering
CN109885786B (en) Data caching processing method and device, electronic equipment and readable storage medium
US20170264707A1 (en) Uploading a form attachment
US20150193832A1 (en) Method, apparatus, and system for communicating and presenting product information
US20220385612A1 (en) Mail processing method and apparatus, electronic device and storage medium
US10592063B1 (en) Controlling actions for browser extensions
US20150161123A1 (en) Techniques to diagnose live services
WO2017219524A1 (en) Page saving method and electronic device
CN115079884B (en) Session message display method, device, equipment and storage medium
CN107943921B (en) Page sharing information generation method and device, computer equipment and storage medium
CN111817944A (en) Picture sharing method and device and electronic equipment
CN111913774A (en) Floating window management method and device
CN110647331A (en) Development tool acquisition method and device, storage medium and electronic equipment
CN114490266A (en) Data acquisition method, device, equipment and storage medium
US20070156775A1 (en) Metadata transformation in copy and paste scenarios between heterogeneous applications
CN118041995B (en) Method and device for realizing universal main stream media authorization homepage
WO2024131568A1 (en) Session information processing method and related device
CN109450993B (en) Method and apparatus for presenting information
US20240031434A1 (en) Marking information processing method and device, and storage medium
TWI694340B (en) Content input method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination