Control adjusting method and device and electronic equipment

By introducing the target expansion area into the graphical user interface, the obstructed controls are automatically adjusted, which solves the problem of floating windows blocking user interface controls, and improves the flexibility of floating windows and the stability of user interface.

CN119025196AActive Publication Date: 2024-11-26NETEASE (HANGZHOU) NETWORK CO LTD

Patent Information

Application Number
CN202310602723.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-25
Publication Date
2024-11-26
Estimated Expiration
2043-05-25

AI Technical Summary

Technical Problem

In the prior art, the problem of occluding user interface controls by floating windows leads to cumbersome operations, limiting the flexibility of floating windows, and users need to perform multiple operations to adjust the control position, which easily leads to erroneous operations.

Method used

By introducing the target expansion area into the graphical user interface, the obscured controls are automatically adjusted to the target expansion area to avoid occlusion of suspended windows, and the errors caused by control movement are reduced without the user's manual operation.

Benefits of technology

The control is not blocked by the floating window, which improves the flexibility of the floating window, reduces the misoperation caused by the movement of the control, and ensures the stability of the user interface and operation fault tolerance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119025196A_ABST
    Figure CN119025196A_ABST
Patent Text Reader

Abstract

The invention provides a control adjusting method and device and electronic equipment, and the method comprises the steps: responding to a floating window displayed on a graphical user interface, and obtaining the display position information of the floating window; determining a first target control shielded by the floating window in the target controls based on the floating window and display position information of the target controls in the target control area; determining a target expansion area in the graphical user interface; in the target control area and / or the target capacity expansion area, position adjustment is conducted on the first target control or the first target control and at least part of a second target control which is not shielded, so that the target control is not shielded by the floating window. In the mode, when the control and the floating window are shielded, the target capacity expansion area is determined, and the shielded control is controlled to be adjusted to the target capacity expansion area to be displayed and used, so that the control is not shielded by the floating window, misoperation caused by movement of the control is reduced, a player does not need to perform any operation, and the flexibility of the floating window is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a control adjustment method, device and electronic equipment. Background Art

[0002] With the user demand for the coexistence of multiple applications, more and more APPs (APPlication, application program) have developed split-screen or floating screen designs for users to use. While bringing convenience to users, there will be the problem of floating windows blocking the current UI (UserInterface, user interface) controls. In related technologies, users can move the display position of the floating window and modify the size of the floating window. However, this method is cumbersome to operate and will also limit the display of the floating window, and the flexibility of the floating window is low. Summary of the invention

[0003] In view of this, an object of the present invention is to provide a method, device and electronic device for adjusting controls. When the controls are blocked by a floating window, a target expansion area is introduced to control the blocked controls to be adjusted to the target expansion area for display and use, so that the controls are not blocked by the floating window, and the player does not need to perform any operation, thereby ensuring the flexibility of the floating window.

[0004] In a first aspect, an embodiment of the present invention provides a method for adjusting a control, providing a graphical interface through a terminal device, wherein the graphical user interface includes at least one control area, and the control area includes at least one target control. The method includes: in response to displaying a floating window on the graphical user interface, obtaining display position information of the floating window; determining a first target control in the target control that is blocked by the floating window based on the display position information of the floating window and the display position information of the target control in the target control area; determining a target expansion area in the graphical user interface; and in the target control area and / or the target expansion area, adjusting the position of the first target control or the first target control and the second target control that is at least partially unblocked, so that the first target control and the second target control are not blocked by the floating window.

[0005] In a second aspect, an embodiment of the present invention provides a control adjustment device, which provides a graphical interface through a terminal device, wherein the graphical user interface includes at least one control area, and the control area includes at least one target control. The device includes: a display position information acquisition module, which is used to obtain display position information of a floating window in response to displaying a floating window on the graphical user interface; a first target control determination module, which is used to determine a first target control in the target control that is blocked by the floating window based on the display position information of the floating window and the display position information of the target control in the target control area; a target expansion area determination module, which is used to determine a target expansion area in the graphical user interface; and a position adjustment module, which is used to adjust the position of the first target control or the first target control and the second target control that is at least partially unblocked in the target control area and / or the target expansion area, so that the first target control and the second target control are not blocked by the floating window.

[0006] In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the control adjustment method of any one of the first aspects.

[0007] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the control adjustment method of any one of the first aspects.

[0008] The embodiments of the present invention bring the following beneficial effects:

[0009] The present invention provides a control adjustment method, device and electronic device. In response to displaying a floating window on a graphical user interface, the display position information of the floating window is obtained; based on the display position information of the target control in the floating window and the target control area, the first target control in the target control that is blocked by the floating window is determined; a target expansion area is determined in the graphical user interface; in the target control area and / or the target expansion area, the position of the first target control or the first target control and the second target control that is at least partially unblocked is adjusted so that the target control is not blocked by the floating window. In this method, when the control is blocked by the floating window, the target expansion area is determined, and the blocked control is controlled to be adjusted to the target expansion area for display and use, so that the control is not blocked by the floating window, which reduces the misoperation caused by the movement of the control, and does not require the player to perform any operation, thereby ensuring the flexibility of the floating window.

[0010] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.

[0011] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0013] Figure 1 A flowchart of a control adjustment method provided by an embodiment of the present invention;

[0014] Figure 2 A schematic diagram of a graphical user interface provided by an embodiment of the present invention;

[0015] Figure 3 A schematic diagram of another graphical user interface provided by an embodiment of the present invention;

[0016] Figure 4 A schematic diagram of controlling the movement of a control component provided by an embodiment of the present invention;

[0017] Figure 5 A schematic diagram of another method of controlling the movement of a control provided by an embodiment of the present invention;

[0018] Figure 6 A schematic diagram of another method of controlling the movement of a control provided by an embodiment of the present invention;

[0019] Figure 7 A schematic diagram of another method of controlling the movement of a control provided by an embodiment of the present invention;

[0020] Figure 8 A schematic diagram of another method of controlling the movement of a control provided by an embodiment of the present invention;

[0021] Fig. 9 A schematic diagram of another method of controlling the movement of a control provided by an embodiment of the present invention;

[0022] Fig.10 A schematic diagram of another method of controlling the movement of a control provided by an embodiment of the present invention;

[0023] Fig.11 A schematic diagram of another method of controlling the movement of a control provided by an embodiment of the present invention;

[0024] Fig.12 A schematic diagram of another method of controlling the movement of a control provided by an embodiment of the present invention;

[0025] Fig.13 A schematic diagram of another method of controlling the movement of a control provided by an embodiment of the present invention;

[0026] Fig.14 A schematic diagram of another method of controlling the movement of a control provided by an embodiment of the present invention;

[0027] Fig.15 A schematic diagram of a first capacity expansion area provided in an embodiment of the present invention;

[0028] Fig.16 A schematic diagram of a second capacity expansion area provided in an embodiment of the present invention;

[0029] Fig.17 A schematic diagram of determining a target expansion area provided by an embodiment of the present invention;

[0030] Fig.18 A schematic diagram of a target expansion area provided by an embodiment of the present invention;

[0031] Fig.19 A schematic diagram of a third capacity expansion area provided in an embodiment of the present invention;

[0032] Fig. 20 A schematic diagram of displaying a floating window in a target display area provided by an embodiment of the present invention;

[0033] Fig.21 Another schematic diagram of displaying a floating window in a target display area provided by an embodiment of the present invention;

[0034] Fig. 22 Another schematic diagram of displaying a floating window in a target display area provided by an embodiment of the present invention;

[0035] Fig.23 Another schematic diagram of displaying a floating window in a target display area provided by an embodiment of the present invention;

[0036] Fig.24 A schematic diagram of the structure of a control adjustment device provided by an embodiment of the present invention;

[0037] Fig.25 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0039] With the user demand for the coexistence of multiple applications, more and more APPs (APPlication, application program) have developed split-screen or floating screen designs for users to use. While bringing convenience to users, there will be the problem of floating windows blocking the current UI (UserInterface, user interface) controls. In the related technology, users can move the display position of the APP floating window, modify the size of the APP floating window, adjust the layout of controls, or control the APP floating window to be displayed only in areas without controls. Among them, the way to operate the APP floating window is cumbersome; the way to adjust the layout of controls will change the overall layout of controls, causing the user's habitual cognition of the control position to be disordered, which will lead to user misoperation; limiting the display area of ​​the APP floating window will reduce the flexibility of the APP floating window. Based on this, an embodiment of the present invention provides a control adjustment method, device and electronic device, and the technology can be applied to mobile phones, computers, notebooks, tablet computers and other devices.

[0040] To facilitate understanding of this embodiment, a control adjustment method disclosed in an embodiment of the present invention is first introduced in detail. A graphical user interface is provided by a terminal device. The graphical user interface includes at least one control area, and the control area includes at least one target control, such as Figure 1 As shown, the method includes:

[0041] Step S102, in response to displaying a floating window on the graphical user interface, obtaining display position information of the floating window;

[0042] The above-mentioned control area is used to display the target control, and the above-mentioned target control usually refers to all or part of the controls in the first application, such as the game controls in the game interface of the target game, etc. In general, not all controls in the control area need to be adjusted, so the target control is all or part of the controls in the control area. For example, the controls in the control area include target controls with trigger functions and designated controls without trigger functions. Therefore, even if the designated control is blocked, it is usually not necessary to adjust the display position. The above-mentioned floating window can be a floating window of the first application or a floating window of the second application, such as a video floating window and a chat floating window. In fact, there are multiple control areas laid out in the graphical user interface, and one or more target controls are displayed in each control area to provide interactive operations for users.

[0043] Specifically, the user can control the floating window to be displayed on the graphical user interface, and of course can also control the floating window to move in the graphical user interface. When a floating window is displayed on the graphical user interface, the display position information of the floating window on the interface is first obtained, and the display position information can be the position coordinates of the floating window displayed on the graphical interface.

[0044] Step S104, determining a first target control among the target controls that is blocked by the floating window based on the display position information of the floating window and the display position information of the target controls in the target control area;

[0045] For example, it is calculated whether the display position information (position coordinates) of the floating window and the display position information (position coordinates) of each target control in the target control area overlap, and if so, it is determined that the corresponding first target control is blocked by the floating window. Alternatively, it is determined whether the display area of ​​the floating window overlaps with the display area of ​​each target control in the target control area, and if so, it is determined that the corresponding first target control is blocked by the floating window.

[0046] For example, Figure 2 As shown, the floating window obstructs two target controls in the target control area, namely, the first target control mentioned above.

[0047] Step S106, determining a target expansion area in the graphical user interface;

[0048] The target expansion area can be any area in the graphical user interface that is not blocked by the floating window, and the target expansion area will not block the controls displayed in the graphical user interface. Specifically, a target expansion area can be randomly determined directly in the graphical user interface, or the target expansion area can be determined based on the display position information of the control area, such as determining the target expansion area closest to the control area in the graphical user interface; the target expansion area can also be determined based on multiple expansion areas pre-set in the control area. In addition, the area size of the target expansion area is usually smaller than or equal to the control area, and the size of the target expansion area can be determined specifically based on the size of the control area or the first target control. For example, Figure 3 The target expansion area is shown.

[0049] Step S108: In the target control area and / or the target expansion area, the first target control or the first target control and the second target control that is at least partially not blocked are adjusted in position so that the first target control and the second target control are not blocked by the floating window.

[0050] That is, in the target control area, the first target control or the first target control and the second target control that is at least partially unobstructed can be position-adjusted so that the first target control is not obstructed by the floating window. Alternatively, in the target expansion area, the first target control or the first target control and the second target control that is at least partially unobstructed can be position-adjusted so that the first target control and the second target control are not obstructed by the floating window. Alternatively, in the target control area and the target expansion area, the first target control or the first target control and the second target control that is at least partially unobstructed can be position-adjusted so that the first target control and the second target control are not obstructed by the floating window.

[0051] Specifically, the first target control and the designated control that is not obstructed in the target control area can be swapped, wherein the designated control that is not obstructed is a control that does not need to be adjusted, which is different from the above-mentioned target control, and the designated control will not affect the user experience if it is obstructed. The first target control can also be adjusted to the target expansion area, while keeping the display rule of the first target control unchanged, that is, the relative position between the first target controls will not change. The first target control can also be adjusted to the target position where the target control area is not obstructed, and the second target control previously displayed at the target position can be adjusted to the target expansion area. It should be noted that in the process of adjusting the first target control and the second target control, the relative position between the first target controls is usually guaranteed to remain unchanged, and the relative position between the second target controls is also guaranteed to remain unchanged.

[0052] An embodiment of the present invention provides a method for adjusting controls. In response to displaying a floating window on a graphical user interface, the display position information of the floating window is obtained; based on the display position information of the target control in the floating window and the target control area, the first target control in the target control that is blocked by the floating window is determined; a target expansion area is determined in the graphical user interface; in the target control area and / or the target expansion area, the position of the first target control or the first target control and the second target control that is at least partially unblocked is adjusted so that the target control is not blocked by the floating window. In this method, when the control is blocked by the floating window, the target expansion area is determined, and the blocked control is controlled to be adjusted to the target expansion area for display and use, so that the control is not blocked by the floating window, thereby reducing misoperation caused by control movement, and the player does not need to perform any operation, thereby ensuring the flexibility of the floating window.

[0053] A possible implementation of the above step of adjusting the position of the first target control is as follows: the first target control is moved to the target expansion area, and the position of the second target control in the target control area is controlled to remain unchanged. Figure 4 As shown, the two blocked first target controls are adjusted to the target expansion area.

[0054] For example Figure 5 As shown, the two first target controls (such as Figure 5 1 and 2 in the figure) to the target expansion area (such as Figure 5 In the gray rectangular area in ), the position of the first target control remains unchanged. Figure 6 As shown, a first target control (such as Figure 6 2) in the target expansion area (such as Figure 6 This adjustment method does not change the arrangement layout of the first target control and the position of the second target control in the target control area. Under the premise of ensuring the minimum adjustment of controls, the controls are not blocked and the relative order of the original layout can be maintained to a certain extent, avoiding the user's habitual cognition of the control position from being disordered and reducing the user's misoperation.

[0055] A possible implementation of the above-mentioned step of adjusting the position of the first target control and the second target control that is at least partially unobstructed is: adjusting the position of the obstructed first target control and the unobstructed second target control according to preset rules, wherein the preset rules include at least one of the following: arrangement layout of target controls, control display rules of the target expansion area, and priority of target controls.

[0056] The arrangement layout of the target controls usually refers to the relative positions between the target controls. The control display rules of the target expansion area usually include: one row display, two rows display, one row display or two rows display, etc. Among the target controls, controls that are frequently used by users usually have a higher priority, and controls that are not frequently used usually have a lower priority.

[0057] In actual implementation, the positions of the first target control that is blocked and the second target control that is not blocked can be adjusted under the premise of ensuring that the arrangement and layout of the target control are changed to the minimum. The target control that is adjusted to the target expansion area needs to meet the control display rules of the target expansion area. For example, if the two target controls adjusted to the target expansion area are arranged in two rows, but the control display rule of the target expansion area is to display in one row, the two target controls will be displayed in the target expansion area in a row and two columns display mode.

[0058] The target control that needs to be adjusted to the target expansion area can also be determined according to the priority of the target control. The target control that needs to be adjusted to the target expansion area can be the blocked first target control or a specified control in the unblocked second target control.

[0059] In one possible manner, the preset rules include: an arrangement layout of target controls and a control display rule of a target expansion area; the step of adjusting the positions of the blocked first target control and the unblocked second target control according to the preset rules is a possible implementation method:

[0060] Get the current arrangement layout of the first target control; determine whether the target expansion area can be displayed according to the current arrangement layout; if so, move the first target control to the target expansion area and display the first target control according to the current arrangement layout, and control the position of the second target control in the target control area to remain unchanged.

[0061] If not, determine the target position of the first target control according to the control display rule of the target expansion area; move the first target control to the target expansion area and display the first target control at the corresponding target position, and control the position of the second target control in the target control area to remain unchanged.

[0062] For example, Figure 5 As shown, the first target control (i.e. Figure 5 The current arrangement layout of blocks 1 and 2 in the diagram is one row and two columns, and the target expansion area can be displayed according to the current arrangement layout.

[0063] For example, Figure 7 As shown, the first target control (i.e. Figure 7The current arrangement layout of the blocks 1 and 2 in the target expansion area is one row and two columns. If the target expansion area cannot be displayed according to the current arrangement layout, the first target control will be displayed in two rows and one column according to the display rules of the target expansion area, and the second target control (i.e. Figure 7 The positions of blocks 3-7) in the target control area remain unchanged.

[0064] The above preset rules include: the priority of the target control; and the step of adjusting the positions of the blocked first target control and the unblocked second target control according to the preset rules. A possible implementation method is:

[0065] Obtain the priorities of the first target control and the second target control, and determine whether the priority of the first target control is higher than that of the second target control; if so, determine the second target control to be moved, move the second target control to be moved to the target expansion area for display, and move the first target control to the position of the second target control to be moved in the target control area to display the first target control; if not, execute the step of obtaining the current arrangement layout of the first target control.

[0066] Usually, the priority level is pre-configured for each target control. For example, in the game control, in the friend-related control area, the friend control and channel control are the first priority, and the voice chat control, photo control, and chat summary control of each channel are the second priority. In the control area related to functional operations, the backpack and folding controls are the first priority, and the remaining controls are the second priority. The first priority is higher than the second priority. The target control set to the first priority is used more frequently, and the functions corresponding to the target control are also more numerous or more important.

[0067] In actual implementation, if the priority of the blocked first target control is higher than that of the second target control, the first target control will not be adjusted to the target expansion area, but the unblocked and lower-priority second target control to be moved will be determined from the target controls. The number of second target controls to be moved is usually the same as the number of first target controls. Finally, the second target control to be moved is moved to the target expansion area for display, and the first target control is moved to the position of the second target control to be moved in the target control area for display, so as to ensure that the position of the important control will not be changed a lot.

[0068] If the priority of the blocked first target control is not higher than that of the second target control, the first target control will be adjusted directly in the above manner. A possible implementation of the above determination of the second target control to be moved is: determining the second target control that is closest to the first target control as the second target control to be moved. Specifically, determining the second target control that is closest to the first target control and has the same number as the first target control as the second target control to be moved.

[0069] In the above step of determining that the second target control that is closest to the first target control is the second target control to be moved, in one possible implementation: if the second target control includes multiple sub-controls, select target sub-controls that are the same in number as the first target control and are closest to the first target control from the multiple sub-controls; and determine the target sub-control as the second target control to be moved.

[0070] For example, Figure 8 As shown, the floating window blocks control 1 (i.e., the first target control). Since control 1 has a higher priority than control 2, control 2 is determined to be the second target control to be moved. Control 2 is controlled to move to the target expansion area, and control 1 is adjusted to the position where control 2 was previously displayed in the target control area.

[0071] For example, Fig. 9 As shown, the floating window blocks control 5-7 (i.e., the first target control). Since the priority of control 5-7 is higher than that of control 1-4, control 2-3 is determined to be the second target control to be moved, and control 2-4 is controlled to move to the target expansion area, and control 5-7 is adjusted to the position where control 2-4 was previously displayed in the target control area.

[0072] The above adjustment method does not change the arrangement layout of the first target control and the position of the second target control in the target control area. Under the premise of ensuring that the position adjustment of the control is minimal, the control control is not blocked, and the relative order of the original layout can be maintained to a certain extent, avoiding the user's habitual cognition of the control position from being disrupted, thereby reducing the user's misoperation.

[0073] Another possible implementation manner is to obtain the priority of the first target control and the second target control, and determine whether the priority of the first target control is higher than that of the second target control; if so, determine the second target control and the third target control to be moved; wherein the number of the second target controls is the same as the number of the first target controls, and the third target control is the target control other than the first target control and the second target control in the target control area; move the second target control and the third target control to be moved to the target expansion area so that the second target control is moved to the target expansion area for display, and move the first target control to the position of the second target control and / or the third target control to be moved in the target control area to display the first target control.

[0074] For example, Fig.10 and Fig.11 As shown, the floating window blocks control 1-2 (i.e., the first target control). Since the priority of control 1-2 is higher than that of control 3-5, control 4-5 is determined to be the second target control to be moved, and control 3 is determined to be the third target control to be moved. Control 3-5 is controlled to move toward the target expansion area, so that the second target control to be moved (control 4-5) is moved to the target expansion area, and control 1-2 is adjusted to the position previously displayed in the target control area by control 3-4.

[0075] For example, Fig.12 As shown, the floating window blocks control 5-6 (i.e., the first target control). Since the priority of control 5-6 is higher than that of control 1-4, control 1-2 is determined to be the second target control to be moved, and control 3-4 is determined to be the third target control to be moved. Control 1-4 is controlled to move toward the target expansion area, so that the second target control to be moved (control 1-2) is moved to the target expansion area, and control 5-6 is adjusted to the position previously displayed in the target control area by control 3-4.

[0076] For example, Fig.13 As shown, the floating window blocks control 4-5 (i.e., the first target control). Since the priority of control 4-5 is higher than that of control 1-3, control 1-2 is determined to be the second target control to be moved, and control 3 is determined to be the third target control to be moved. Control 1-3 is controlled to move toward the target expansion area, so that the second target control to be moved (control 1-2) is moved to the target expansion area, and control 4-5 is adjusted to the position previously displayed in the target control area by control 2-3.

[0077] For example, Fig.14 As shown, the floating window blocks control 6 (i.e., the first target control). Since the priority of control 6 is higher than that of controls 1-5, control 1-2 is determined to be the second target control to be moved, and control 3-5 is determined to be the third target control to be moved. Control 1-5 is controlled to move toward the target expansion area, so that the second target control to be moved (control 1-2) is moved to the target expansion area, and control 6 is adjusted to the position where control 4 was previously displayed in the target control area.

[0078] The above adjustment method does not change the arrangement layout of the first target control and the position of the second target control in the target control area. By comparing the priorities, it ensures that the target controls commonly used by users are displayed in a prominent position. At the same time, while ensuring that the position of the controls is adjusted to the minimum, the control controls are not blocked and the overall layout of the controls is not changed, thereby avoiding confusion in the user's habitual cognition of the control position and reducing user misoperation.

[0079] A possible implementation of the above-mentioned step of determining a target expansion area in the graphical user interface is as follows: determining the area of ​​the interaction area between the floating window and the target control area, and calculating the ratio of the area of ​​the intersection area to the area of ​​the target control area; if the ratio is less than or equal to a preset threshold, determining a target expansion area in the graphical user interface.

[0080] When the floating window blocks one or more target controls in the target control area, the intersection area of ​​the floating window and the target control area is first determined, for example, Figure 2 As shown, the gray area is the above-mentioned intersection area, and the square in the target control area is the control. Calculate the first area of ​​the intersection area and the second area of ​​the target control area, and finally calculate the area ratio of the first area to the second area. If the ratio is less than or equal to the preset threshold, determine a target expansion area in the graphical user interface; the preset threshold can be set in advance according to actual needs, such as 50%, 40% or 60%. The above-mentioned target expansion area is usually located adjacent to the target control area and is not blocked by the floating window.

[0081] Specifically, multiple areas adjacent to the target control area can be determined according to the position of the target control area, and a target area not blocked by the floating window can be determined from the multiple adjacent areas, and the target area can be determined as the target expansion area. It is also possible to determine the target expansion area not blocked by the floating window from the multiple expansion areas preset for the target control area.

[0082] A possible implementation of the above-mentioned step of determining the area of ​​the interactive area between the floating window and the target control area is as follows: responding to a move operation on the floating window, controlling the floating window to move on the graphical user interface, and detecting in real time the area of ​​the intersection area between the floating window and the target control area.

[0083] In actual implementation, the user can control the floating window to move on the graphical user interface, and calculate the area of ​​the intersection of the floating window and the target control area in real time.

[0084] A possible implementation of the above step of determining a target expansion area in the graphical user interface is as follows: determining a first expansion area and a second expansion area preset in the target control area; and determining the expansion area in the first expansion area and the second expansion area that is not blocked by the floating window as the target expansion area.

[0085] The first expansion area and the second expansion area are pre-set for the target control area, wherein the first expansion area is the horizontal expansion area of ​​the target control area, and the second expansion area is the vertical expansion area of ​​the target control area. That is, the first expansion area is set above or below the target control area; the second expansion area is set to the left or right of the target control area.

[0086] For example, Fig.15 As shown, the white rectangle is a control area, and the graphical user interface includes multiple control areas. The gray rectangle connected to the white rectangle in the horizontal direction of the control area is the first expansion area of ​​the control area. Fig.16 As shown, the white rectangle is a control area, the graphical user interface includes multiple control areas, and the gray area connected to the white rectangle in the longitudinal direction of the control area is the second expansion area of ​​the control area.

[0087] For example, Fig.17 As shown, if the floating window covers the first expansion area of ​​the target control area, the second expansion area is determined as the target expansion area.

[0088] In addition, the sizes of the first expansion area and the second expansion area preset in the above-mentioned target control area are determined by the size of the target expansion area; the width of the first expansion area is the same as the width of the target control area; the height of the second expansion area is the same as the height of the target control area.

[0089] For example, if the size of the target control area is W*H, the width of the first expansion area is W, but the height of the first expansion area is a specified proportion of H, for example, the height of the first expansion area is 50%*H or 90%*H, etc. The height of the second expansion area is H, but the width of the second expansion area is a specified proportion of W, for example, the width of the second expansion area is 50%*W or 90%*W, etc.

[0090] Furthermore, the method further includes: if neither the first expansion area nor the second expansion area is blocked by the floating window, determining the expansion area closest to the first target control in the first expansion area and the second expansion area as the target expansion area. Or randomly determining one of the first expansion area and the second expansion area as the target expansion area.

[0091] For example, Fig.18 As shown, if neither the first expansion area nor the second expansion area is blocked by the floating window, and the first expansion area (the expansion area located above the target control area) is closest to the first target control, the first expansion area is determined as the target expansion area.

[0092] The above method also includes: adjusting the size of the target control area in response to a size adjustment operation on the target control area, or in response to a specified trigger event; adjusting the sizes of the first expansion area and the second expansion area preset in the target control area according to the adjusted size of the target control area.

[0093] Specifically, the user may trigger the adjustment of the size of the target control area, or the system may trigger the adjustment of the size of the target control area. When the size of the target control area changes, the sizes of the first expansion area and the second expansion area preset in the target control area will also change accordingly. For example, if the width of the target control area is reduced, the width of the first expansion area will also be reduced by a corresponding size. For another example, if the height of the target control area is increased, the height of the second expansion area will also be increased by a corresponding size. In short, the sizes of the first expansion area and the second expansion area preset in the target control area have a specified ratio with the size of the target control area, so the sizes of the first expansion area and the second expansion area preset in the target control area will change with the changes in the size of the target control area.

[0094] The above method also includes: if the ratio is greater than a preset threshold, determining a target display area from the graphical user interface; if the target display area does not overlap with the control area, displaying a floating window in the target display area.

[0095] If the size of the floating window is different from the size of the target display area, the size of the floating window is adjusted according to the target display area so that the size of the target display area is the same as that of the floating window.

[0096] If the target display area overlaps with the target control area, a third expansion area preset in the target control area is determined, the target control in the target control area is moved to the third expansion area, and the target control is displayed according to the current arrangement layout.

[0097] The above-mentioned target display area is usually located in the edge area of ​​the graphical user interface, and the specific target display area is the edge area closest to the target control area. For example, the four corner areas of the graphical user interface, or the upper, lower, left and right edge areas. If the ratio is greater than the preset threshold, that is, the graphical user interface is severely blocked, a target display area can be randomly selected, or the edge area closest to the target control area can be determined as the above-mentioned target display area. That is, the target display area is the edge area closest to the target control area. The size of the target display area can be determined according to the size of the floating window. Of course, the size of the target display area can also be predetermined, and the size of the floating window can be adjusted according to the target display area. To ensure that the size of the floating window is the same as the size of the target display area.

[0098] After the target display area is determined, it is necessary to determine the target control area that overlaps with the target display area, and then determine the third expansion area preset in the target control area, control the arrangement and layout of the target controls in the target control area to remain unchanged, and control the target controls in the target control area to move to the third expansion area; display the floating window in the target display area. That is, the target control is adjusted to the third expansion area as a whole, and the layout of the internal controls remains unchanged.

[0099] For example, Fig.19 As shown, the white rectangle is a control area, the graphical user interface includes multiple control areas, and the gray rectangle connected to the white rectangle is the third expansion area of ​​the control area.

[0100] For example, Fig. 20 As shown, if the target display area is located at the upper left corner of the graphical user interface, the adjacent positions of the target controls in the two target control areas whose upper left corners overlap with the target display area are controlled to remain unchanged, and the target controls in the target control areas are controlled to move to the corresponding third expansion area. Fig.21 As shown, if the target display area is located at the upper right corner of the graphical user interface, the adjacent positions of the target controls in a target control area whose upper right corner overlaps with the target display area are controlled to remain unchanged, and the target controls in the target control area are controlled to move to the corresponding third expansion area. Fig. 22 As shown, if the target display area is located at the lower left corner of the graphical user interface, the adjacent positions of the target controls in the two target control areas whose lower left corners overlap with the target display area are controlled to remain unchanged, and the target controls in the target control areas are controlled to move to the corresponding third expansion area. Fig.23 As shown, if the target display area is located at the lower right corner of the graphical user interface, the adjacent positions of the target controls in a target control area whose lower right corner overlaps with the target display area are controlled to remain unchanged, and the target controls in the target control area are controlled to move to the corresponding third expansion area.

[0101] Take the graphical user interface to display the game interface as an example for explanation. Assume that the size of the target control area (such as the character status bar) is 200px×100px, and the floating window (such as the chat window) is 150px×100px. According to the calculation rules of the first expansion area (vertical expansion area), the second expansion area (horizontal expansion area) and the target display area (replacement area), the horizontal expansion area = 100px, the vertical expansion area = 50px, and the replacement area area = 15000px 2 If the overlapping area of ​​the floating window and the target control area accounts for ≤50% of the target control area, the horizontal / vertical expansion area adjustment is triggered; if >50%, the replacement UI area adjustment is triggered. This ensures that the game controls and the floating window do not block each other, improving the user experience.

[0102] According to the area and shape of the app floating window (floating window) and the control, the "horizontal expansion UI area (first expansion area)", "vertical expansion UI area (second expansion area)" and "alternative UI area (third expansion area)" of each control area in the application are dynamically calculated to dynamically avoid the control from the app floating window control. The specific technical effects are as follows:

[0103] 1. The controls and app floating windows do not block each other;

[0104] 2. Make the control move as little as possible, or move it as much as possible;

[0105] 3. Improve operational tolerance and reduce misoperation caused by control movement;

[0106] 4. Ensure the flexibility and displacement area of ​​floating windows and controls, without being restricted by operating controls;

[0107] 5. In the case of displacement, the function and form of the contact control are not affected.

[0108] Corresponding to the above method embodiment, the embodiment of the present invention provides a control adjustment device, which provides a graphical user interface through a terminal device, wherein the graphical user interface includes at least one control area, and the control area includes at least one target control, such as Fig.24 As shown, the device comprises:

[0109] The display position information acquisition module 241 is used to acquire the display position information of the floating window in response to displaying a floating window on the graphical user interface;

[0110] A first target control determining module 242, configured to determine a first target control among the target controls that is blocked by the floating window based on the display position information of the floating window and the display position information of the target controls in the target control area;

[0111] A target expansion area determination module 243 is used to determine a target expansion area in the graphical user interface;

[0112] The position adjustment module 244 is used to adjust the position of the first target control or the first target control and the second target control that is at least partially unobstructed in the target control area and / or the target expansion area, so that the first target control and the second target control are not obstructed by the floating window.

[0113] An embodiment of the present invention provides a control adjustment device, which, in response to displaying a floating window on a graphical user interface, obtains display position information of the floating window; determines a first target control in the target control that is blocked by the floating window based on the display position information of the target control in the floating window and the target control area; determines a target expansion area in the graphical user interface; and adjusts the position of the first target control or the first target control and the second target control that is at least partially unblocked in the target control area and / or the target expansion area, so that the target control is not blocked by the floating window. In this method, when the control is blocked by the floating window, the target expansion area is determined, and the blocked control is controlled to be adjusted to the target expansion area for display and use, so that the control is not blocked by the floating window, thereby reducing misoperation caused by control movement, and does not require the player to perform any operation, thereby ensuring the flexibility of the floating window.

[0114] The position adjustment module is further used to: move the first target control to the target expansion area, and control the position of the second target control in the target control area to remain unchanged.

[0115] The above-mentioned position adjustment module is also used to: adjust the position of the obstructed first target control and the unobstructed second target control according to preset rules, wherein the preset rules include at least one of the following: arrangement layout of target controls, control display rules of the target expansion area, and priority of target controls.

[0116] The above-mentioned preset rules include: the arrangement layout of the target control and the control display rules of the target expansion area; the above-mentioned position adjustment module is also used to: obtain the current arrangement layout of the first target control; determine whether the target expansion area can be displayed according to the current arrangement layout; if so, move the first target control to the target expansion area and display the first target control according to the current arrangement layout, and control the position of the second target control in the target control area to remain unchanged.

[0117] The above-mentioned position adjustment module is also used to: if not, determine the target position of the first target control according to the control display rule of the target expansion area; move the first target control to the target expansion area and display the first target control in the corresponding target position, and control the position of the second target control in the target control area to remain unchanged.

[0118] The above-mentioned preset rules include: the priority of the target control; the above-mentioned position adjustment module is also used to: obtain the priority of the first target control and the second target control, and determine whether the priority of the first target control is higher than the priority of the second target control; if so, determine the second target control to be moved, move the second target control to be moved to the target expansion area for display, and move the first target control to the position of the second target control to be moved in the target control area to display the first target control; if not, execute the step of obtaining the current arrangement layout of the first target control.

[0119] The position adjustment module is further used to determine that the second target control that is closest to the first target control is the second target control to be moved.

[0120] The position adjustment module is also used for: if the second target control includes multiple sub-controls, selecting a target sub-control that is the same in number as the first target control and closest in distance from the multiple sub-controls; and determining the target sub-control as the second target control to be moved.

[0121] The target expansion area determination module is also used to: determine the area of ​​the interactive area between the floating window and the target control area, calculate the ratio of the area of ​​the intersection area to the area of ​​the target control area; if the ratio is less than or equal to a preset threshold, determine a target expansion area in the graphical user interface.

[0122] The target expansion area determination module is further used to: respond to a move operation on the floating window, control the floating window to move on the graphical user interface, and detect the area of ​​the intersection of the floating window and the target control area in real time.

[0123] The target expansion area determination module is further used to: determine a first expansion area and a second expansion area preset in the target control area; and determine the expansion area in the first expansion area and the second expansion area that is not blocked by the floating window as the target expansion area.

[0124] The first expansion area is set above or below the target control area; the second expansion area is set to the left or right of the target control area.

[0125] The sizes of the first expansion area and the second expansion area preset in the above-mentioned target control area are determined by the size of the target expansion area; the width of the first expansion area is the same as the width of the target control area; the height of the second expansion area is the same as the height of the target control area.

[0126] The target expansion area determination module is further used to: if neither the first expansion area nor the second expansion area is blocked by the floating window, determine the expansion area closest to the first target control in the first expansion area and the second expansion area as the target expansion area.

[0127] The above-mentioned device also includes: a first size adjustment module, which is used to adjust the size of the target control area in response to a size adjustment operation on the target control area, or in response to a specified trigger event; according to the adjusted size of the target control area, adjust the size of the first expansion area and the second expansion area preset in the target control area.

[0128] The above device also includes: a target display area determination module, which is used to determine a target display area from the graphical user interface if the ratio is greater than a preset threshold; if the target display area does not overlap with the control area, display a floating window in the target display area.

[0129] The target display area determination module is also used to: if the target display area overlaps with the target control area, determine a third expansion area preset for the target control area, move the target control in the target control area to the third expansion area, and display the target control according to the current arrangement layout.

[0130] The target display area is the edge area closest to the target control area.

[0131] The first size adjustment module is further used to: if the size of the floating window is different from the size of the target display area, adjust the size of the floating window according to the target display area so that the size of the target display area is the same as that of the floating window.

[0132] The control adjustment device provided in the embodiment of the present invention has the same technical features as the control adjustment method provided in the above embodiment, so it can also solve the same technical problems and achieve the same technical effects.

[0133] This embodiment also provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above control adjustment method. The electronic device can be a server or a terminal device.

[0134] See also Fig.25 As shown, the electronic device includes a processor 100 and a memory 101, wherein the memory 101 stores machine executable instructions that can be executed by the processor 100, and the processor 100 executes the machine executable instructions to implement the above-mentioned control adjustment method.

[0135] Further, Fig.25 The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 100 , the communication interface 103 and the memory 101 are connected via the bus 102 .

[0136] The memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.25 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0137] The processor 100 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 100. The above processor 100 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the method of the above embodiment in combination with its hardware.

[0138] The processor in the above electronic device can implement the following operations in the above control adjustment method by executing machine executable instructions:

[0139] In response to displaying a floating window on a graphical user interface, the display position information of the floating window is obtained; based on the display position information of the floating window and the display position information of the target control in the target control area, the first target control in the target control that is blocked by the floating window is determined; a target expansion area is determined in the graphical user interface; in the target control area and / or the target expansion area, the position of the first target control or the first target control and the second target control that is at least partially unblocked is adjusted so that the first target control and the second target control are not blocked by the floating window. In this method, when the control is blocked by the floating window, the target expansion area is determined, and the blocked control is controlled to be adjusted to the target expansion area for display and use, so that the control is not blocked by the floating window, which reduces the misoperation caused by the movement of the control, and does not require the player to perform any operation, thereby ensuring the flexibility of the floating window.

[0140] The step of adjusting the position of the first target control includes: moving the first target control to the target expansion area, and controlling the position of the second target control in the target control area to remain unchanged.

[0141] The above-mentioned step of adjusting the position of the first target control and the second target control that is at least partially unobstructed includes: adjusting the position of the obstructed first target control and the unobstructed second target control according to preset rules, wherein the preset rules include at least one of the following: arrangement layout of target controls, control display rules of the target expansion area, and priority of target controls.

[0142] The above-mentioned preset rules include: the arrangement layout of the target control and the control display rules of the target expansion area; the step of adjusting the position of the obscured first target control and the unobstructed second target control according to the preset rules, including: obtaining the current arrangement layout of the first target control; determining whether the target expansion area can be displayed according to the current arrangement layout; if so, moving the first target control to the target expansion area and displaying the first target control according to the current arrangement layout, and controlling the position of the second target control in the target control area to remain unchanged.

[0143] After the step of determining whether the target expansion area can be displayed according to the current arrangement layout, the method further includes: if not, determining the target position of the first target control according to the control display rule of the target expansion area; moving the first target control to the target expansion area and displaying the first target control at the corresponding target position, and controlling the position of the second target control in the target control area to remain unchanged.

[0144] The above-mentioned preset rules include: the priority of the target control; the step of adjusting the position of the obscured first target control and the unobstructed second target control according to the preset rules, including: obtaining the priority of the first target control and the second target control, and determining whether the priority of the first target control is higher than that of the second target control; if so, determining the second target control to be moved, moving the second target control to be moved to the target expansion area for display, and moving the first target control to the position of the second target control to be moved in the target control area to display the first target control; if not, executing the step of obtaining the current arrangement layout of the first target control.

[0145] The above-mentioned determining the second target control to be moved includes: determining the second target control that is closest to the first target control as the second target control to be moved.

[0146] The above step of determining the second target control that is closest to the first target control as the second target control to be moved includes: if the second target control includes multiple sub-controls, selecting target sub-controls that are the same in number as the first target control and closest in distance from the multiple sub-controls; and determining the target sub-control as the second target control to be moved.

[0147] The step of determining a target expansion area in a graphical user interface includes: determining the area of ​​an interactive area between a floating window and a target control area, and calculating a ratio of an area of ​​an intersection area to an area of ​​a target control area; if the ratio is less than or equal to a preset threshold, determining a target expansion area in the graphical user interface.

[0148] The above step of determining the area of ​​the interactive region between the floating window and the target control region includes: responding to a move operation on the floating window, controlling the floating window to move on the graphical user interface, and detecting the area of ​​the intersection of the floating window and the target control region in real time.

[0149] The step of determining a target expansion area in a graphical user interface includes: determining a first expansion area and a second expansion area preset in a target control area; and determining an expansion area in the first expansion area and the second expansion area that is not blocked by a floating window as the target expansion area.

[0150] The first expansion area is set above or below the target control area; the second expansion area is set to the left or right of the target control area.

[0151] The sizes of the first expansion area and the second expansion area preset in the above-mentioned target control area are determined by the size of the target expansion area; the width of the first expansion area is the same as the width of the target control area; the height of the second expansion area is the same as the height of the target control area.

[0152] The method further includes: if neither the first expansion area nor the second expansion area is blocked by the floating window, determining the expansion area of ​​the first expansion area and the second expansion area that is closest to the first target control as the target expansion area.

[0153] The above method also includes: adjusting the size of the target control area in response to a size adjustment operation on the target control area, or in response to a specified trigger event; adjusting the sizes of the first expansion area and the second expansion area preset in the target control area according to the adjusted size of the target control area.

[0154] The above method also includes: if the ratio is greater than a preset threshold, determining a target display area from the graphical user interface; if the target display area does not overlap with the control area, displaying a floating window in the target display area.

[0155] The above method also includes: if the target display area overlaps with the target control area, determining a third expansion area preset for the target control area, moving the target control in the target control area to the third expansion area, and displaying the target control according to the current arrangement layout.

[0156] The target display area is the edge area closest to the target control area.

[0157] After the step of determining a target display area from the graphical user interface if the ratio is greater than a preset threshold, the method further includes: if the size of the floating window is different from the size of the target display area, adjusting the size of the floating window according to the target display area so that the target display area is the same size as the floating window.

[0158] This embodiment also provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned control adjustment method.

[0159] The machine executable instructions stored in the machine readable storage medium can implement the following operations in the control adjustment method by executing the machine executable instructions:

[0160] In response to displaying a floating window on a graphical user interface, the display position information of the floating window is obtained; based on the display position information of the floating window and the display position information of the target control in the target control area, the first target control in the target control that is blocked by the floating window is determined; a target expansion area is determined in the graphical user interface; in the target control area and / or the target expansion area, the position of the first target control or the first target control and the second target control that is at least partially unblocked is adjusted so that the first target control and the second target control are not blocked by the floating window. In this method, when the control is blocked by the floating window, the target expansion area is determined, and the blocked control is controlled to be adjusted to the target expansion area for display and use, so that the control is not blocked by the floating window, which reduces the misoperation caused by the movement of the control, and does not require the player to perform any operation, thereby ensuring the flexibility of the floating window.

[0161] The step of adjusting the position of the first target control includes: moving the first target control to the target expansion area, and controlling the position of the second target control in the target control area to remain unchanged.

[0162] The above-mentioned step of adjusting the position of the first target control and the second target control that is at least partially unobstructed includes: adjusting the position of the obstructed first target control and the unobstructed second target control according to preset rules, wherein the preset rules include at least one of the following: arrangement layout of target controls, control display rules of the target expansion area, and priority of target controls.

[0163] The above-mentioned preset rules include: the arrangement layout of the target control and the control display rules of the target expansion area; the step of adjusting the position of the obscured first target control and the unobstructed second target control according to the preset rules, including: obtaining the current arrangement layout of the first target control; determining whether the target expansion area can be displayed according to the current arrangement layout; if so, moving the first target control to the target expansion area and displaying the first target control according to the current arrangement layout, and controlling the position of the second target control in the target control area to remain unchanged.

[0164] After the step of determining whether the target expansion area can be displayed according to the current arrangement layout, the method further includes: if not, determining the target position of the first target control according to the control display rule of the target expansion area; moving the first target control to the target expansion area and displaying the first target control at the corresponding target position, and controlling the position of the second target control in the target control area to remain unchanged.

[0165] The above-mentioned preset rules include: the priority of the target control; the step of adjusting the position of the obscured first target control and the unobstructed second target control according to the preset rules, including: obtaining the priority of the first target control and the second target control, and determining whether the priority of the first target control is higher than that of the second target control; if so, determining the second target control to be moved, moving the second target control to be moved to the target expansion area for display, and moving the first target control to the position of the second target control to be moved in the target control area to display the first target control; if not, executing the step of obtaining the current arrangement layout of the first target control.

[0166] The above-mentioned determining the second target control to be moved includes: determining the second target control that is closest to the first target control as the second target control to be moved.

[0167] The above step of determining the second target control that is closest to the first target control as the second target control to be moved includes: if the second target control includes multiple sub-controls, selecting target sub-controls that are the same in number as the first target control and closest in distance from the multiple sub-controls; and determining the target sub-control as the second target control to be moved.

[0168] The step of determining a target expansion area in a graphical user interface includes: determining the area of ​​an interactive area between a floating window and a target control area, and calculating a ratio of an area of ​​an intersection area to an area of ​​a target control area; if the ratio is less than or equal to a preset threshold, determining a target expansion area in the graphical user interface.

[0169] The above step of determining the area of ​​the interactive region between the floating window and the target control region includes: responding to a move operation on the floating window, controlling the floating window to move on the graphical user interface, and detecting the area of ​​the intersection of the floating window and the target control region in real time.

[0170] The step of determining a target expansion area in a graphical user interface includes: determining a first expansion area and a second expansion area preset in a target control area; and determining an expansion area in the first expansion area and the second expansion area that is not blocked by a floating window as the target expansion area.

[0171] The first expansion area is set above or below the target control area; the second expansion area is set to the left or right of the target control area.

[0172] The sizes of the first expansion area and the second expansion area preset in the above-mentioned target control area are determined by the size of the target expansion area; the width of the first expansion area is the same as the width of the target control area; the height of the second expansion area is the same as the height of the target control area.

[0173] The method further includes: if neither the first expansion area nor the second expansion area is blocked by the floating window, determining the expansion area of ​​the first expansion area and the second expansion area that is closest to the first target control as the target expansion area.

[0174] The above method also includes: adjusting the size of the target control area in response to a size adjustment operation on the target control area, or in response to a specified trigger event; adjusting the sizes of the first expansion area and the second expansion area preset in the target control area according to the adjusted size of the target control area.

[0175] The above method also includes: if the ratio is greater than a preset threshold, determining a target display area from the graphical user interface; if the target display area does not overlap with the control area, displaying a floating window in the target display area.

[0176] The above method also includes: if the target display area overlaps with the target control area, determining a third expansion area preset for the target control area, moving the target control in the target control area to the third expansion area, and displaying the target control according to the current arrangement layout.

[0177] The target display area is the edge area closest to the target control area.

[0178] After the step of determining a target display area from the graphical user interface if the ratio is greater than a preset threshold, the method further includes: if the size of the floating window is different from the size of the target display area, adjusting the size of the floating window according to the target display area so that the target display area is the same size as the floating window.

[0179] The computer program product of the control adjustment method, device and system provided in the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.

[0180] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0181] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0182] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0183] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0184] Finally, it should be noted that the above embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above embodiments, those skilled in the art should understand that any person skilled in the art can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A method for adjusting a control, characterized in that: A graphical user interface is provided by a terminal device, wherein the graphical user interface includes at least one control area, and the control area includes at least one target control, and the method includes: In response to displaying a floating window on the graphical user interface, acquiring display position information of the floating window; Determine, based on the display position information of the floating window and the display position information of the target control in the target control area, a first target control among the target controls that is blocked by the floating window; Determining a target expansion area in the graphical user interface; In the target control area and / or the target expansion area, the position of the first target control or the first target control and the second target control that is at least partially unobstructed is adjusted so that the first target control and the second target control are not obstructed by the floating window.

2. The method according to claim 1, characterized in that The step of adjusting the position of the first target control includes: The first target control is moved to the target expansion area, and the position of the second target control in the target control area is controlled to remain unchanged.

3. The method according to claim 1, characterized in that The step of adjusting the position of the first target control and the second target control that is at least partially unobstructed includes: The positions of the first target control that is blocked and the second target control that is not blocked are adjusted according to preset rules, wherein the preset rules include at least one of the following: an arrangement layout of the target controls, a control display rule of the target expansion area, and a priority of the target controls.

4. The method according to claim 3, characterized in that: The preset rules include: the arrangement layout of the target controls and the control display rules of the target expansion area; The step of adjusting the positions of the first target control that is blocked and the second target control that is not blocked according to a preset rule includes: Obtaining the current arrangement layout of the first target control; Determine whether the target expansion area can be displayed according to the current arrangement layout; If yes, the first target control is moved to the target expansion area and displayed according to the current arrangement layout, and the position of the second target control in the target control area is controlled to remain unchanged.

5. The method according to claim 4, characterized in that After the step of determining whether the target expansion area can be displayed according to the current arrangement layout, the method further includes: If not, determining the target position of the first target control according to the control display rule of the target extended area; The first target control is moved to the target expansion area and displayed at a corresponding target position, and the position of the second target control in the target control area is controlled to remain unchanged.

6. The method according to claim 3 or 4, characterized in that: The preset rules include: the priority of the target control; The step of adjusting the positions of the first target control that is blocked and the second target control that is not blocked according to a preset rule includes: Obtaining the priorities of the first target control and the second target control, and determining whether the priority of the first target control is higher than the priority of the second target control; If yes, determine a second target control to be moved, move the second target control to be moved to the target expansion area for display, and move the first target control to the position of the second target control to be moved in the target control area for display; If not, execute the step of obtaining the current arrangement layout of the first target control.

7. The method according to claim 6, characterized in that The determining the second target control to be moved includes: determining a second target control that is closest to the first target control as the second target control to be moved.

8. The method according to claim 7, characterized in that The step of determining the second target control that is closest to the first target control as the second target control to be moved includes: If the second target control includes multiple sub-controls, select a target sub-control that is the same in number as the first target control and closest in distance from the multiple sub-controls; The target sub-control is determined as the second target control to be moved.

9. The method according to claim 1, characterized in that: The step of determining a target expansion area in the graphical user interface includes: Determine the area of ​​the interaction area between the floating window and the target control area, and calculate the ratio of the area of ​​the intersection area to the area of ​​the target control area; If the ratio is less than or equal to a preset threshold, a target expansion area is determined in the graphical user interface.

10. The method according to claim 9, characterized in that The step of determining the area of ​​the interaction area between the floating window and the target control area includes: In response to a movement operation on the floating window, the floating window is controlled to move on the graphical user interface, and the area of ​​an intersection area between the floating window and the target control area is detected in real time.

11. The method according to claim 1 or 9, characterized in that: The step of determining a target expansion area in the graphical user interface includes: Determine a first expansion area and a second expansion area preset in the target control area; An expansion area in the first expansion area and the second expansion area that is not blocked by the floating window is determined as the target expansion area.

12. The method according to claim 11, characterized in that The first expansion area is set above or below the target control area; the second expansion area is set to the left or right of the target control area.

13. The method according to claim 11, characterized in that The sizes of the first expansion area and the second expansion area preset in the target control area are determined by the size of the target expansion area; the width of the first expansion area is the same as the width of the target control area; the height of the second expansion area is the same as the height of the target control area.

14. The method according to claim 11, characterized in that The method further comprises: If neither the first expansion area nor the second expansion area is blocked by the floating window, the expansion area closest to the first target control among the first expansion area and the second expansion area is determined as the target expansion area.

15. The method according to claim 1 or 11, characterized in that: The method further comprises: In response to a size adjustment operation on the target control area, or in response to a specified trigger event, adjust the size of the target control area; According to the adjusted size of the target control area, the sizes of the first expansion area and the second expansion area preset in the target control area are adjusted.

16. The method according to claim 9, characterized in that The method further comprises: If the ratio is greater than the preset threshold, determining a target display area from the graphical user interface; If the target display area does not overlap with the control area, the floating window is displayed in the target display area.

17. The method according to claim 16, characterized in that The method further comprises: If the target display area overlaps with the target control area, a third expansion area preset for the target control area is determined, the target control in the target control area is moved to the third expansion area, and the target control is displayed according to the current arrangement layout.

18. The method according to claim 16, characterized in that The target display area is an edge area closest to the target control area.

19. The method according to claim 16, characterized in that If the ratio is greater than the preset threshold, after the step of determining a target display area from the graphical user interface, the method further includes: if the size of the floating window is different from the size of the target display area, adjusting the size of the floating window according to the target display area so that the target display area is the same size as the floating window.

20. A control adjustment device, characterized in that: A graphical user interface is provided through a terminal device, wherein the graphical user interface includes at least one control area, and the control area includes at least one target control, and the apparatus includes: A display position information acquisition module, configured to acquire display position information of a floating window in response to displaying the floating window on the graphical user interface; A first target control determining module, configured to determine a first target control among the target controls that is blocked by the floating window based on the display position information of the floating window and the display position information of the target control in the target control area; A target expansion area determination module, used to determine a target expansion area in the graphical user interface; A position adjustment module is used to adjust the position of the first target control or the first target control and the second target control that is at least partially unobstructed in the target control area and / or the target expansion area, so that the first target control and the second target control are not obstructed by the floating window.

21. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the control adjustment method described in any one of claims 1-19.

22. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the control adjustment method described in any one of claims 1-19.

Citation Information

Patent Citations

  • Method and device for adjusting shielded or mistakenly touched control

    CN110750186A

  • Control display method and electronic equipment

    CN111309418A

  • Window position adjusting method and device, and electronic equipment

    CN111638818A

  • Control method and device for control in graphical user interface, equipment and storage medium

    CN111701226A

  • Floating layer control method and device, equipment and computer readable medium

    CN113553122A

Cited By

  • Picture-in-picture function-oriented interaction control method and tablet computer

    CN119322582A

  • Image display method and device in virtual scene, electronic equipment, storage medium and program product

    CN120022594A

  • Picture display method and device in virtual scene, electronic equipment, storage medium and program product

    CN120022594B