Display method and device

By automatically determining the position of the suspended form in the display device, so that it and multiple non-suspended forms avoid obstruction, the problem of the information of the lower-level form in multi-form display is solved, and the user experience is improved.

CN120335739APending Publication Date: 2025-07-18HUAWEI TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310647147.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-31
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

In display devices, when multiple forms are displayed, the key information of the lower-level forms is easily blocked, resulting in a decline in user experience.

Method used

When the preset conditions are met, the position of the suspended form is automatically determined to avoid obstruction with multiple non-suspended forms, and automatic avoidance of the suspended form is achieved.

Benefits of technology

It increases the number of non-suspended forms that users can see, and improves the user experience of display devices without the need for manual operation of users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120335739A_ABST
    Figure CN120335739A_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

Technical Field

[0001] Embodiments of the present invention relate to the field of display devices, and in particular, to a display method and device. Background Art

[0002] As the size of the screen of display devices is getting 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 operations, multitasking, picture-in-picture, etc. However, in the above scenarios of multi-window display, the situation of window overlapping display may occur, and the key information of the lower-layer window is blocked. When a user wants to view the key information of the lower-layer window, the upper-layer window needs to be moved away first, resulting in a poor user experience in using the device. How to avoid the key information of the lower-layer window from being blocked is a technical problem that urgently needs to be solved in this field. Summary of the Invention

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

[0004] In a first aspect, a display method is provided. The display method can be applied to a display device or a chip in the display device. Specifically, the method includes the following steps: displaying a plurality of windows. The plurality of windows includes n first windows, where n is an integer greater than or equal to two, and the first windows are non-floating windows. When a preset condition is satisfied, 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.

[0005] It can be seen that in this solution, when the preset condition is satisfied, the first position of the floating window is determined, and the floating window is displayed at the first position, so that there is no occlusion between the floating window and at least two of the n first windows. Without the user manually operating the floating window, the floating window can automatically avoid the first window, and the number of non-occluded first windows can be increased to provide more key information of the windows to the user, improving the user experience in using the display device.

[0006] In a possible implementation manner 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.

[0007] When a floating window is about to newly appear on the display screen, the method of the embodiments of the present application is started to determine the display position of the floating window, that is, the first position.

[0008] 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 embodiments of the present application is started to re-determine the display position of the floating window, that is, the first position.

[0009] When the display area of the floating window is updated (becomes larger or smaller), the occlusion relationship between the changed floating window and the first window in the lower layer changes. At this time, the method of this embodiment of the present application is started to re-determine the display position of the floating window.

[0010] In a possible implementation manner of the first aspect, there is an avoidance priority among the n first windows. The avoidance priority of the first window can be set according to the actual situation and is not particularly limited. For example, the avoidance priority of the first window is set according to the level of importance to the user.

[0011] In a possible implementation manner of the first aspect, the above determination of the first position of the floating window specifically includes the following steps: When there is one first window among the n first windows that is occluded by the floating window, determine at least one candidate position corresponding to the first window. When the floating window is displayed at at least one candidate position, it does not occlude at least the first window and the windows with an avoidance priority higher than that of the first window. Determine the candidate position with the largest avoidance quantity among the at least one candidate position as the first position. The avoidance quantity of the above candidate position is the number of windows that the floating window can not occlude among the n first windows when it is displayed at the candidate position.

[0012] 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 occluded by the floating window, so that the user can smoothly obtain the key information carried by the first window with a higher avoidance priority.

[0013] In a possible implementation manner of the first aspect, the above determination of the first position of the floating window specifically includes the following steps: When there are two or more first windows among the n first windows that are occluded by the floating window, determine at least one candidate position corresponding to each occluded first window. When the floating window is displayed at at least one candidate position, it does not occlude at least the occluded first window and the windows with an avoidance priority higher than that of the occluded first window. Determine the candidate position with the largest avoidance quantity as the first position. The avoidance quantity of the above candidate position is the number of windows that the floating window can not occlude among the n first windows when it is displayed at the candidate position.

[0014] In a possible implementation manner of the first aspect, when there are two or more first windows among the n first windows that are occluded by the floating window, the above determination of the first position of the floating window specifically includes the following steps:

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

[0016] It can be seen that this solution provides another possible method for determining the first position of the floating form. In this method, by polling each candidate position, when the avoidance count of a candidate position is equal to n, taking this candidate position as the first position and stopping the subsequent steps can, to a certain extent, reduce the computational complexity of determining the first position, improve the speed of determining the first position, and thus enhance the user experience of the display device.

[0017] In a possible implementation manner of the first aspect, when the forms among the n first forms that are blocked by the floating form are two or more first forms, the determination of the first position of the floating form specifically includes the following steps:

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

[0019] It can be seen that this solution provides another possible method for determining the first position of the floating window. In this method, by polling each candidate position according to the avoidance priority, when the avoidance count of the candidate position is equal to n, the candidate position is used as the first position and subsequent steps are stopped, which can further reduce the computational amount for determining the first position, improve the speed of determining the first position, and thus enhance the user experience of the display device.

[0020] In a possible implementation manner of the first aspect, when the avoidance count of the candidate position is less than n, if the avoidance count of the candidate position is inconsistent with the recorded avoidance count of the candidate position; or, when the avoidance count of the candidate position is consistent with the recorded avoidance count of the 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 count of the candidate position.

[0021] On the contrary, when the avoidance count of the candidate position is less than n, and the avoidance count of the candidate position is consistent with the recorded avoidance count of the candidate position, the avoidance count of this candidate position is not recorded. Or, when the avoidance count of the candidate position is less than n, the avoidance count of the candidate position is consistent with the recorded avoidance count of the 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, then the avoidance count of this candidate position is not recorded. This is beneficial to reducing the data volume of the recorded avoidance counts, and thus improving the computational amount for determining the first position based on the avoidance counts subsequently, and enhancing the speed of determining the first position.

[0022] In a possible implementation manner of the first aspect, when there are multiple candidate positions with the largest avoidance count, select the candidate position corresponding to the window with the highest avoidance priority among the multiple candidate positions with the largest avoidance count as the first position.

[0023] It can be seen that when there are multiple candidate positions with the largest avoidance count, 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 smoothly obtain the key information carried by the first window with a higher avoidance priority.

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

[0025] It can be seen that, by using this solution, when n first forms are updated, the first position of the floating form is determined so that the floating form does not obscure at least two of the updated first forms. Without the user manually operating the floating form, the floating form can automatically avoid the first form, and the number of first forms that are not obscured can be increased to provide more key information of the forms to the user and improve the user experience of using the display device.

[0026] In a possible implementation manner of the second aspect, there is an avoidance priority among the first forms.

[0027] In a possible implementation manner of the second aspect, the above determination of the first position of the floating form specifically includes the following steps: When there is one first form among the updated first forms that is obscured by the floating form, determine at least one candidate position corresponding to the obscured first form. When the floating form is displayed at at least one candidate position, it does not obscure at least the first form and the forms with an avoidance priority higher than that of the first form. Determine the candidate position with the largest avoidance number among the at least one candidate position as the first position. The avoidance number of a candidate position is the number of forms that the floating form can not obscure among the updated first forms when it is displayed at this candidate position.

[0028] In a possible implementation manner of the second aspect, the above determination of the first position of the floating form specifically includes the following steps: When there are two or more first forms among the updated first forms that are obscured by the floating form, determine at least one candidate position corresponding to each obscured first form. When the floating form is displayed at at least one candidate position, it does not obscure at least the obscured first form and the forms with an avoidance priority higher than that of the obscured first form. Determine the candidate position with the largest avoidance number as the first position. The avoidance number of the above candidate position is the number of forms that the floating form can not obscure among the updated first forms when it is displayed at this candidate position.

[0029] In a possible implementation manner of the second aspect, when there are multiple candidate positions with the largest avoidance number, select the candidate position corresponding to the form with the highest avoidance priority among the multiple candidate positions with the largest avoidance number as the first position.

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

[0031] The fourth aspect further provides a display device, including a processor and a memory. The processor is connected to the memory. The memory is used for storing program codes, and the processor is used for calling the program codes to execute the display method as described in the first aspect or the second aspect above.

[0032] The fifth aspect further provides a readable storage medium storing a program, and the program is executed by a processor to implement the display method as described in the first aspect or the second aspect above.

[0033] The sixth aspect further provides a program product including instructions. When the program product runs on a device, the device is enabled to execute the display method as described in the first aspect or the second aspect above.

[0034] The seventh aspect further provides a chip, which includes a processor and a data interface. The processor reads instructions stored on a memory through the data interface and executes the display method as described in the first aspect or the second aspect above.

[0035] Optionally, as an implementation manner, the chip may further include a memory storing instructions, and the processor is used for executing the instructions stored on the memory. When the instructions are executed, the processor is used for executing the display method as described in the first aspect or the second aspect above. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The following introduces the drawings used in the embodiments of the present application.

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

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

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

[0040] Figure 2 is a schematic flowchart of a display method provided by an embodiment of the present application;

[0041] Figure 3 is a specific flowchart of a display method provided by an embodiment of the present application;

[0042] Figure 4 is a schematic flowchart of another display method provided by an embodiment of the present application;

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

[0044] Figure 5B It is a schematic diagram of another first form and floating form provided by an embodiment of the present application;

[0045] Figure 5C It is a schematic diagram of another first form and floating form provided by an embodiment of the present application;

[0046] Figure 6 It is a specific process schematic diagram of another display method provided by an embodiment of the present application;

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

[0048] Figure 8 It is a schematic structural diagram of a display device provided by an embodiment of the present invention. Detailed implementation manners

[0049] Next, the technical solutions in the present application will be described with reference to the accompanying drawings.

[0050] Since the applications involved in the embodiments of the present application, for the sake of easy understanding, the related terms and other related concepts involved in the embodiments of the present application will be introduced first below.

[0051] In the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Exactly speaking, using words such as "exemplary" or "for example" aims to present related concepts in a specific manner.

[0052] "At least one" mentioned in the embodiments of the present application means one or more, and "a plurality" means two or more. "At least one (item)" or its similar expression means any combination of these items, including any combination of single item (item) or plural items (items). For example, at least one (item) of a, b, or c can represent: 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 associated objects and means that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. Among them, A and B can be singular or plural. The character " / " generally represents that the associated objects before and after are an "or" relationship. And the serial numbers of the steps in the embodiments of the present application (such as step S1, step S21, etc.) are only used to distinguish different steps and do not limit the order of execution between steps.

[0053] Also, unless otherwise specified, in the embodiments of the present application, ordinal numbers such as "first" and "second" are used to distinguish multiple objects, and are not used to limit the order, time sequence, 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 indicate differences in the structure, importance, etc. of the first device and the second device. In some embodiments, the first device and the second device may also be the same device.

[0054] As used in the above embodiments, depending on the context, the term "when..." can be interpreted to mean "if...", or "after...", or "in response to determining...", or "in response to detecting...". The above are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the concept and principle of the present application shall be included within the protection scope of the present application.

[0055] As the size of the screen of the display device is getting larger and larger, there are scenarios where multiple forms (or controls) are superimposed on the screen for parallel processing of transactions, such as multi-form operations, multi-tasks, picture-in-picture, etc. For a display device that supports touch, the user can manually drag the upper form to avoid blocking the lower form to obtain the key information of the lower form. However, the efficiency of manual operation processing is low, and the user experience of obtaining information is poor.

[0056] Therefore, the embodiments of the present application provide a display method. The floating form can automatically avoid non-floating forms for display, and the floating form can simultaneously avoid at least two non-floating forms, increasing the number of forms that are not blocked, so as to provide more display information of forms to the user.

[0057] The display method of the embodiments of the present application is applicable to scenarios with upper and lower layer displays, such as multi-form operations, multi-tasks, picture-in-picture, etc. In other words, the embodiments of the present application can be applied to scenarios where floating forms and non-floating forms coexist.

[0058] A floating form is a window that floats and is movable on a non-floating form. The floating form can be used to display information, such as application information or system prompt information, etc.

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

[0060] The above non-floating window can be the display window corresponding to the focused area, that is, the window of the area that the user is currently using or operating. At this time, the user does not want this display window to be blocked, and this display window is used as the object that the floating window needs to avoid. Refer to Figure 1A , Figure 1A is a schematic diagram of a non-floating window provided by an embodiment of the present application; Window A is the display window corresponding to the Changlian application and is an example of a non-floating window. Window A is the display window corresponding to the current focused area.

[0061] The above non-floating window can also be the display window corresponding to the area that has no focus ability but is expected to be perceived by the user; such non-floating windows can be set according to actual situations. For example, if Application E actively reports to the system that it is expected to be avoided by the floating window, then the display window of the application, such as the display window where the application logo and the name of the application are located, is used as a non-floating window. Or, the user, according to actual needs, uses the display window where the application logo and the name of Application F are located as a non-floating window. Refer to 1A, Window B of "Screen recording in progress" 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 ability but is expected to be perceived by the user and can be used as the object to be avoided by the floating window.

[0062] Refer to Figure 1B , Figure 1B is a schematic diagram of a floating window provided by an embodiment of the present application; Window C is the floating window, and the displayed content can be set according to actual situations.

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

[0064] Refer to Figure 1B , where Window A and Window B are blocked by the floating window C. Refer to Figure 1C , Figure 1C is a schematic diagram of the effect of a display method provided by 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 at 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 to obtain the key information carried by Window A and Window B.

[0065] The following specifically describes a display method provided by an embodiment of the present application. Refer to Figure 2 , Figure 2 is a flowchart of a display method provided by an embodiment of the present application. The display method 200 includes the following steps:

[0066] 201. The display device displays multiple forms, and the multiple forms include n first forms.

[0067] Among them, n is an integer greater than or equal to two, and the first form is a non-floating form. The first form is the target avoidance object, that is, the form that the user expects not to be blocked. The specific type and quantity of the first form can be set according to the actual situation.

[0068] 202. When the display device meets the preset conditions, determine the first position of the floating form.

[0069] Specifically, the preset conditions can be set according to the actual situation and are not particularly limited here. When the preset conditions are met, the display device needs to determine the display position of the floating form, that is, the first position.

[0070] 203. The display device displays the floating form at the first position, and there is no occlusion between the floating form and at least two of the n first forms.

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

[0072] It can be seen that by using the display method 200 of the embodiment of the present application, the floating form can automatically avoid the first form without the user manually operating the floating form, and the number of the first forms that are not blocked can be increased to provide more key information of the forms to the user, improving the user experience of using the display device.

[0073] In addition, the method of the embodiment of the present application does not require obvious visual effect sacrifices for the display attributes of the first form, such as zooming, transparency change, three-dimensional rotation, etc., and can display the key information normally to the greatest extent while ensuring the screen visual effect. Moreover, in the embodiment of the present application, there is no restriction on the application scenarios of the floating form and the first form, and it supports the user to start various forms as needed.

[0074] The above preset conditions include any one of the following: a new floating form is added; the display position of the floating form is updated; or, the display area of the floating form is updated.

[0075] Specifically, when the floating form 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 form, that is, the first position, so that the floating form does not block at least two of the n first forms.

[0076] When the display position of the displayed floating window is updated, for example, when 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 does not block at least two of the n first windows.

[0077] When the display area of the displayed floating window is updated (becomes larger or smaller), the occlusion relationship between the changed floating window and the first window in the lower layer changes. 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.

[0078] 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 changed floating window and the first window in the lower layer changes. 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.

[0079] Further, the above preset conditions also need to be satisfied simultaneously: there is a first window that is occluded by the floating window, that is, when a first window is occluded 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. Or, when the display position and / or display area of the displayed floating window changes and there is a first window occluded by the floating window, the display device starts the method of the embodiment of the present application to re-determine the display position of the floating window.

[0080] When there are two or more 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.

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

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

[0083] Specifically, the preset rules can be set according to the actual situation. For example, in the first form that is displayed on the display screen and is blocked by the floating form, randomly traverse the forms, or traverse the forms in the order from left to right and from bottom to top, or traverse the forms in the order from right to left and from bottom to top.

[0084] A222. The display device determines at least one candidate position corresponding to the target form. When the floating form is displayed at at least one candidate position of the target form, it does not block the target form at least.

[0085] Specifically, for each candidate position of the target form, when the floating form is displayed at a candidate position, the floating form does not block the target form at least.

[0086] There are many methods to determine the candidate positions for the floating form to avoid the blocked target form. For example, the positions above, below, to the left, and to the right of the target form can be used as the pending candidate positions. When the floating form can be completely displayed at the above pending candidate positions, the display device uses the pending candidate position as the candidate position. Another example is that after the floating form is scaled, translated, rotated, or the like by at least one operation, a position where the floating form can avoid the blocked target form and the floating form can be completely displayed is obtained, and the display device determines this position as the candidate position of the target form.

[0087] A223. When the number of avoidances of the above candidate position is equal to n, the display device uses this candidate position as the first position and stops the following steps. The number of avoidances of the candidate position refers to the number of forms of the first form among n first forms that the floating form can avoid blocking when it is displayed at this candidate position.

[0088] A224. When the number of avoidances of the above candidate position is less than n, the display device records the number of avoidances of the candidate position. After the display device judges the number of avoidances of all candidate positions of the target form in the preset order, it removes the target form from the first forms that are blocked by the floating form and repeats the above steps, that is, returns to step A221, until the first forms that are blocked by the floating form are empty.

[0089] Specifically, the above preset order can be set according to the actual situation and is not particularly limited. For example, determine a candidate position in turn for the number of avoidances judgment in the order from left to right and from bottom to top. Or, determine a candidate position in turn for the number of avoidances judgment in the order from right to left and from bottom to top.

[0090] A225. The display device uses the candidate position with the largest number of avoidances recorded as the first position.

[0091] When there are multiple candidate positions with the largest number of avoidance, the display device can determine one candidate position from the multiple candidate positions as the first position. There are many ways to determine it. For example, the display device randomly selects one candidate position from the multiple candidate positions as the first position. Or, the display device traverses the candidate positions in the order from left to right and from bottom to top to determine one candidate position as the first position (that is, select the candidate position at the bottom left of the display screen), or the display device traverses the candidate positions in the order from right to left and from bottom to top to determine one candidate position as the first position (that is, select the candidate position at the bottom right of the display screen).

[0092] Optionally, there is an avoidance priority among the above n first forms. The avoidance priority of the first form can be set according to the actual situation and is not particularly limited here. For example, the avoidance priority of the first form can be determined according to the importance to the user. For the first form that is more important to the user, the avoidance priority of this first form is higher. On the contrary, the avoidance priority is lower. For example, for Application A and Application B on the display screen, Application B is a background system prompt message, and Application A is the focused object. When the prompt message needs to be known by the user in time, the avoidance priority of the form corresponding to Application A is lower than the avoidance priority of the form corresponding to Application B above.

[0093] For another example, the user can customize the avoidance priority of the n first forms, set the avoidance priority as needed, to adapt to the avoidance requirements of different users and ensure that the key information that the user wants to know can be known in time.

[0094] Further optionally, among the multiple forms displayed on the display device, in addition to the n first forms with avoidance priority, the remaining forms without avoidance priority can also be displayed.

[0095] In a possible implementation manner, when there is an avoidance priority among the above n first forms, in step 202, when the display device determines the first position of the floating form, it specifically includes the following steps:

[0096] B221. When there is one first form among the n first forms that is blocked by the floating form, the display device determines at least one candidate position corresponding to this first form. When the floating form is displayed at at least one candidate position, it at least does not block this first form and the forms with an avoidance priority higher than the avoidance priority of this first form.

[0097] Specifically, for each candidate position of the first form, when the floating form is displayed at a candidate position, the floating form at least does not block this first form and the forms with an avoidance priority higher than the avoidance priority of this first form.

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

[0099] For the specific description of determining the candidate position of the first window, reference can be made to the relevant description in step A222 above, which will not be elaborated here.

[0100] Exemplarily, when determining whether a candidate position will cause the floating window to block a window with a higher avoidance priority, the display device can establish a priority table based on the avoidance priorities among the first windows. In the priority table, the first window with a higher avoidance priority is ranked in the front, and the first window with a lower avoidance priority is ranked 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.

[0101] Table 1

[0102] Form First Form 1 First Form 5 First Form 3 First Form 2 First Form 4 First Form 6

[0103] Based on the priority table, the display device can determine whether a certain candidate position will cause the floating window to block a window with a higher avoidance priority. For example, when judging the candidate position of the first window 2, the display device can know from Table 1 that it is necessary to determine whether the floating window will block the first window 1, the first window 5, and the first window 3 when it is displayed at the candidate position.

[0104] Exemplarily, an avoidance priority serial number can also be assigned to each first window. The smaller the serial number, the higher the avoidance priority. In this way, a priority table can be obtained. Referring to Table 2 below.

[0105] Table 2

[0106] 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

[0107] Another exemplarily, an avoidance priority serial number can also be assigned to each first window. The larger the serial number, the higher the avoidance priority. In this way, a priority table can be obtained. Referring to Table 3 below.

[0108] Table 3

[0109] 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

[0110] B222. The display device determines the candidate position with the largest avoidance quantity among at least one candidate position as the first position. The avoidance quantity of the candidate position is the number of windows that the floating window can avoid blocking among the n first windows when it is displayed at the candidate position.

[0111] Specifically, the number of avoided forms for a candidate position refers to the number of forms among the n first forms that will not be blocked by the floating form when the floating form is displayed at this candidate position.

[0112] In a possible implementation, when there is an avoidance priority among the above-mentioned n first forms, in step 202, when the display device determines the first position of the floating form, it specifically includes the following steps:

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

[0114] Among them, when the floating form is displayed at at least one candidate position, it blocks at least the blocked first form and the forms whose avoidance priority is higher than that of the blocked first form. In other words, for each candidate position of the first form, when the floating form is displayed at a candidate position, the floating form blocks at least the first form and the forms whose avoidance priority is higher than that of the first form.

[0115] Specifically, for the specific description of how the display device determines the candidate positions of the blocked forms, reference can be made to the relevant description in step A222 above, which will not be elaborated here. Or, reference can be made to the description in steps D221 to D223 below, or, reference can be made to the description in steps E221 to E223 below.

[0116] C222. The display device determines the candidate position with the largest number of avoided forms as the first position. The number of avoided forms of a candidate position is the number of forms among the n first forms that can be not blocked when the floating form is displayed at this candidate position.

[0117] Specifically, for the specific description of how the display device determines the first position from the candidate positions, reference can be made to the description in steps A223 to A225, which will not be elaborated here.

[0118] In a possible implementation, when the number of first forms among the n first forms that are blocked by the floating form is greater than or equal to two, and there is an avoidance priority among the above-mentioned n first forms, in step 202, when the display device determines the first position of the floating form, it specifically includes the following steps:

[0119] D221. The display device determines one form from the forms among the n first forms that are blocked by the floating form as the second form.

[0120] Specifically, there are many ways for the display device to determine the second form. Reference can be made to the description in step A221.

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

[0122] Specifically, for the specific description of how the display device determines the candidate positions of the second window, reference can be made to the relevant description in step A222 above, and details will not be elaborated here.

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

[0124] Specifically, for the specific method by which the display device determines whether a candidate position will cause the floating window to obscure a window with a higher avoidance priority, reference can be made to the relevant description in step B221, and details will not be elaborated here.

[0125] D224. When the avoidance count of a candidate position is equal to n, the display device designates that candidate position as the first position and stops executing the following steps; the avoidance count of a candidate position is the number of windows among the n first windows that the floating window can be displayed at that candidate position without obscuring.

[0126] D225. When the avoidance count of a candidate position is less than n, the display device records the avoidance count of that candidate position.

[0127] The display device repeatedly executes step D224 and step D225 until the avoidance counts of all candidate positions of the second window have been judged. The method by which the display device selects a candidate position can be referred to the relevant description in step A224, and details will not be elaborated here.

[0128] D226. The display device removes the second window from the windows that are obscured by the floating window and repeatedly executes the above steps until the windows that are obscured by the floating window are empty.

[0129] D227. The display device designates the candidate position with the largest avoidance count among the recorded avoidance counts as the first position.

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

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

[0132] Specifically, there are many ways for the display device to determine the second window. It can be determined based on the priority table introduced in step B221, that is, the display device creates a priority table according to the windows that have occlusion with the floating window, and then determines the window with the highest priority in the priority table as the second window. Or, the display device creates an ordered set according to the windows that have occlusion with the floating window, and then determines the window arranged at the front in the ordered set as the second window. For specific reference, please refer to the relevant description about Figure 3 below.

[0133] E222. The display device determines at least one candidate position for the second window, and the at least one candidate position does not occlude the second window and the floating window can be completely displayed at the candidate position.

[0134] Specifically, for the specific description of how the display device determines the candidate position of the second window, please refer to the relevant description of step A222 above and will not be elaborated here.

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

[0136] Specifically, for the specific method of how the display device determines whether a candidate position will cause the floating window to occlude a window with a higher avoidance priority, please refer to the relevant description of step B221 and will not be elaborated here. Or, the display device determines whether there will be occlusion based on the ordered set introduced below. For specific reference, please refer to the relevant description about Figure 3 below.

[0137] E224. When the avoidance count of a 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 count of a candidate position is the number of windows that the floating window can display at the candidate position without occluding the first window among n first windows.

[0138] E225. When the avoidance count of a candidate position is less than n, the display device records the avoidance count of the candidate position.

[0139] The display device repeatedly executes step E224 and step E225 until the avoidance counts of all candidate positions of the second window have been judged. The method for the display device to select a candidate position can be referred to the relevant description of step A224 and will not be elaborated here.

[0140] E226. The display device removes the second window from the windows that have occlusion with the floating window and repeatedly executes the above steps until the windows that have occlusion with the floating window are empty.

[0141] E227. The display device uses the candidate position with the largest avoidance count among the recorded avoidance counts as the first position.

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

[0143] In the above steps D225 and E225, when the avoidance count of a candidate position is less than n, if the avoidance count of the candidate position is inconsistent with the avoidance count of the recorded candidate position, the display device records the avoidance count of the candidate position. On the contrary, when the avoidance count of the candidate position is consistent with the avoidance count of the recorded candidate position, the display device does not record the avoidance count of this candidate position. This helps to reduce the data volume of the recorded avoidance counts, thereby improving the computational amount for the subsequent display device to determine the first position based on the avoidance count and enhancing the speed of the display device to determine the first position.

[0144] In the above steps D225 and E225, when the avoidance count of a candidate position is less than n, the avoidance count of the candidate position is consistent with the avoidance count of the recorded candidate position, and the avoidance priority of the form corresponding to the candidate position is not lower than that of the form corresponding to the recorded candidate position, the display device records the avoidance count of the candidate position. On the contrary, when the avoidance count of the candidate position is consistent with the avoidance count of the recorded candidate position, and the avoidance priority of the form corresponding to the candidate position is lower than that of the form corresponding to the recorded candidate position, the display device does not record the avoidance count of this candidate position. This helps to reduce the data volume of the recorded avoidance counts, thereby improving the computational amount for the subsequent display device to determine the first position based on the avoidance count and enhancing the speed of the display device to determine the first position.

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

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

[0147] In a possible embodiment, to facilitate the management of the first form on the display screen, the display device may add the first form to an ordered set in the order of avoidance priorities. The arrangement principle of the elements in the ordered set is that the first form with a higher avoidance priority is arranged in the front, and the first form with a lower avoidance priority is arranged in the back. For example, for the first forms A1, A2, the first forms B1 and B2, the ordered set is {A1, B2, B1, A2}. It can be seen that the first form A1 has the highest avoidance priority, while the first form A2 has the lowest avoidance priority. Based on the ordered set, in step E221, the display device can conveniently and quickly determine the second form, and in step E223, the display device can quickly determine the form whose avoidance priority is higher than that of the second form.

[0148] To better illustrate the ordered set, the following takes steps E221 to E227 as examples for specific illustration:

[0149] Refer to Figure 3 , Figure 3 which is a specific flowchart 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 form on the display screen, and the ordered set changes in real time as the display content changes. Specifically:

[0150] When the floating form on the display device meets the preset conditions, for example, there is a new floating form to be displayed. In this embodiment, taking a newly appeared floating form as an example, assuming that the display position of the floating form is i (the floating form is not actually displayed), the first forms currently displayed on the display device at the current moment are used to form an ordered set.

[0151] 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 form as i, that is, the display device displays the floating form at the display position i.

[0152] When the ordered set is not empty, the display device polls the forms in the ordered set according to the avoidance priorities. Each time, a first form in the ordered set is taken out according to the high and low avoidance priorities as the polled form X.

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

[0154] When the form X is blocked, the display device determines at least one candidate position corresponding to the form X based on the existing display position i of the floating form. Exemplarily, when the form X has no candidate positions, the display device stops calculating the candidate positions of the form X and returns to poll the next form in the ordered set.

[0155] For at least one candidate position of window X, when the floating window is displayed at a candidate position and will block a window in the ordered set with a higher avoidance priority than window X, 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 do not block the first window in the ordered set with an avoidance priority higher than window X.

[0156] Among them, when judging whether the candidate position of window X will cause the floating window to be displayed at the candidate position and block a window with an avoidance priority higher than that of window X, the display device can judge according to the order of avoidance priorities in the ordered set.

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

[0158] 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 round of polling of the windows in the ordered set.

[0159] After the polling is completed, the display device selects the candidate position with the largest recorded avoidance quantity as the first position. When there are multiple candidate positions with the largest avoidance quantity, 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 at the first position to complete automatic avoidance.

[0160] 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.

[0161] In the embodiment of the present application, a display method is further provided. Refer to Figure 4 , Figure 4 which is a schematic flowchart of another display method provided by the embodiment of the present application. The display method 400 includes the following steps:

[0162] 401. The display device displays multiple windows, and the multiple windows include a floating window and n first windows.

[0163] Among them, n is an integer greater than or equal to two, and the first window is a non-floating window. In this embodiment, the description of the first window can refer to the relevant description above and will not be repeated.

[0164] 402. When n first forms are updated, the display device determines the first position of the floating form.

[0165] Among them, the update of n first forms includes that at least one form among the n first forms is replaced and / or the total number of forms increases.

[0166] Specifically, the update of n first forms can be that at least one of the n first forms is replaced, that is, as the display content of the display screen changes, part or all of the first forms are replaced. At this time, the number of forms of the updated multiple first forms is still n.

[0167] The replacement of the first form should be understood as that the first form is replaced from form A to form B, and the display content and display position of form A and form B are different. When the display position of the first form changes, the floating form may block the new first form. Therefore, it is necessary to trigger the display device to execute the method of this embodiment of the present application to determine the first position of the floating form.

[0168] The replacement of the first form can also be understood as the change (increase or decrease) of the display area of the first form, that is, the first form changes from form a1 to form a2. Both form a1 and form a2 are the same form A, and the display content of the form remains unchanged, only the display areas of form a1 and form a2 are different. When the display area of the first form changes, the floating form may block the new first form (that is, form a2). Therefore, it is necessary to trigger the display device to execute the method of this embodiment of the present application to determine the first position of the floating form.

[0169] The update of n first forms can be that the total number of first forms increases, that is, a new first form is added. Taking the addition of one first form as an example, it changes from n first forms to n + 1 first forms. At this time, the number of forms of the updated multiple first forms changes from n to n + 1.

[0170] The update of n first forms can also be that at least one of the n first forms is replaced and the total number of first forms increases, that is, there are both cases of replacement of the first form and addition of new first forms.

[0171] 403. The display device displays the floating form at the first position, and there is no occlusion between the floating form and at least two of the updated multiple first forms.

[0172] It can be seen that by using the display method 400 of this embodiment of the present application, the floating form can automatically avoid the first form without manual operation by the user, and the number of unoccluded first forms can be increased to provide more key information of the forms to the user, improving the user experience of using the display device.

[0173] In addition, the method according to the embodiment of the present application does not require the display attributes of the first form to make obvious visual effect sacrifices, such as zooming, transparency change, three-dimensional rotation, etc. While ensuring the normal display of key information to the greatest extent, the screen visual effect is ensured. Moreover, in the embodiment of the present application, there is no restriction on the application scenarios of the floating form and the first form, and the user is supported to start various forms as needed.

[0174] Exemplarily, the first position of the floating form determined in step 402 may be a new display position, or the first position of the floating form may be the display position of the floating form before the update of the n first forms.

[0175] Reference Figure 5A , Figure 5A FIG. is a schematic diagram of a first form and a floating form provided by an embodiment of the present application. Form D is the first form, that is, the application form that the user is operating. There is no occlusion between form D and the floating form C, and the floating form C maintains its original display attributes and is displayed at its original display position.

[0176] Assume that a new form B appears and form B is blocked by the floating form C (not shown). Among them, form B is a "screen recording in progress" form, which belongs to system prompt information. Assume that the avoidance priority of the system prompt information is higher than the avoidance priority of the focused area, that is, the avoidance priority of form B is higher than the avoidance priority of form D. The display device re-determines the display position of the floating form C based on form B. Reference Figure 5B , Figure 5B FIG. is another schematic diagram of a first form and a floating form provided by an embodiment of the present application; the display device moves the floating form C down to Figure 5B the display position shown.

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

[0178] In a possible implementation manner, when the avoidance priority of the updated multiple first forms is higher than the priority of other forms in the multiple forms except the above multiple first forms (that is, the multiple first forms are the objects to be avoided), but when no avoidance priority is set among the multiple first forms, or when the multiple forms are multiple first forms and no avoidance priority is set among the multiple first forms, in step 402, the display device determines the first position of the floating form, which specifically includes the following steps:

[0179] A421. The display device determines one form as the target form from the forms among the updated multiple first forms and the floating form that have occlusion.

[0180] A422. The display device determines at least one candidate position corresponding to the target form. When the floating form is displayed at at least one candidate position, it does not occlude the target form at least.

[0181] A423. When the avoidance quantity of the above candidate position is equal to m, the display device takes this candidate position as the first position and stops the following steps. The avoidance quantity of the candidate position refers to the number of forms among the m first forms that the floating form can avoid occluding when it is displayed at this candidate position. Where m is the total number of forms of the updated multiple first forms.

[0182] A424. When the avoidance quantity of the above candidate position is less than m, the display device records the avoidance quantity of the candidate position. After the display device judges the avoidance quantities of all candidate positions of the target form in the preset order, it removes the target form from the first forms that have occlusion with the floating form, and repeats the above steps, that is, returns to step A421, until the first forms that have occlusion with the floating form are empty.

[0183] A425. The display device determines the candidate position with the largest avoidance quantity among the recorded avoidance quantities as the first position.

[0184] For the specific descriptions of steps A421 to A425, reference can be made to the relevant descriptions of steps A221 to A225, and will not be elaborated here.

[0185] In a possible implementation manner, there is an avoidance priority among the first forms. For the relevant descriptions of the avoidance priority, reference can be made to the relevant descriptions above, and will not be elaborated here. Where the above first forms refer to n first forms, or the updated multiple first forms.

[0186] In a possible implementation manner, when there is an avoidance priority among the above updated first forms, in step 402, the display device determines the first position of the floating form, specifically including the following steps:

[0187] B421. When there is one first form among the updated multiple first forms that has occlusion with the floating form, the display device determines at least one candidate position corresponding to the occluded first form. When the floating form is displayed at at least one candidate position, it does not occlude at least this first form and the forms with an avoidance priority higher than that of this first form.

[0188] Specifically, when the window that has an occlusion with the floating window is one of the updated multiple first windows, the display device determines at least one candidate position corresponding to the occluded first window. When the occluded first window has no available candidate position, the display device stops determining the first position.

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

[0190] For the specific descriptions of steps B421 to B422, reference can be made to the relevant descriptions of steps B221 to B222, which will not be elaborated here.

[0191] In a possible implementation manner, when there is an avoidance priority among the above-mentioned updated first windows, in step 402, the display device determines the first position of the floating window, which specifically includes the following steps:

[0192] C421. When the number of windows among the updated multiple first windows that have an occlusion with the floating window is greater than or equal to two first windows, the display device determines at least one candidate position corresponding to each occluded first window. When the floating window is displayed at the at least one candidate position, it can at least not occlude the occluded first window and the windows whose avoidance priority is higher than that of the occluded first window.

[0193] C422. The display device determines the candidate position with the largest avoidance quantity as the first position. The avoidance quantity of a candidate position is the number of first windows among the m first windows that can be not occluded when the floating window is displayed at this candidate position, where m is the total number of windows of the updated multiple first windows.

[0194] For the specific descriptions of steps C421 to C422, reference can be made to the relevant descriptions of steps C221 to C222, which will not be elaborated here.

[0195] In a possible implementation manner, when the number of windows among the updated multiple first windows that have an occlusion with the floating window is greater than or equal to two first windows, and there is an avoidance priority among the above-mentioned updated first windows, in step 402, when the display device determines the first position of the floating window, it specifically includes the following steps:

[0196] D421. The display device determines one window from the windows among the updated multiple first windows that have an occlusion with the floating window as the second window.

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

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

[0199] D424. When the avoidance count of a candidate position is equal to m, the display device designates the candidate position as the first position and stops executing the following steps. m is the total number of the updated first windows, and the avoidance count of a candidate position is the number of first windows among the m first windows that the floating window can avoid obscuring when displayed at the candidate position.

[0200] D425. When the avoidance count of a candidate position is less than m, the display device records the avoidance count of the candidate position.

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

[0202] D427. The display device designates the candidate position with the largest avoidance count among the recorded avoidance counts as the first position.

[0203] For the specific descriptions of steps D421 to D427, reference can be made to the relevant descriptions of steps D221 to D227, which will not be elaborated here.

[0204] In a possible implementation, when there are two or more first windows among the updated first windows that are obscured by the floating window and there is an avoidance priority among the above updated first windows, in step 402, when the display device determines the first position of the floating window, it specifically includes the following steps:

[0205] E421. The display device determines a window with the highest avoidance priority as the second window from the windows that are obscured by the floating window among the updated first windows.

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

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

[0208] E424. When the avoidance quantity of the candidate position is equal to m, the display device takes this candidate position as the first position and stops executing the following steps. m is the total number of forms of the updated multiple first forms, and the avoidance quantity of the candidate position is the number of first forms among the m first forms that are not blocked when the floating form is displayed at this candidate position.

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

[0210] E426. The display device removes the second form from the forms that have an occlusion with the floating form and repeats the above steps until the forms that have an occlusion with the floating form are empty.

[0211] E427. The display device takes the candidate position with the largest avoidance quantity among the recorded avoidance quantities as the first position.

[0212] For the specific descriptions of steps E421 to E427, reference can be made to the relevant descriptions of steps E221 to E227, which will not be elaborated here.

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

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

[0215] In a possible implementation, in the above steps C422, D427, and E427, when there are multiple candidate positions with the largest avoidance quantity, the display device selects the candidate position with the highest avoidance priority among the multiple candidate positions with the largest avoidance quantity as the first position.

[0216] In a possible embodiment, to facilitate the management of the first window on the display screen, the display device may add the first window to an ordered set in the order of avoidance priority. The arrangement principle of the elements in the ordered set is that the first window with a higher avoidance priority is arranged in the front, and the first window with a lower avoidance priority is arranged in the back. Based on the ordered set, the display device can conveniently and quickly determine the second window in step E421, and can quickly determine the window with an avoidance priority higher than that of the second window in step E423.

[0217] To better illustrate the ordered set, the following takes steps E421 to E427 as examples for specific illustration:

[0218] Refer to Figure 6 , Figure 6 which is a schematic flowchart of another display method provided by an embodiment of the present application.

[0219] 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:

[0220] 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.

[0221] The display device determines whether the ordered set is empty. If the ordered set is empty, the floating window remains at the display position i.

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

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

[0224] When window X is blocked, the display device determines at least one candidate position corresponding to window X based on the existing display position i of the floating window. Exemplarily, when window X has no candidate positions, the display device stops calculating the candidate positions of window X and returns to poll the next window in the ordered set.

[0225] For at least one candidate position of window X, when the floating window is displayed at a candidate position and will block the window in the ordered set with a higher avoidance priority than window X, the display device removes that 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 do not block the first window in the ordered set with an avoidance priority higher than window X.

[0226] For each candidate position of window X, the display device first counts the number of avoidances at 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 simultaneously, the display device terminates the calculation, takes the candidate position as the first position, and displays the floating window at the first position to complete automatic avoidance.

[0227] If the candidate position cannot avoid all elements of the ordered set, the display device records the number of avoidances at the candidate position and performs the next round of polling for the window in the ordered set.

[0228] After the polling is completed, the display device selects the candidate position with the largest number of avoidances recorded 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 at the first position to complete automatic avoidance.

[0229] 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.

[0230] The device provided by the present application will be described below.

[0231] Figure 7 It is a schematic structural diagram of a possible display device provided by 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 possessed by any of the above method embodiments. In the embodiment of the present application, the display device can be an electronic device or a module (such as a chip) applied to an electronic device.

[0232] As Figure 7 shown, the display device 700 includes a display module 701 and a determination module 702. The display device 700 is used to implement the functions of the method embodiments shown above Figure 2 . Alternatively, the display device 700 may include modules or units for implementing any function or operation in the method embodiments shown above Figure 2 or Figure 4 . The module or unit can be implemented in whole or in part by software, hardware, firmware, or any combination thereof.

[0233] Exemplarily, when the display device 700 is used to implement Figure 2When 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.

[0234] In one possible embodiment, reference Figure 7 The 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.

[0235] 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.

[0236] 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.

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

[0238] In a possible embodiment, referring to Figure 7 , the display device 700 further includes a management module 703, and the management module 703 is used to manage the first forms, including the n first forms or the updated multiple first forms. Exemplarily, the management module 703 manages the first forms according to the relative importance to the user, using a priority table or an ordered set to manage the first forms, and the order in the table or set corresponds to the importance level of the area information. For example, the more forward the area in the table or set, the more important it is.

[0239] This application also provides a display device. Referring to Figure 8 , Figure 8 is a schematic structural 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. Among them, the memory 801, the processor 802, and the communication interface 804 are communicatively connected to each other through the bus 803.

[0240] 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 respective steps of the display method of the embodiments of the present application.

[0241] The processor 802 may be 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, which is used to execute relevant programs to implement the functions required by the units in the display device of any application embodiment, or to execute the display method of any application embodiment.

[0242] The processor 802 may also be an integrated circuit chip with the ability to process signals. In the implementation process, each step of the display method of the embodiments of the present application can be completed by the integrated logic circuit in the hardware of the processor 802 or the instructions in the form of software. The above - mentioned processor 802 may also be a general - purpose processor, a digital signal processor (DSP), an application - specific integrated circuit (ASIC), a field - programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. 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 combination with the embodiments of the present application can be directly embodied as being completed by the execution of the hardware processor, or by the combination of the hardware and software modules in the processor. The software module may be located in a mature storage medium in the art such as random access memory, flash memory, read - only memory, programmable read - only memory, or electrically erasable programmable memory, registers, etc. This 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 by the units included in the display device of the embodiments of the present application, or to execute the display method of the embodiments of the present application.

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

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

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

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

[0247] As mentioned above, it is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of changes or substitutions, which should all be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A display method, characterized in that, The method includes: Displaying a plurality of windows, the plurality of windows including n first windows, where n is an integer greater than or equal to two, and the first windows are non-floating windows; When a preset condition is satisfied, determining a first position of the floating window; Displaying the floating window at the first position, where there is no occlusion 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: Adding the floating window; Updating the display position of the floating window; or Updating the display area of the floating window.

3. The method according to claim 1 or 2, characterized in that, There is an avoidance priority among the n first windows.

4. The method according to claim 3, wherein The determining of the first position of the floating window includes: When there is one of the first windows among the n first windows that is occluded by the floating window, determining at least one candidate position corresponding to the first window. When the floating window is displayed at the at least one candidate position, it does not occlude at least the first window and the windows with an avoidance priority higher than that of the first window; Determining the candidate position with the largest avoidance number among the at least one candidate position as the first position, where the avoidance number of the candidate position is the number of windows that the floating window can not occlude among the n first windows when it is displayed at this candidate position.

5. The method according to claim 3, characterized in that, The determining of the first position of the floating window includes: When there are two or more of the first windows among the n first windows that are occluded by the floating window, determining at least one candidate position corresponding to each occluded first window. When the floating window is displayed at the at least one candidate position, it does not occlude at least the occluded first window and the windows with an avoidance priority higher than that of the occluded first window; Determining the 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 the floating window can not occlude among the n first windows when it is displayed at this candidate position.

6. The method according to claim 3, wherein When there are two or more of the first windows among the n first windows that are occluded by the floating window, the determining of the first position of the floating window includes: Determining one of the windows among the n first windows that are occluded by the floating window as a second window; Determining at least one candidate position of the second window, where the at least one candidate position does not occlude the second window and the floating window can be completely displayed at the candidate position; When a window with an avoidance priority higher than that of the second window is occluded by the floating window displayed at a candidate position, then removing this candidate position from the at least one candidate position; When the avoidance number of the candidate position is equal to n, taking this candidate position as the first position and stopping the execution of the following steps; the avoidance number of the candidate position is the number of windows that the floating window can not occlude among the n first windows when it is displayed at this candidate position; When the avoidance number of the candidate position is less than n, recording the avoidance number of this candidate position; Remove the second window from the windows that have occlusion with the floating window and repeat the above steps until the windows that have occlusion with the floating window are empty; Take the candidate position with the largest avoidance count among the recorded avoidance counts as the first position.

7. The method according to claim 3, wherein When there are two or more first windows among the n first windows that have occlusion with the floating window, determining the first position of the floating window includes: Determine a window with the highest avoidance priority as the second window from the windows among the n first windows that have occlusion with the floating window; Determine at least one candidate position of the second window, where the at least one candidate position does not occlude the second window and the floating window can be completely displayed at the candidate position; When a window with an avoidance priority higher than that of the second window is occluded by the floating window displayed at a candidate position, remove the candidate position from the at least one candidate position; When the avoidance count of the candidate position is equal to n, take the candidate position as the first position and stop executing the following steps; the avoidance count of the candidate position is the number of windows that can not occlude the first window among the n first windows when the floating window is displayed at the candidate position; When the avoidance count of the candidate position is less than n, record the avoidance count of the candidate position; Remove the second window from the windows that have occlusion with the floating window and repeat the above steps until the windows that have occlusion with the floating window are empty; Take the candidate position with the largest avoidance count among the recorded avoidance counts as the first position.

8. The method according to claim 6 or 7, characterized in that, When the avoidance count of the candidate position is less than n, if the avoidance count of the candidate position is inconsistent with the avoidance counts of the recorded candidate positions; or, when the avoidance count of the candidate position is consistent with the avoidance counts of the recorded candidate positions 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 count 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 count, select the candidate position corresponding to the window with the highest avoidance priority among the multiple candidate positions with the largest avoidance count as the first position.

10. A display method, characterized in that, The method includes: Display multiple windows, the multiple windows include a floating window and n first windows, 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, determine the first position of the floating window, and the update includes that at least one window among the N first windows is replaced and / or the total number of windows increases; Display the floating window at the first position, and there is no occlusion between the floating window and at least two windows among the updated multiple first windows.

11. The method according to claim 10, wherein There is an avoidance priority among the first windows.

12. The method according to claim 11, wherein Determining the first position of the floating window includes: When there is only one first form among the updated multiple first forms that is blocked by the floating form, determine at least one candidate position corresponding to the blocked first form. When the floating form is displayed at the at least one candidate position, it does not block at least the first form and forms with a higher avoidance priority than the avoidance priority of the first form. Determine the candidate position with the largest number of avoidances among the at least one candidate position as the first position. The number of avoidances of the candidate position is the number of forms that the floating form can avoid blocking the first form among the updated multiple first forms when it is displayed at this candidate position.

13. The method according to claim 11, wherein The determination of the first position of the floating form includes: When there are two or more first forms among the updated multiple first forms that are blocked by the floating form, determine at least one candidate position corresponding to each blocked first form; when the floating form is displayed at the at least one candidate position, it does not block at least the blocked first form and forms with a higher avoidance priority than the avoidance priority of the blocked first form. Determine the candidate position with the largest number of avoidances as the first position. The number of avoidances of the candidate position is the number of forms that the floating form can avoid blocking the first form among the updated multiple first forms when it is displayed at this candidate position.

14. The method according to claim 13, wherein When there are multiple candidate positions with the largest number of avoidances, select the candidate position corresponding to the form with the highest avoidance priority among the multiple candidate positions with the largest number of avoidances as the first position.

15. A display device, characterized in that, It includes a processor and a memory. Among them, the processor and the memory are connected. The memory is used to store programs, and the processor is used to call the programs to execute the display method according to any one of claims 1 to 14.

Citation Information

Cited By

  • Display method and device

    EP4636566A1

  • Display method and device

    WO2024244998A1