Display method and device

By automatically determining the display position of the suspended form and avoiding the lower form, the problem of the information of the lower form in and out of multiple forms is solved, and the user experience is improved.

CN119032338AActive Publication Date: 2024-11-26HUAWEI TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202480002157.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-05-31
Filing Date
2024-05-16
Publication Date
2024-11-26
Estimated Expiration
2044-05-16

AI Technical Summary

Technical Problem

In multi-form display scenarios, the key information of the lower-level form is easily blocked by the upper-level form, resulting in a low user experience of the user equipment and a lack of an automatic avoidance mechanism to solve this problem.

Method used

Provide a display method, by determining the display position of the suspended form, it automatically avoids the lower form, ensuring that at least two non-suspended forms are not blocked, using preset conditions such as adding a suspended form, display position update or Display area changes to redetermine the position of the suspended form, and select candidate positions in combination with avoidance priority.

Benefits of technology

Automatic avoidance of floating forms can be achieved without manual operation by users, increasing the number of unobstructed forms, providing more key information, and improving the user's display device experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119032338A_ABST
    Figure CN119032338A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a display method and device, and relates to the field of display devices. In the method, a plurality of windows are displayed. The plurality of window bodies comprise n first window bodies, n is an integer greater than or equal to two, and the first window bodies are non-suspended window bodies. And when a preset condition is met, determining a first position of the suspension window body. And displaying the suspension window at the first position. The suspension window body and at least two window bodies in the n first window bodies are not shielded. According to the method, when a preset condition is met, a first position of a suspended window is determined, and the suspended window is displayed at the first position, so that the suspended window and at least two windows in n first windows are not shielded. According to the technical scheme, a user does not need to manually operate the suspension window, the suspension window can automatically avoid the first window, the number of the first windows which are not shielded can be increased, key information of more windows can be provided for the user, and the display device use experience of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on May 31, 2023, with application number 202310647147.9 and application name “Display Method and Device”, the entire contents of which are incorporated by reference in this application. Technical Field

[0002] The embodiments of the present application relate to the field of display devices, and in particular, to a display method and device. Background Art

[0003] As the screen size of display devices becomes larger and larger, there are scenarios where multiple windows (or controls) are displayed on the screen for parallel processing of transactions, such as multi-window operation, multi-tasking, picture-in-picture and other scenarios. However, in the above-mentioned multi-window display scenario, the windows may overlap and the key information of the lower window may be blocked. When the user wants to view the key information of the lower window, the upper window must be moved away first, resulting in a poor user experience of the device. How to prevent the key information of the lower window from being blocked is a technical problem that urgently needs to be solved in this field. Summary of the invention

[0004] The present application provides a display method and device, in which a floating window can automatically avoid the non-floating window in the lower layer for display.

[0005] A first aspect provides a display method, which can be applied to a display device, or a chip in a display device. Specifically, the method comprises the following steps: displaying multiple windows. The multiple windows include n first windows, where n is an integer greater than or equal to two, and the first window is a non-floating window. When a preset condition is met, determining a first position of the floating window. Displaying the floating window at the first position. There is no occlusion between the floating window and at least two of the n first windows.

[0006] It can be seen that in this solution, when the preset conditions are met, the first position of the floating window is determined, and the floating window is displayed at the first position so that there is no obstruction between the floating window and at least two of the n first windows. Without the need for the user to manually operate the floating window, the floating window can automatically avoid the first window, and the number of first windows that are not obstructed can be increased to provide more key information of the window to the user, thereby improving the user's display device usage experience.

[0007] In a possible implementation of the first aspect, the preset condition includes any one of the following: adding a floating window; updating the display position of the floating window; or updating the display area of ​​the floating window.

[0008] When a floating window is about to appear on the display screen, the method of the embodiment of the present application is initiated to determine the display position of the floating window, that is, the first position.

[0009] When the display position of the floating window is updated, for example, the user drags the position of the floating window from display position A to display position B, at this time, the method of the embodiment of the present application is started to redetermine the display position of the floating window, that is, the first position.

[0010] When the display area of ​​the floating window is updated (increased or reduced), the occlusion relationship between the changed floating window and the first window of the lower layer changes. At this time, the method of the embodiment of the present application is activated to redetermine the display position of the floating window.

[0011] In a possible implementation of the first aspect, there is an avoidance priority between the n first windows. The avoidance priority of the first window can be set according to actual conditions without special limitation. For example, the avoidance priority of the first window is set according to the importance to the user.

[0012] In a possible implementation of the first aspect, the above-mentioned determination of the first position of the floating window specifically includes the following steps: when there is a first window among n first windows and the floating window that is blocked, at least one candidate position corresponding to the first window is determined. When the floating window is displayed at at least one candidate position, it at least does not block the first window and the windows with a higher avoidance priority than the first window. Determine a candidate position with the largest avoidance number among at least one candidate position as the first position. The avoidance number of the above-mentioned candidate position is the number of windows that can avoid blocking the first window among the n first windows when the floating window is displayed at the candidate position.

[0013] It can be seen that this solution provides a possible method for determining the first position of the floating window, which can ensure that the first window with a higher avoidance priority is not blocked by the floating window, so that the user can successfully obtain the key information carried by the first window with a higher avoidance priority.

[0014] In a possible implementation of the first aspect, the above-mentioned determination of the first position of the floating window specifically includes the following steps: when there are greater than or equal to two first windows that are obscured by the n first windows and the floating window, determine at least one candidate position corresponding to each obscured first window. When the above-mentioned floating window is displayed at at least one candidate position, it at least does not obstruct the obscured first window and the window whose avoidance priority is higher than the avoidance priority of the obscured first window. Determine the candidate position with the largest avoidance number as the first position. The avoidance number of the above-mentioned candidate position is the number of windows that can avoid obstructing the first window among the n first windows when the floating window is displayed at the candidate position.

[0015] In a possible implementation of the first aspect, when the number of windows that are blocked by the n first windows and the floating window is greater than or equal to two first windows, the determining of the first position of the floating window specifically includes the following steps:

[0016] Determine a window as the second window from the n first windows that are blocked by the floating window. Determine at least one candidate position of the second window. At least one candidate position does not block the second window and the floating window can be fully displayed at the candidate position. When a window with a higher avoidance priority than the avoidance priority of the second window is blocked by a floating window displayed at a candidate position, remove the candidate position from at least one candidate position. When the avoidance number of the candidate position is equal to n, take the candidate position as the first position and stop executing the following steps. The avoidance number of the candidate position is the number of windows that can not block the first window among the n first windows when the floating window is displayed at the candidate position. When the avoidance number of the candidate position is less than n, record the avoidance number of the candidate position. Remove the second window from the window that is blocked by the floating window and repeat the above steps until the window that is blocked by the floating window is empty. Take the candidate position with the largest avoidance number among the recorded avoidance numbers as the first position.

[0017] It can be seen that this solution provides another possible method for determining the first position of a floating window. In this method, by polling each candidate position, when the avoidance number of the candidate position is equal to n, the candidate position is used as the first position and the subsequent steps are stopped. This can reduce the amount of calculation for determining the first position to a certain extent, increase the speed of determining the first position, and thereby improve the user experience of the display device.

[0018] In a possible implementation of the first aspect, when the number of windows that are blocked by the n first windows and the floating window is greater than or equal to two first windows, the determining of the first position of the floating window specifically includes the following steps:

[0019] Determine a window with the highest avoidance priority from the n first windows that are blocked by the floating window as the second window. Determine at least one candidate position for the second window. At least one candidate position does not block the second window and the floating window can be fully displayed at the candidate position. When a window with a higher avoidance priority than the avoidance priority of the second window is blocked by a floating window displayed at a candidate position, remove the candidate position from at least one candidate position. When the avoidance number of the candidate position is equal to n, take the candidate position as the first position and stop executing the following steps. The avoidance number of the candidate position is the number of windows that can not block the first window among the n first windows when the floating window is displayed at the candidate position. When the avoidance number of the candidate position is less than n, record the avoidance number of the candidate position. Remove the second window from the window that is blocked by the floating window and repeat the above steps until the window that is blocked by the floating window is empty. Take the candidate position with the largest avoidance number among the recorded avoidance numbers as the first position.

[0020] It can be seen that the present solution provides another possible method for determining the first position of a floating window. In this method, each candidate position is polled according to the avoidance priority. When the avoidance number of the candidate position is equal to n, the candidate position is used as the first position and subsequent steps are stopped. This can further reduce the amount of calculation for determining the first position, increase the speed of determining the first position, and thereby improve the user experience of the display device.

[0021] In a possible implementation of the first aspect, when the avoidance number of the candidate position is less than n, if the avoidance number of the candidate position is inconsistent with the avoidance number of the recorded candidate position; or, the avoidance number of the candidate position is consistent with the avoidance number of the recorded candidate position, and the avoidance priority of the window corresponding to the candidate position is not lower than the avoidance priority of the window corresponding to the recorded candidate position, the avoidance number of the candidate position is recorded.

[0022] On the contrary, when the avoidance number of the candidate position is less than n, and the avoidance number of the candidate position is consistent with the avoidance number of the recorded candidate position, the avoidance number of the candidate position is not recorded. Alternatively, when the avoidance number of the candidate position is less than n, the avoidance number of the candidate position is consistent with the avoidance number of the recorded candidate position, and the avoidance priority of the window corresponding to the candidate position is lower than the avoidance priority of the window corresponding to the recorded candidate position, the avoidance number of the candidate position is not recorded. This is conducive to reducing the amount of data recorded for the avoidance number, thereby increasing the amount of calculation for determining the first position based on the avoidance number, and increasing the speed of determining the first position.

[0023] In a possible implementation of the first aspect, when there are multiple candidate positions with the largest avoidance number, a candidate position corresponding to a window with the highest avoidance priority among the multiple candidate positions with the largest avoidance number is selected as the first position.

[0024] It can be seen that when there are multiple candidate positions with the largest avoidance number, selecting the candidate position with the highest avoidance priority as the first position can ensure that the first window with a higher avoidance priority is not blocked, so that the user can successfully obtain the key information carried by the first window with a higher avoidance priority.

[0025] The second aspect also provides a display method, which is applied to a display device, or a chip in a display device. Specifically, the method includes the following steps: displaying multiple windows. The multiple windows include n first windows that are floating windows, where n is an integer greater than or equal to two, and the first window is a non-floating window. When the n first windows are updated, the first position of the floating window is determined. The update includes at least one window among the n first windows being replaced and / or the total number of windows increasing. The floating window is displayed at the first position. There is no occlusion between the floating window and at least two of the updated multiple first windows.

[0026] It can be seen that, using this solution, when n first windows are updated, the first position of the floating window is determined so that there is no obstruction between the floating window and at least two of the updated multiple first windows. Without the need for the user to manually operate the floating window, the floating window can automatically avoid the first window, and the number of first windows that are not obstructed can be increased to provide more key information of the window to the user, thereby improving the user's display device usage experience.

[0027] In a possible implementation of the second aspect, there is an avoidance priority between the first windows.

[0028] In a possible implementation of the second aspect, the above-mentioned determination of the first position of the floating window specifically includes the following steps: when a window that is obstructed by the floating window among the updated multiple first windows is a first window, determine at least one candidate position corresponding to the obstructed first window. When the above-mentioned floating window is displayed at at least one candidate position, it at least does not obstruct the first window and the windows whose avoidance priority is higher than the avoidance priority of the first window. Determine a candidate position with the largest avoidance number among the at least one candidate position as the first position. The avoidance number of the candidate position is the number of windows that can avoid obstructing the first window among the updated multiple first windows when the floating window is displayed at the candidate position.

[0029] In a possible implementation of the second aspect, the above-mentioned determination of the first position of the floating window specifically includes the following steps: when there are more than or equal to two first windows among the updated multiple first windows that are obstructed by the floating window, determine at least one candidate position corresponding to each obstructed first window. When the above-mentioned floating window is displayed at at least one candidate position, it at least does not obstruct the obstructed first window and the window whose avoidance priority is higher than the avoidance priority of the obstructed first window. Determine the candidate position with the largest avoidance number as the first position. The avoidance number of the above-mentioned candidate position is the number of windows that can avoid obstructing the first window among the updated multiple first windows when the floating window is displayed at the candidate position.

[0030] In a possible implementation of the second aspect, when there are multiple candidate positions with the largest avoidance number, a candidate position corresponding to a window with the highest avoidance priority among the multiple candidate positions with the largest avoidance number is selected as the first position.

[0031] The third aspect also provides a display device, which includes a module or unit for implementing or executing the steps of the display method described in the first aspect or the second aspect.

[0032] The fourth aspect also provides a display device, including a processor and a memory, wherein the processor and the memory are connected, wherein the memory is used to store program code, and the processor is used to call the program code to execute the display method as described in the first aspect or the second aspect above.

[0033] The fifth aspect also provides a readable storage medium, which stores a program, and the program is executed by a processor to implement the display method of the first aspect or the second aspect as described above.

[0034] The sixth aspect also provides a program product containing instructions, when the program product is run on a device, the device executes the display method of the first aspect or the second aspect.

[0035] The seventh aspect also provides a chip, which includes a processor and a data interface, and the processor reads instructions stored in a memory through the data interface to execute the display method of the first aspect or the second aspect.

[0036] Optionally, as an implementation method, the chip may further include a memory, in which instructions are stored, and the processor is used to execute the instructions stored in the memory. When the instructions are executed, the processor is used to execute the display method of the first aspect or the second aspect mentioned above. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The following is an introduction to the drawings used in the embodiments of the present application.

[0038] Figure 1A is a schematic diagram of a non-floating window provided in an embodiment of the present application;

[0039] Figure 1B is a schematic diagram of a floating window provided in an embodiment of the present application;

[0040] Figure 1C It is a schematic diagram of the effect of a display method provided by an embodiment of the present application;

[0041] Figure 2 It is a flow chart of a display method provided in an embodiment of the present application;

[0042] Figure 3 It is a specific flow chart of a display method provided in an embodiment of the present application;

[0043] Figure 4 is a flow chart of another display method provided in an embodiment of the present application;

[0044] Figure 5A is a schematic diagram of a first window and a floating window provided in an embodiment of the present application;

[0045] Figure 5B is a schematic diagram of another first window and a floating window provided in an embodiment of the present application;

[0046] Figure 5C is a schematic diagram of another first window and a floating window provided in an embodiment of the present application;

[0047] Figure 6 It is a specific flow chart of another display method provided in an embodiment of the present application;

[0048] Figure 7 is a structural schematic diagram of a display device provided by an embodiment of the present invention;

[0049] Figure 8 It is a structural schematic diagram of a display device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0050] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0051] Due to the applications involved in the embodiments of the present application, in order to facilitate understanding, the relevant terms and other related concepts involved in the embodiments of the present application are first introduced below.

[0052] In the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0053] The "at least one" mentioned in the embodiments of the present application refers to one or more, and "multiple" refers to two or more. "At least one of the following" or its similar expression refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, (a and b), (a and c), (b and c), or (a and b and c), where a, b, c can be single or multiple. "And / or" describes the association relationship of the associated objects, indicating that three relationships can exist. For example, A and / or B can be represented by: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are an "or" relationship. The serial numbers of the steps of the embodiments of the present application (such as step S1, step S21, etc.) are only for distinguishing different steps, and do not limit the order of execution between the steps.

[0054] Furthermore, unless otherwise specified, the ordinal numbers such as "first" and "second" used in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the order, timing, priority or importance of multiple objects. For example, the first device and the second device are only for the convenience of description, and do not represent the difference in structure, importance, etc. between the first device and the second device. In some embodiments, the first device and the second device can also be the same device.

[0055] In the above embodiments, the term "when..." can be interpreted as meaning "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modification, equivalent substitution, improvement, etc. made within the concept and principle of the present application shall be included in the protection scope of the present application.

[0056] As the screen size of display devices becomes larger and larger, there are scenarios where multiple windows (or controls) are superimposed on the screen for parallel processing of tasks, such as multi-window operation, multi-tasking, picture-in-picture, etc. For display devices that support touch, users can manually drag the upper window to avoid blocking the lower window to obtain key information of the lower window. However, manual operation processing is inefficient and the user experience of obtaining information is poor.

[0057] Therefore, an embodiment of the present application provides a display method, in which a floating window can automatically avoid a non-floating window for display, and the floating window can avoid at least two non-floating windows at the same time, thereby increasing the number of unobstructed windows to provide more window display information to the user.

[0058] The display method of the embodiment of the present application is applicable to scenarios with upper and lower layer displays, such as multi-window operation, multi-tasking, picture-in-picture, etc. In other words, the embodiment of the present application can be applied to scenarios where floating windows and non-floating windows exist at the same time.

[0059] A floating window is a window that is suspended and movable on a non-floating window. A floating window can be used to display information, such as application information or system prompt information.

[0060] In an embodiment of the present application, each non-floating window carries key information, and key information refers to various information that the user expects to know. For example, key information includes but is not limited to the QR code of the underlying window, PIN code display, picture display, underlying focus (i.e., the focused object, the object the user is operating), system background prompt information (such as system prompt information for programs running in the background), etc.

[0061] The non-floating window may be a display window corresponding to the focused area, that is, a window in the area that the user is using or operating. At this time, the user does not want the display window to be blocked, and regards the display window as an object that the floating window needs to avoid. Figure 1A , Figure 1A It is a schematic diagram of a non-floating window provided in an embodiment of the present application; Window A is a display window corresponding to the Changlian application, which is an example of a non-floating window, and Window A is a display window corresponding to the current focus area.

[0062] The above-mentioned non-floating window may also be a display window corresponding to an area that has no focus-taking capability but is expected to be perceived by the user; this type of non-floating window can be set according to actual conditions. For example, if application E actively reports to the system and expects to be avoided by the floating window, the display window of the application, such as the display window where the application logo and the name of the application are located, will be used as a non-floating window. Alternatively, the user may use the display window where the application logo and the name of the application F are located as a non-floating window according to actual needs. Referring to 1A, the "Screen Recording" window B is the display window corresponding to the background prompt information. Window B is another example of a non-floating window. Window B has no focus-taking capability but is expected to be perceived by the user, and it can be used as an avoidance object for the floating window.

[0063] refer to Figure 1B , Figure 1BIt is a schematic diagram of a floating window provided in an embodiment of the present application; Window C is a floating window, in which the displayed content can be set according to actual conditions.

[0064] The display method of the embodiment of the present application can be applied to a display device or a chip in a display device. In the following description, the display device is used as the execution subject of the method.

[0065] refer to Figure 1B , where window A and window B are blocked by floating window C. Figure 1C , Figure 1C It is a schematic diagram of the effect of a display method provided in an embodiment of the present application; by applying the display method of the embodiment of the present application, the display device displays the floating window C in the first position, which can avoid window A and window B and does not block them. The user does not need to manually move the floating window C, and can obtain the key information carried by window A and window B.

[0066] The following is a detailed description of a display method provided in an embodiment of the present application. Figure 2 , Figure 2 200 is a flow chart of a display method provided in an embodiment of the present application. The display method 200 comprises the following steps:

[0067] 201. A display device displays multiple windows, where the multiple windows include n first windows.

[0068] Wherein, n is an integer greater than or equal to 2, the first window is a non-floating window, the first window is a target avoidance object, that is, a window that the user expects not to be blocked, and the specific type and number of the first window can be set according to actual conditions.

[0069] 202. When the display device meets a preset condition, determine a first position of the floating window.

[0070] Specifically, the preset condition can be set according to actual conditions, and is not particularly limited. When the preset condition is met, the display device needs to determine the display position of the floating window, that is, the first position.

[0071] 203. The display device displays a floating window at a first position, and there is no obstruction between the floating window and at least two of the n first windows.

[0072] Specifically, the first position determined in step 202 can ensure that there is no occlusion between the floating window and at least two of the n first windows.

[0073] It can be seen that by utilizing the display method 200 of the embodiment of the present application, the floating window can automatically avoid the first window without the user manually operating the floating window, and the number of unblocked first windows can be increased to provide more key information of the window to the user, thereby improving the user's display device usage experience.

[0074] In addition, the method of the embodiment of the present application does not require the display properties of the first window to make obvious visual effects sacrifices, such as scaling, transparency changes, three-dimensional rotation, etc., and displays key information normally to the greatest extent while ensuring the screen visual effects. Moreover, in the embodiment of the present application, there is no restriction on the application scenarios of the floating window and the first window, and users are supported to start various windows as needed.

[0075] The above preset conditions include any one of the following: adding a floating window; updating the display position of the floating window; or updating the display area of ​​the floating window.

[0076] Specifically, when a floating window is to be displayed on the display screen of the display device, the display device starts the method of the embodiment of the present application to determine the display position of the floating window, that is, the first position, so that the floating window does not block at least two first windows among the n first windows.

[0077] When the display position of the displayed floating window is updated, for example, the user drags the position of the floating window from display position A to display position B, at this time, the display device starts the method of the embodiment of the present application to re-determine the display position of the floating window, that is, the first position, so that the floating window will not block at least two first windows among the n first windows.

[0078] When the display area of ​​the displayed floating window is updated (increased or reduced), the occlusion relationship between the changed floating window and the first window of the lower layer changes. At this time, the display device starts the method of the embodiment of the present application to redetermine the display position of the floating window.

[0079] When the display position of the displayed floating window is updated, and the display area of ​​the floating window is updated, the occlusion relationship between the floating window and the first window of the lower layer changes. At this time, the display device starts the method of the embodiment of the present application to redetermine the display position of the floating window.

[0080] Furthermore, the above-mentioned preset conditions also need to be satisfied at the same time: when there is a first window that is blocked by the floating window, that is, when the first window is blocked by the floating window to be displayed, the display device starts the method of the embodiment of the present application to determine the display position of the floating window. Alternatively, when the display position and / or display area of ​​the displayed floating window changes, and when the first window is blocked by the floating window, the display device starts the method of the embodiment of the present application to redetermine the display position of the floating window.

[0081] When there are more than or equal to two floating windows, for each floating window that meets the above preset conditions, the display method of the embodiment of the present application can be used to determine a first position.

[0082] In a possible implementation, among the multiple windows displayed on the display screen, the avoidance priority of the n first windows is higher than the priority of other windows except the n first windows among the multiple windows (that is, the n first windows are objects that need to be avoided), but the avoidance priority is not set between the n first windows, or, the multiple windows are n first windows and the avoidance priority is not set between the n first windows, in step 202, when the display device determines the first position of the floating window, specifically includes the following steps:

[0083] A221. The display device determines a window as a target window from among the n first windows that are blocked by the floating window. When there are two or more blocked first windows, the display device determines one as the target window from among the blocked first windows according to a preset rule. When there is only one blocked first window, the display device uses the blocked first window as the target window.

[0084] Specifically, the preset rules can be set according to actual conditions, for example, in the first window displayed on the display screen that is occluded by the floating window, the windows are randomly traversed, or the windows are traversed in order from left to right or from bottom to top, or the windows are traversed in order from right to left or from bottom to top.

[0085] A222. The display device determines at least one candidate position corresponding to the target window, and when the floating window is displayed at the at least one candidate position of the target window, it at least does not cover the target window.

[0086] Specifically, for each candidate position of the target window, when the floating window is displayed at a candidate position, the floating window at least does not cover the target window.

[0087] There are many methods for determining the candidate position of the floating window to avoid the obstructed target window. For example, the upper position, lower position, left position and right position of the target window can be used as the candidate position to be determined. When the floating window can be fully displayed at the above-mentioned candidate position to be determined, the display device uses the candidate position to be determined. For another example, after the floating window is scaled, translated or rotated by at least one operation, a position is obtained that can avoid the obstructed target window and the floating window can be fully displayed, and the display device determines this position as the candidate position of the target window.

[0088] A223. When the avoidance number of the candidate position is equal to n, the display device uses the candidate position as the first position and stops the following steps. The avoidance number of the candidate position refers to the number of windows that can not block the first window among the n first windows when the floating window is displayed at the candidate position.

[0089] A224. When the avoidance number of the candidate position is less than n, the display device records the avoidance number of the candidate position. After the display device determines the avoidance number of all candidate positions of the target window in a preset order, the target window is removed from the first window that is blocked by the floating window, and the above steps are repeated, that is, returning to step A221, until the first window that is blocked by the floating window is empty.

[0090] Specifically, the above preset order can be set according to actual conditions without any special limitation. For example, a candidate position is determined in order from left to right and from bottom to top to determine the number of avoidances. Alternatively, a candidate position is determined in order from right to left and from bottom to top to determine the number of avoidances.

[0091] A225. The display device uses the candidate position with the largest avoidance number among the recorded avoidance numbers as the first position.

[0092] When there are multiple candidate positions with the largest number of avoidances, the display device can determine a candidate position from the multiple candidate positions as the first position. There are many methods for determination, for example, the display device randomly selects a candidate position from multiple candidate positions as the first position. Alternatively, the display device traverses the candidate positions in order from left to right and from bottom to top, and determines a candidate position as the first position (i.e., the candidate position at the bottom left of the display screen is selected), or the display device traverses the candidate positions in order from right to left and from bottom to top, and determines a candidate position as the first position (i.e., the candidate position at the bottom right of the display screen is selected).

[0093] Optionally, there is an avoidance priority between the above-mentioned n first windows, and the avoidance priority of the first window can be set according to actual conditions, and there is no special limitation on this. For example, the avoidance priority of the first window can be determined according to its importance to the user. The first window with high importance to the user has a high avoidance priority. On the contrary, the avoidance priority is low. For example, when application A and application B are displayed on the screen, application B is the background system prompt information, and application A is the focus object, the prompt information needs to be notified to the user in a timely manner, then the avoidance priority of the window corresponding to application A is lower than the avoidance priority of the window of the above-mentioned application B.

[0094] For another example, the user can customize the avoidance priorities of the n first windows and set the avoidance priorities as needed to adapt to the avoidance needs of different users and ensure that key information that the user wants to know can be known in a timely manner.

[0095] Further optionally, the multiple windows displayed on the display device may display, in addition to the n first windows with avoidance priorities, other windows without avoidance priorities.

[0096] In a possible implementation, when there is an avoidance priority between the n first windows, in step 202, when the display device determines the first position of the floating window, specifically includes the following steps:

[0097] B221. When the window that is obstructed by the floating window among n first windows is a first window, the display device determines at least one candidate position corresponding to the first window. When the floating window is displayed at at least one candidate position, it at least does not obstruct the first window and windows with an avoidance priority higher than that of the first window.

[0098] Specifically, for each candidate position of the first window, when the floating window is displayed at a candidate position, the floating window at least does not cover the first window and windows with a higher avoidance priority than the first window.

[0099] When the floating window is displayed at a candidate position, if it will block a window with a higher avoidance priority than the first window, the display device will remove the candidate position to ensure that key information of the window with a higher avoidance priority can be known to the user.

[0100] For the specific description of determining the candidate position of the first window, reference may be made to the related description of the above step A222, which will not be repeated here.

[0101] Exemplarily, when determining whether a candidate position will cause a floating window to block a window with a higher avoidance priority, the display device can establish a priority table based on the avoidance priority between the first windows. In the priority table, the first window with a higher avoidance priority is arranged in front, and the first window with a lower avoidance priority is arranged in the back. Referring to Table 1 below, taking the first window 1 to the first window 6 as an example, it can be seen that the first window 1 has the highest avoidance priority, while the first window 6 has the lowest avoidance priority.

[0102] Table 1

[0103]

[0104]

[0105] Based on the priority table, the display device can determine whether a candidate position will cause the floating window to block the window with a higher avoidance priority. For example, when determining the candidate position of the first window 2, the display device can know through the lookup table 1 that it needs to determine whether the floating window will block the first window 1, the first window 5 and the first window 3 when displayed at the candidate position.

[0106] Exemplarily, each first window may be assigned an avoidance priority number, where the smaller the number, the higher the avoidance priority. A priority table is obtained in this way, see Table 2 below.

[0107] Table 2

[0108] Form Priority number First form 1 1 First Form 2 4 First form 3 3 First Form 4 5 First Form 5 2 First Form 6 6

[0109] As another example, each first window may be assigned an avoidance priority number. The larger the number, the higher the avoidance priority. A priority table is obtained in this way, see Table 3 below.

[0110] Table 3

[0111] Form Priority number First form 1 6 First Form 2 3 First form 3 4 First Form 4 2 First Form 5 5 First Form 6 1

[0112] B222. The display device determines a candidate position with the largest avoidance number among at least one candidate position as the first position, where the avoidance number of the candidate position is the number of windows that can be displayed at the candidate position without blocking the first windows among the n first windows.

[0113] Specifically, the avoidance number of the candidate position refers to the number of windows that will not be blocked by the floating window among the n first windows when the floating window is displayed at the candidate position.

[0114] In a possible implementation, when there is an avoidance priority between the n first windows, in step 202, when the display device determines the first position of the floating window, specifically includes the following steps:

[0115] C221. When the number of windows that are blocked by the n first windows and the floating window is greater than or equal to two first windows, the display device determines at least one candidate position corresponding to each blocked first window.

[0116] Among them, when the floating window is displayed at at least one candidate position, it at least does not block the blocked first window and the windows with a higher avoidance priority than the blocked first window. In other words, for each candidate position of the first window, when the floating window is displayed at a candidate position, the floating window at least does not block the first window and the windows with a higher avoidance priority than the first window.

[0117] Specifically, the specific description of the display device determining the candidate position of the shielding window can refer to the relevant description of the above step A222, which will not be repeated here. Alternatively, it can refer to the description of the following steps D221 to D223, or refer to the description of the following steps E221 to E223.

[0118] C222. The display device determines a candidate position with the largest avoidance number as the first position, where the avoidance number of the candidate position is the number of windows that can be displayed at the candidate position without blocking the n first windows.

[0119] Specifically, for a detailed description of the method by which the display device determines the first position from the candidate positions, reference may be made to the description of step A223 to step A225, which will not be repeated here.

[0120] In a possible implementation, when the number of windows that are blocked by the n first windows and the floating window is greater than or equal to two first windows, and there is an avoidance priority between the n first windows, in step 202, when the display device determines the first position of the floating window, specifically includes the following steps:

[0121] D221. The display device determines a window from among the n first windows and the floating window that are blocked by each other as a second window.

[0122] Specifically, there may be many methods for the display device to determine the second window, refer to the description of step A221.

[0123] D222. The display device determines at least one candidate position for the second window, where the at least one candidate position does not block the second window and the floating window can be fully displayed at the candidate position.

[0124] Specifically, for a specific description of how the display device determines the candidate position of the second window, reference may be made to the related description of the above step A222, which will not be repeated here.

[0125] D223. When a window with a higher avoidance priority than the second window is blocked by a floating window displayed at a candidate position, the display device removes the candidate position from at least one candidate position.

[0126] Specifically, the specific method by which the display device determines whether the candidate position will cause the floating window to block the window with a higher avoidance priority can be referred to the relevant description of step B221 and will not be repeated here.

[0127] D224. When the avoidance number of the candidate position is equal to n, the display device takes the candidate position as the first position and stops executing the following steps; the avoidance number of the candidate position is the number of windows that can not block the first window among the n first windows when the floating window is displayed at the candidate position.

[0128] D225. When the avoidance quantity of the candidate position is less than n, the display device records the avoidance quantity of the candidate position.

[0129] The display device repeatedly executes step D224 and step D225 until the avoidance quantity of all candidate positions in the second window is determined. The method for selecting the candidate position by the display device can refer to the relevant description of step A224, which will not be repeated here.

[0130] D226. The display device removes the second window from the windows that are blocked by the floating window and repeats the above steps until the windows that are blocked by the floating window are empty.

[0131] D227. The display device uses the candidate position with the largest avoidance number among the recorded avoidance numbers as the first position.

[0132] In another possible implementation, when the number of windows that are blocked by the n first windows and the floating window is greater than or equal to two first windows, and there is an avoidance priority between the n first windows, in step 202, when the display device determines the first position of the floating window, specifically includes the following steps:

[0133] E221. The display device determines a window with the highest avoidance priority from among the n windows that are blocked by the first window and the floating window as the second window.

[0134] Specifically, there are many ways for the display device to determine the second window. The method can be based on the priority table introduced in step B221, that is, the display device establishes a priority table based on the windows that are blocked by the floating window, and then determines the window with the highest priority from the priority table as the second window. Alternatively, the display device establishes an ordered set based on the windows that are blocked by the floating window, and then determines the window arranged in the front as the second window from the ordered set. For details, please refer to the following about Figure 3 Related description.

[0135] E222. The display device determines at least one candidate position for the second window, where the at least one candidate position does not block the second window and the floating window can be fully displayed at the candidate position.

[0136] Specifically, for a specific description of how the display device determines the candidate position of the second window, reference may be made to the related description of the above step A222, which will not be repeated here.

[0137] E223. When a window with a higher avoidance priority than the second window is blocked by a floating window displayed at a candidate position, the display device removes the candidate position from at least one candidate position.

[0138] Specifically, the specific method for the display device to determine whether the candidate position will cause the floating window to block the window with a higher avoidance priority can refer to the relevant description of step B221, which will not be repeated here. Alternatively, the display device determines whether it will block based on the ordered set described below, and specifically refers to the following description of Figure 3 Related description.

[0139] E224. When the avoidance number of the candidate position is equal to n, the display device takes the candidate position as the first position and stops executing the following steps; the avoidance number of the candidate position is the number of windows that can be displayed at the candidate position without blocking the first window among the n first windows.

[0140] E225. When the avoidance quantity of the candidate position is less than n, the display device records the avoidance quantity of the candidate position.

[0141] The display device repeatedly executes step E224 and step E225 until the avoidance quantity of all candidate positions in the second window is determined. The method for selecting the candidate position by the display device can refer to the relevant description of step A224, which will not be repeated here.

[0142] E226. The display device removes the second window from the windows that are blocked by the floating window and repeats the above steps until the windows that are blocked by the floating window are empty.

[0143] E227. The display device uses the candidate position with the largest avoidance number among the recorded avoidance numbers as the first position.

[0144] It can be seen that the method for determining the first position shown in steps E221 to E227, in which the display device performs polling processing according to the avoidance priority, can not only determine the first position, but also reduce the amount of calculation required to determine the first position, thereby increasing the speed of determining the first position.

[0145] In the above steps D225 and E225, when the avoidance number of the candidate position is less than n, if the avoidance number of the candidate position is inconsistent with the avoidance number of the recorded candidate position, the display device records the avoidance number of the candidate position. On the contrary, when the avoidance number of the candidate position is consistent with the avoidance number of the recorded candidate position, the display device does not record the avoidance number of the candidate position. This is conducive to reducing the amount of data of the avoidance number recorded by the display device, thereby increasing the amount of calculation for the subsequent display device to determine the first position according to the avoidance number, and increasing the speed of the display device to determine the first position.

[0146] In the above steps D225 and E225, when the avoidance number of the candidate position is less than n, the avoidance number of the candidate position is consistent with the avoidance number of the recorded candidate position, and the avoidance priority of the window corresponding to the candidate position is not lower than the avoidance priority of the window corresponding to the recorded candidate position, the display device records the avoidance number of the candidate position. On the contrary, when the avoidance number of the candidate position is consistent with the avoidance number of the recorded candidate position, and the avoidance priority of the window corresponding to the candidate position is lower than the avoidance priority of the window corresponding to the recorded candidate position, the display device does not record the avoidance number of the candidate position. This is conducive to reducing the amount of data of the avoidance number recorded by the display device, thereby increasing the amount of calculation for the subsequent display device to determine the first position according to the avoidance number, and increasing the speed at which the display device determines the first position.

[0147] In the above steps C222, D227 and E227, when there are multiple candidate positions with the largest avoidance number, the display device selects the candidate position corresponding to the window with the highest avoidance priority among the multiple candidate positions with the largest avoidance number as the first position.

[0148] For example, assuming that the first window includes window A and window B, the avoidance priority of window B is higher than that of window A. The candidate positions with the largest avoidance quantity are position a and position b, respectively, where position a is obtained based on window A, and position b is obtained based on window B. When the avoidance quantities of position a and position b are the same, since the avoidance priority of window B is higher, the display device uses position b as the first position.

[0149] In one possible embodiment, in order to facilitate the management of the first window on the display screen, the display device can add the first window to an ordered set in the order of avoidance priority, and the arrangement principle of the elements in the ordered set is: the first window with a high avoidance priority is in front, and the first window with a low avoidance priority is in the back. For example, for the first windows A1, A2, the first windows B1 and B2, the ordered set is {A1, B2, B1, A2}, and it can be seen that the first window A1 has the highest avoidance priority, while the first window A2 has the lowest avoidance priority. Based on the ordered set, in step E221, the display device can easily and quickly determine the second window, and in step E223, the display device can quickly determine a window with an avoidance priority higher than the avoidance priority of the second window.

[0150] In order to better illustrate the ordered set, the following is a specific description taking steps E221 to E227 as an example:

[0151] refer to Figure 3 , Figure 31 is a specific flow chart of a display method provided by an embodiment of the present application. In this embodiment, the display device establishes an ordered set based on the first window on the display screen, and the ordered set changes in real time as the display content changes. Specifically:

[0152] When the floating window on the display device meets the preset conditions, for example, there is a new floating window to be displayed, in this embodiment, taking a newly appeared floating window as an example, assuming that the display position of the floating window is i (the floating window is not actually displayed), the first window displayed on the display device at the current moment is formed into an ordered set.

[0153] The display device determines whether the ordered set is empty. If the ordered set is empty, the display device keeps the display position of the floating window at i, that is, the display device displays the floating window at the display position i.

[0154] When the ordered set is not empty, the display device polls the windows in the ordered set according to the avoidance priority, and takes out a first window in the ordered set as the polled window X according to the avoidance priority each time.

[0155] The display device determines whether the polled window X is blocked by the floating window. When the window X is not blocked, the display device continues to poll the next window.

[0156] When the window X is blocked, the display device determines at least one candidate position corresponding to the window X based on the existing display position i of the floating window. Exemplarily, when the window X does not have any candidate position, the display device stops calculating the candidate position of the window X and returns to polling the next window in the ordered set.

[0157] For at least one candidate position of window X, when the floating window is displayed at a candidate position, it will block the window in the ordered set with a higher avoidance priority than window X, and the display device removes the candidate position. The display device judges all candidate positions of window X, that is, polls the candidate positions, until all candidate positions of window X are not blocked by the first window in the ordered set with a higher avoidance priority than window X.

[0158] When determining whether the candidate position of window X will cause a floating window to be displayed at the candidate position, if a window with a higher avoidance priority than window X is blocked, the display device may make a determination based on the avoidance priority order in the ordered set.

[0159] For each candidate position of the window X, the display device first counts the avoidance number of the candidate position, and then determines whether the candidate position can avoid all elements of the ordered set. If all elements in the ordered set can be avoided at the same time, the display device terminates the calculation and takes the candidate position as the first position. The display device displays the floating window at the first position to complete the automatic avoidance.

[0160] If the candidate position cannot avoid all elements of the ordered set, the display device records the avoidance quantity of the candidate position and performs the next window polling of the ordered set.

[0161] After the polling is completed, the display device selects the candidate position with the largest number of avoidances from the recorded avoidance numbers as the first position. When there are multiple candidate positions with the largest number of avoidances, the display device selects the candidate position corresponding to the window with the highest avoidance priority from the multiple candidate positions as the first position. The display device displays the floating window in the first position to complete the automatic avoidance.

[0162] The embodiment of the present application performs a polling avoidance operation on the display range of the floating window based on the avoidance priority of the first window to find the most suitable avoidance position that can display the most key information.

[0163] In the embodiment of the present application, a display method is also provided, referring to Figure 4 , Figure 4 4 is a flow chart of another display method provided in an embodiment of the present application. The display method 400 includes the following steps:

[0164] 401. A display device displays multiple windows, where the multiple windows include a floating window and n first windows.

[0165] Wherein, n is an integer greater than or equal to 2, and the first window is a non-floating window. In this embodiment, the description of the first window can refer to the above related description, and will not be repeated here.

[0166] 402. When n first windows are updated, the display device determines a first position of a floating window.

[0167] The updating of the n first windows includes that at least one window among the n first windows is replaced and / or the total number of windows is increased.

[0168] Specifically, the updating of the n first windows may be that at least one of the n first windows is replaced, that is, as the display content of the display screen changes, part or all of the first windows are replaced. At this time, the number of windows of the updated plurality of first windows is still n.

[0169] The replacement of the first window should be understood as the replacement of the first window from window A to window B, and the display contents and display positions of window A and window B are different. When the display position of the first window changes, the floating window may block the new first window, so it is necessary to trigger the display device to execute the method of the embodiment of the present application to determine the first position of the floating window.

[0170] The replacement of the first window can also be understood as the change in the display area of ​​the first window (increase or decrease), that is, the first window changes from window a1 to window a2, and both window a1 and window a2 are window A. The display content of the window remains unchanged, but the display area of ​​window a1 and window a2 is different. When the display area of ​​the first window changes, the floating window may block the new first window (i.e., window a2), so it is necessary to trigger the display device to execute the method of the embodiment of the present application to determine the first position of the floating window.

[0171] The updating of n first windows may be an increase in the total number of windows of the first windows, that is, a new first window is added. For example, if a new first window is added, the number of first windows changes from n to n+1. At this time, the number of windows of the updated multiple first windows changes from n to n+1.

[0172] The updating of the n first windows may also be that at least one of the n first windows is replaced and the total number of the first windows increases, that is, there is a situation where the first window is replaced and a new first window is added at the same time.

[0173] 403. The display device displays a floating window at a first position, and there is no obstruction between the floating window and at least two of the updated plurality of first windows.

[0174] It can be seen that by utilizing the display method 400 of the embodiment of the present application, the floating window can automatically avoid the first window without the user manually operating the floating window, and the number of unblocked first windows can be increased to provide more key information of the window to the user, thereby improving the user's display device usage experience.

[0175] In addition, the method of the embodiment of the present application does not require the display properties of the first window to make obvious visual effects sacrifices, such as scaling, transparency changes, three-dimensional rotation, etc., and displays key information normally to the greatest extent while ensuring the screen visual effects. Moreover, in the embodiment of the present application, there is no restriction on the application scenarios of the floating window and the first window, and users are supported to start various windows as needed.

[0176] Exemplarily, the first position of the floating window determined in step 402 may be a new display position, and the first position of the floating window may also be a display position of the floating window before the n first windows are updated.

[0177] refer to Figure 5A, Figure 5A Schematic diagram of a first window and a floating window provided in an embodiment of the present application. Window D is the first window, that is, the application window that the user is operating. Window D and floating window C are not blocked, and floating window C maintains the original display properties and is displayed at the original display position.

[0178] Assume that a new window B appears, and window B is blocked by floating window C (not shown). Window B is a "screen recording" window, which belongs to the system prompt information. Assume that the avoidance priority of the system prompt information is higher than the avoidance priority of the focus area, that is, the avoidance priority of window B is higher than the avoidance priority of window D. The display device re-determines the display position of floating window C based on window B, referring to Figure 5B , Figure 5B is a schematic diagram of another first window and a floating window provided in an embodiment of the present application; the display device moves the floating window C downward to Figure 5B Display location shown.

[0179] Assume that the window the user is operating becomes the "native" window, that is, the first window is replaced. At this time, window D is blocked by floating window C (not shown). The display device re-determines the display position of floating window C based on window D. Figure 5C , Figure 5C is a schematic diagram of another first window and a floating window provided in an embodiment of the present application; the display device moves the floating window C to Figure 5C Display location shown.

[0180] In a possible implementation, the avoidance priority of the updated multiple first windows is higher than the priority of other windows in the multiple windows except the multiple first windows (that is, the multiple first windows are objects that need to be avoided), but the avoidance priority is not set between the multiple first windows, or the multiple windows are multiple first windows and the avoidance priority is not set between the multiple first windows, in step 402, the display device determines the first position of the floating window, specifically including the following steps:

[0181] A421. The display device determines a window as a target window from among the windows that are occluded by the multiple updated first windows and the floating window.

[0182] A422. The display device determines at least one candidate position corresponding to the target window, and when the floating window is displayed at the at least one candidate position of the target window, it at least does not cover the target window.

[0183] A423. When the avoidance number of the candidate position is equal to m, the display device uses the candidate position as the first position and stops the following steps. The avoidance number of the candidate position refers to the number of windows that can not block the first window among the m first windows when the floating window is displayed at the candidate position. Wherein, m is the total number of windows of the multiple first windows after update.

[0184] A424. When the avoidance number of the candidate position is less than m, the display device records the avoidance number of the candidate position. After the display device determines the avoidance number of all candidate positions of the target window in a preset order, the target window is removed from the first window that is blocked by the floating window, and the above steps are repeated, that is, returning to step A421, until the first window that is blocked by the floating window is empty.

[0185] A425. The display device determines a candidate position with the largest avoidance number among the recorded avoidance numbers as the first position.

[0186] For the specific description of steps A421 to A425, please refer to the relevant description of steps A221 to A225, which will not be repeated here.

[0187] In a possible implementation, there is an avoidance priority between the first windows. For the description of the avoidance priority, reference can be made to the above description, which will not be repeated. The above first windows refer to n first windows, or multiple first windows after update.

[0188] In a possible implementation, when the updated first windows have an avoidance priority, in step 402, the display device determines the first position of the floating window, specifically including the following steps:

[0189] B421. When the window that is blocked by the floating window among the updated multiple first windows is a first window, the display device determines at least one candidate position corresponding to the blocked first window. When the floating window is displayed at at least one candidate position, it at least does not block the first window and windows with a higher avoidance priority than the first window.

[0190] Specifically, when the window that is blocked by the floating window is one of the updated multiple first windows, the display device determines at least one candidate position corresponding to the blocked first window. When there is no available candidate position for the blocked first window, the display device stops determining the first position.

[0191] B422. The display device determines a candidate position with the largest avoidance number among at least one candidate position as the first position. The avoidance number of the candidate position is the number of windows that can be displayed without blocking the updated multiple first windows when the floating window is displayed at the candidate position.

[0192] For the specific description of step B421 to step B422, please refer to the relevant description of step B221 to step B222, which will not be repeated here.

[0193] In a possible implementation, when the updated first windows have an avoidance priority, in step 402, the display device determines the first position of the floating window, specifically including the following steps:

[0194] C421. When there are more than or equal to two windows that are blocked by the updated multiple first windows and the floating window, the display device determines at least one candidate position corresponding to each blocked first window. When the floating window is displayed at at least one candidate position, it does not block at least the blocked first window and the window with a higher avoidance priority than the blocked first window.

[0195] C422. The display device determines a candidate position with the largest avoidance number as the first position. The avoidance number of the candidate position is the number of first windows among the m first windows that can be displayed without blocking the floating window at the candidate position, where m is the total number of the updated first windows.

[0196] For the specific description of step C421 to step C422, please refer to the relevant description of step C221 to step C222, which will not be repeated here.

[0197] In a possible implementation, when the windows that are blocked by the multiple updated first windows and the floating window are greater than or equal to two first windows, and there is an avoidance priority between the updated first windows, in step 402, when the display device determines the first position of the floating window, specifically includes the following steps:

[0198] D421. The display device determines a window from among the updated plurality of first windows and the windows that are blocked by the floating window as a second window.

[0199] D422. The display device determines at least one candidate position for the second window, where the at least one candidate position does not block the second window and the floating window can be fully displayed at the candidate position.

[0200] D423. When a window with a higher avoidance priority than the second window is blocked by a floating window displayed at a candidate position, the display device removes the candidate position from at least one candidate position.

[0201] D424. When the avoidance number of the candidate position is equal to m, the display device uses the candidate position as the first position and stops executing the following steps. m is the total number of windows of the updated multiple first windows, and the avoidance number of the candidate position is the number of windows of the first windows among the m first windows that can be displayed without blocking the floating window at the candidate position.

[0202] D425. When the avoidance quantity of the candidate position is less than m, the display device records the avoidance quantity of the candidate position.

[0203] D426. The display device removes the second window from the windows that are blocked by the floating window and repeats the above steps until the windows that are blocked by the floating window are empty.

[0204] D427. The display device uses the candidate position with the largest avoidance number among the recorded avoidance numbers as the first position.

[0205] For the specific description of steps D421 to D427, please refer to the relevant description of steps D221 to D227, which will not be repeated here.

[0206] In a possible implementation, when the windows that are blocked by the multiple updated first windows and the floating window are greater than or equal to two first windows, and there is an avoidance priority between the updated first windows, in step 402, when the display device determines the first position of the floating window, specifically includes the following steps:

[0207] E421. The display device determines a window with the highest avoidance priority from among the updated plurality of first windows and the windows that are blocked by the floating window as the second window.

[0208] E422. The display device determines at least one candidate position for the second window, where the at least one candidate position does not block the second window and the floating window can be fully displayed at the candidate position.

[0209] E423. When a window with a higher avoidance priority than the second window is blocked by a floating window displayed at a candidate position, the display device removes the candidate position from at least one candidate position.

[0210] E424. When the avoidance number of the candidate position is equal to m, the display device uses the candidate position as the first position and stops executing the following steps. m is the total number of windows of the multiple first windows after update, and the avoidance number of the candidate position is the number of windows of the first window among the m first windows that can be displayed without blocking the floating window at the candidate position.

[0211] E425. When the avoidance quantity of the candidate position is less than m, the display device records the avoidance quantity of the candidate position.

[0212] E426. The display device removes the second window from the windows that are blocked by the floating window and repeats the above steps until the windows that are blocked by the floating window are empty.

[0213] E427. The display device uses the candidate position with the largest avoidance number among the recorded avoidance numbers as the first position.

[0214] For the specific description of steps E421 to E427, please refer to the relevant description of steps E221 to E227, which will not be repeated here.

[0215] In a possible implementation, in the above steps D425 and E425, when the avoidance number of the candidate position is less than m, if the avoidance number of the candidate position is inconsistent with the avoidance number of the recorded candidate position, the display device records the avoidance number of the candidate position.

[0216] In a possible implementation, in the above steps D425 and E425, when the avoidance number of the candidate position is less than m, if the avoidance number of the candidate position is consistent with the avoidance number of the recorded candidate position, and the avoidance priority of the window corresponding to the candidate position is not lower than the avoidance priority of the window corresponding to the recorded candidate position, the display device records the avoidance number of the candidate position. On the contrary, when the avoidance number of the candidate position is consistent with the avoidance number of the recorded candidate position, and the avoidance priority of the window corresponding to the candidate position is lower than the avoidance priority of the window corresponding to the recorded candidate position, the display device does not record the avoidance number of the candidate position.

[0217] In a possible implementation, in the above-mentioned steps C422, D427 and E427, when there are multiple candidate positions with the largest avoidance number, the display device selects the candidate position with the highest avoidance priority of the corresponding window among the multiple candidate positions with the largest avoidance number as the first position.

[0218] In a possible embodiment, in order to facilitate the management of the first window on the display screen, the display device can add the first window to an ordered set according to the avoidance priority order, and the arrangement principle of the elements in the ordered set is: the first window with a high avoidance priority is arranged in the front, and the first window with a low avoidance priority is arranged in the back. Based on the ordered set, the display device can easily and quickly determine the second window in step E421, and can quickly determine a window with an avoidance priority higher than the avoidance priority of the second window in step E423.

[0219] In order to better illustrate the ordered set, the following is a specific description taking steps E421 to E427 as an example:

[0220] refer to Figure 6 , Figure 6It is a specific flow chart of another display method provided in an embodiment of the present application.

[0221] In this embodiment, the display device establishes an ordered set based on the first window on the display screen, and the ordered set changes in real time as the displayed content changes. Specifically:

[0222] When the first window on the display device is updated, for example, a new first window appears. In this embodiment, a new first window is taken as an example. Assuming that the display position of the floating window is i, the display device forms an ordered set of the first windows displayed on the display device after the update.

[0223] The display device determines whether the ordered set is empty. If the ordered set is empty, the floating window maintains the display position i.

[0224] When the ordered set is not empty, the display device polls the windows in the ordered set according to the avoidance priority.

[0225] The display device determines whether the polled window X is blocked by the floating window. When the window X is not blocked, the display device continues to poll the next window.

[0226] When the window X is blocked, the display device determines at least one candidate position corresponding to the window X based on the existing display position i of the floating window. Exemplarily, when the window X does not have any candidate position, the display device stops calculating the candidate position of the window X and returns to polling the next window in the ordered set.

[0227] For at least one candidate position of window X, when the floating window is displayed at a candidate position, it will block the window in the ordered set with a higher avoidance priority than window X, and the display device removes the candidate position. The display device judges all candidate positions of window X, that is, polls the candidate positions, until all candidate positions of window X are not blocked by the first window in the ordered set with a higher avoidance priority than window X.

[0228] For each candidate position of the form X, the display device first counts the avoidance number of the candidate position, and then determines whether the candidate position can avoid all elements of the ordered set. If all elements in the ordered set can be avoided at the same time, the display device terminates the calculation, takes the candidate position as the first position, and displays the floating form at the first position, completing the automatic avoidance.

[0229] If the candidate position cannot avoid all elements of the ordered set, the display device records the avoidance quantity of the candidate position and performs the next window polling of the ordered set.

[0230] After the polling is completed, the display device selects the candidate position with the largest number of avoidances from the recorded avoidance numbers as the first position. When there are multiple candidate positions with the largest number of avoidances, the display device selects the candidate position corresponding to the window with the highest avoidance priority from the multiple candidate positions as the first position. The display device displays the floating window in the first position to complete the automatic avoidance.

[0231] The embodiment of the present application performs a polling avoidance operation on the display range of the floating window based on the avoidance priority of the first window to find the most suitable avoidance position that can display the most key information.

[0232] The device provided by this application is described below.

[0233] Figure 7 A schematic diagram of a possible display device provided in an embodiment of the present application. The display device can be used to implement the functions of any of the above method embodiments, and thus can also achieve the beneficial effects of any of the above method embodiments. In an embodiment of the present application, the display device can be an electronic device, or a module (such as a chip) used in an electronic device.

[0234] like Figure 7 As shown, the display device 700 includes a display module 701 and a determination module 702. The display device 700 is used to implement the above Figure 2 Alternatively, the display device 700 may include a method for implementing the above Figure 2 or Figure 4 Any functional or operational module or unit in the method embodiments shown in the specification may be implemented in whole or in part by software, hardware, firmware or any combination thereof.

[0235] For example, when the display device 700 is used to implement Figure 2 When the functions in the method embodiment shown are performed, the display module 701 is used to display multiple windows, and the multiple windows include n first windows, n is an integer greater than or equal to two, and the first window is a non-floating window. The determination module 702 is used to determine the first position of the floating window when the preset conditions are met. Among them, the determination module 702 is used to determine the candidate positions of the floating window (such as candidate position 1, candidate position 2, etc.), and after completing the calculation of all candidate positions, the optimal avoidance position, that is, the first position, is selected from all candidate positions. The display module 701 is also used to display the floating window at the first position, and there is no obstruction between the floating window and at least two of the n first windows. Among them, the display module 701 saves the display information of the floating window (relative screen position and display area size, etc.), and operates the floating window to be displayed at the first position.

[0236] In one possible embodiment, reference Figure 7The display device 700 also includes a management module 703, which is used to manage the first window. For example, the management module 703 manages the first window using a priority table or an ordered set according to the relative importance to the user. The order in the table or set corresponds to the importance of the regional information. For example, the front region in the table or set is more important.

[0237] The determination module 702 performs polling calculation based on the display position of the floating window and the first window managed by the management module 703. The calculated candidate positions are recorded by the determination module 702. After the polling is completed, the optimal avoidance position (first position) is selected from all recorded candidate positions. The determination module 702 then notifies the display module 701 to refresh the corresponding display information and display the floating window at the first position.

[0238] The display device 700 can automatically avoid multiple first windows at the same time, which can significantly improve the anti-information blocking capability of the display device 700.

[0239] As another example, when the display device 700 is used to implement Figure 4 When the functions in the method embodiment shown are performed, the display module 701 is used to display multiple windows, and the multiple windows include n first windows of the floating window, n is an integer greater than or equal to two, and the first window is a non-floating window. The determination module 702 is used to determine the first position of the floating window when the n first windows are updated, and the update includes at least one window in the n first windows being replaced and / or the total number of windows increasing. Among them, the determination module 702 is used to determine the candidate position of the floating window (such as candidate position 1, candidate position 2, etc.), and after completing the calculation of all candidate positions, the optimal avoidance position, that is, the first position, is selected from all candidate positions. The display module 701 is also used to display the floating window at the first position, and there is no occlusion between the floating window and at least two windows in the updated multiple first windows. Among them, the display module 701 saves the display information of the floating window (relative screen position and display area size, etc.), and operates the floating window to be displayed at the first position.

[0240] In one possible embodiment, reference Figure 7 The display device 700 further includes a management module 703, which is used to manage the first window, including n first windows or multiple first windows after update. Exemplarily, the management module 703 manages the first window using a priority table or an ordered set according to the relative importance of the user, and the order in the table or set corresponds to the importance of the area information. For example, the front area in the table or set is more important.

[0241] The present application also provides a display device, referring to Figure 8 , Figure 8800 is a schematic diagram of a display device provided by an embodiment of the present invention. The display device 800 includes a memory 801, a processor 802, a communication interface 804 and a bus 803. The memory 801, the processor 802 and the communication interface 804 are connected to each other through the bus 803.

[0242] The memory 801 may be a read-only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM). The memory 801 may store a program. When the program stored in the memory 801 is executed by the processor 802, the processor 802 and the communication interface 804 are used to execute the various steps of the display method of the embodiment of the present application.

[0243] The processor 802 can adopt a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), a graphics processing unit (GPU) or one or more integrated circuits to execute relevant programs to implement the functions required to be performed by the units in the display device of any application embodiment, or to execute the display method of any application embodiment.

[0244] The processor 802 may also be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the display method of the embodiment of the present application may be completed by an integrated logic circuit of hardware or software instructions in the processor 802. The above-mentioned processor 802 may also be a general-purpose processor, a digital signal processor (DigitalSignal Processing, DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (Field ProgrammableGate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the display method in conjunction with the embodiment of the present application may be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 801, and the processor 802 reads the information in the memory 801, and combines its hardware to complete the functions required to be performed by the units included in the display device of the embodiment of the present application, or executes the display method of the embodiment of the present application.

[0245] The communication interface 804 uses a transceiver device such as but not limited to a transceiver to implement communication between the display device 800 and other devices or a communication network.

[0246] The bus 803 may include a path for transmitting information between various components of the display device 800 (eg, the memory 801 , the processor 802 , and the communication interface 804 ).

[0247] In several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways.

[0248] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0249] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A display method, characterized in that: The method comprises: Displaying multiple windows, the multiple windows including n first windows, where n is an integer greater than or equal to 2, and the first windows are non-floating windows; When the preset conditions are met, the first position of the floating window is determined; The floating window is displayed at the first position, and there is no obstruction between the floating window and at least two of the n first windows.

2. The method according to claim 1, characterized in that The preset condition includes any one of the following: Add the floating window; The display position of the floating window is updated; or, The display area of ​​the floating window is updated.

3. The method according to claim 1 or 2, characterized in that: The n first windows have avoidance priorities.

4. The method according to claim 3, characterized in that The determining the first position of the floating window includes: When the window that is blocked by the n first windows and the floating window is one of the first windows, at least one candidate position corresponding to the first window is determined, and when the floating window is displayed at the at least one candidate position, at least the first window and windows with a higher avoidance priority than the first window are not blocked; A candidate position with the largest avoidance number among the at least one candidate position is determined as the first position, and the avoidance number of the candidate position is the number of windows that can not block the first windows among the n first windows when the floating window is displayed at the candidate position.

5. The method according to claim 3, characterized in that: The determining the first position of the floating window includes: When the number of windows that are blocked by the n first windows and the floating window is greater than or equal to two of the first windows, at least one candidate position corresponding to each blocked first window is determined; when the floating window is displayed at the at least one candidate position, at least the blocked first window and the window with a higher avoidance priority than the blocked first window are not blocked; The candidate position with the largest avoidance number is determined as the first position, and the avoidance number of the candidate position is the number of windows that can not cover the first windows among the n first windows when the floating window is displayed at the candidate position.

6. The method according to claim 3, characterized in that: When the number of windows that are blocked by the n first windows and the floating window is greater than or equal to two of the first windows, determining the first position of the floating window includes: Determine a window as a second window from among the n first windows and the windows that are blocked by the floating window; Determine at least one candidate position of the second window, where the at least one candidate position does not block the second window and the floating window can be fully displayed at the candidate position; When a window with a higher avoidance priority than the avoidance priority of the second window is blocked by the floating window displayed at a candidate position, removing the candidate position from the at least one candidate position; When the avoidance number of the candidate position is equal to n, the candidate position is used as the first position, and the following steps are stopped; the avoidance number of the candidate position is the number of windows that can not block the first window among the n first windows when the floating window is displayed at the candidate position; When the avoidance number of the candidate position is less than n, recording the avoidance number of the candidate position; Removing the second window from the windows that are blocked by the floating window and repeating the above steps until the windows that are blocked by the floating window are empty; The candidate position having the largest avoidance number among the recorded avoidance numbers is used as the first position.

7. The method according to claim 3, characterized in that When the number of windows that are blocked by the n first windows and the floating window is greater than or equal to two of the first windows, determining the first position of the floating window includes: Determine a window with the highest avoidance priority from among the n first windows and the suspended window that are blocked by the floating window as the second window; Determine at least one candidate position of the second window, where the at least one candidate position does not block the second window and the floating window can be fully displayed at the candidate position; When a window with a higher avoidance priority than the avoidance priority of the second window is blocked by the floating window displayed at a candidate position, removing the candidate position from the at least one candidate position; When the avoidance number of the candidate position is equal to n, the candidate position is used as the first position, and the following steps are stopped; the avoidance number of the candidate position is the number of windows that can not block the first window among the n first windows when the floating window is displayed at the candidate position; When the avoidance number of the candidate position is less than n, recording the avoidance number of the candidate position; Removing the second window from the windows that are blocked by the floating window and repeating the above steps until the windows that are blocked by the floating window are empty; The candidate position having the largest avoidance number among the recorded avoidance numbers is used as the first position.

8. The method according to claim 6 or 7, characterized in that: When the avoidance number of the candidate position is less than the n, if the avoidance number of the candidate position is inconsistent with the avoidance number of the recorded candidate position; or, the avoidance number of the candidate position is consistent with the avoidance number of the recorded candidate position, and the avoidance priority of the window corresponding to the candidate position is not lower than the avoidance priority of the window corresponding to the recorded candidate position, record the avoidance number of the candidate position.

9. The method according to any one of claims 5 to 8, characterized in that: When there are multiple candidate positions with the largest avoidance number, the candidate position corresponding to the window with the highest avoidance priority among the multiple candidate positions with the largest avoidance number is selected as the first position.

10. A display method, characterized in that: The method comprises: Displaying multiple windows, the multiple windows including a floating window and n first windows, wherein n is an integer greater than or equal to 2, and the first window is a non-floating window; When the n first windows are updated, determining the first position of the floating window, the updating including at least one window among the N first windows being replaced and / or the total number of windows increasing; The floating window is displayed at the first position, and there is no obstruction between the floating window and at least two windows among the updated plurality of first windows.

11. The method according to claim 10, characterized in that The first windows have avoidance priorities.

12. The method according to claim 11, characterized in that The determining the first position of the floating window includes: When the window that is blocked by the multiple updated first windows and the floating window is a first window, at least one candidate position corresponding to the blocked first window is determined, and when the floating window is displayed at the at least one candidate position, at least the first window and windows with a higher avoidance priority than the first window are not blocked; Determine a candidate position with the largest avoidance number among the at least one candidate position as the first position, and the avoidance number of the candidate position is the number of windows that can not block the first windows in the updated multiple first windows when the floating window is displayed at the candidate position.

13. The method according to claim 11, characterized in that The determining the first position of the floating window includes: When the number of windows that are blocked by the updated multiple first windows and the floating window is greater than or equal to two of the first windows, at least one candidate position corresponding to each blocked first window is determined; when the floating window is displayed at the at least one candidate position, at least the blocked first window and the window with a higher avoidance priority than the blocked first window are not blocked; The candidate position with the largest avoidance number is determined as the first position, and the avoidance number of the candidate position is the number of windows that can not cover the first windows in the updated multiple first windows when the floating window is displayed at the candidate position.

14. The method according to claim 13, characterized in that When there are multiple candidate positions with the largest avoidance number, the candidate position corresponding to the window with the highest avoidance priority among the multiple candidate positions with the largest avoidance number is selected as the first position.

15. A display device, characterized in that: It comprises a processor and a memory, wherein the processor and the memory are connected, wherein the memory is used to store a program, and the processor is used to call the program to execute the display method according to any one of claims 1 to 14.

Citation Information

Patent Citations

  • Suspension window displaying method and device

    CN102156615A

  • Program calling method and device and terminal equipment

    CN108595279A

  • Method for controlling small window of screen and related equipment

    CN110362373A

  • Window display method and related device

    CN111782102A

  • Display equipment and video chat window position self-adaptive adjustment method

    CN112399233A