Floating window position control method and device, electronic equipment and storage medium

By obtaining and determining the display area information of the target protection object and the application floating window, the problem that the application floating window cannot effectively avoid the movable display window is solved, and the display area is adjusted in real time to avoid occlusion, reduce costs and improve user experience.

CN119883050APending Publication Date: 2025-04-25BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311387258.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-24
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

In the prior art, the application floating window is fixedly displayed in the screen display interface, which cannot effectively avoid the movable display window, resulting in the impact of the user experience, and it is necessary to set the display area for each application in turn, which is relatively expensive.

Method used

By obtaining the security area information of the target protection object and the area attribute information of the application floating window, the display area of ​​the target protection object and the application floating window is determined, and when the two areas overlap, the display area of ​​the application floating window is outside the display area of ​​the target protection object.

Benefits of technology

It realizes that no matter whether the target protection object is a fixed area or a movable area, the display area of ​​the application floating window can be adjusted in real time to avoid occlusion, reduce costs and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119883050A_ABST
    Figure CN119883050A_ABST
Patent Text Reader

Abstract

The invention relates to a floating window position control method and device, electronic equipment and a storage medium. The method is applied to the terminal, and comprises the following steps: acquiring security area information of a target protection object and area attribute information of an application floating window which is sent by any application program and is started for the any application program; determining a display area of the target protection object according to the safety area information, and determining a display area of the application floating window according to the area attribute information; and under the condition that the display area of the application floating window is overlapped with the display area of the target protection object, moving the display area of the application floating window out of the display area of the target protection object. According to the technical scheme, the display area of the application floating window can be adjusted in real time according to the overlapping condition of the display area of the target protection object and the display area of the application floating window, so that the target protection object is prevented from being shielded by the application floating window.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a floating window position control method and device, electronic equipment, and storage medium. Background Art

[0002] Terminal devices such as mobile phones usually have a video playback function. In order to meet the needs of users to watch videos and operate other applications on the terminal at the same time, a function of playing videos through an application floating window is provided. The application floating window for playing videos is superimposed on other applications, and the display area of ​​the application floating window is smaller than the screen display interface, so that users can operate other applications while watching the video played in the application floating window normally.

[0003] However, the above application floating window is usually fixedly displayed in a certain area of ​​the screen display interface. When the application floating window is already displayed in the screen display interface, if the user operates to pop up other display windows, it is easy for other display windows to be blocked by the application floating window, which seriously affects the user experience.

[0004] In the related art, the display area of ​​the application floating window is set for each application in turn, so that the application floating window can avoid other display windows and does not block other display windows. On the one hand, this method can only control the application floating window to avoid other display windows in a fixed display area, and cannot avoid other movable display windows. On the other hand, this method requires setting the display area of ​​the application floating window for all applications running on the terminal in turn, which is costly. Summary of the invention

[0005] The present disclosure provides a floating window position control method and device, an electronic device, and a storage medium to address deficiencies in related technologies.

[0006] According to a first aspect of an embodiment of the present disclosure, a floating window position control method is provided, the method comprising:

[0007] Obtaining security area information of a target protection object and area attribute information of an application floating window opened by any application sent by the application;

[0008] Determine a display area of ​​the target protection object according to the security area information, and determine a display area of ​​the application floating window according to the area attribute information;

[0009] When the display area of ​​the application floating window overlaps with the display area of ​​the target protection object, the display area of ​​the application floating window is moved outside the display area of ​​the target protection object.

[0010] Optionally, the target protection object includes other application floating windows opened by another application different from any of the applications, and / or display windows maintained by the operating system.

[0011] Optionally, the another application includes: an application that has opened an application floating window before any of the applications opens the application floating window, or an application determined by a protection object setting instruction.

[0012] Optionally, the obtaining of the security area information of the target protection object includes: obtaining the security area information of the target protection object that has been displayed; or, when the target protection object has not been displayed, obtaining the security area information of the target protection object.

[0013] Optionally, the method further includes: sending display area information of the application floating window after it is moved to any one of the applications, so that any one of the applications updates area attribute information of the application floating window according to the display area information after it is moved.

[0014] Optionally, the method further includes: obtaining status information of the screen display interface, and when the status information indicates that the screen display interface has rotated, obtaining area attribute information of an application floating window opened for any application and sent by the any application; determining whether the display area of ​​the application floating window is completely displayed on the rotated screen display interface based on the area attribute information; and when the display area of ​​the application floating window is not completely displayed on the rotated screen display interface, moving the display area of ​​the application floating window so that the display area of ​​the moved application floating window is completely displayed on the rotated screen display interface.

[0015] According to a second aspect of an embodiment of the present disclosure, a floating window position control system is provided, the system comprising: at least two application programs, a display control module and a floating window management module; wherein:

[0016] Any application, used to send the floating window management module the area attribute information of the application floating window opened by the any application;

[0017] The display control module is used to send the security area information of the target protection object to the floating window management module;

[0018] The floating window management module is used to receive the area attribute information and the security area information, so as to determine the display area of ​​the target protection object according to the security area information, and determine the display area of ​​the application floating window according to the area attribute information, and when the display area of ​​the application floating window overlaps with the display area of ​​the target protection object, move the display area of ​​the application floating window outside the display area of ​​the target protection object.

[0019] According to a third aspect of an embodiment of the present disclosure, a floating window position control device is provided, the device being applied to a terminal, the device comprising:

[0020] An acquisition unit, used to acquire security area information of a target protection object and area attribute information of an application floating window opened by any application and sent by the application;

[0021] a determining unit, configured to determine a display area of ​​the target protection object according to the security area information, and to determine a display area of ​​the application floating window according to the area attribute information;

[0022] A moving unit is used to move the display area of ​​the application floating window to outside the display area of ​​the target protection object when the display area of ​​the application floating window overlaps with the display area of ​​the target protection object.

[0023] According to a fourth aspect of an embodiment of the present disclosure, an electronic device is provided, including:

[0024] processor;

[0025] a memory for storing processor-executable instructions;

[0026] The processor is configured to implement the method described in the embodiment of the first aspect. According to a fifth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by the processor, the steps of the method described in the embodiment of the first aspect are implemented.

[0027] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0028] As can be seen from the above embodiments, the present disclosure obtains the security area information of the target protection object and the area attribute information of the application floating window sent by any application, and determines the display area of ​​the target protection object and the display area of ​​the application floating window according to the security area information of the target protection object and the area attribute information of the application floating window, so that when the display area of ​​the target protection object and the display area of ​​the application floating window overlap, the display area of ​​the application floating window is moved outside the display area of ​​the target protection object. Through the floating window position control method disclosed in the present disclosure, whether the target protection object is a display window in a fixed area or a movable display window, the display area of ​​the application floating window can be adjusted in real time according to the overlap between the display area of ​​the target protection object and the display area of ​​the application floating window to avoid the application floating window blocking the target protection object. And the floating window position control method breaks through the limitation that the display area of ​​the application floating window can only be controlled by the application, and there is no need to set the display area of ​​the application floating window separately for each application, which reduces the cost and improves the user experience of the terminal.

[0029] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0031] Figure 1 It is a schematic diagram showing an application floating window blocking other display windows according to an embodiment of the present disclosure.

[0032] Figure 2 It is a schematic diagram showing another application floating window blocking other display windows according to an embodiment of the present disclosure.

[0033] Figure 3 It is a schematic diagram showing another application of a floating window to block other display windows according to an embodiment of the present disclosure.

[0034] Figure 4 It is a schematic flow chart of a floating window position control method according to an embodiment of the present disclosure.

[0035] Figure 5 It is a schematic diagram showing a display area of ​​an application floating window after movement according to an embodiment of the present disclosure.

[0036] Figure 6It is a schematic diagram of the architecture of a floating window position control system according to an embodiment of the present disclosure.

[0037] Figure 7 It is a schematic block diagram of a floating window position control device according to an embodiment of the present disclosure.

[0038] Figure 8 It is a schematic block diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0039] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present disclosure.

[0040] The terms used in the disclosed embodiments are only for the purpose of describing specific embodiments and are not intended to limit the disclosed embodiments. The singular forms of "a", "an" and "the" used in the disclosed embodiments and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0041] It should be understood that although the terms first, second, third, etc. may be used to describe various information in the disclosed embodiments, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the disclosed embodiments, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0042] For the purpose of brevity and ease of understanding, the terms used herein to characterize size relationships are "greater than" or "less than", "higher than" or "lower than". However, those skilled in the art can understand that the term "greater than" also covers the meaning of "greater than or equal to", and "less than" also covers the meaning of "less than or equal to"; the term "higher than" covers the meaning of "higher than or equal to", and "lower than" also covers the meaning of "lower than or equal to".

[0043] Floating windows can be roughly divided into two categories according to their functional emphasis. One is the application floating window, in which the application controls the display area of ​​the application floating window and focuses on interaction with the user; the other is the system floating window, in which the terminal operating system controls the display area of ​​the floating window and focuses on displaying content, such as the PIP (Picture-in-Picture) window.

[0044] When a user uses an application floating window, it is easy for the application floating window to block other display windows. Figure 1-Figure 3 This is a schematic diagram of several application floating windows blocking other display windows. Figure 1 In the case of a user using an application floating window, the other display window is a keyboard input window. When the user wants to enter content in the search bar while using the application floating window, the keyboard input window needs to be called. In this case, the application floating window is likely to block the keyboard input window, affecting the user's use of the keyboard displayed in the keyboard input window. Figure 2 In the example, the other display window is the Hotseat at the bottom of the terminal desktop. The Hotseat at the bottom of the desktop refers to a specific area at the bottom of the screen in the computer desktop operating system, which is used to display quick launch icons or thumbnails of commonly used applications. The Hotseat is usually a horizontal application bar or task bar. When a user uses an application floating window, if the user returns to the desktop from the application that opened the application floating window, the application floating window is likely to block the Hotseat, affecting the user's activation of the application in the Hotseat. Figure 3 In the example, other display windows are PIP windows. When a PIP window is displayed on the screen display interface of the terminal, if a user opens an application floating window of an application, it is very likely that the application floating window will block the PIP window, resulting in the content in the PIP window not being fully displayed.

[0045] Since the operating system cannot control the display area of ​​the application floating window, in order to avoid the application floating window blocking other display windows, the related technology sets the display area of ​​the application floating window opened by each application in turn, so that the application floating window can avoid other display windows. On the one hand, this method can only control the application floating window to avoid other display windows in a fixed display area, and cannot avoid other movable display windows. On the other hand, this method requires setting all applications running on the terminal in turn, which is costly.

[0046] In order to solve the above problems, the present disclosure proposes a floating window position control method, through which, no matter whether the target protection object is a display window in a fixed area or a movable display window, the display area of ​​the application floating window can be adjusted in real time according to the overlap between the display area of ​​the target protection object and the display area of ​​the application floating window, so as to avoid the application floating window blocking the target protection object, and the floating window position control method does not need to set the display area of ​​the application floating window separately for each application, which reduces the cost and effectively improves the user experience of the terminal. Next, one or more embodiments of the present disclosure are described in detail.

[0047] Figure 4 It is a schematic flow chart of a floating window position control method according to an embodiment of the present disclosure. The floating window position control method shown in this embodiment can be executed by a terminal, and the terminal includes but is not limited to a mobile phone, a tablet computer, a wearable device, a sensor, an Internet of Things device and other communication devices. The terminal can communicate with a network device, and the network device includes but is not limited to a network device in a 4G, 5G, 6G and other communication systems, such as a base station, a core network, etc.

[0048] like Figure 4 As shown, the floating window position control method may include the following steps:

[0049] S401: Obtain security area information of a target protection object and area attribute information of an application floating window opened by any application and sent by the application.

[0050] An application floating window can be understood as a window that is displayed in a floating manner on the screen display interface of a terminal such as a mobile phone or computer, and the application floating window does not occupy the entire screen display interface. Users can use the application floating window to handle multiple tasks at the same time, such as operating other applications while watching a video provided by the application floating window.

[0051] The display area of ​​the application floating window is usually controlled by the application. Therefore, the display area of ​​the application floating window opened by each application is not necessarily the same. Specifically, the application controls the display area of ​​the application floating window by defining the regional attribute information of the application floating window. The regional attribute information can be used to determine the display area of ​​the application floating window within the screen display interface. Since the display area of ​​the application floating window is controlled by the application, the application needs to send the regional attribute information of the application floating window opened by the application to the operating system of the terminal.

[0052] The target protection object refers to an object that cannot be blocked by the application floating window. It can be a specified icon in the screen display interface that cannot be blocked by the application floating window, or other display windows that pop up in the screen display interface, or a specified area in the screen display interface that cannot be blocked by the application floating window. The safety area information of the target protection object is used to determine the display area of ​​the target protection object, and the display area is the safety area of ​​the target protection object, and the safety area is the area that cannot be blocked by the application floating window.

[0053] In one embodiment, the target protection object includes other application floating windows opened by another application program different from any application program, and / or a display window maintained by an operating system.

[0054] When the target protection object is another application floating window opened by another application, since the display area of ​​the application floating window is controlled by the application, to obtain the security area information of the target protection object, it is necessary for the other application to send the area attribute information of the other application floating window opened by the other application to the operating system, and then use the area attribute information sent by the other application as the security area information of the target protection object. In this case, two application floating windows will be displayed simultaneously in the screen display interface.

[0055] When the target protection object is a display window maintained by the operating system, since the display area of ​​this type of display window is controlled by the operating system, in other words, the operating system directly maintains the security area information of this type of display window. In this case, the process of obtaining the security area information of the target protection object has nothing to do with the application. Among them, the display window maintained by the operating system can be a keyboard input window, a PIP window, a specified area in the screen display interface, etc.

[0056] In one embodiment, another application program different from any application program may include an application program that has opened an application floating window before any application program opens an application floating window, or an application program determined by a protection object setting instruction.

[0057] If before opening an application floating window of a certain application, another application has already opened an application floating window on the terminal, that is, the application floating window of another application has already been displayed in the screen display interface. In this case, the application floating window of the displayed application can be taken as the target protection object, so as to prevent the later opened application floating window from blocking the displayed application floating window, so that both application floating windows can be displayed completely and unobstructed in the screen display interface.

[0058] In addition, the application indicated by the protection object setting instruction can also be regarded as another application, and the protection object setting instruction can be issued by the user using the terminal or by the developer. The operating system of the terminal can respond to the protection object setting instruction and regard the application indicated by the protection object setting instruction as another application, thereby taking the application floating window of the other application as the target protection object. Among them, the user using the terminal can determine the application that needs to be protected and not blocked according to the current usage of each application or his own usage needs, and issue the corresponding protection object setting instruction. For example, if the user wants the application floating window of application A not to be blocked, the protection object setting instruction issued by the user will indicate that application A is regarded as another application. Then, in the case where both application A and application B need to open the application floating window, the operating system of the terminal can take the application floating window of application A as the target protection object, thereby avoiding the application floating window of application A from being blocked.

[0059] In addition, developers can set the priority of each application according to the importance of each application, and then issue corresponding protection object setting instructions according to the priority of each application. The higher the priority of the application, the less likely the application can be blocked. For example, the importance of office applications is higher than that of game applications. Therefore, developers can issue a protection object setting instruction to set the office application as the other application mentioned above. Thus, in the case where both an office application and a game application need to open the application floating window, the terminal's operating system can respond to the protection object setting instruction to set the application floating window of a certain office application as the target protection object, thereby preventing the application floating window of the office application from being blocked.

[0060] In this embodiment, the application that has opened the application floating window before any application opens the application floating window, or the application indicated by the protection object setting instruction issued by the user is taken as another application, and then the application floating window of the other application is taken as the target protection object. Therefore, when at least two applications open the application floating window at the same time, there is no need to move the display area of ​​each application floating window. Only the display area of ​​the application floating windows except the target protection object needs to be moved, so that all application floating windows can be displayed completely and unobstructed in the screen display interface, which effectively improves the efficiency of adjusting the display area of ​​the application floating window and saves system resources.

[0061] In one embodiment, obtaining the security area information of the target protection object may be obtaining the security area information after the target protection object has been displayed, or may be obtaining the security area information when the target protection object has not been displayed.

[0062] by Figure 3 For example, the target protection object is the PIP window. Figure 3 In the example, the PIP window has been displayed in the screen display interface. If the user wants to open an application floating window of a certain application, the safety area information of the PIP window can be obtained to determine the display area of ​​the PIP window. Since the safety area information of the target protection object is usually stored in the operating system or application when it is not displayed, when the target protection object is displayed in the screen display interface, obtaining its safety area information based on the displayed target protection object can make the obtained safety area information more accurate, avoiding the situation where the position of the subsequent control application floating window is incorrect due to the failure to update the stored safety area information in a timely manner.

[0063] by Figure 1 For example, the target protection object is the keyboard input window. Figure 1 In the example, the user has opened an application floating window, and now the user wants to call the keyboard input window to input information to the terminal. In this case, the safety area information of the keyboard input window can be obtained before the keyboard input window is displayed, so that the display area of ​​the application floating window can be moved outside the display area of ​​the keyboard input window before the keyboard input window is displayed according to the obtained safety area information and the area attribute information of the application floating window, so that the keyboard input window will not be blocked by the application floating window after it is displayed. In other words, when the target protection object has not been displayed, obtaining the safety area of ​​the target protection object helps to make the application floating window avoid the target protection object before the target protection object is displayed, so that a completely displayed target protection object can be directly obtained after the target protection object is displayed.

[0064] S402: Determine a display area of ​​the target protection object according to the security area information, and determine a display area of ​​the application floating window according to the area attribute information.

[0065] For example, the security area information may include: the coordinates of the center point of the display area of ​​the target protection object in the screen display interface, and the width and height of the display area. The display area of ​​the target protection object in the screen display interface can be determined by the coordinates of the center point in the screen display interface and the width and height of the display area. Similarly, the regional attribute information may also include the coordinates of the center point of the display area of ​​the application floating window in the screen display interface, and the width and height of the display area, so as to determine the display area of ​​the application floating window in the screen display interface. Of course, the security area information and the regional attribute information may also include other information, as long as the display area of ​​the target protection object in the screen display interface can be determined according to the security area information, and the display area of ​​the application floating window in the screen display interface can be determined according to the regional attribute information. The present disclosure does not limit the specific content of the security area information and the regional attribute information.

[0066] S403: When the display area of ​​the application floating window overlaps with the display area of ​​the target protection object, move the display area of ​​the application floating window to outside the display area of ​​the target protection object.

[0067] After determining the display area of ​​the application floating window and the display area of ​​the target protected object, if the two display areas overlap, the display area of ​​the application floating window is moved outside the display area of ​​the target protected object, so that the application floating window avoids the target protected object and avoids blocking the target protected object.

[0068] against Figure 1 The keyboard input window and the application floating window overlap. Figure 5 The figure shows the moving display area of ​​the application floating window. Figure 5 The application floating window will not block the keyboard input window.

[0069] In one embodiment, after the display area of ​​the application floating window is moved, the display area information of the application floating window after the movement can also be sent to the application that opens the application floating window. After the application receives the display area information of the application floating window after the movement, it updates the previously stored area attribute information of the application floating window according to the display area information after the movement.

[0070] by Figure 5For example, assume that the scenario in which the application uses the application floating window in the future is the same as the scenario in which the application uses the application floating window this time, that is, the keyboard input window needs to be called after the application floating window is opened, and the screen display interface is in the vertical screen state. Then, when the application opens the application floating window, the application floating window will be displayed in the display area corresponding to the updated area attribute information. At this time, the display area of ​​the application floating window does not overlap with the display area of ​​the keyboard input window, that is, there is no need to move the display area of ​​the application floating window again.

[0071] In this embodiment, the area attribute information of the application floating window originally stored in the application is updated according to the display area information after the application floating window is moved, so that when the application subsequently opens the application floating window, the application floating window can be displayed in the display area corresponding to the updated area attribute information, thereby helping to reduce the probability of subsequent application floating windows blocking other display windows.

[0072] In one embodiment, the state of the screen display interface can be switched back and forth between the vertical screen and the horizontal screen. When the state of the screen display interface changes, it is easy for the display area of ​​the application floating window to not be fully displayed on the screen display interface, that is, the user cannot see the complete application floating window on the screen display interface.

[0073] In order to solve the above problem, when an application floating window is displayed in the screen display interface, the status information of the screen display interface can be obtained, and when the status information indicates that the screen display interface has been rotated (rotated from a horizontal screen to a vertical screen, or from a vertical screen to a horizontal screen), the regional attribute information of the application floating window is obtained from the application that opens the application floating window. Then, it is determined whether the display area of ​​the application floating window is completely displayed on the rotated screen display interface based on the regional attribute information. The specific judgment method can refer to the relevant content of determining the position of the application floating window in the relevant technology, and the present disclosure does not limit this. If it is determined that the display area of ​​the application floating window is not completely displayed on the rotated screen display interface, it is necessary to move the display area of ​​the application floating window so that the display area of ​​the moved application floating window can be completely displayed on the rotated screen display interface.

[0074] In this embodiment, by monitoring the status of the screen display interface, when the status of the screen display interface changes and the application floating window cannot be fully displayed on the changed screen display interface, the position of the display area of ​​the application floating window can be adjusted in time, so that the user can normally view and use the complete application floating window in the changed screen display interface, which helps to improve the user experience.

[0075] In the above embodiment, by obtaining the security area information of the target protection object and the area attribute information of the application floating window sent by the application, the display area of ​​the target protection object and the display area of ​​the application floating window are determined according to the security area information of the target protection object and the area attribute information of the application floating window, so that when the display area of ​​the target protection object and the display area of ​​the application floating window overlap, the display area of ​​the application floating window is moved outside the display area of ​​the target protection object. Through this control method, whether the target protection object is a display window in a fixed area or a movable display window, the display area of ​​the application floating window can be adjusted in real time according to the overlap between the display area of ​​the target protection object and the display area of ​​the application floating window to avoid the application floating window blocking the target protection object. And the floating window position control method breaks through the limitation that the display area of ​​the application floating window can only be controlled by the application, and there is no need to set the display area of ​​the application floating window separately for each application, which reduces the cost and improves the user experience of the terminal.

[0076] Figure 6 is a schematic diagram of the architecture of a floating window position control system according to an embodiment of the present disclosure. Figure 6 , the control system may include at least two applications, a display control module and a floating window management module. Among them, the display control module and the floating window management module are both deployed in the operating system. Specifically, the display control module is deployed in the user interface layer (system UI) of the operating system, and the display control module is deployed in the application framework layer (framework) of the operating system. The application framework layer provides many APIs that support the operation of applications. The application needs to call the API in the application framework layer to display the application floating window.

[0077] like Figure 6 As shown, ① indicates that any application opens an application floating window in response to a user operation. ② indicates that any application sends the regional attribute information of the opened application floating window to the floating window management module. ③ indicates that the display control module obtains the security area information of the target protection object. ④ indicates that the display control module sends the security area information of the target protection object to the floating window management module. It should be noted that the present disclosure does not limit the order of the two steps of obtaining the security area information of the target protection object and sending the regional attribute information of the opened application floating window by any application. The aforementioned ①②③④ are only used for identification and do not represent the execution order.

[0078] After receiving the regional attribute information of the application floating window and the security area information of the target protection object, the floating window management module determines the display area of ​​the application floating window according to the regional attribute information of the application floating window, and determines the display area of ​​the target protection object according to the security area information of the target protection object. ⑤ indicates that if the floating window management module determines that there is an abnormality in the display area of ​​the application floating window, it is necessary to adjust the display area of ​​the application floating window. The abnormality may include that the display area of ​​the application floating window overlaps with the display area of ​​the target protection object. In this case, the floating window management module moves the display area of ​​the application floating window outside the display area of ​​the target protection object, thereby preventing the application floating window from blocking the target protection object. Figure 6 There is no abnormality in the display area of ​​the application floating window 1, but there is an abnormality in the display area of ​​the application floating window 2, so the floating window management module only needs to adjust the display area of ​​the application floating window 2.

[0079] In addition, the display control module can also obtain the status information of the screen display interface, and when the status information indicates that the screen display interface is rotated, send the information of the rotated screen display interface to the floating window management module, such as Figure 6 ⑥ and ⑦ in. If the floating window management module determines that the display area of ​​the application floating window is not inside the rotated screen display interface, that is, there is an abnormality in the display area of ​​the application floating window, the floating window management module needs to adjust the display area of ​​the application floating window. Specifically, the floating window management module can move the display area of ​​the application floating window to the inside of the rotated screen display interface.

[0080] ⑧ indicates that the floating window management module sends the display area information of the application floating window after it is moved to the application that opens the application floating window, so that the application updates the area attribute information of the application floating window according to the display area information after the move.

[0081] Corresponding to the above-mentioned embodiment of the floating window position control method, the present disclosure also provides an embodiment of a floating window position control device.

[0082] See also Figure 7 , Figure 7 This is a schematic block diagram of a floating window position control device provided by an exemplary embodiment. The device may include: an acquisition unit 702, a determination unit 704, and a movement unit 706. Among them:

[0083] The acquisition unit 702 is configured to acquire security area information of a target protection object and area attribute information of an application floating window opened by any application and sent by the application.

[0084] The determining unit 704 is configured to determine a display area of ​​the target protection object according to the security area information, and to determine a display area of ​​the application floating window according to the area attribute information.

[0085] The moving unit 706 is configured to move the display area of ​​the application floating window to outside the display area of ​​the target protection object when the display area of ​​the application floating window overlaps with the display area of ​​the target protection object.

[0086] Optionally, the target protection object includes other application floating windows opened by another application different from any of the applications, and / or display windows maintained by an operating system.

[0087] Optionally, the another application includes: an application that has opened an application floating window before any of the applications opens the application floating window, or an application determined by a protection object setting instruction.

[0088] Optionally, the acquisition unit 702 is specifically used to: acquire the security area information of the displayed target protection object; or, when the target protection object has not been displayed, acquire the security area information of the target protection object.

[0089] Optionally, the device further comprises:

[0090] The sending unit 708 is configured to send the display area information of the application floating window after the movement to the any application program, so that the any application program updates the area attribute information of the application floating window according to the display area information after the movement.

[0091] Optionally, the device further comprises:

[0092] The status information acquisition unit 710 is configured to acquire status information of the screen display interface, and when the status information indicates that the screen display interface has been rotated, acquire area attribute information of an application floating window opened for any application and sent by the any application; determine whether the display area of ​​the application floating window is completely displayed on the rotated screen display interface according to the area attribute information; and when the display area of ​​the application floating window is not completely displayed on the rotated screen display interface, move the display area of ​​the application floating window so that the display area of ​​the moved application floating window is completely displayed on the rotated screen display interface.

[0093] Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the relevant method, and will not be elaborated here.

[0094] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution. A person of ordinary skill in the art can understand and implement it without paying creative labor.

[0095] Figure 8 800 is a schematic block diagram of an electronic device according to an embodiment of the present disclosure. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0096] Reference Figure 8 , the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0097] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0098] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0099] The power supply component 806 provides power to the various components of the device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.

[0100] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0101] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0102] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0103] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, such as the display and keypad of the device 800. The sensor assembly 814 can also detect the position change of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0104] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G LTE, 8G NR or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0105] In an exemplary embodiment, the device 800 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the method described in any of the above embodiments.

[0106] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0107] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0108] It should be understood that the present disclosure is not limited to the exact structures that have been 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

1. A floating window position control method, characterized in that: The method is applied to a terminal, and the method comprises: Obtaining security area information of a target protection object and area attribute information of an application floating window opened by any application sent by the application; Determining a display area of ​​the target protection object according to the security area information, and determining a display area of ​​the application floating window according to the area attribute information; When the display area of ​​the application floating window overlaps with the display area of ​​the target protection object, the display area of ​​the application floating window is moved outside the display area of ​​the target protection object.

2. The method according to claim 1, characterized in that The target protection object includes other application floating windows opened by another application different from any of the applications, and / or display windows maintained by the operating system.

3. The method according to claim 2, characterized in that The other application includes: an application that has opened an application floating window before any of the applications opens an application floating window, or, The application is determined by the protection object setting directive.

4. The method according to claim 1, characterized in that: The step of obtaining the security area information of the target protection object includes: Obtain the security zone information of the displayed target protection object; or, When the target protection object has not been displayed, the security area information of the target protection object is obtained.

5. The method according to claim 1, characterized in that The method further comprises: The display area information of the application floating window after the movement is sent to the any application program, so that the any application program updates the area attribute information of the application floating window according to the display area information after the movement.

6. The method according to claim 1, characterized in that The method further comprises: Acquiring status information of a screen display interface, and when the status information indicates that the screen display interface has rotated, acquiring regional attribute information of an application floating window opened by any application and sent by any application; Determining whether the display area of ​​the application floating window is completely displayed on the rotated screen display interface according to the area attribute information; When the display area of ​​the application floating window is not completely displayed on the rotated screen display interface, the display area of ​​the application floating window is moved so that the display area of ​​the moved application floating window is completely displayed on the rotated screen display interface.

7. A floating window position control system, characterized in that: The system includes: at least two application programs, a display control module and a floating window management module; wherein, Any application, used to send the floating window management module the area attribute information of the application floating window opened by the any application; The display control module is used to send the security area information of the target protection object to the floating window management module; The floating window management module is used to receive the area attribute information and the security area information, so as to determine the display area of ​​the target protection object according to the security area information, and determine the display area of ​​the application floating window according to the area attribute information, and when the display area of ​​the application floating window overlaps with the display area of ​​the target protection object, move the display area of ​​the application floating window outside the display area of ​​the target protection object.

8. A floating window position control device, characterized in that: The device is applied to a terminal, and includes: An acquisition unit, used to acquire security area information of a target protection object and area attribute information of an application floating window opened by any application and sent by the application; a determining unit, configured to determine a display area of ​​the target protection object according to the security area information, and to determine a display area of ​​the application floating window according to the area attribute information; A moving unit is used to move the display area of ​​the application floating window to outside the display area of ​​the target protection object when the display area of ​​the application floating window overlaps with the display area of ​​the target protection object.

9. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the method according to any one of claims 1 to 6.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Cited By

  • Floating window display method and system, electronic equipment and storage medium

    CN121070507A